Class: OrderAuthorize

Request~OrderAuthorize(clientnullable, ordernullable)

Handles API Request Order_Authorize. Scope: Store.

Constructor

new OrderAuthorize(clientnullable, ordernullable)

OrderAuthorize Constructor.

OrderAuthorize Constructor.

Parameters:
Name Type Attributes Default Description
client Client <nullable>
order Order <nullable>
null
Source:
See:

Methods

createResponse() → {Response}

Create a response object from the response data.

Create a response object from the response data.

Source:
Returns:
Type
Response

getAmount() → {number}

Get Amount.

Get Amount.

Source:
Returns:
Type
number

getModuleData() → {string}

Get Module_Data.

Get Module_Data.

Source:
Returns:
Type
string

getModuleFields() → {Object}

Get Module_Fields.

Get Module_Fields.

Source:
Returns:
Type
Object

getModuleId() → {number}

Get Module_ID.

Get Module_ID.

Source:
Returns:
Type
number

getOrderId() → {number}

Get Order_ID.

Get Order_ID.

Source:
Returns:
Type
number

setAmount(amount) → {OrderAuthorize}

Set Amount.

Set Amount.

Parameters:
Name Type Description
amount number
Source:
Returns:
Type
OrderAuthorize

setModuleData(moduleData) → {OrderAuthorize}

Set Module_Data.

Set Module_Data.

Parameters:
Name Type Description
moduleData string
Source:
Returns:
Type
OrderAuthorize

setModuleField(field, value) → {OrderAuthorize}

Add custom data to the request.

Add custom data to the request.

Parameters:
Name Type Description
field string
value *
Source:
Returns:
Type
OrderAuthorize

setModuleFields(moduleFields) → {OrderAuthorize}

Set Module_Fields.

Set Module_Fields.

Parameters:
Name Type Description
moduleFields Object
Source:
Returns:
Type
OrderAuthorize

setModuleId(moduleId) → {OrderAuthorize}

Set Module_ID.

Set Module_ID.

Parameters:
Name Type Description
moduleId number
Source:
Returns:
Type
OrderAuthorize

setOrderId(orderId) → {OrderAuthorize}

Set Order_ID.

Set Order_ID.

Parameters:
Name Type Description
orderId number
Source:
Returns:
Type
OrderAuthorize

toObject() → {Object}

Reduce the request to a an object.

Reduce the request to a an object.

Source:
Returns:
Type
Object