Show / Hide Table of Contents

Class OrdersResource.CaptureOrderRequest

Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped. A rejected error code is returned when the payment service provider has declined the charge. This indicates a problem between the PSP and either the merchant's or customer's account. Sometimes this error will be resolved by the customer. We recommend retrying these errors once per day or cancelling the order with reason failedToCaptureFunds if the items cannot be held.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<CaptureOrderResponse>
ShoppingContentBaseServiceRequest<CaptureOrderResponse>
OrdersResource.CaptureOrderRequest
Implements
IClientServiceRequest<CaptureOrderResponse>
IClientServiceRequest
Inherited Members
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.Xgafv
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.AccessToken
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.Alt
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.Callback
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.Fields
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.Key
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.OauthToken
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.PrettyPrint
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.QuotaUser
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.UploadType
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.UploadProtocol
ClientServiceRequest<CaptureOrderResponse>.Execute()
ClientServiceRequest<CaptureOrderResponse>.ExecuteAsStream()
ClientServiceRequest<CaptureOrderResponse>.ExecuteAsync()
ClientServiceRequest<CaptureOrderResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<CaptureOrderResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<CaptureOrderResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<CaptureOrderResponse>.CreateRequest(bool?)
ClientServiceRequest<CaptureOrderResponse>.GenerateRequestUri()
ClientServiceRequest<CaptureOrderResponse>.GetDefaultETagAction(string)
ClientServiceRequest<CaptureOrderResponse>.ETagAction
ClientServiceRequest<CaptureOrderResponse>.ModifyRequest
ClientServiceRequest<CaptureOrderResponse>.ValidateParameters
ClientServiceRequest<CaptureOrderResponse>.ApiVersion
ClientServiceRequest<CaptureOrderResponse>.RequestParameters
ClientServiceRequest<CaptureOrderResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class OrdersResource.CaptureOrderRequest : ShoppingContentBaseServiceRequest<CaptureOrderResponse>, IClientServiceRequest<CaptureOrderResponse>, IClientServiceRequest

Constructors

CaptureOrderRequest(IClientService, CaptureOrderRequest, long, string)

Constructs a new CaptureOrder request.

Declaration
public CaptureOrderRequest(IClientService service, CaptureOrderRequest body, long merchantId, string orderId)
Parameters
Type Name Description
IClientService service
CaptureOrderRequest body
long merchantId
string orderId

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CaptureOrderResponse>.HttpMethod

MerchantId

Required. The ID of the account that manages the order. This cannot be a multi-client account.

Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type Description
long

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CaptureOrderResponse>.MethodName

OrderId

Required. The ID of the Order.

Declaration
[RequestParameter("orderId", RequestParameterType.Path)]
public virtual string OrderId { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CaptureOrderResponse>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<CaptureOrderResponse>.GetBody()

InitParameters()

Initializes CaptureOrder parameter list.

Declaration
protected override void InitParameters()
Overrides
ShoppingContentBaseServiceRequest<CaptureOrderResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX