Skip to content

/AWS1/CL_WA2PRICE

The price per request for a payment network, specifying the amount and cryptocurrency.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_amount TYPE /AWS1/WA2PRICEAMOUNT /AWS1/WA2PRICEAMOUNT

The price per request as a decimal string in the specified currency. Minimum: 0.001. Maximum: 999999999.999. Supports up to 3 decimal places.

iv_currency TYPE /AWS1/WA2CRYPTOCURRENCY /AWS1/WA2CRYPTOCURRENCY

The cryptocurrency for payment. Currently only USDC is supported.


Queryable Attributes

Amount

The price per request as a decimal string in the specified currency. Minimum: 0.001. Maximum: 999999999.999. Supports up to 3 decimal places.

Accessible with the following methods

Method Description
GET_AMOUNT() Getter for AMOUNT, with configurable default
ASK_AMOUNT() Getter for AMOUNT w/ exceptions if field has no value
HAS_AMOUNT() Determine if AMOUNT has a value

Currency

The cryptocurrency for payment. Currently only USDC is supported.

Accessible with the following methods

Method Description
GET_CURRENCY() Getter for CURRENCY, with configurable default
ASK_CURRENCY() Getter for CURRENCY w/ exceptions if field has no value
HAS_CURRENCY() Determine if CURRENCY has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_PRICES

TYPES TT_PRICES TYPE STANDARD TABLE OF REF TO /AWS1/CL_WA2PRICE WITH DEFAULT KEY
.