Region
A region holds settings specific to a geographical location, including the currency, tax rates, and fulfillment and payment providers. A Region can consist of multiple countries to accomodate common shopping settings across countries.
Constructors
constructor
**new Region**()
A region holds settings specific to a geographical location, including the currency, tax rates, and fulfillment and payment providers. A Region can consist of multiple countries to accomodate common shopping settings across countries.
Properties
automatic_taxesbooleanRequiredWhether taxes should be automated in this region.
Default: true
The details of the countries included in this region.
created_atDateRequiredThe date with timezone at which the resource was created.
The details of the currency used in the region.
currency_codestringRequiredThe three character currency code used in the region.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
The details of the fulfillment providers that can be used to fulfill items of orders and similar resources in the region.
gift_cards_taxablebooleanRequiredWhether the gift cards are taxable or not in this region.
Default: true
idstringRequiredThe region's ID
includes_taxbooleanRequiredWhether the prices for the region include tax
Default: false
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
namestringRequiredThe name of the region as displayed to the customer. If the Region only has one country it is recommended to write the country name.
The details of the payment providers that can be used to process payments in the region.
tax_codestringRequiredThe tax code used on purchases in the Region. This may be used by other systems for accounting purposes.
The details of the tax provider used in the region.
tax_provider_idnull | stringRequiredThe ID of the tax provider used in this region
tax_ratenumberRequiredThe tax rate that should be charged on purchases in the Region.
The details of the tax rates used in the region, aside from the default rate.
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?