Class BuyersResource.ProposalsResource.AcceptRequest
Accepts the proposal at the given revision number. If the revision number in the request is behind the
latest from the server, an error message will be returned. This call updates the Proposal.state from
BUYER_ACCEPTANCE_REQUESTED
to FINALIZED
; it has no side effect if the Proposal.state is already
FINALIZED
and throws exception if the Proposal.state is not either BUYER_ACCEPTANCE_REQUESTED
or
FINALIZED
. Accepting a proposal means the buyer understands and accepts the
Proposal.terms_and_conditions proposed by the seller.
Inheritance
Inherited Members
Namespace: Google.Apis.AuthorizedBuyersMarketplace.v1alpha
Assembly: Google.Apis.AuthorizedBuyersMarketplace.v1alpha.dll
Syntax
public class BuyersResource.ProposalsResource.AcceptRequest : AuthorizedBuyersMarketplaceBaseServiceRequest<Proposal>, IClientServiceRequest<Proposal>, IClientServiceRequest
Constructors
AcceptRequest(IClientService, AcceptProposalRequest, string)
Constructs a new Accept request.
Declaration
public AcceptRequest(IClientService service, AcceptProposalRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AcceptProposalRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Name of the proposal. Format: buyers/{accountId}/proposals/{proposalId}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Accept parameter list.
Declaration
protected override void InitParameters()