Class BuyersResource.ProposalsResource.DealsResource
The "deals" collection of methods.
Inherited Members
Namespace: Google.Apis.AuthorizedBuyersMarketplace.v1alpha
Assembly: Google.Apis.AuthorizedBuyersMarketplace.v1alpha.dll
Syntax
public class BuyersResource.ProposalsResource.DealsResource
Constructors
DealsResource(IClientService)
Constructs a new resource.
Declaration
public DealsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
BatchUpdate(BatchUpdateDealsRequest, string)
Batch updates multiple deals in the same proposal.
Declaration
public virtual BuyersResource.ProposalsResource.DealsResource.BatchUpdateRequest BatchUpdate(BatchUpdateDealsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchUpdateDealsRequest | body | The body of the request. |
string | parent | Required. The name of the proposal containing the deals to batch update. Format: buyers/{accountId}/proposals/{proposalId} |
Returns
Type | Description |
---|---|
BuyersResource.ProposalsResource.DealsResource.BatchUpdateRequest |
Get(string)
Gets a deal given its name. The deal is returned at its head revision.
Declaration
public virtual BuyersResource.ProposalsResource.DealsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId} |
Returns
Type | Description |
---|---|
BuyersResource.ProposalsResource.DealsResource.GetRequest |
List(string)
Lists all deals in a proposal. To retrieve only the finalized revision deals regardless if a deal is being renegotiated, see the FinalizedDeals resource.
Declaration
public virtual BuyersResource.ProposalsResource.DealsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the proposal containing the deals to retrieve. Format: buyers/{accountId}/proposals/{proposalId} |
Returns
Type | Description |
---|---|
BuyersResource.ProposalsResource.DealsResource.ListRequest |
Patch(Deal, string)
Updates the given deal at the buyer known revision number. If the server revision has advanced since the passed-in proposal.proposal_revision an ABORTED error message will be returned. The revision number is incremented by the server whenever the proposal or its constituent deals are updated. Note: The revision number is kept at a proposal level. The buyer of the API is expected to keep track of the revision number after the last update operation and send it in as part of the next update request. This way, if there are further changes on the server (for example, seller making new updates), then the server can detect conflicts and reject the proposed changes.
Declaration
public virtual BuyersResource.ProposalsResource.DealsResource.PatchRequest Patch(Deal body, string name)
Parameters
Type | Name | Description |
---|---|---|
Deal | body | The body of the request. |
string | name | Immutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId} |
Returns
Type | Description |
---|---|
BuyersResource.ProposalsResource.DealsResource.PatchRequest |