Class: module:models/OrderPaymentInstrumentRequest

module:models/OrderPaymentInstrumentRequest()

new module:models/OrderPaymentInstrumentRequest()

Constructs a new OrderPaymentInstrumentRequest. Document representing an order payment instrument request.

Source:

Members

(inner) amount :Number

The payment transaction amount.

Type:
  • Number
Source:

(inner) bank_routing_number :String

The bank routing number.

Type:
  • String
Source:

(inner) create_customer_payment_instrument :Boolean

A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument is only created when the OrderPaymentInstrument was authorized successfully.

Type:
  • Boolean
Source:

(inner) customer_payment_instrument_id :String

The id of a customer payment instrument.

Type:
  • String
Source:

(inner) gift_certificate_code :String

The gift certificate code.

Type:
  • String
Source:

(inner) payment_bank_account :module:models/PaymentBankAccountRequest

The payment bank account request data.

Type:
Source:

(inner) payment_card :module:models/OrderPaymentCardRequest

The payment card.

Type:
Source:

(inner) payment_method_id :String

The payment method id. Optional if a customer payment instrument id is specified.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/OrderPaymentInstrumentRequest}

Constructs a OrderPaymentInstrumentRequest from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/OrderPaymentInstrumentRequest

Optional instance to populate.

Source:
Returns:

The populated OrderPaymentInstrumentRequest instance.

Type
module:models/OrderPaymentInstrumentRequest