/AWS1/IF_R5D=>LISTPRICES()¶
About ListPrices¶
Lists the following prices for either all the TLDs supported by RouteĀ 53, or the specified TLD:
-
Registration
-
Transfer
-
Owner change
-
Domain renewal
-
Domain restoration
Method Signature¶
METHODS /AWS1/IF_R5D~LISTPRICES
IMPORTING
!IV_TLD TYPE /AWS1/R5DTLDNAME OPTIONAL
!IV_MARKER TYPE /AWS1/R5DPAGEMARKER OPTIONAL
!IV_MAXITEMS TYPE /AWS1/R5DLSTPRICESPAGEMAXITEMS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5dlistpricesresponse
RAISING
/AWS1/CX_R5DINVALIDINPUT
/AWS1/CX_R5DUNSUPPORTEDTLD
/AWS1/CX_R5DCLIENTEXC
/AWS1/CX_R5DSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_tld TYPE /AWS1/R5DTLDNAME /AWS1/R5DTLDNAME¶
The TLD for which you want to receive the pricing information. For example.
.net.If a
Tldvalue is not provided, a list of prices for all TLDs supported by RouteĀ 53 is returned.
iv_marker TYPE /AWS1/R5DPAGEMARKER /AWS1/R5DPAGEMARKER¶
For an initial request for a list of prices, omit this element. If the number of prices that are not yet complete is greater than the value that you specified for
MaxItems, you can useMarkerto return additional prices. Get the value ofNextPageMarkerfrom the previous response, and submit another request that includes the value ofNextPageMarkerin theMarkerelement.Used only for all TLDs. If you specify a TLD, don't specify a
Marker.
iv_maxitems TYPE /AWS1/R5DLSTPRICESPAGEMAXITEMS /AWS1/R5DLSTPRICESPAGEMAXITEMS¶
Number of
Pricesto be returned.Used only for all TLDs. If you specify a TLD, don't specify a
MaxItems.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5dlistpricesresponse /AWS1/CL_R5DLISTPRICESRESPONSE¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listprices(
iv_marker = |string|
iv_maxitems = 123
iv_tld = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_prices( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_domainpricename = lo_row_1->get_name( ).
lo_pricewithcurrency = lo_row_1->get_registrationprice( ).
IF lo_pricewithcurrency IS NOT INITIAL.
lv_price = lo_pricewithcurrency->get_price( ).
lv_currency = lo_pricewithcurrency->get_currency( ).
ENDIF.
lo_pricewithcurrency = lo_row_1->get_transferprice( ).
IF lo_pricewithcurrency IS NOT INITIAL.
lv_price = lo_pricewithcurrency->get_price( ).
lv_currency = lo_pricewithcurrency->get_currency( ).
ENDIF.
lo_pricewithcurrency = lo_row_1->get_renewalprice( ).
IF lo_pricewithcurrency IS NOT INITIAL.
lv_price = lo_pricewithcurrency->get_price( ).
lv_currency = lo_pricewithcurrency->get_currency( ).
ENDIF.
lo_pricewithcurrency = lo_row_1->get_changeownershipprice( ).
IF lo_pricewithcurrency IS NOT INITIAL.
lv_price = lo_pricewithcurrency->get_price( ).
lv_currency = lo_pricewithcurrency->get_currency( ).
ENDIF.
lo_pricewithcurrency = lo_row_1->get_restorationprice( ).
IF lo_pricewithcurrency IS NOT INITIAL.
lv_price = lo_pricewithcurrency->get_price( ).
lv_currency = lo_pricewithcurrency->get_currency( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_pagemarker = lo_result->get_nextpagemarker( ).
ENDIF.