AdminRegionsResource
admin/regions.AdminRegionsResource
Methods
addCountry
addCountry(id
, payload
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
adds a country to the list of countries in a region
addFulfillmentProvider
addFulfillmentProvider(id
, payload
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
adds a fulfillment provider to a region
addPaymentProvider
addPaymentProvider(id
, payload
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
adds a payment provider to a region
create
create(payload
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
created region.
Description
creates a region.
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
Deleted response
Description
deletes a region
deleteCountry
deleteCountry(id
, country_code
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcountry_code
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
remove a country from a region's list of coutnries
deleteFulfillmentProvider
deleteFulfillmentProvider(id
, provider_id
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredprovider_id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
remove a fulfillment provider from a region
deletePaymentProvider
deletePaymentProvider(id
, provider_id
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredprovider_id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
updated region
Description
removes a payment provider from a region
list
list(query?
, customHeaders?
): ResponsePromise
<AdminRegionsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsListRes
>
a list of regions matching the query.
Description
lists regions matching a query
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
the region with the given id
Description
get a region
retrieveFulfillmentOptions
retrieveFulfillmentOptions(id
, customHeaders?
): ResponsePromise
<AdminGetRegionsRegionFulfillmentOptionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminGetRegionsRegionFulfillmentOptionsRes
>
list of fulfillment options
Description
retrieves the list of fulfillment options available in a region
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminRegionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminRegionsRes
>
the updated region.
Description
updates a region