import ApiClient, { ApiClientInitConfig } from './client.js'; import { ObjectType, StringKey, PositiveNumberRange } from './types.js'; type ResourceNull = { id: null; } & ResourceType; type ResourceRel = ResourceId | ResourceNull; type Metadata = ObjectType; interface ResourceType { readonly type: ResourceTypeLock; } interface ResourceId extends ResourceType { readonly id: string; } interface ResourceBase { reference?: string | null; reference_origin?: string | null; metadata?: Metadata; } interface Resource extends ResourceBase, ResourceId { readonly created_at: string; readonly updated_at: string; } interface ResourceCreate extends ResourceBase { } interface ResourceUpdate extends ResourceBase { readonly id: string; } type ListMeta = { readonly pageCount: number; readonly recordCount: number; readonly currentPage: number; readonly recordsPerPage: number; }; declare class ListResponse extends Array { readonly meta: ListMeta; constructor(meta: ListMeta, data: R[]); first(): R | undefined; last(): R | undefined; get(index: number): R | undefined; hasNextPage(): boolean; hasPrevPage(): boolean; getRecordCount(): number; getPageCount(): number; get recordCount(): number; get pageCount(): number; } type ResourceSort = Pick; type ResourceFilter = Pick; type ResourceAdapterConfig = {}; type ResourcesInitConfig = ResourceAdapterConfig & ApiClientInitConfig; type ResourcesConfig = Partial; declare class ApiResourceAdapter { private static adapter; private constructor(); static init(config: ResourcesInitConfig): ResourceAdapter; static get(config?: ResourcesInitConfig): ResourceAdapter; static config(config: ResourcesConfig): void; } declare class ResourceAdapter { #private; constructor(config: ResourcesInitConfig); private localConfig; config(config: ResourcesConfig): this; get client(): Readonly; singleton(resource: ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig, path?: string): Promise; retrieve(resource: ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; list(resource: ResourceType, params?: QueryParamsList, options?: ResourcesConfig): Promise>; create(resource: C & ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: U & ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(resource: ResourceId, options?: ResourcesConfig): Promise; fetch(resource: string | ResourceType, path: string, params?: QueryParams, options?: ResourcesConfig): Promise>; } declare abstract class ApiResourceBase { #private; static readonly TYPE: ResourceTypeLock; constructor(adapter?: ResourceAdapter); protected get resources(): ResourceAdapter; abstract relationship(id: string | ResourceId | null): ResourceRel; protected relationshipOneToOne(id: string | ResourceId | null): RR; protected relationshipOneToMany(...ids: string[]): RR[]; abstract type(): ResourceTypeLock; protected path(): string; update(resource: ResourceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; } declare abstract class ApiResource extends ApiResourceBase { retrieve(id: string | ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; list(params?: QueryParamsList, options?: ResourcesConfig): Promise>; count(filter?: QueryFilter | QueryParamsList, options?: ResourcesConfig): Promise; } declare abstract class ApiSingleton extends ApiResourceBase { retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; } declare const isResourceId: (resource: any) => resource is ResourceId; declare const isResourceType: (resource: any) => resource is ResourceType; type EventStoreType = 'event_stores'; type EventStoreRel = ResourceRel & { type: EventStoreType; }; type EventStoreSort = Pick & ResourceSort; interface EventStore extends Resource { readonly type: EventStoreType; /** * The type of the affected resource. * @example ```"orders"``` */ resource_type?: string | null; /** * The ID of the affected resource. * @example ```"PzdJhdLdYV"``` */ resource_id?: string | null; /** * The type of change (one of create or update). * @example ```"update"``` */ event?: string | null; /** * The object changes payload. * @example ```{"status":["draft","placed"]}``` */ payload?: Record | null; /** * Information about who triggered the change. * @example ```{"application":{"id":"DNOPYiZYpn","kind":"sales_channel","public":true},"owner":{"id":"yQQrBhLBmQ","type":"Customer"}}``` */ who?: Record | null; } declare class EventStores extends ApiResource { static readonly TYPE: EventStoreType; isEventStore(resource: any): resource is EventStore; relationship(id: string | ResourceId | null): EventStoreRel; relationshipToMany(...ids: string[]): EventStoreRel[]; type(): EventStoreType; } declare const instance$23: EventStores; type VersionType = 'versions'; type VersionRel = ResourceRel & { type: VersionType; }; type VersionSort = Pick & ResourceSort; interface Version extends Resource { readonly type: VersionType; /** * The type of the versioned resource. * @example ```"orders"``` */ resource_type?: string | null; /** * The versioned resource id. * @example ```"PzdJhdLdYV"``` */ resource_id?: string | null; /** * The event which generates the version. * @example ```"update"``` */ event?: string | null; /** * The object changes payload. * @example ```{"status":["draft","placed"]}``` */ changes?: Record | null; /** * Information about who triggered the change. * @example ```{"application":{"id":"DNOPYiZYpn","kind":"sales_channel","public":true},"owner":{"id":"yQQrBhLBmQ","type":"Customer"}}``` */ who?: Record | null; event_stores?: EventStore[] | null; } declare class Versions extends ApiResource { static readonly TYPE: VersionType; event_stores(versionId: string | Version, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isVersion(resource: any): resource is Version; relationship(id: string | ResourceId | null): VersionRel; relationshipToMany(...ids: string[]): VersionRel[]; type(): VersionType; } declare const instance$22: Versions; type AdjustmentType = 'adjustments'; type AdjustmentRel$2 = ResourceRel & { type: AdjustmentType; }; type AdjustmentSort = Pick & ResourceSort; interface Adjustment extends Resource { readonly type: AdjustmentType; /** * The adjustment name. * @example ```"Additional service"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code: string; /** * The adjustment amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The adjustment amount, float. * @example ```15``` */ amount_float: number; /** * The adjustment amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if negative adjustment amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface AdjustmentCreate extends ResourceCreate { /** * The adjustment name. * @example ```"Additional service"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code: string; /** * The adjustment amount, in cents. * @example ```1500``` */ amount_cents: number; /** * Indicates if negative adjustment amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; } interface AdjustmentUpdate extends ResourceUpdate { /** * The adjustment name. * @example ```"Additional service"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The adjustment amount, in cents. * @example ```1500``` */ amount_cents?: number | null; /** * Indicates if negative adjustment amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; } declare class Adjustments extends ApiResource { static readonly TYPE: AdjustmentType; create(resource: AdjustmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; versions(adjustmentId: string | Adjustment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(adjustmentId: string | Adjustment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isAdjustment(resource: any): resource is Adjustment; relationship(id: string | ResourceId | null): AdjustmentRel$2; relationshipToMany(...ids: string[]): AdjustmentRel$2[]; type(): AdjustmentType; } declare const instance$21: Adjustments; type WebhookType = 'webhooks'; type WebhookRel = ResourceRel & { type: WebhookType; }; type WebhookSort = Pick & ResourceSort; interface Webhook extends Resource { readonly type: WebhookType; /** * Unique name for the webhook. * @example ```"myorg-orders.place"``` */ name?: string | null; /** * The identifier of the resource/event that will trigger the webhook. * @example ```"orders.place"``` */ topic: string; /** * URI where the webhook subscription should send the POST request when the event occurs. * @example ```"https://yourapp.com/webhooks"``` */ callback_url: string; /** * List of related resources that should be included in the webhook body. * @example ```["customer","shipping_address","billing_address"]``` */ include_resources?: string[] | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; last_event_callbacks?: EventCallback[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface WebhookCreate extends ResourceCreate { /** * Unique name for the webhook. * @example ```"myorg-orders.place"``` */ name?: string | null; /** * The identifier of the resource/event that will trigger the webhook. * @example ```"orders.place"``` */ topic: string; /** * URI where the webhook subscription should send the POST request when the event occurs. * @example ```"https://yourapp.com/webhooks"``` */ callback_url: string; /** * List of related resources that should be included in the webhook body. * @example ```["customer","shipping_address","billing_address"]``` */ include_resources?: string[] | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; } interface WebhookUpdate extends ResourceUpdate { /** * Unique name for the webhook. * @example ```"myorg-orders.place"``` */ name?: string | null; /** * The identifier of the resource/event that will trigger the webhook. * @example ```"orders.place"``` */ topic?: string | null; /** * URI where the webhook subscription should send the POST request when the event occurs. * @example ```"https://yourapp.com/webhooks"``` */ callback_url?: string | null; /** * List of related resources that should be included in the webhook body. * @example ```["customer","shipping_address","billing_address"]``` */ include_resources?: string[] | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; } declare class Webhooks extends ApiResource { static readonly TYPE: WebhookType; create(resource: WebhookCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; last_event_callbacks(webhookId: string | Webhook, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(webhookId: string | Webhook, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(webhookId: string | Webhook, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | Webhook, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | Webhook, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | Webhook, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isWebhook(resource: any): resource is Webhook; relationship(id: string | ResourceId | null): WebhookRel; relationshipToMany(...ids: string[]): WebhookRel[]; type(): WebhookType; } declare const instance$20: Webhooks; type EventCallbackType = 'event_callbacks'; type EventCallbackRel = ResourceRel & { type: EventCallbackType; }; type EventCallbackSort = Pick & ResourceSort; interface EventCallback extends Resource { readonly type: EventCallbackType; /** * The URI of the callback, inherited by the associated webhook. * @example ```"https://yourapp.com/webhooks"``` */ callback_url: string; /** * The payload sent to the callback endpoint, including the event affected resource and the specified includes. * @example ```{"data":{"attributes":{"id":"PYWehaoXJj","type":"orders"}}}``` */ payload?: Record | null; /** * The HTTP response code of the callback endpoint. * @example ```"200"``` */ response_code?: string | null; /** * The HTTP response message of the callback endpoint. * @example ```"OK"``` */ response_message?: string | null; webhook?: Webhook | null; event_stores?: EventStore[] | null; } declare class EventCallbacks extends ApiResource { static readonly TYPE: EventCallbackType; webhook(eventCallbackId: string | EventCallback, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(eventCallbackId: string | EventCallback, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isEventCallback(resource: any): resource is EventCallback; relationship(id: string | ResourceId | null): EventCallbackRel; relationshipToMany(...ids: string[]): EventCallbackRel[]; type(): EventCallbackType; } declare const instance$1$: EventCallbacks; type EventType = 'events'; type EventRel = ResourceRel & { type: EventType; }; type EventSort = Pick & ResourceSort; interface Event extends Resource { readonly type: EventType; /** * The event's internal name. * @example ```"orders.create"``` */ name: string; webhooks?: Webhook[] | null; last_event_callbacks?: EventCallback[] | null; event_stores?: EventStore[] | null; } interface EventUpdate extends ResourceUpdate { /** * Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels. * @example ```true``` */ _trigger?: boolean | null; } declare class Events extends ApiResource { static readonly TYPE: EventType; update(resource: EventUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; webhooks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise>; last_event_callbacks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _trigger(id: string | Event, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isEvent(resource: any): resource is Event; relationship(id: string | ResourceId | null): EventRel; relationshipToMany(...ids: string[]): EventRel[]; type(): EventType; } declare const instance$1_: Events; type ExternalTaxCalculatorType = 'external_tax_calculators'; type ExternalTaxCalculatorRel$2 = ResourceRel & { type: ExternalTaxCalculatorType; }; type ExternalTaxCalculatorSort = Pick & ResourceSort; interface ExternalTaxCalculator extends Resource { readonly type: ExternalTaxCalculatorType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The URL to the service that will compute the taxes. * @example ```"https://external_calculator.yourbrand.com"``` */ tax_calculator_url: string; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ExternalTaxCalculatorCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The URL to the service that will compute the taxes. * @example ```"https://external_calculator.yourbrand.com"``` */ tax_calculator_url: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; } interface ExternalTaxCalculatorUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; /** * The URL to the service that will compute the taxes. * @example ```"https://external_calculator.yourbrand.com"``` */ tax_calculator_url?: string | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; } declare class ExternalTaxCalculators extends ApiResource { static readonly TYPE: ExternalTaxCalculatorType; create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator; relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel$2; relationshipToMany(...ids: string[]): ExternalTaxCalculatorRel$2[]; type(): ExternalTaxCalculatorType; } declare const instance$1Z: ExternalTaxCalculators; type TaxRuleType = 'tax_rules'; type TaxRuleRel$1 = ResourceRel & { type: TaxRuleType; }; type ManualTaxCalculatorRel$3 = ResourceRel & { type: ManualTaxCalculatorType; }; type TaxRuleSort = Pick & ResourceSort; interface TaxRule extends Resource { readonly type: TaxRuleType; /** * The tax rule internal name. * @example ```"Fixed 22%"``` */ name: string; /** * The tax rate for this rule. * @example ```0.22``` */ tax_rate?: number | null; /** * Indicates if the freight is taxable. */ freight_taxable?: boolean | null; /** * Indicates if the payment method is taxable. */ payment_method_taxable?: boolean | null; /** * Indicates if gift cards are taxable. */ gift_card_taxable?: boolean | null; /** * Indicates if adjustemnts are taxable. */ adjustment_taxable?: boolean | null; /** * The breakdown for this tax rule (if calculated). * @example ```{"41":{"tax_rate":0.22}}``` */ breakdown?: Record | null; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; manual_tax_calculator?: ManualTaxCalculator | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface TaxRuleCreate extends ResourceCreate { /** * The tax rule internal name. * @example ```"Fixed 22%"``` */ name: string; /** * The tax rate for this rule. * @example ```0.22``` */ tax_rate?: number | null; /** * Indicates if the freight is taxable. */ freight_taxable?: boolean | null; /** * Indicates if the payment method is taxable. */ payment_method_taxable?: boolean | null; /** * Indicates if gift cards are taxable. */ gift_card_taxable?: boolean | null; /** * Indicates if adjustemnts are taxable. */ adjustment_taxable?: boolean | null; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; manual_tax_calculator: ManualTaxCalculatorRel$3; } interface TaxRuleUpdate extends ResourceUpdate { /** * The tax rule internal name. * @example ```"Fixed 22%"``` */ name?: string | null; /** * The tax rate for this rule. * @example ```0.22``` */ tax_rate?: number | null; /** * Indicates if the freight is taxable. */ freight_taxable?: boolean | null; /** * Indicates if the payment method is taxable. */ payment_method_taxable?: boolean | null; /** * Indicates if gift cards are taxable. */ gift_card_taxable?: boolean | null; /** * Indicates if adjustemnts are taxable. */ adjustment_taxable?: boolean | null; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; manual_tax_calculator?: ManualTaxCalculatorRel$3 | null; } declare class TaxRules extends ApiResource { static readonly TYPE: TaxRuleType; create(resource: TaxRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; manual_tax_calculator(taxRuleId: string | TaxRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(taxRuleId: string | TaxRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(taxRuleId: string | TaxRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTaxRule(resource: any): resource is TaxRule; relationship(id: string | ResourceId | null): TaxRuleRel$1; relationshipToMany(...ids: string[]): TaxRuleRel$1[]; type(): TaxRuleType; } declare const instance$1Y: TaxRules; type ManualTaxCalculatorType = 'manual_tax_calculators'; type ManualTaxCalculatorRel$2 = ResourceRel & { type: ManualTaxCalculatorType; }; type TaxRuleRel = ResourceRel & { type: TaxRuleType; }; type ManualTaxCalculatorSort = Pick & ResourceSort; interface ManualTaxCalculator extends Resource { readonly type: ManualTaxCalculatorType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; tax_rules?: TaxRule[] | null; } interface ManualTaxCalculatorCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; tax_rules?: TaxRuleRel[] | null; } interface ManualTaxCalculatorUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; tax_rules?: TaxRuleRel[] | null; } declare class ManualTaxCalculators extends ApiResource { static readonly TYPE: ManualTaxCalculatorType; create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isManualTaxCalculator(resource: any): resource is ManualTaxCalculator; relationship(id: string | ResourceId | null): ManualTaxCalculatorRel$2; relationshipToMany(...ids: string[]): ManualTaxCalculatorRel$2[]; type(): ManualTaxCalculatorType; } declare const instance$1X: ManualTaxCalculators; type CustomerAddressType = 'customer_addresses'; type CustomerAddressRel = ResourceRel & { type: CustomerAddressType; }; type CustomerRel$8 = ResourceRel & { type: CustomerType; }; type AddressRel$5 = ResourceRel & { type: AddressType; }; type CustomerAddressSort = Pick & ResourceSort; interface CustomerAddress extends Resource { readonly type: CustomerAddressType; /** * Returns the associated address' name. * @example ```"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228"``` */ name?: string | null; /** * The email of the customer associated to the address. * @example ```"john@example.com"``` */ customer_email: string; customer?: Customer | null; address?: Address | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CustomerAddressCreate extends ResourceCreate { /** * The email of the customer associated to the address. * @example ```"john@example.com"``` */ customer_email: string; customer: CustomerRel$8; address: AddressRel$5; } interface CustomerAddressUpdate extends ResourceUpdate { customer?: CustomerRel$8 | null; address?: AddressRel$5 | null; } declare class CustomerAddresses extends ApiResource { static readonly TYPE: CustomerAddressType; create(resource: CustomerAddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerAddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(customerAddressId: string | CustomerAddress, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; address(customerAddressId: string | CustomerAddress, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; events(customerAddressId: string | CustomerAddress, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(customerAddressId: string | CustomerAddress, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerAddressId: string | CustomerAddress, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCustomerAddress(resource: any): resource is CustomerAddress; relationship(id: string | ResourceId | null): CustomerAddressRel; relationshipToMany(...ids: string[]): CustomerAddressRel[]; type(): CustomerAddressType; } declare const instance$1W: CustomerAddresses; type CustomerGroupType = 'customer_groups'; type CustomerGroupRel$3 = ResourceRel & { type: CustomerGroupType; }; type CustomerGroupSort = Pick & ResourceSort; interface CustomerGroup extends Resource { readonly type: CustomerGroupType; /** * The customer group's internal name. * @example ```"VIP"``` */ name: string; /** * A string that you can use to identify the customer group (must be unique within the environment). * @example ```"vip1"``` */ code?: string | null; customers?: Customer[] | null; markets?: Market[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CustomerGroupCreate extends ResourceCreate { /** * The customer group's internal name. * @example ```"VIP"``` */ name: string; /** * A string that you can use to identify the customer group (must be unique within the environment). * @example ```"vip1"``` */ code?: string | null; } interface CustomerGroupUpdate extends ResourceUpdate { /** * The customer group's internal name. * @example ```"VIP"``` */ name?: string | null; /** * A string that you can use to identify the customer group (must be unique within the environment). * @example ```"vip1"``` */ code?: string | null; } declare class CustomerGroups extends ApiResource { static readonly TYPE: CustomerGroupType; create(resource: CustomerGroupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerGroupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customers(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; markets(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCustomerGroup(resource: any): resource is CustomerGroup; relationship(id: string | ResourceId | null): CustomerGroupRel$3; relationshipToMany(...ids: string[]): CustomerGroupRel$3[]; type(): CustomerGroupType; } declare const instance$1V: CustomerGroups; type MerchantType = 'merchants'; type MerchantRel$3 = ResourceRel & { type: MerchantType; }; type AddressRel$4 = ResourceRel & { type: AddressType; }; type MerchantSort = Pick & ResourceSort; interface Merchant extends Resource { readonly type: MerchantType; /** * The merchant's internal name. * @example ```"The Brand Inc."``` */ name: string; address?: Address | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface MerchantCreate extends ResourceCreate { /** * The merchant's internal name. * @example ```"The Brand Inc."``` */ name: string; address: AddressRel$4; } interface MerchantUpdate extends ResourceUpdate { /** * The merchant's internal name. * @example ```"The Brand Inc."``` */ name?: string | null; address?: AddressRel$4 | null; } declare class Merchants extends ApiResource { static readonly TYPE: MerchantType; create(resource: MerchantCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: MerchantUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; address(merchantId: string | Merchant, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; attachments(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isMerchant(resource: any): resource is Merchant; relationship(id: string | ResourceId | null): MerchantRel$3; relationshipToMany(...ids: string[]): MerchantRel$3[]; type(): MerchantType; } declare const instance$1U: Merchants; type InventoryStockLocationType = 'inventory_stock_locations'; type InventoryStockLocationRel$1 = ResourceRel & { type: InventoryStockLocationType; }; type StockLocationRel$a = ResourceRel & { type: StockLocationType; }; type InventoryModelRel$4 = ResourceRel & { type: InventoryModelType; }; type InventoryStockLocationSort = Pick & ResourceSort; interface InventoryStockLocation extends Resource { readonly type: InventoryStockLocationType; /** * The stock location priority within the associated invetory model. * @example ```1``` */ priority: number; /** * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled. */ on_hold?: boolean | null; stock_location?: StockLocation | null; inventory_model?: InventoryModel | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface InventoryStockLocationCreate extends ResourceCreate { /** * The stock location priority within the associated invetory model. * @example ```1``` */ priority: number; /** * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled. */ on_hold?: boolean | null; stock_location: StockLocationRel$a; inventory_model: InventoryModelRel$4; } interface InventoryStockLocationUpdate extends ResourceUpdate { /** * The stock location priority within the associated invetory model. * @example ```1``` */ priority?: number | null; /** * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled. */ on_hold?: boolean | null; stock_location?: StockLocationRel$a | null; inventory_model?: InventoryModelRel$4 | null; } declare class InventoryStockLocations extends ApiResource { static readonly TYPE: InventoryStockLocationType; create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isInventoryStockLocation(resource: any): resource is InventoryStockLocation; relationship(id: string | ResourceId | null): InventoryStockLocationRel$1; relationshipToMany(...ids: string[]): InventoryStockLocationRel$1[]; type(): InventoryStockLocationType; } declare const instance$1T: InventoryStockLocations; type InventoryModelType = 'inventory_models'; type InventoryModelRel$3 = ResourceRel & { type: InventoryModelType; }; type InventoryModelSort = Pick & ResourceSort; interface InventoryModel extends Resource { readonly type: InventoryModelType; /** * The inventory model's internal name. * @example ```"EU Inventory Model"``` */ name: string; /** * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. * @example ```"no_split"``` */ strategy?: string | null; /** * The maximum number of stock locations used for inventory computation. * @example ```3``` */ stock_locations_cutoff?: number | null; /** * The duration in seconds of the generated stock reservations. * @example ```3600``` */ stock_reservation_cutoff?: number | null; /** * Indicates if the the stock transfers must be put on hold automatically with the associated shipment. * @example ```true``` */ put_stock_transfers_on_hold?: boolean | null; /** * Indicates if the the stock will be decremented manually after the order approval. * @example ```true``` */ manual_stock_decrement?: boolean | null; inventory_stock_locations?: InventoryStockLocation[] | null; inventory_return_locations?: InventoryReturnLocation[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface InventoryModelCreate extends ResourceCreate { /** * The inventory model's internal name. * @example ```"EU Inventory Model"``` */ name: string; /** * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. * @example ```"no_split"``` */ strategy?: string | null; /** * The maximum number of stock locations used for inventory computation. * @example ```3``` */ stock_locations_cutoff?: number | null; /** * The duration in seconds of the generated stock reservations. * @example ```3600``` */ stock_reservation_cutoff?: number | null; /** * Indicates if the the stock transfers must be put on hold automatically with the associated shipment. * @example ```true``` */ put_stock_transfers_on_hold?: boolean | null; /** * Indicates if the the stock will be decremented manually after the order approval. * @example ```true``` */ manual_stock_decrement?: boolean | null; } interface InventoryModelUpdate extends ResourceUpdate { /** * The inventory model's internal name. * @example ```"EU Inventory Model"``` */ name?: string | null; /** * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. * @example ```"no_split"``` */ strategy?: string | null; /** * The maximum number of stock locations used for inventory computation. * @example ```3``` */ stock_locations_cutoff?: number | null; /** * The duration in seconds of the generated stock reservations. * @example ```3600``` */ stock_reservation_cutoff?: number | null; /** * Indicates if the the stock transfers must be put on hold automatically with the associated shipment. * @example ```true``` */ put_stock_transfers_on_hold?: boolean | null; /** * Indicates if the the stock will be decremented manually after the order approval. * @example ```true``` */ manual_stock_decrement?: boolean | null; } declare class InventoryModels extends ApiResource { static readonly TYPE: InventoryModelType; create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; inventory_stock_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; inventory_return_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isInventoryModel(resource: any): resource is InventoryModel; relationship(id: string | ResourceId | null): InventoryModelRel$3; relationshipToMany(...ids: string[]): InventoryModelRel$3[]; type(): InventoryModelType; } declare const instance$1S: InventoryModels; type InventoryReturnLocationType = 'inventory_return_locations'; type InventoryReturnLocationRel = ResourceRel & { type: InventoryReturnLocationType; }; type StockLocationRel$9 = ResourceRel & { type: StockLocationType; }; type InventoryModelRel$2 = ResourceRel & { type: InventoryModelType; }; type InventoryReturnLocationSort = Pick & ResourceSort; interface InventoryReturnLocation extends Resource { readonly type: InventoryReturnLocationType; /** * The inventory return location priority within the associated invetory model. * @example ```1``` */ priority: number; stock_location?: StockLocation | null; inventory_model?: InventoryModel | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface InventoryReturnLocationCreate extends ResourceCreate { /** * The inventory return location priority within the associated invetory model. * @example ```1``` */ priority: number; stock_location: StockLocationRel$9; inventory_model: InventoryModelRel$2; } interface InventoryReturnLocationUpdate extends ResourceUpdate { /** * The inventory return location priority within the associated invetory model. * @example ```1``` */ priority?: number | null; stock_location?: StockLocationRel$9 | null; inventory_model?: InventoryModelRel$2 | null; } declare class InventoryReturnLocations extends ApiResource { static readonly TYPE: InventoryReturnLocationType; create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; stock_location(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; inventory_model(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation; relationship(id: string | ResourceId | null): InventoryReturnLocationRel; relationshipToMany(...ids: string[]): InventoryReturnLocationRel[]; type(): InventoryReturnLocationType; } declare const instance$1R: InventoryReturnLocations; type CouponRecipientType = 'coupon_recipients'; type CouponRecipientRel$2 = ResourceRel & { type: CouponRecipientType; }; type CustomerRel$7 = ResourceRel & { type: CustomerType; }; type CouponRecipientSort = Pick & ResourceSort; interface CouponRecipient extends Resource { readonly type: CouponRecipientType; /** * The recipient email address. * @example ```"john@example.com"``` */ email: string; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: Customer | null; event_stores?: EventStore[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; } interface CouponRecipientCreate extends ResourceCreate { /** * The recipient email address. * @example ```"john@example.com"``` */ email: string; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: CustomerRel$7 | null; } interface CouponRecipientUpdate extends ResourceUpdate { /** * The recipient email address. * @example ```"john@example.com"``` */ email?: string | null; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: CustomerRel$7 | null; } declare class CouponRecipients extends ApiResource { static readonly TYPE: CouponRecipientType; create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(couponRecipientId: string | CouponRecipient, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCouponRecipient(resource: any): resource is CouponRecipient; relationship(id: string | ResourceId | null): CouponRecipientRel$2; relationshipToMany(...ids: string[]): CouponRecipientRel$2[]; type(): CouponRecipientType; } declare const instance$1Q: CouponRecipients; type TagType = 'tags'; type TagRel$m = ResourceRel & { type: TagType; }; type TagSort = Pick & ResourceSort; interface Tag extends Resource { readonly type: TagType; /** * The tag name. * @example ```"new_campaign"``` */ name: string; event_stores?: EventStore[] | null; } interface TagCreate extends ResourceCreate { /** * The tag name. * @example ```"new_campaign"``` */ name: string; } interface TagUpdate extends ResourceUpdate { /** * The tag name. * @example ```"new_campaign"``` */ name?: string | null; } declare class Tags extends ApiResource { static readonly TYPE: TagType; create(resource: TagCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: TagUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; event_stores(tagId: string | Tag, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTag(resource: any): resource is Tag; relationship(id: string | ResourceId | null): TagRel$m; relationshipToMany(...ids: string[]): TagRel$m[]; type(): TagType; } declare const instance$1P: Tags; type CouponType = 'coupons'; type CouponRel$1 = ResourceRel & { type: CouponType; }; type CouponCodesPromotionRuleRel$9 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CouponRecipientRel$1 = ResourceRel & { type: CouponRecipientType; }; type TagRel$l = ResourceRel & { type: TagType; }; type CouponSort = Pick & ResourceSort; interface Coupon extends Resource { readonly type: CouponType; /** * The coupon code, that uniquely identifies the coupon within the promotion rule. * @example ```"04371af2-70b3-48d7-8f4e-316b374224c3"``` */ code: string; /** * Indicates if the coupon can be used just once per customer. */ customer_single_use?: boolean | null; /** * The total number of times this coupon can be used. * @example ```50``` */ usage_limit?: number | null; /** * The number of times this coupon has been used. * @example ```20``` */ usage_count?: number | null; /** * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; /** * Time at which the coupon will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; promotion_rule?: CouponCodesPromotionRule | null; coupon_recipient?: CouponRecipient | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CouponCreate extends ResourceCreate { /** * The coupon code, that uniquely identifies the coupon within the promotion rule. * @example ```"04371af2-70b3-48d7-8f4e-316b374224c3"``` */ code: string; /** * Indicates if the coupon can be used just once per customer. */ customer_single_use?: boolean | null; /** * The total number of times this coupon can be used. * @example ```50``` */ usage_limit?: number | null; /** * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; /** * Time at which the coupon will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; promotion_rule: CouponCodesPromotionRuleRel$9; coupon_recipient?: CouponRecipientRel$1 | null; tags?: TagRel$l[] | null; } interface CouponUpdate extends ResourceUpdate { /** * The coupon code, that uniquely identifies the coupon within the promotion rule. * @example ```"04371af2-70b3-48d7-8f4e-316b374224c3"``` */ code?: string | null; /** * Indicates if the coupon can be used just once per customer. */ customer_single_use?: boolean | null; /** * The total number of times this coupon can be used. * @example ```50``` */ usage_limit?: number | null; /** * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; /** * Time at which the coupon will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; promotion_rule?: CouponCodesPromotionRuleRel$9 | null; coupon_recipient?: CouponRecipientRel$1 | null; tags?: TagRel$l[] | null; } declare class Coupons extends ApiResource { static readonly TYPE: CouponType; create(resource: CouponCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CouponUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; promotion_rule(couponId: string | Coupon, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_recipient(couponId: string | Coupon, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(couponId: string | Coupon, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(couponId: string | Coupon, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(couponId: string | Coupon, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(couponId: string | Coupon, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCoupon(resource: any): resource is Coupon; relationship(id: string | ResourceId | null): CouponRel$1; relationshipToMany(...ids: string[]): CouponRel$1[]; type(): CouponType; } declare const instance$1O: Coupons; type FlexPromotionType = 'flex_promotions'; type FlexPromotionRel$5 = ResourceRel & { type: FlexPromotionType; }; type CouponCodesPromotionRuleRel$8 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type TagRel$k = ResourceRel & { type: TagType; }; type FlexPromotionSort = Pick & ResourceSort; interface FlexPromotion extends Resource { readonly type: FlexPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The discount rule to be applied. * @example ```{}``` */ rules: Record; /** * The rule outcomes. * @example ```[]``` */ rule_outcomes?: Record | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The payload used to evaluate the rules. * @example ```{}``` */ resource_payload?: Record | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface FlexPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The discount rule to be applied. * @example ```{}``` */ rules: Record; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null; tags?: TagRel$k[] | null; } interface FlexPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The discount rule to be applied. * @example ```{}``` */ rules?: Record | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null; tags?: TagRel$k[] | null; } declare class FlexPromotions extends ApiResource { static readonly TYPE: FlexPromotionType; create(resource: FlexPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: FlexPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(flexPromotionId: string | FlexPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(flexPromotionId: string | FlexPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | FlexPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | FlexPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | FlexPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | FlexPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isFlexPromotion(resource: any): resource is FlexPromotion; relationship(id: string | ResourceId | null): FlexPromotionRel$5; relationshipToMany(...ids: string[]): FlexPromotionRel$5[]; type(): FlexPromotionType; } declare const instance$1N: FlexPromotions; type LinkType = 'links'; type LinkRel = ResourceRel & { type: LinkType; }; type OrderRel$k = ResourceRel & { type: OrderType; }; type SkuRel$b = ResourceRel & { type: SkuType; }; type SkuListRel$c = ResourceRel & { type: SkuListType; }; type LinkSort = Pick & ResourceSort; interface Link extends Resource { readonly type: LinkType; /** * The link internal name. * @example ```"FW SALE 2023"``` */ name: string; /** * The link application client id, used to fetch JWT. * @example ```"xxxx-yyyy-zzzz"``` */ client_id: string; /** * The link application scope, used to fetch JWT. * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"``` */ scope: string; /** * The activation date/time of this link. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this link (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * Indicates if the link is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The link status. One of 'disabled', 'expired', 'pending', or 'active'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | null; /** * The link URL second level domain. * @example ```"commercelayer.link"``` */ domain?: string | null; /** * The link URL. * @example ```"https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"``` */ url?: string | null; /** * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. * @example ```"orders"``` */ item_type?: 'orders' | 'skus' | 'sku_lists' | null; /** * The link params to be passed in URL the query string. * @example ```{"param1":"ABC","param2":"XYZ"}``` */ params?: Record | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; item?: Order | Sku | SkuList | null; events?: Event[] | null; event_stores?: EventStore[] | null; } interface LinkCreate extends ResourceCreate { /** * The link internal name. * @example ```"FW SALE 2023"``` */ name: string; /** * The link application client id, used to fetch JWT. * @example ```"xxxx-yyyy-zzzz"``` */ client_id: string; /** * The link application scope, used to fetch JWT. * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"``` */ scope: string; /** * The activation date/time of this link. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this link (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The link URL second level domain. * @example ```"commercelayer.link"``` */ domain?: string | null; /** * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. * @example ```"orders"``` */ item_type?: 'orders' | 'skus' | 'sku_lists' | null; /** * The link params to be passed in URL the query string. * @example ```{"param1":"ABC","param2":"XYZ"}``` */ params?: Record | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; item: OrderRel$k | SkuRel$b | SkuListRel$c; } interface LinkUpdate extends ResourceUpdate { /** * The link internal name. * @example ```"FW SALE 2023"``` */ name?: string | null; /** * The link application client id, used to fetch JWT. * @example ```"xxxx-yyyy-zzzz"``` */ client_id?: string | null; /** * The link application scope, used to fetch JWT. * @example ```"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr"``` */ scope?: string | null; /** * The activation date/time of this link. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this link (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The link URL second level domain. * @example ```"commercelayer.link"``` */ domain?: string | null; /** * The link params to be passed in URL the query string. * @example ```{"param1":"ABC","param2":"XYZ"}``` */ params?: Record | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; item?: OrderRel$k | SkuRel$b | SkuListRel$c | null; } declare class Links extends ApiResource { static readonly TYPE: LinkType; create(resource: LinkCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: LinkUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; events(linkId: string | Link, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(linkId: string | Link, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | Link, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | Link, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isLink(resource: any): resource is Link; relationship(id: string | ResourceId | null): LinkRel; relationshipToMany(...ids: string[]): LinkRel[]; type(): LinkType; } declare const instance$1M: Links; type SkuListItemType = 'sku_list_items'; type SkuListItemRel = ResourceRel & { type: SkuListItemType; }; type SkuListRel$b = ResourceRel & { type: SkuListType; }; type SkuRel$a = ResourceRel & { type: SkuType; }; type SkuListItemSort = Pick & ResourceSort; interface SkuListItem extends Resource { readonly type: SkuListItemType; /** * The SKU list item's position. * @example ```2``` */ position?: number | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU quantity for this SKU list item. * @example ```1``` */ quantity?: number | null; sku_list?: SkuList | null; sku?: Sku | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface SkuListItemCreate extends ResourceCreate { /** * The SKU list item's position. * @example ```2``` */ position?: number | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU quantity for this SKU list item. * @example ```1``` */ quantity?: number | null; sku_list: SkuListRel$b; sku: SkuRel$a; } interface SkuListItemUpdate extends ResourceUpdate { /** * The SKU list item's position. * @example ```2``` */ position?: number | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU quantity for this SKU list item. * @example ```1``` */ quantity?: number | null; } declare class SkuListItems extends ApiResource { static readonly TYPE: SkuListItemType; create(resource: SkuListItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SkuListItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; sku_list(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(skuListItemId: string | SkuListItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(skuListItemId: string | SkuListItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isSkuListItem(resource: any): resource is SkuListItem; relationship(id: string | ResourceId | null): SkuListItemRel; relationshipToMany(...ids: string[]): SkuListItemRel[]; type(): SkuListItemType; } declare const instance$1L: SkuListItems; type SkuListType = 'sku_lists'; type SkuListRel$a = ResourceRel & { type: SkuListType; }; type CustomerRel$6 = ResourceRel & { type: CustomerType; }; type SkuListSort = Pick & ResourceSort; interface SkuList extends Resource { readonly type: SkuListType; /** * The SKU list's internal name. * @example ```"Personal list"``` */ name: string; /** * The SKU list's internal slug. * @example ```"personal-list-1"``` */ slug: string; /** * An internal description of the SKU list. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU list. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * Indicates if the SKU list is populated manually. */ manual?: boolean | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; customer?: Customer | null; skus?: Sku[] | null; sku_list_items?: SkuListItem[] | null; bundles?: Bundle[] | null; attachments?: Attachment[] | null; links?: Link[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface SkuListCreate extends ResourceCreate { /** * The SKU list's internal name. * @example ```"Personal list"``` */ name: string; /** * An internal description of the SKU list. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU list. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * Indicates if the SKU list is populated manually. */ manual?: boolean | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; customer?: CustomerRel$6 | null; } interface SkuListUpdate extends ResourceUpdate { /** * The SKU list's internal name. * @example ```"Personal list"``` */ name?: string | null; /** * An internal description of the SKU list. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU list. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * Indicates if the SKU list is populated manually. */ manual?: boolean | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; customer?: CustomerRel$6 | null; } declare class SkuLists extends ApiResource { static readonly TYPE: SkuListType; create(resource: SkuListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SkuListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(skuListId: string | SkuList, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; skus(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_list_items(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; bundles(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; links(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isSkuList(resource: any): resource is SkuList; relationship(id: string | ResourceId | null): SkuListRel$a; relationshipToMany(...ids: string[]): SkuListRel$a[]; type(): SkuListType; } declare const instance$1K: SkuLists; type FreeShippingPromotionType = 'free_shipping_promotions'; type FreeShippingPromotionRel$5 = ResourceRel & { type: FreeShippingPromotionType; }; type MarketRel$j = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$7 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$7 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$7 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$7 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$9 = ResourceRel & { type: SkuListType; }; type TagRel$j = ResourceRel & { type: TagType; }; type FreeShippingPromotionSort = Pick & ResourceSort; interface FreeShippingPromotion extends Resource { readonly type: FreeShippingPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface FreeShippingPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; market?: MarketRel$j | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null; custom_promotion_rule?: CustomPromotionRuleRel$7 | null; sku_list?: SkuListRel$9 | null; tags?: TagRel$j[] | null; } interface FreeShippingPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; market?: MarketRel$j | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null; custom_promotion_rule?: CustomPromotionRuleRel$7 | null; sku_list?: SkuListRel$9 | null; tags?: TagRel$j[] | null; } declare class FreeShippingPromotions extends ApiResource { static readonly TYPE: FreeShippingPromotionType; create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion; relationship(id: string | ResourceId | null): FreeShippingPromotionRel$5; relationshipToMany(...ids: string[]): FreeShippingPromotionRel$5[]; type(): FreeShippingPromotionType; } declare const instance$1J: FreeShippingPromotions; type PercentageDiscountPromotionType = 'percentage_discount_promotions'; type PercentageDiscountPromotionRel$5 = ResourceRel & { type: PercentageDiscountPromotionType; }; type MarketRel$i = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$6 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$6 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$6 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$6 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$8 = ResourceRel & { type: SkuListType; }; type TagRel$i = ResourceRel & { type: TagType; }; type PercentageDiscountPromotionSort = Pick & ResourceSort; interface PercentageDiscountPromotion extends Resource { readonly type: PercentageDiscountPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The discount percentage to be applied. * @example ```10``` */ percentage: number; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface PercentageDiscountPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The discount percentage to be applied. * @example ```10``` */ percentage: number; market?: MarketRel$i | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null; custom_promotion_rule?: CustomPromotionRuleRel$6 | null; sku_list?: SkuListRel$8 | null; tags?: TagRel$i[] | null; } interface PercentageDiscountPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The discount percentage to be applied. * @example ```10``` */ percentage?: number | null; market?: MarketRel$i | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$6 | null; custom_promotion_rule?: CustomPromotionRuleRel$6 | null; sku_list?: SkuListRel$8 | null; tags?: TagRel$i[] | null; } declare class PercentageDiscountPromotions extends ApiResource { static readonly TYPE: PercentageDiscountPromotionType; create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion; relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel$5; relationshipToMany(...ids: string[]): PercentageDiscountPromotionRel$5[]; type(): PercentageDiscountPromotionType; } declare const instance$1I: PercentageDiscountPromotions; type SkuListPromotionRuleType = 'sku_list_promotion_rules'; type SkuListPromotionRuleRel$5 = ResourceRel & { type: SkuListPromotionRuleType; }; type PercentageDiscountPromotionRel$4 = ResourceRel & { type: PercentageDiscountPromotionType; }; type FreeShippingPromotionRel$4 = ResourceRel & { type: FreeShippingPromotionType; }; type BuyXPayYPromotionRel$5 = ResourceRel & { type: BuyXPayYPromotionType; }; type FreeGiftPromotionRel$5 = ResourceRel & { type: FreeGiftPromotionType; }; type FixedPricePromotionRel$5 = ResourceRel & { type: FixedPricePromotionType; }; type ExternalPromotionRel$5 = ResourceRel & { type: ExternalPromotionType; }; type FixedAmountPromotionRel$5 = ResourceRel & { type: FixedAmountPromotionType; }; type FlexPromotionRel$4 = ResourceRel & { type: FlexPromotionType; }; type SkuListRel$7 = ResourceRel & { type: SkuListType; }; type SkuListPromotionRuleSort = Pick & ResourceSort; interface SkuListPromotionRule extends Resource { readonly type: SkuListPromotionRuleType; /** * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. * @example ```true``` */ all_skus?: boolean | null; /** * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. * @example ```3``` */ min_quantity?: number | null; promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; versions?: Version[] | null; event_stores?: EventStore[] | null; sku_list?: SkuList | null; skus?: Sku[] | null; } interface SkuListPromotionRuleCreate extends ResourceCreate { /** * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. * @example ```true``` */ all_skus?: boolean | null; /** * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. * @example ```3``` */ min_quantity?: number | null; promotion: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$5 | ExternalPromotionRel$5 | FixedAmountPromotionRel$5 | FlexPromotionRel$4; sku_list?: SkuListRel$7 | null; } interface SkuListPromotionRuleUpdate extends ResourceUpdate { /** * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. * @example ```true``` */ all_skus?: boolean | null; /** * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. * @example ```3``` */ min_quantity?: number | null; promotion?: PercentageDiscountPromotionRel$4 | FreeShippingPromotionRel$4 | BuyXPayYPromotionRel$5 | FreeGiftPromotionRel$5 | FixedPricePromotionRel$5 | ExternalPromotionRel$5 | FixedAmountPromotionRel$5 | FlexPromotionRel$4 | null; sku_list?: SkuListRel$7 | null; } declare class SkuListPromotionRules extends ApiResource { static readonly TYPE: SkuListPromotionRuleType; create(resource: SkuListPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SkuListPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; versions(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_list(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; skus(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isSkuListPromotionRule(resource: any): resource is SkuListPromotionRule; relationship(id: string | ResourceId | null): SkuListPromotionRuleRel$5; relationshipToMany(...ids: string[]): SkuListPromotionRuleRel$5[]; type(): SkuListPromotionRuleType; } declare const instance$1H: SkuListPromotionRules; type FreeGiftPromotionType = 'free_gift_promotions'; type FreeGiftPromotionRel$4 = ResourceRel & { type: FreeGiftPromotionType; }; type MarketRel$h = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$5 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$4 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$5 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$5 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$6 = ResourceRel & { type: SkuListType; }; type TagRel$h = ResourceRel & { type: TagType; }; type FreeGiftPromotionSort = Pick & ResourceSort; interface FreeGiftPromotion extends Resource { readonly type: FreeGiftPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The max quantity of free gifts globally applicable by the promotion. * @example ```3``` */ max_quantity?: number | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface FreeGiftPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The max quantity of free gifts globally applicable by the promotion. * @example ```3``` */ max_quantity?: number | null; market?: MarketRel$h | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null; custom_promotion_rule?: CustomPromotionRuleRel$5 | null; sku_list: SkuListRel$6; tags?: TagRel$h[] | null; } interface FreeGiftPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The max quantity of free gifts globally applicable by the promotion. * @example ```3``` */ max_quantity?: number | null; market?: MarketRel$h | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null; custom_promotion_rule?: CustomPromotionRuleRel$5 | null; sku_list?: SkuListRel$6 | null; tags?: TagRel$h[] | null; } declare class FreeGiftPromotions extends ApiResource { static readonly TYPE: FreeGiftPromotionType; create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | FreeGiftPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | FreeGiftPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion; relationship(id: string | ResourceId | null): FreeGiftPromotionRel$4; relationshipToMany(...ids: string[]): FreeGiftPromotionRel$4[]; type(): FreeGiftPromotionType; } declare const instance$1G: FreeGiftPromotions; type PromotionRuleType = 'promotion_rules'; type PromotionRuleRel = ResourceRel & { type: PromotionRuleType; }; type PromotionRuleSort = Pick & ResourceSort; interface PromotionRule extends Resource { readonly type: PromotionRuleType; promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class PromotionRules extends ApiResource { static readonly TYPE: PromotionRuleType; versions(promotionRuleId: string | PromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(promotionRuleId: string | PromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPromotionRule(resource: any): resource is PromotionRule; relationship(id: string | ResourceId | null): PromotionRuleRel; relationshipToMany(...ids: string[]): PromotionRuleRel[]; type(): PromotionRuleType; } declare const instance$1F: PromotionRules; type FixedPricePromotionType = 'fixed_price_promotions'; type FixedPricePromotionRel$4 = ResourceRel & { type: FixedPricePromotionType; }; type MarketRel$g = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$4 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$3 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$4 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$4 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$5 = ResourceRel & { type: SkuListType; }; type TagRel$g = ResourceRel & { type: TagType; }; type FixedPricePromotionSort = Pick & ResourceSort; interface FixedPricePromotion extends Resource { readonly type: FixedPricePromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The price fixed amount to be applied on matching SKUs, in cents. * @example ```1000``` */ fixed_amount_cents: number; /** * The discount fixed amount to be applied, float. * @example ```10``` */ fixed_amount_float?: number | null; /** * The discount fixed amount to be applied, formatted. * @example ```"€10,00"``` */ formatted_fixed_amount?: string | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface FixedPricePromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The price fixed amount to be applied on matching SKUs, in cents. * @example ```1000``` */ fixed_amount_cents: number; market?: MarketRel$g | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null; custom_promotion_rule?: CustomPromotionRuleRel$4 | null; sku_list: SkuListRel$5; tags?: TagRel$g[] | null; } interface FixedPricePromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The price fixed amount to be applied on matching SKUs, in cents. * @example ```1000``` */ fixed_amount_cents?: number | null; market?: MarketRel$g | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null; custom_promotion_rule?: CustomPromotionRuleRel$4 | null; sku_list?: SkuListRel$5 | null; tags?: TagRel$g[] | null; } declare class FixedPricePromotions extends ApiResource { static readonly TYPE: FixedPricePromotionType; create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isFixedPricePromotion(resource: any): resource is FixedPricePromotion; relationship(id: string | ResourceId | null): FixedPricePromotionRel$4; relationshipToMany(...ids: string[]): FixedPricePromotionRel$4[]; type(): FixedPricePromotionType; } declare const instance$1E: FixedPricePromotions; type OrderAmountPromotionRuleType = 'order_amount_promotion_rules'; type OrderAmountPromotionRuleRel$3 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type PercentageDiscountPromotionRel$3 = ResourceRel & { type: PercentageDiscountPromotionType; }; type FreeShippingPromotionRel$3 = ResourceRel & { type: FreeShippingPromotionType; }; type BuyXPayYPromotionRel$4 = ResourceRel & { type: BuyXPayYPromotionType; }; type FreeGiftPromotionRel$3 = ResourceRel & { type: FreeGiftPromotionType; }; type FixedPricePromotionRel$3 = ResourceRel & { type: FixedPricePromotionType; }; type ExternalPromotionRel$4 = ResourceRel & { type: ExternalPromotionType; }; type FixedAmountPromotionRel$4 = ResourceRel & { type: FixedAmountPromotionType; }; type FlexPromotionRel$3 = ResourceRel & { type: FlexPromotionType; }; type OrderAmountPromotionRuleSort = Pick & ResourceSort; interface OrderAmountPromotionRule extends Resource { readonly type: OrderAmountPromotionRuleType; /** * Apply the promotion only when order is over this amount, in cents. * @example ```1000``` */ order_amount_cents?: number | null; /** * Apply the promotion only when order is over this amount, float. * @example ```10``` */ order_amount_float?: number | null; /** * Apply the promotion only when order is over this amount, formatted. * @example ```"€10,00"``` */ formatted_order_amount?: string | null; /** * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface OrderAmountPromotionRuleCreate extends ResourceCreate { /** * Apply the promotion only when order is over this amount, in cents. * @example ```1000``` */ order_amount_cents?: number | null; /** * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; promotion: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4 | FlexPromotionRel$3; } interface OrderAmountPromotionRuleUpdate extends ResourceUpdate { /** * Apply the promotion only when order is over this amount, in cents. * @example ```1000``` */ order_amount_cents?: number | null; /** * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; promotion?: PercentageDiscountPromotionRel$3 | FreeShippingPromotionRel$3 | BuyXPayYPromotionRel$4 | FreeGiftPromotionRel$3 | FixedPricePromotionRel$3 | ExternalPromotionRel$4 | FixedAmountPromotionRel$4 | FlexPromotionRel$3 | null; } declare class OrderAmountPromotionRules extends ApiResource { static readonly TYPE: OrderAmountPromotionRuleType; create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; versions(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule; relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel$3; relationshipToMany(...ids: string[]): OrderAmountPromotionRuleRel$3[]; type(): OrderAmountPromotionRuleType; } declare const instance$1D: OrderAmountPromotionRules; type FixedAmountPromotionType = 'fixed_amount_promotions'; type FixedAmountPromotionRel$3 = ResourceRel & { type: FixedAmountPromotionType; }; type MarketRel$f = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$2 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$2 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$3 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$3 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$4 = ResourceRel & { type: SkuListType; }; type TagRel$f = ResourceRel & { type: TagType; }; type FixedAmountPromotionSort = Pick & ResourceSort; interface FixedAmountPromotion extends Resource { readonly type: FixedAmountPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The discount fixed amount to be applied, in cents. * @example ```1000``` */ fixed_amount_cents: number; /** * The discount fixed amount to be applied, float. * @example ```10``` */ fixed_amount_float?: number | null; /** * The discount fixed amount to be applied, formatted. * @example ```"€10,00"``` */ formatted_fixed_amount?: string | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface FixedAmountPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The discount fixed amount to be applied, in cents. * @example ```1000``` */ fixed_amount_cents: number; market?: MarketRel$f | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$2 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null; custom_promotion_rule?: CustomPromotionRuleRel$3 | null; sku_list?: SkuListRel$4 | null; tags?: TagRel$f[] | null; } interface FixedAmountPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The discount fixed amount to be applied, in cents. * @example ```1000``` */ fixed_amount_cents?: number | null; market?: MarketRel$f | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$2 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$3 | null; custom_promotion_rule?: CustomPromotionRuleRel$3 | null; sku_list?: SkuListRel$4 | null; tags?: TagRel$f[] | null; } declare class FixedAmountPromotions extends ApiResource { static readonly TYPE: FixedAmountPromotionType; create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | FixedAmountPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | FixedAmountPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion; relationship(id: string | ResourceId | null): FixedAmountPromotionRel$3; relationshipToMany(...ids: string[]): FixedAmountPromotionRel$3[]; type(): FixedAmountPromotionType; } declare const instance$1C: FixedAmountPromotions; type CustomPromotionRuleType = 'custom_promotion_rules'; type CustomPromotionRuleRel$2 = ResourceRel & { type: CustomPromotionRuleType; }; type PercentageDiscountPromotionRel$2 = ResourceRel & { type: PercentageDiscountPromotionType; }; type FreeShippingPromotionRel$2 = ResourceRel & { type: FreeShippingPromotionType; }; type BuyXPayYPromotionRel$3 = ResourceRel & { type: BuyXPayYPromotionType; }; type FreeGiftPromotionRel$2 = ResourceRel & { type: FreeGiftPromotionType; }; type FixedPricePromotionRel$2 = ResourceRel & { type: FixedPricePromotionType; }; type ExternalPromotionRel$3 = ResourceRel & { type: ExternalPromotionType; }; type FixedAmountPromotionRel$2 = ResourceRel & { type: FixedAmountPromotionType; }; type FlexPromotionRel$2 = ResourceRel & { type: FlexPromotionType; }; type CustomPromotionRuleSort = Pick & ResourceSort; interface CustomPromotionRule extends Resource { readonly type: CustomPromotionRuleType; /** * The filters used to trigger promotion on the matching order and its relationships attributes. * @example ```{"status_eq":"pending","line_items_sku_code_eq":"AAA"}``` */ filters?: Record | null; promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CustomPromotionRuleCreate extends ResourceCreate { /** * The filters used to trigger promotion on the matching order and its relationships attributes. * @example ```{"status_eq":"pending","line_items_sku_code_eq":"AAA"}``` */ filters?: Record | null; promotion: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$2 | BuyXPayYPromotionRel$3 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$3 | FixedAmountPromotionRel$2 | FlexPromotionRel$2; } interface CustomPromotionRuleUpdate extends ResourceUpdate { /** * The filters used to trigger promotion on the matching order and its relationships attributes. * @example ```{"status_eq":"pending","line_items_sku_code_eq":"AAA"}``` */ filters?: Record | null; promotion?: PercentageDiscountPromotionRel$2 | FreeShippingPromotionRel$2 | BuyXPayYPromotionRel$3 | FreeGiftPromotionRel$2 | FixedPricePromotionRel$2 | ExternalPromotionRel$3 | FixedAmountPromotionRel$2 | FlexPromotionRel$2 | null; } declare class CustomPromotionRules extends ApiResource { static readonly TYPE: CustomPromotionRuleType; create(resource: CustomPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; versions(customPromotionRuleId: string | CustomPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customPromotionRuleId: string | CustomPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCustomPromotionRule(resource: any): resource is CustomPromotionRule; relationship(id: string | ResourceId | null): CustomPromotionRuleRel$2; relationshipToMany(...ids: string[]): CustomPromotionRuleRel$2[]; type(): CustomPromotionRuleType; } declare const instance$1B: CustomPromotionRules; type ExternalPromotionType = 'external_promotions'; type ExternalPromotionRel$2 = ResourceRel & { type: ExternalPromotionType; }; type MarketRel$e = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel$1 = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel$1 = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel$2 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel$1 = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$3 = ResourceRel & { type: SkuListType; }; type TagRel$e = ResourceRel & { type: TagType; }; type ExternalPromotionSort = Pick & ResourceSort; interface ExternalPromotion extends Resource { readonly type: ExternalPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The URL to the service that will compute the discount. * @example ```"https://external_promotion.yourbrand.com"``` */ promotion_url: string; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface ExternalPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The URL to the service that will compute the discount. * @example ```"https://external_promotion.yourbrand.com"``` */ promotion_url: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; market?: MarketRel$e | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$1 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null; custom_promotion_rule?: CustomPromotionRuleRel$1 | null; sku_list?: SkuListRel$3 | null; tags?: TagRel$e[] | null; } interface ExternalPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The URL to the service that will compute the discount. * @example ```"https://external_promotion.yourbrand.com"``` */ promotion_url?: string | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; market?: MarketRel$e | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel$1 | null; sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null; custom_promotion_rule?: CustomPromotionRuleRel$1 | null; sku_list?: SkuListRel$3 | null; tags?: TagRel$e[] | null; } declare class ExternalPromotions extends ApiResource { static readonly TYPE: ExternalPromotionType; create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isExternalPromotion(resource: any): resource is ExternalPromotion; relationship(id: string | ResourceId | null): ExternalPromotionRel$2; relationshipToMany(...ids: string[]): ExternalPromotionRel$2[]; type(): ExternalPromotionType; } declare const instance$1A: ExternalPromotions; type CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules'; type CouponCodesPromotionRuleRel$1 = ResourceRel & { type: CouponCodesPromotionRuleType; }; type PercentageDiscountPromotionRel$1 = ResourceRel & { type: PercentageDiscountPromotionType; }; type FreeShippingPromotionRel$1 = ResourceRel & { type: FreeShippingPromotionType; }; type BuyXPayYPromotionRel$2 = ResourceRel & { type: BuyXPayYPromotionType; }; type FreeGiftPromotionRel$1 = ResourceRel & { type: FreeGiftPromotionType; }; type FixedPricePromotionRel$1 = ResourceRel & { type: FixedPricePromotionType; }; type ExternalPromotionRel$1 = ResourceRel & { type: ExternalPromotionType; }; type FixedAmountPromotionRel$1 = ResourceRel & { type: FixedAmountPromotionType; }; type FlexPromotionRel$1 = ResourceRel & { type: FlexPromotionType; }; type CouponRel = ResourceRel & { type: CouponType; }; type CouponCodesPromotionRuleSort = Pick & ResourceSort; interface CouponCodesPromotionRule extends Resource { readonly type: CouponCodesPromotionRuleType; promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; versions?: Version[] | null; event_stores?: EventStore[] | null; coupons?: Coupon[] | null; } interface CouponCodesPromotionRuleCreate extends ResourceCreate { promotion: PercentageDiscountPromotionRel$1 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1 | FlexPromotionRel$1; coupons?: CouponRel[] | null; } interface CouponCodesPromotionRuleUpdate extends ResourceUpdate { promotion?: PercentageDiscountPromotionRel$1 | FreeShippingPromotionRel$1 | BuyXPayYPromotionRel$2 | FreeGiftPromotionRel$1 | FixedPricePromotionRel$1 | ExternalPromotionRel$1 | FixedAmountPromotionRel$1 | FlexPromotionRel$1 | null; coupons?: CouponRel[] | null; } declare class CouponCodesPromotionRules extends ApiResource { static readonly TYPE: CouponCodesPromotionRuleType; create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; versions(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule; relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel$1; relationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel$1[]; type(): CouponCodesPromotionRuleType; } declare const instance$1z: CouponCodesPromotionRules; type BuyXPayYPromotionType = 'buy_x_pay_y_promotions'; type BuyXPayYPromotionRel$1 = ResourceRel & { type: BuyXPayYPromotionType; }; type MarketRel$d = ResourceRel & { type: MarketType; }; type OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType; }; type SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType; }; type CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType; }; type CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType; }; type SkuListRel$2 = ResourceRel & { type: SkuListType; }; type TagRel$d = ResourceRel & { type: TagType; }; type BuyXPayYPromotionSort = Pick & ResourceSort; interface BuyXPayYPromotion extends Resource { readonly type: BuyXPayYPromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The quantity which defines the threshold for free items (works by multiple of x). * @example ```3``` */ x: number; /** * The quantity which defines how many items you get for free, with the formula x-y. * @example ```2``` */ y: number; /** * Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. * @example ```true``` */ cheapest_free?: boolean | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; skus?: Sku[] | null; } interface BuyXPayYPromotionCreate extends ResourceCreate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The quantity which defines the threshold for free items (works by multiple of x). * @example ```3``` */ x: number; /** * The quantity which defines how many items you get for free, with the formula x-y. * @example ```2``` */ y: number; /** * Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. * @example ```true``` */ cheapest_free?: boolean | null; market?: MarketRel$d | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; sku_list_promotion_rule?: SkuListPromotionRuleRel | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null; custom_promotion_rule?: CustomPromotionRuleRel | null; sku_list: SkuListRel$2; tags?: TagRel$d[] | null; } interface BuyXPayYPromotionUpdate extends ResourceUpdate { /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * The quantity which defines the threshold for free items (works by multiple of x). * @example ```3``` */ x?: number | null; /** * The quantity which defines how many items you get for free, with the formula x-y. * @example ```2``` */ y?: number | null; /** * Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. * @example ```true``` */ cheapest_free?: boolean | null; market?: MarketRel$d | null; order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; sku_list_promotion_rule?: SkuListPromotionRuleRel | null; coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null; custom_promotion_rule?: CustomPromotionRuleRel | null; sku_list?: SkuListRel$2 | null; tags?: TagRel$d[] | null; } declare class BuyXPayYPromotions extends ApiResource { static readonly TYPE: BuyXPayYPromotionType; create(resource: BuyXPayYPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: BuyXPayYPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; skus(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | BuyXPayYPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | BuyXPayYPromotion, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isBuyXPayYPromotion(resource: any): resource is BuyXPayYPromotion; relationship(id: string | ResourceId | null): BuyXPayYPromotionRel$1; relationshipToMany(...ids: string[]): BuyXPayYPromotionRel$1[]; type(): BuyXPayYPromotionType; } declare const instance$1y: BuyXPayYPromotions; type DiscountEngineType = 'discount_engines'; type DiscountEngineRel$2 = ResourceRel & { type: DiscountEngineType; }; type DiscountEngineSort = Pick & ResourceSort; interface DiscountEngine extends Resource { readonly type: DiscountEngineType; /** * The discount engine's internal name. * @example ```"Personal discount engine"``` */ name: string; /** * Indicates if the discount engine manages both promotions and gift cards application at once. */ manage_gift_cards?: boolean | null; markets?: Market[] | null; discount_engine_items?: DiscountEngineItem[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class DiscountEngines extends ApiResource { static readonly TYPE: DiscountEngineType; markets(discountEngineId: string | DiscountEngine, params?: QueryParamsList, options?: ResourcesConfig): Promise>; discount_engine_items(discountEngineId: string | DiscountEngine, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(discountEngineId: string | DiscountEngine, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(discountEngineId: string | DiscountEngine, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(discountEngineId: string | DiscountEngine, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isDiscountEngine(resource: any): resource is DiscountEngine; relationship(id: string | ResourceId | null): DiscountEngineRel$2; relationshipToMany(...ids: string[]): DiscountEngineRel$2[]; type(): DiscountEngineType; } declare const instance$1x: DiscountEngines; type DiscountEngineItemType = 'discount_engine_items'; type DiscountEngineItemRel$1 = ResourceRel & { type: DiscountEngineItemType; }; type DiscountEngineItemSort = Pick & ResourceSort; interface DiscountEngineItem extends Resource { readonly type: DiscountEngineItemType; /** * The body of the external discount engine response. * @example ```{"foo":"bar"}``` */ body: Record; discount_engine?: DiscountEngine | null; order?: Order | null; event_stores?: EventStore[] | null; } declare class DiscountEngineItems extends ApiResource { static readonly TYPE: DiscountEngineItemType; discount_engine(discountEngineItemId: string | DiscountEngineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(discountEngineItemId: string | DiscountEngineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(discountEngineItemId: string | DiscountEngineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isDiscountEngineItem(resource: any): resource is DiscountEngineItem; relationship(id: string | ResourceId | null): DiscountEngineItemRel$1; relationshipToMany(...ids: string[]): DiscountEngineItemRel$1[]; type(): DiscountEngineItemType; } declare const instance$1w: DiscountEngineItems; type GiftCardRecipientType = 'gift_card_recipients'; type GiftCardRecipientRel$2 = ResourceRel & { type: GiftCardRecipientType; }; type CustomerRel$5 = ResourceRel & { type: CustomerType; }; type GiftCardRecipientSort = Pick & ResourceSort; interface GiftCardRecipient extends Resource { readonly type: GiftCardRecipientType; /** * The recipient email address. * @example ```"john@example.com"``` */ email: string; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: Customer | null; event_stores?: EventStore[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; } interface GiftCardRecipientCreate extends ResourceCreate { /** * The recipient email address. * @example ```"john@example.com"``` */ email: string; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: CustomerRel$5 | null; } interface GiftCardRecipientUpdate extends ResourceUpdate { /** * The recipient email address. * @example ```"john@example.com"``` */ email?: string | null; /** * The recipient first name. * @example ```"John"``` */ first_name?: string | null; /** * The recipient last name. * @example ```"Smith"``` */ last_name?: string | null; customer?: CustomerRel$5 | null; } declare class GiftCardRecipients extends ApiResource { static readonly TYPE: GiftCardRecipientType; create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isGiftCardRecipient(resource: any): resource is GiftCardRecipient; relationship(id: string | ResourceId | null): GiftCardRecipientRel$2; relationshipToMany(...ids: string[]): GiftCardRecipientRel$2[]; type(): GiftCardRecipientType; } declare const instance$1v: GiftCardRecipients; type GiftCardType = 'gift_cards'; type GiftCardRel$2 = ResourceRel & { type: GiftCardType; }; type MarketRel$c = ResourceRel & { type: MarketType; }; type GiftCardRecipientRel$1 = ResourceRel & { type: GiftCardRecipientType; }; type TagRel$c = ResourceRel & { type: TagType; }; type GiftCardSort = Pick & ResourceSort; interface GiftCard extends Resource { readonly type: GiftCardType; /** * The gift card status. One of 'draft' (default), 'inactive', 'active', or 'redeemed'. * @example ```"draft"``` */ status: 'draft' | 'inactive' | 'active' | 'redeemed'; /** * The gift card code UUID. If not set, it's automatically generated. * @example ```"32db311a-75d9-4c17-9e34-2be220137ad6"``` */ code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The gift card initial balance, in cents. * @example ```15000``` */ initial_balance_cents: number; /** * The gift card initial balance, float. * @example ```150``` */ initial_balance_float: number; /** * The gift card initial balance, formatted. * @example ```"€150,00"``` */ formatted_initial_balance: string; /** * The gift card balance, in cents. * @example ```15000``` */ balance_cents: number; /** * The gift card balance, float. * @example ```150``` */ balance_float: number; /** * The gift card balance, formatted. * @example ```"€150,00"``` */ formatted_balance: string; /** * The gift card balance max, in cents. * @example ```100000``` */ balance_max_cents?: number | null; /** * The gift card balance max, float. * @example ```1000``` */ balance_max_float?: number | null; /** * The gift card balance max, formatted. * @example ```"€1000,00"``` */ formatted_balance_max?: string | null; /** * The gift card balance log. Tracks all the gift card transactions. * @example ```[{"datetime":"2019-12-23T12:00:00.000Z","balance_change_cents":-10000},{"datetime":"2020-02-01T12:00:00.000Z","balance_change_cents":5000}]``` */ balance_log: Array>; /** * The gift card usage log. Tracks all the gift card usage actions by orders. * @example ```{"eNoKkhmbNp":[{"action":"use","amount_cents":-1000,"balance_cents":4000,"order_number":"11111","datetime":"2020-02-01T12:00:00.000Z"}]}``` */ usage_log: Record; /** * Indicates if the gift card can be used only one. */ single_use?: boolean | null; /** * Indicates if the gift card can be recharged. * @example ```true``` */ rechargeable?: boolean | null; /** * Indicates if redeemed gift card amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; /** * The URL of an image that represents the gift card. * @example ```"https://img.yourdomain.com/gift_cards/32db311a.png"``` */ image_url?: string | null; /** * Time at which the gift card will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; /** * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; market?: Market | null; gift_card_recipient?: GiftCardRecipient | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface GiftCardCreate extends ResourceCreate { /** * The gift card code UUID. If not set, it's automatically generated. * @example ```"32db311a-75d9-4c17-9e34-2be220137ad6"``` */ code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The gift card balance, in cents. * @example ```15000``` */ balance_cents: number; /** * The gift card balance max, in cents. * @example ```100000``` */ balance_max_cents?: number | null; /** * Indicates if the gift card can be used only one. */ single_use?: boolean | null; /** * Indicates if the gift card can be recharged. * @example ```true``` */ rechargeable?: boolean | null; /** * Indicates if redeemed gift card amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; /** * The URL of an image that represents the gift card. * @example ```"https://img.yourdomain.com/gift_cards/32db311a.png"``` */ image_url?: string | null; /** * Time at which the gift card will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; /** * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; market?: MarketRel$c | null; gift_card_recipient?: GiftCardRecipientRel$1 | null; tags?: TagRel$c[] | null; } interface GiftCardUpdate extends ResourceUpdate { /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The gift card balance, in cents. * @example ```15000``` */ balance_cents?: number | null; /** * The gift card balance max, in cents. * @example ```100000``` */ balance_max_cents?: number | null; /** * Indicates if the gift card can be used only one. */ single_use?: boolean | null; /** * Indicates if the gift card can be recharged. * @example ```true``` */ rechargeable?: boolean | null; /** * Indicates if redeemed gift card amount is distributed for tax calculation. * @example ```true``` */ distribute_discount?: boolean | null; /** * The URL of an image that represents the gift card. * @example ```"https://img.yourdomain.com/gift_cards/32db311a.png"``` */ image_url?: string | null; /** * Time at which the gift card will expire. * @example ```"2018-01-01T12:00:00.000Z"``` */ expires_at?: string | null; /** * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. * @example ```"john@example.com"``` */ recipient_email?: string | null; /** * Send this attribute if you want to confirm a draft gift card. The gift card becomes 'inactive', waiting to be activated. * @example ```true``` */ _purchase?: boolean | null; /** * Send this attribute if you want to activate a gift card. * @example ```true``` */ _activate?: boolean | null; /** * Send this attribute if you want to deactivate a gift card. * @example ```true``` */ _deactivate?: boolean | null; /** * The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable). * @example ```-5000``` */ _balance_change_cents?: number | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; market?: MarketRel$c | null; gift_card_recipient?: GiftCardRecipientRel$1 | null; tags?: TagRel$c[] | null; } declare class GiftCards extends ApiResource { static readonly TYPE: GiftCardType; create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; gift_card_recipient(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _purchase(id: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _activate(id: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _deactivate(id: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _balance_change_cents(id: string | GiftCard, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | GiftCard, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | GiftCard, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isGiftCard(resource: any): resource is GiftCard; relationship(id: string | ResourceId | null): GiftCardRel$2; relationshipToMany(...ids: string[]): GiftCardRel$2[]; type(): GiftCardType; } declare const instance$1u: GiftCards; type SkuOptionType = 'sku_options'; type SkuOptionRel$2 = ResourceRel & { type: SkuOptionType; }; type MarketRel$b = ResourceRel & { type: MarketType; }; type TagRel$b = ResourceRel & { type: TagType; }; type SkuOptionSort = Pick & ResourceSort; interface SkuOption extends Resource { readonly type: SkuOptionType; /** * The SKU option's internal name. * @example ```"Embossing"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the SKU option. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents?: number | null; /** * The price of this shipping method, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this shipping method, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; /** * The delay time (in hours) that should be added to the delivery lead time when this option is purchased. * @example ```48``` */ delay_hours?: number | null; /** * The delay time, in days (rounded). * @example ```2``` */ delay_days?: number | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; market?: Market | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface SkuOptionCreate extends ResourceCreate { /** * The SKU option's internal name. * @example ```"Embossing"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the SKU option. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents?: number | null; /** * The delay time (in hours) that should be added to the delivery lead time when this option is purchased. * @example ```48``` */ delay_hours?: number | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; market?: MarketRel$b | null; tags?: TagRel$b[] | null; } interface SkuOptionUpdate extends ResourceUpdate { /** * The SKU option's internal name. * @example ```"Embossing"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the SKU option. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents?: number | null; /** * The delay time (in hours) that should be added to the delivery lead time when this option is purchased. * @example ```48``` */ delay_hours?: number | null; /** * The regex that will be evaluated to match the SKU codes, max size is 5000. * @example ```"^(A|B).*$"``` */ sku_code_regex?: string | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; market?: MarketRel$b | null; tags?: TagRel$b[] | null; } declare class SkuOptions extends ApiResource { static readonly TYPE: SkuOptionType; create(resource: SkuOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(skuOptionId: string | SkuOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isSkuOption(resource: any): resource is SkuOption; relationship(id: string | ResourceId | null): SkuOptionRel$2; relationshipToMany(...ids: string[]): SkuOptionRel$2[]; type(): SkuOptionType; } declare const instance$1t: SkuOptions; type LineItemOptionType = 'line_item_options'; type LineItemOptionRel = ResourceRel & { type: LineItemOptionType; }; type LineItemRel$5 = ResourceRel & { type: LineItemType; }; type SkuOptionRel$1 = ResourceRel & { type: SkuOptionType; }; type TagRel$a = ResourceRel & { type: TagType; }; type LineItemOptionSort = Pick & ResourceSort; interface LineItemOption extends Resource { readonly type: LineItemOptionType; /** * The name of the line item option. When blank, it gets populated with the name of the associated SKU option. * @example ```"Embossing"``` */ name?: string | null; /** * The line item option's quantity. * @example ```2``` */ quantity: number; /** * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. * @example ```"EUR"``` */ currency_code?: string | null; /** * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. * @example ```990``` */ unit_amount_cents?: number | null; /** * The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```9.9``` */ unit_amount_float?: number | null; /** * The unit amount of the line item option, formatted. This can be useful to display the amount with currency in you views. * @example ```"€9,90"``` */ formatted_unit_amount?: string | null; /** * The unit amount x quantity, in cents. * @example ```1880``` */ total_amount_cents?: number | null; /** * The unit amount x quantity, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```18.8``` */ total_amount_float: number; /** * The unit amount x quantity, formatted. This can be useful to display the amount with currency in you views. * @example ```"€18,80"``` */ formatted_total_amount?: string | null; /** * The shipping delay that the customer can expect when adding this option (hours). Inherited from the associated SKU option. * @example ```48``` */ delay_hours?: number | null; /** * The shipping delay that the customer can expect when adding this option (days, rounded). * @example ```2``` */ delay_days?: number | null; /** * Set of key-value pairs that represent the selected options. * @example ```{"embossing_text":"Happy Birthday!"}``` */ options: Record; line_item?: LineItem | null; sku_option?: SkuOption | null; events?: Event[] | null; tags?: Tag[] | null; event_stores?: EventStore[] | null; } interface LineItemOptionCreate extends ResourceCreate { /** * The name of the line item option. When blank, it gets populated with the name of the associated SKU option. * @example ```"Embossing"``` */ name?: string | null; /** * The line item option's quantity. * @example ```2``` */ quantity: number; /** * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. * @example ```990``` */ unit_amount_cents?: number | null; /** * Set of key-value pairs that represent the selected options. * @example ```{"embossing_text":"Happy Birthday!"}``` */ options: Record; line_item: LineItemRel$5; sku_option: SkuOptionRel$1; tags?: TagRel$a[] | null; } interface LineItemOptionUpdate extends ResourceUpdate { /** * The name of the line item option. When blank, it gets populated with the name of the associated SKU option. * @example ```"Embossing"``` */ name?: string | null; /** * The line item option's quantity. * @example ```2``` */ quantity?: number | null; /** * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. * @example ```990``` */ unit_amount_cents?: number | null; /** * Set of key-value pairs that represent the selected options. * @example ```{"embossing_text":"Happy Birthday!"}``` */ options?: Record | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; sku_option?: SkuOptionRel$1 | null; tags?: TagRel$a[] | null; } declare class LineItemOptions extends ApiResource { static readonly TYPE: LineItemOptionType; create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isLineItemOption(resource: any): resource is LineItemOption; relationship(id: string | ResourceId | null): LineItemOptionRel; relationshipToMany(...ids: string[]): LineItemOptionRel[]; type(): LineItemOptionType; } declare const instance$1s: LineItemOptions; type DeliveryLeadTimeType = 'delivery_lead_times'; type DeliveryLeadTimeRel$1 = ResourceRel & { type: DeliveryLeadTimeType; }; type StockLocationRel$8 = ResourceRel & { type: StockLocationType; }; type ShippingMethodRel$6 = ResourceRel & { type: ShippingMethodType; }; type DeliveryLeadTimeSort = Pick & ResourceSort; interface DeliveryLeadTime extends Resource { readonly type: DeliveryLeadTimeType; /** * The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```48``` */ min_hours: number; /** * The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```72``` */ max_hours: number; /** * The delivery lead minimum time, in days (rounded). * @example ```2``` */ min_days?: number | null; /** * The delivery lead maximun time, in days (rounded). * @example ```3``` */ max_days?: number | null; stock_location?: StockLocation | null; shipping_method?: ShippingMethod | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface DeliveryLeadTimeCreate extends ResourceCreate { /** * The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```48``` */ min_hours: number; /** * The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```72``` */ max_hours: number; stock_location: StockLocationRel$8; shipping_method: ShippingMethodRel$6; } interface DeliveryLeadTimeUpdate extends ResourceUpdate { /** * The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```48``` */ min_hours?: number | null; /** * The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. * @example ```72``` */ max_hours?: number | null; stock_location?: StockLocationRel$8 | null; shipping_method?: ShippingMethodRel$6 | null; } declare class DeliveryLeadTimes extends ApiResource { static readonly TYPE: DeliveryLeadTimeType; create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; stock_location(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_method(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime; relationship(id: string | ResourceId | null): DeliveryLeadTimeRel$1; relationshipToMany(...ids: string[]): DeliveryLeadTimeRel$1[]; type(): DeliveryLeadTimeType; } declare const instance$1r: DeliveryLeadTimes; type ShippingCategoryType = 'shipping_categories'; type ShippingCategoryRel$4 = ResourceRel & { type: ShippingCategoryType; }; type ShippingCategorySort = Pick & ResourceSort; interface ShippingCategory extends Resource { readonly type: ShippingCategoryType; /** * The shipping category name. * @example ```"Merchandise"``` */ name: string; /** * A string that you can use to identify the shipping category (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; skus?: Sku[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ShippingCategoryCreate extends ResourceCreate { /** * The shipping category name. * @example ```"Merchandise"``` */ name: string; /** * A string that you can use to identify the shipping category (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; } interface ShippingCategoryUpdate extends ResourceUpdate { /** * The shipping category name. * @example ```"Merchandise"``` */ name?: string | null; /** * A string that you can use to identify the shipping category (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; } declare class ShippingCategories extends ApiResource { static readonly TYPE: ShippingCategoryType; create(resource: ShippingCategoryCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ShippingCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; skus(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isShippingCategory(resource: any): resource is ShippingCategory; relationship(id: string | ResourceId | null): ShippingCategoryRel$4; relationshipToMany(...ids: string[]): ShippingCategoryRel$4[]; type(): ShippingCategoryType; } declare const instance$1q: ShippingCategories; type ShippingMethodTierType = 'shipping_method_tiers'; type ShippingMethodTierRel$2 = ResourceRel & { type: ShippingMethodTierType; }; type ShippingMethodTierSort = Pick & ResourceSort; interface ShippingMethodTier extends Resource { readonly type: ShippingMethodTierType; /** * The shipping method tier's name. * @example ```"Light shipping under 3kg"``` */ name: string; /** * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). * @example ```20.5``` */ up_to?: number | null; /** * The price of this shipping method tier, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this shipping method tier, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this shipping method tier, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; shipping_method?: ShippingMethod | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class ShippingMethodTiers extends ApiResource { static readonly TYPE: ShippingMethodTierType; shipping_method(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isShippingMethodTier(resource: any): resource is ShippingMethodTier; relationship(id: string | ResourceId | null): ShippingMethodTierRel$2; relationshipToMany(...ids: string[]): ShippingMethodTierRel$2[]; type(): ShippingMethodTierType; } declare const instance$1p: ShippingMethodTiers; type ShippingWeightTierType = 'shipping_weight_tiers'; type ShippingWeightTierRel = ResourceRel & { type: ShippingWeightTierType; }; type ShippingMethodRel$5 = ResourceRel & { type: ShippingMethodType; }; type ShippingWeightTierSort = Pick & ResourceSort; interface ShippingWeightTier extends Resource { readonly type: ShippingWeightTierType; /** * The shipping method tier's name. * @example ```"Light shipping under 3kg"``` */ name: string; /** * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). * @example ```20.5``` */ up_to?: number | null; /** * The price of this shipping method tier, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this shipping method tier, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this shipping method tier, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; shipping_method?: ShippingMethod | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ShippingWeightTierCreate extends ResourceCreate { /** * The shipping method tier's name. * @example ```"Light shipping under 3kg"``` */ name: string; /** * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). * @example ```20.5``` */ up_to?: number | null; /** * The price of this shipping method tier, in cents. * @example ```1000``` */ price_amount_cents: number; shipping_method: ShippingMethodRel$5; } interface ShippingWeightTierUpdate extends ResourceUpdate { /** * The shipping method tier's name. * @example ```"Light shipping under 3kg"``` */ name?: string | null; /** * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). * @example ```20.5``` */ up_to?: number | null; /** * The price of this shipping method tier, in cents. * @example ```1000``` */ price_amount_cents?: number | null; shipping_method?: ShippingMethodRel$5 | null; } declare class ShippingWeightTiers extends ApiResource { static readonly TYPE: ShippingWeightTierType; create(resource: ShippingWeightTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ShippingWeightTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; shipping_method(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isShippingWeightTier(resource: any): resource is ShippingWeightTier; relationship(id: string | ResourceId | null): ShippingWeightTierRel; relationshipToMany(...ids: string[]): ShippingWeightTierRel[]; type(): ShippingWeightTierType; } declare const instance$1o: ShippingWeightTiers; type ShippingZoneType = 'shipping_zones'; type ShippingZoneRel$2 = ResourceRel & { type: ShippingZoneType; }; type ShippingZoneSort = Pick & ResourceSort; interface ShippingZone extends Resource { readonly type: ShippingZoneType; /** * The shipping zone's internal name. * @example ```"Europe (main countries)"``` */ name: string; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ShippingZoneCreate extends ResourceCreate { /** * The shipping zone's internal name. * @example ```"Europe (main countries)"``` */ name: string; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; } interface ShippingZoneUpdate extends ResourceUpdate { /** * The shipping zone's internal name. * @example ```"Europe (main countries)"``` */ name?: string | null; /** * The regex that will be evaluated to match the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"``` */ country_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000. * @example ```"AT|BE|BG|CZ|DK|EE|DE"``` */ not_country_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"``` */ state_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000. * @example ```"A[KLRZ]|C[AOT]"``` */ not_state_code_regex?: string | null; /** * The regex that will be evaluated to match the shipping address zip code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"``` */ zip_code_regex?: string | null; /** * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000. * @example ```"(?i)(JE1|JE2|JE3)"``` */ not_zip_code_regex?: string | null; } declare class ShippingZones extends ApiResource { static readonly TYPE: ShippingZoneType; create(resource: ShippingZoneCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; attachments(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isShippingZone(resource: any): resource is ShippingZone; relationship(id: string | ResourceId | null): ShippingZoneRel$2; relationshipToMany(...ids: string[]): ShippingZoneRel$2[]; type(): ShippingZoneType; } declare const instance$1n: ShippingZones; type ShippingMethodType = 'shipping_methods'; type ShippingMethodRel$4 = ResourceRel & { type: ShippingMethodType; }; type MarketRel$a = ResourceRel & { type: MarketType; }; type ShippingZoneRel$1 = ResourceRel & { type: ShippingZoneType; }; type ShippingCategoryRel$3 = ResourceRel & { type: ShippingCategoryType; }; type StockLocationRel$7 = ResourceRel & { type: StockLocationType; }; type ShippingMethodTierRel$1 = ResourceRel & { type: ShippingMethodTierType; }; type TagRel$9 = ResourceRel & { type: TagType; }; type ShippingMethodSort = Pick & ResourceSort; interface ShippingMethod extends Resource { readonly type: ShippingMethodType; /** * The shipping method's name. * @example ```"Standard shipping"``` */ name: string; /** * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. * @example ```"flat"``` */ scheme?: 'flat' | 'weight_tiered' | 'external' | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this shipping method, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this shipping method, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; /** * Apply free shipping if the order amount is over this value, in cents. * @example ```9900``` */ free_over_amount_cents?: number | null; /** * Apply free shipping if the order amount is over this value, float. * @example ```99``` */ free_over_amount_float?: number | null; /** * Apply free shipping if the order amount is over this value, formatted. * @example ```"€99,00"``` */ formatted_free_over_amount?: string | null; /** * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; /** * The calculated price (zero or price amount) when associated to a shipment, in cents. */ price_amount_for_shipment_cents?: number | null; /** * The calculated price (zero or price amount) when associated to a shipment, float. */ price_amount_for_shipment_float?: number | null; /** * The calculated price (zero or price amount) when associated to a shipment, formatted. * @example ```"€0,00"``` */ formatted_price_amount_for_shipment?: string | null; /** * The minimum weight for which this shipping method is available. * @example ```3``` */ min_weight?: number | null; /** * The maximum weight for which this shipping method is available. * @example ```300``` */ max_weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The freight tax identifier code, specific for a particular tax calculator. * @example ```"FR010000"``` */ tax_code?: string | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; market?: Market | null; shipping_zone?: ShippingZone | null; shipping_category?: ShippingCategory | null; stock_location?: StockLocation | null; delivery_lead_time_for_shipment?: DeliveryLeadTime | null; shipping_method_tiers?: ShippingMethodTier[] | null; shipping_weight_tiers?: ShippingWeightTier[] | null; attachments?: Attachment[] | null; notifications?: Notification[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ShippingMethodCreate extends ResourceCreate { /** * The shipping method's name. * @example ```"Standard shipping"``` */ name: string; /** * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. * @example ```"flat"``` */ scheme?: 'flat' | 'weight_tiered' | 'external' | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents: number; /** * Apply free shipping if the order amount is over this value, in cents. * @example ```9900``` */ free_over_amount_cents?: number | null; /** * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; /** * The minimum weight for which this shipping method is available. * @example ```3``` */ min_weight?: number | null; /** * The maximum weight for which this shipping method is available. * @example ```300``` */ max_weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The freight tax identifier code, specific for a particular tax calculator. * @example ```"FR010000"``` */ tax_code?: string | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; market?: MarketRel$a | null; shipping_zone?: ShippingZoneRel$1 | null; shipping_category?: ShippingCategoryRel$3 | null; stock_location?: StockLocationRel$7 | null; shipping_method_tiers?: ShippingMethodTierRel$1[] | null; tags?: TagRel$9[] | null; } interface ShippingMethodUpdate extends ResourceUpdate { /** * The shipping method's name. * @example ```"Standard shipping"``` */ name?: string | null; /** * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. * @example ```"flat"``` */ scheme?: 'flat' | 'weight_tiered' | 'external' | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The price of this shipping method, in cents. * @example ```1000``` */ price_amount_cents?: number | null; /** * Apply free shipping if the order amount is over this value, in cents. * @example ```9900``` */ free_over_amount_cents?: number | null; /** * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). * @example ```true``` */ use_subtotal?: boolean | null; /** * The minimum weight for which this shipping method is available. * @example ```3``` */ min_weight?: number | null; /** * The maximum weight for which this shipping method is available. * @example ```300``` */ max_weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The freight tax identifier code, specific for a particular tax calculator. * @example ```"FR010000"``` */ tax_code?: string | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; market?: MarketRel$a | null; shipping_zone?: ShippingZoneRel$1 | null; shipping_category?: ShippingCategoryRel$3 | null; stock_location?: StockLocationRel$7 | null; shipping_method_tiers?: ShippingMethodTierRel$1[] | null; tags?: TagRel$9[] | null; } declare class ShippingMethods extends ApiResource { static readonly TYPE: ShippingMethodType; create(resource: ShippingMethodCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ShippingMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_zone(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_category(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_location(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delivery_lead_time_for_shipment(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_method_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; shipping_weight_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; notifications(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | ShippingMethod, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | ShippingMethod, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isShippingMethod(resource: any): resource is ShippingMethod; relationship(id: string | ResourceId | null): ShippingMethodRel$4; relationshipToMany(...ids: string[]): ShippingMethodRel$4[]; type(): ShippingMethodType; } declare const instance$1m: ShippingMethods; type NotificationType = 'notifications'; type NotificationRel = ResourceRel & { type: NotificationType; }; type LineItemRel$4 = ResourceRel & { type: LineItemType; }; type OrderRel$j = ResourceRel & { type: OrderType; }; type ShippingMethodRel$3 = ResourceRel & { type: ShippingMethodType; }; type NotificationSort = Pick & ResourceSort; interface Notification extends Resource { readonly type: NotificationType; /** * The internal name of the notification. * @example ```"DDT transport document"``` */ name: string; /** * Indicates if the notification is temporary, valid for the ones created by external services. */ flash?: boolean | null; /** * An internal body of the notification. * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}``` */ body?: Record | null; notifiable?: LineItem | Order | ShippingMethod | null; event_stores?: EventStore[] | null; } interface NotificationCreate extends ResourceCreate { /** * The internal name of the notification. * @example ```"DDT transport document"``` */ name: string; /** * Indicates if the notification is temporary, valid for the ones created by external services. */ flash?: boolean | null; /** * An internal body of the notification. * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}``` */ body?: Record | null; notifiable: LineItemRel$4 | OrderRel$j | ShippingMethodRel$3; } interface NotificationUpdate extends ResourceUpdate { /** * The internal name of the notification. * @example ```"DDT transport document"``` */ name?: string | null; /** * Indicates if the notification is temporary, valid for the ones created by external services. */ flash?: boolean | null; /** * An internal body of the notification. * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}``` */ body?: Record | null; notifiable?: LineItemRel$4 | OrderRel$j | ShippingMethodRel$3 | null; } declare class Notifications extends ApiResource { static readonly TYPE: NotificationType; create(resource: NotificationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: NotificationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; event_stores(notificationId: string | Notification, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isNotification(resource: any): resource is Notification; relationship(id: string | ResourceId | null): NotificationRel; relationshipToMany(...ids: string[]): NotificationRel[]; type(): NotificationType; } declare const instance$1l: Notifications; type BraintreePaymentType = 'braintree_payments'; type BraintreePaymentRel$3 = ResourceRel & { type: BraintreePaymentType; }; type OrderRel$i = ResourceRel & { type: OrderType; }; type BraintreePaymentSort = Pick & ResourceSort; interface BraintreePayment extends Resource { readonly type: BraintreePaymentType; /** * The Braintree payment client token. Required by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ client_token: string; /** * The Braintree payment method nonce. Sent by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ payment_method_nonce?: string | null; /** * The Braintree payment ID used by local payment and sent by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ payment_id?: string | null; /** * Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the "payment_id" and "payment_method_nonce" in order to complete the transaction. * @example ```true``` */ local?: boolean | null; /** * Braintree payment options, 'customer_id' and 'payment_method_token'. * @example ```{"customer_id":"1234567890"}``` */ options?: Record | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface BraintreePaymentCreate extends ResourceCreate { /** * The Braintree payment ID used by local payment and sent by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ payment_id?: string | null; /** * Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the "payment_id" and "payment_method_nonce" in order to complete the transaction. * @example ```true``` */ local?: boolean | null; /** * Braintree payment options, 'customer_id' and 'payment_method_token'. * @example ```{"customer_id":"1234567890"}``` */ options?: Record | null; order: OrderRel$i; } interface BraintreePaymentUpdate extends ResourceUpdate { /** * The Braintree payment method nonce. Sent by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ payment_method_nonce?: string | null; /** * The Braintree payment ID used by local payment and sent by the Braintree JS SDK. * @example ```"xxxx.yyyy.zzzz"``` */ payment_id?: string | null; /** * Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the "payment_id" and "payment_method_nonce" in order to complete the transaction. * @example ```true``` */ local?: boolean | null; /** * Braintree payment options, 'customer_id' and 'payment_method_token'. * @example ```{"customer_id":"1234567890"}``` */ options?: Record | null; order?: OrderRel$i | null; } declare class BraintreePayments extends ApiResource { static readonly TYPE: BraintreePaymentType; create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(braintreePaymentId: string | BraintreePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(braintreePaymentId: string | BraintreePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isBraintreePayment(resource: any): resource is BraintreePayment; relationship(id: string | ResourceId | null): BraintreePaymentRel$3; relationshipToMany(...ids: string[]): BraintreePaymentRel$3[]; type(): BraintreePaymentType; } declare const instance$1k: BraintreePayments; type CheckoutComPaymentType = 'checkout_com_payments'; type CheckoutComPaymentRel$3 = ResourceRel & { type: CheckoutComPaymentType; }; type OrderRel$h = ResourceRel & { type: OrderType; }; type CheckoutComPaymentSort = Pick & ResourceSort; interface CheckoutComPayment extends Resource { readonly type: CheckoutComPaymentType; /** * The Checkout.com publishable API key. * @example ```"pk_test_xxxx-yyyy-zzzz"``` */ public_key?: string | null; /** * The Checkout.com payment or digital wallet token. * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"``` */ token: string; /** * The session object which initializes payment. * @example ```{"id":"ps_xxxx_yyyy_zzzz","payment_session_secret":"pss_xxxx_yyy_zzzz","payment_session_token":"xxxxx_yyyyy_zzzzz","_links":{"self":{"href":"https://api.sandbox.checkout.com/payment-sessions/ps_xxxx_yyyy_zzzz"}}}``` */ payment_session: Record; /** * The URL to redirect your customer upon 3DS succeeded authentication. * @example ```"http://commercelayer.dev/checkout_com/success"``` */ success_url: string; /** * The URL to redirect your customer upon 3DS failed authentication. * @example ```"http://commercelayer.dev/checkout_com/failure"``` */ failure_url: string; /** * The payment source identifier that can be used for subsequent payments. * @example ```"src_nwd3m4in3hkuddfpjsaevunhdy"``` */ source_id?: string | null; /** * The customer's unique identifier. This can be passed as a source when making a payment. * @example ```"cus_udst2tfldj6upmye2reztkmm4i"``` */ customer_token?: string | null; /** * The URI that the customer should be redirected to in order to complete the payment. * @example ```"https://api.checkout.com/3ds/pay_mbabizu24mvu3mela5njyhpit4"``` */ redirect_uri?: string | null; /** * The Checkout.com payment response, used to fetch internal data. * @example ```{"foo":"bar"}``` */ payment_response?: Record | null; /** * Indicates if the order current amount differs form the one of the associated authorization. */ mismatched_amounts?: boolean | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CheckoutComPaymentCreate extends ResourceCreate { /** * The Checkout.com payment or digital wallet token. * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"``` */ token: string; /** * The URL to redirect your customer upon 3DS succeeded authentication. * @example ```"http://commercelayer.dev/checkout_com/success"``` */ success_url: string; /** * The URL to redirect your customer upon 3DS failed authentication. * @example ```"http://commercelayer.dev/checkout_com/failure"``` */ failure_url: string; order: OrderRel$h; } interface CheckoutComPaymentUpdate extends ResourceUpdate { /** * The Checkout.com payment or digital wallet token. * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"``` */ token?: string | null; /** * Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check). * @example ```true``` */ _details?: boolean | null; /** * Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic. * @example ```true``` */ _refresh?: boolean | null; order?: OrderRel$h | null; } declare class CheckoutComPayments extends ApiResource { static readonly TYPE: CheckoutComPaymentType; create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _details(id: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refresh(id: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCheckoutComPayment(resource: any): resource is CheckoutComPayment; relationship(id: string | ResourceId | null): CheckoutComPaymentRel$3; relationshipToMany(...ids: string[]): CheckoutComPaymentRel$3[]; type(): CheckoutComPaymentType; } declare const instance$1j: CheckoutComPayments; type ExternalPaymentType = 'external_payments'; type ExternalPaymentRel$2 = ResourceRel & { type: ExternalPaymentType; }; type OrderRel$g = ResourceRel & { type: OrderType; }; type ExternalPaymentSort = Pick & ResourceSort; interface ExternalPayment extends Resource { readonly type: ExternalPaymentType; /** * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected. * @example ```"xxxx.yyyy.zzzz"``` */ payment_source_token: string; /** * External payment options. * @example ```{"foo":"bar"}``` */ options?: Record | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; wallet?: CustomerPaymentSource | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ExternalPaymentCreate extends ResourceCreate { /** * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected. * @example ```"xxxx.yyyy.zzzz"``` */ payment_source_token: string; /** * External payment options. * @example ```{"foo":"bar"}``` */ options?: Record | null; order: OrderRel$g; } interface ExternalPaymentUpdate extends ResourceUpdate { /** * External payment options. * @example ```{"foo":"bar"}``` */ options?: Record | null; order?: OrderRel$g | null; } declare class ExternalPayments extends ApiResource { static readonly TYPE: ExternalPaymentType; create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; wallet(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(externalPaymentId: string | ExternalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(externalPaymentId: string | ExternalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isExternalPayment(resource: any): resource is ExternalPayment; relationship(id: string | ResourceId | null): ExternalPaymentRel$2; relationshipToMany(...ids: string[]): ExternalPaymentRel$2[]; type(): ExternalPaymentType; } declare const instance$1i: ExternalPayments; type KlarnaPaymentType = 'klarna_payments'; type KlarnaPaymentRel$3 = ResourceRel & { type: KlarnaPaymentType; }; type OrderRel$f = ResourceRel & { type: OrderType; }; type KlarnaPaymentSort = Pick & ResourceSort; interface KlarnaPayment extends Resource { readonly type: KlarnaPaymentType; /** * The identifier of the payment session. * @example ```"xxxx-yyyy-zzzz"``` */ session_id?: string | null; /** * The public token linked to your API credential. Available upon session creation. * @example ```"xxxx-yyyy-zzzz"``` */ client_token?: string | null; /** * The merchant available payment methods for the assoiated order. Available upon session creation. * @example ```[{"foo":"bar"}]``` */ payment_methods: Array>; /** * The token returned by a successful client authorization, mandatory to place the order. * @example ```"xxxx-yyyy-zzzz"``` */ auth_token?: string | null; /** * Indicates if the order current amount differs form the one of the created payment intent. */ mismatched_amounts?: boolean | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface KlarnaPaymentCreate extends ResourceCreate { order: OrderRel$f; } interface KlarnaPaymentUpdate extends ResourceUpdate { /** * The token returned by a successful client authorization, mandatory to place the order. * @example ```"xxxx-yyyy-zzzz"``` */ auth_token?: string | null; /** * Send this attribute if you want to update the payment session with fresh order data. * @example ```true``` */ _update?: boolean | null; order?: OrderRel$f | null; } declare class KlarnaPayments extends ApiResource { static readonly TYPE: KlarnaPaymentType; create(resource: KlarnaPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: KlarnaPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _update(id: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isKlarnaPayment(resource: any): resource is KlarnaPayment; relationship(id: string | ResourceId | null): KlarnaPaymentRel$3; relationshipToMany(...ids: string[]): KlarnaPaymentRel$3[]; type(): KlarnaPaymentType; } declare const instance$1h: KlarnaPayments; type PaypalPaymentType = 'paypal_payments'; type PaypalPaymentRel$2 = ResourceRel & { type: PaypalPaymentType; }; type OrderRel$e = ResourceRel & { type: OrderType; }; type PaypalPaymentSort = Pick & ResourceSort; interface PaypalPayment extends Resource { readonly type: PaypalPaymentType; /** * The URL where the payer is redirected after they approve the payment. * @example ```"https://yourdomain.com/thankyou"``` */ return_url: string; /** * The URL where the payer is redirected after they cancel the payment. * @example ```"https://yourdomain.com/checkout/payment"``` */ cancel_url: string; /** * A free-form field that you can use to send a note to the payer on PayPal. * @example ```"Thank you for shopping with us!"``` */ note_to_payer?: string | null; /** * The id of the payer that PayPal passes in the return_url. * @example ```"ABCDEFGHG123456"``` */ paypal_payer_id?: string | null; /** * The PayPal payer id (if present). * @example ```"ABCDEFGHG123456"``` */ name?: string | null; /** * The id of the PayPal payment object. * @example ```"1234567890"``` */ paypal_id?: string | null; /** * The PayPal payment status. One of 'created', or 'approved'. * @example ```"created"``` */ status?: 'created' | 'approved' | null; /** * The URL the customer should be redirected to approve the payment. * @example ```"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1234567890ABCDEFGHG"``` */ approval_url?: string | null; /** * Indicates if the order current amount differs form the one of the created payment intent. */ mismatched_amounts?: boolean | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface PaypalPaymentCreate extends ResourceCreate { /** * The URL where the payer is redirected after they approve the payment. * @example ```"https://yourdomain.com/thankyou"``` */ return_url: string; /** * The URL where the payer is redirected after they cancel the payment. * @example ```"https://yourdomain.com/checkout/payment"``` */ cancel_url: string; /** * A free-form field that you can use to send a note to the payer on PayPal. * @example ```"Thank you for shopping with us!"``` */ note_to_payer?: string | null; order: OrderRel$e; } interface PaypalPaymentUpdate extends ResourceUpdate { /** * The id of the payer that PayPal passes in the return_url. * @example ```"ABCDEFGHG123456"``` */ paypal_payer_id?: string | null; order?: OrderRel$e | null; } declare class PaypalPayments extends ApiResource { static readonly TYPE: PaypalPaymentType; create(resource: PaypalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(paypalPaymentId: string | PaypalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(paypalPaymentId: string | PaypalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPaypalPayment(resource: any): resource is PaypalPayment; relationship(id: string | ResourceId | null): PaypalPaymentRel$2; relationshipToMany(...ids: string[]): PaypalPaymentRel$2[]; type(): PaypalPaymentType; } declare const instance$1g: PaypalPayments; type SatispayPaymentType = 'satispay_payments'; type SatispayPaymentRel$3 = ResourceRel & { type: SatispayPaymentType; }; type OrderRel$d = ResourceRel & { type: OrderType; }; type SatispayPaymentSort = Pick & ResourceSort; interface SatispayPayment extends Resource { readonly type: SatispayPaymentType; /** * The payment unique identifier. * @example ```"xxxx-yyyy-zzzz"``` */ payment_id?: string | null; /** * The Satispay payment flow, inspect gateway API details for more information. * @example ```"MATCH_CODE"``` */ flow?: string | null; /** * The Satispay payment status. * @example ```"PENDING"``` */ status?: string | null; /** * The url to redirect the customer after the payment flow is completed. * @example ```"http://commercelayer.dev/satispay/redirect"``` */ redirect_url?: string | null; /** * Redirect url to the payment page. * @example ```"https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}"``` */ payment_url?: string | null; /** * The Satispay payment response, used to fetch internal data. * @example ```{"foo":"bar"}``` */ payment_response?: Record | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface SatispayPaymentCreate extends ResourceCreate { /** * The Satispay payment flow, inspect gateway API details for more information. * @example ```"MATCH_CODE"``` */ flow?: string | null; /** * The url to redirect the customer after the payment flow is completed. * @example ```"http://commercelayer.dev/satispay/redirect"``` */ redirect_url?: string | null; order: OrderRel$d; } interface SatispayPaymentUpdate extends ResourceUpdate { /** * The url to redirect the customer after the payment flow is completed. * @example ```"http://commercelayer.dev/satispay/redirect"``` */ redirect_url?: string | null; /** * Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic. * @example ```true``` */ _refresh?: boolean | null; order?: OrderRel$d | null; } declare class SatispayPayments extends ApiResource { static readonly TYPE: SatispayPaymentType; create(resource: SatispayPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SatispayPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isSatispayPayment(resource: any): resource is SatispayPayment; relationship(id: string | ResourceId | null): SatispayPaymentRel$3; relationshipToMany(...ids: string[]): SatispayPaymentRel$3[]; type(): SatispayPaymentType; } declare const instance$1f: SatispayPayments; type StripePaymentType = 'stripe_payments'; type StripePaymentRel$2 = ResourceRel & { type: StripePaymentType; }; type OrderRel$c = ResourceRel & { type: OrderType; }; type StripePaymentSort = Pick & ResourceSort; interface StripePayment extends Resource { readonly type: StripePaymentType; /** * The Stripe payment intent ID. Required to identify a payment session on stripe. * @example ```"pi_1234XXX"``` */ stripe_id?: string | null; /** * The Stripe payment intent client secret. Required to create a charge through Stripe.js. * @example ```"pi_1234XXX_secret_5678YYY"``` */ client_secret?: string | null; /** * The account (if any) for which the funds of the PaymentIntent are intended. * @example ```"acct_xxxx-yyyy-zzzz"``` */ connected_account?: string | null; /** * The Stripe charge ID. Identifies money movement upon the payment intent confirmation. * @example ```"ch_1234XXX"``` */ charge_id?: string | null; /** * The Stripe publishable API key. * @example ```"pk_live_xxxx-yyyy-zzzz"``` */ publishable_key?: string | null; /** * The Stripe account ID that these funds are intended for. * @example ```"xxxx-yyyy-zzzz"``` */ on_behalf_of?: string | null; /** * A string that identifies the resulting payment as part of a group. * @example ```"xxxx-yyyy-zzzz"``` */ transfer_group?: string | null; /** * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. * @example ```{"customer":"cus_xxx","payment_method":"pm_xxx"}``` */ options?: Record | null; /** * Stripe 'payment_method', set by webhook. * @example ```{"id":"pm_xxx"}``` */ payment_method?: Record | null; /** * Indicates if the order current amount differs form the one of the created payment intent. */ mismatched_amounts?: boolean | null; /** * The URL to return to when a redirect payment is completed. * @example ```"https://yourdomain.com/thankyou"``` */ return_url?: string | null; /** * The email address to send the receipt to. * @example ```"john@example.com"``` */ receipt_email?: string | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StripePaymentCreate extends ResourceCreate { /** * The Stripe payment intent ID. Required to identify a payment session on stripe. * @example ```"pi_1234XXX"``` */ stripe_id?: string | null; /** * The Stripe payment intent client secret. Required to create a charge through Stripe.js. * @example ```"pi_1234XXX_secret_5678YYY"``` */ client_secret?: string | null; /** * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. * @example ```{"customer":"cus_xxx","payment_method":"pm_xxx"}``` */ options?: Record | null; /** * The URL to return to when a redirect payment is completed. * @example ```"https://yourdomain.com/thankyou"``` */ return_url?: string | null; /** * The email address to send the receipt to. * @example ```"john@example.com"``` */ receipt_email?: string | null; order: OrderRel$c; } interface StripePaymentUpdate extends ResourceUpdate { /** * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. * @example ```{"customer":"cus_xxx","payment_method":"pm_xxx"}``` */ options?: Record | null; /** * The URL to return to when a redirect payment is completed. * @example ```"https://yourdomain.com/thankyou"``` */ return_url?: string | null; /** * Send this attribute if you want to update the created payment intent with fresh order data. * @example ```true``` */ _update?: boolean | null; /** * Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic. * @example ```true``` */ _refresh?: boolean | null; order?: OrderRel$c | null; } declare class StripePayments extends ApiResource { static readonly TYPE: StripePaymentType; create(resource: StripePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(stripePaymentId: string | StripePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stripePaymentId: string | StripePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _update(id: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refresh(id: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStripePayment(resource: any): resource is StripePayment; relationship(id: string | ResourceId | null): StripePaymentRel$2; relationshipToMany(...ids: string[]): StripePaymentRel$2[]; type(): StripePaymentType; } declare const instance$1e: StripePayments; type WireTransferType = 'wire_transfers'; type WireTransferRel$2 = ResourceRel & { type: WireTransferType; }; type OrderRel$b = ResourceRel & { type: OrderType; }; type WireTransferSort = Pick & ResourceSort; interface WireTransfer extends Resource { readonly type: WireTransferType; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface WireTransferCreate extends ResourceCreate { order: OrderRel$b; } interface WireTransferUpdate extends ResourceUpdate { order?: OrderRel$b | null; } declare class WireTransfers extends ApiResource { static readonly TYPE: WireTransferType; create(resource: WireTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(wireTransferId: string | WireTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(wireTransferId: string | WireTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(wireTransferId: string | WireTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isWireTransfer(resource: any): resource is WireTransfer; relationship(id: string | ResourceId | null): WireTransferRel$2; relationshipToMany(...ids: string[]): WireTransferRel$2[]; type(): WireTransferType; } declare const instance$1d: WireTransfers; type VoidType = 'voids'; type VoidRel = ResourceRel & { type: VoidType; }; type VoidSort = Pick & ResourceSort; interface Void extends Resource { readonly type: VoidType; /** * The transaction number, auto generated. * @example ```"42/T/001"``` */ number: string; /** * Information about the payment method used in the transaction. * @example ```"credit card"``` */ payment_method_type?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. * @example ```"EUR"``` */ currency_code: string; /** * The transaction amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The transaction amount, float. * @example ```15``` */ amount_float: number; /** * The transaction amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if the transaction is successful. */ succeeded: boolean; /** * The message returned by the payment gateway. * @example ```"Accepted"``` */ message?: string | null; /** * The error code, if any, returned by the payment gateway. * @example ```"00001"``` */ error_code?: string | null; /** * The error detail, if any, returned by the payment gateway. * @example ```"Already settled"``` */ error_detail?: string | null; /** * The token identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ token?: string | null; /** * The ID identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ gateway_transaction_id?: string | null; order?: Order | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; reference_authorization?: Authorization | null; } interface VoidUpdate extends ResourceUpdate { /** * Indicates if the transaction is successful. */ succeeded?: boolean | null; /** * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. * @example ```true``` */ _forward?: boolean | null; } declare class Voids extends ApiResource { static readonly TYPE: VoidType; update(resource: VoidUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise>; reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _forward(id: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isVoid(resource: any): resource is Void; relationship(id: string | ResourceId | null): VoidRel; relationshipToMany(...ids: string[]): VoidRel[]; type(): VoidType; } declare const instance$1c: Voids; type AuthorizationType = 'authorizations'; type AuthorizationRel = ResourceRel & { type: AuthorizationType; }; type AuthorizationSort = Pick & ResourceSort; interface Authorization extends Resource { readonly type: AuthorizationType; /** * The transaction number, auto generated. * @example ```"42/T/001"``` */ number: string; /** * Information about the payment method used in the transaction. * @example ```"credit card"``` */ payment_method_type?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. * @example ```"EUR"``` */ currency_code: string; /** * The transaction amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The transaction amount, float. * @example ```15``` */ amount_float: number; /** * The transaction amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if the transaction is successful. */ succeeded: boolean; /** * The message returned by the payment gateway. * @example ```"Accepted"``` */ message?: string | null; /** * The error code, if any, returned by the payment gateway. * @example ```"00001"``` */ error_code?: string | null; /** * The error detail, if any, returned by the payment gateway. * @example ```"Already settled"``` */ error_detail?: string | null; /** * The token identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ token?: string | null; /** * The ID identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ gateway_transaction_id?: string | null; /** * The CVV code returned by the payment gateway. * @example ```"000"``` */ cvv_code?: string | null; /** * The CVV message returned by the payment gateway. * @example ```"validated"``` */ cvv_message?: string | null; /** * The AVS code returned by the payment gateway. * @example ```"000"``` */ avs_code?: string | null; /** * The AVS message returned by the payment gateway. * @example ```"validated"``` */ avs_message?: string | null; /** * The fraud review message, if any, returned by the payment gateway. * @example ```"passed"``` */ fraud_review?: string | null; /** * The amount to be captured, in cents. * @example ```500``` */ capture_amount_cents?: number | null; /** * The amount to be captured, float. * @example ```5``` */ capture_amount_float?: number | null; /** * The amount to be captured, formatted. * @example ```"€5,00"``` */ formatted_capture_amount?: string | null; /** * The balance to be captured, in cents. * @example ```1000``` */ capture_balance_cents?: number | null; /** * The balance to be captured, float. * @example ```10``` */ capture_balance_float?: number | null; /** * The balance to be captured, formatted. * @example ```"€10,00"``` */ formatted_capture_balance?: string | null; /** * The balance to be voided, in cents. * @example ```1500``` */ void_balance_cents?: number | null; /** * The balance to be voided, float. * @example ```15``` */ void_balance_float?: number | null; /** * The balance to be voided, formatted. * @example ```"€15,00"``` */ formatted_void_balance?: string | null; order?: Order | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; captures?: Capture[] | null; voids?: Void[] | null; } interface AuthorizationUpdate extends ResourceUpdate { /** * Indicates if the transaction is successful. */ succeeded?: boolean | null; /** * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. * @example ```true``` */ _forward?: boolean | null; /** * Send this attribute if you want to create a capture for this authorization. * @example ```true``` */ _capture?: boolean | null; /** * Send this attribute as a value in cents if you want to overwrite the amount to be captured. * @example ```500``` */ _capture_amount_cents?: number | null; /** * Send this attribute if you want to create a void for this authorization. * @example ```true``` */ _void?: boolean | null; /** * Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid). * @example ```true``` */ _cancel?: boolean | null; } declare class Authorizations extends ApiResource { static readonly TYPE: AuthorizationType; update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(authorizationId: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; captures(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; voids(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _forward(id: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _capture(id: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _capture_amount_cents(id: string | Authorization, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _void(id: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isAuthorization(resource: any): resource is Authorization; relationship(id: string | ResourceId | null): AuthorizationRel; relationshipToMany(...ids: string[]): AuthorizationRel[]; type(): AuthorizationType; } declare const instance$1b: Authorizations; type RefundType = 'refunds'; type RefundRel = ResourceRel & { type: RefundType; }; type RefundSort = Pick & ResourceSort; interface Refund extends Resource { readonly type: RefundType; /** * The transaction number, auto generated. * @example ```"42/T/001"``` */ number: string; /** * Information about the payment method used in the transaction. * @example ```"credit card"``` */ payment_method_type?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. * @example ```"EUR"``` */ currency_code: string; /** * The transaction amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The transaction amount, float. * @example ```15``` */ amount_float: number; /** * The transaction amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if the transaction is successful. */ succeeded: boolean; /** * The message returned by the payment gateway. * @example ```"Accepted"``` */ message?: string | null; /** * The error code, if any, returned by the payment gateway. * @example ```"00001"``` */ error_code?: string | null; /** * The error detail, if any, returned by the payment gateway. * @example ```"Already settled"``` */ error_detail?: string | null; /** * The token identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ token?: string | null; /** * The ID identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ gateway_transaction_id?: string | null; order?: Order | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; reference_capture?: Capture | null; return?: Return | null; } interface RefundUpdate extends ResourceUpdate { /** * Indicates if the transaction is successful. */ succeeded?: boolean | null; /** * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. * @example ```true``` */ _forward?: boolean | null; } declare class Refunds extends ApiResource { static readonly TYPE: RefundType; update(resource: RefundUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise>; reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; return(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _forward(id: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isRefund(resource: any): resource is Refund; relationship(id: string | ResourceId | null): RefundRel; relationshipToMany(...ids: string[]): RefundRel[]; type(): RefundType; } declare const instance$1a: Refunds; type CaptureType = 'captures'; type CaptureRel$1 = ResourceRel & { type: CaptureType; }; type CaptureSort = Pick & ResourceSort; interface Capture extends Resource { readonly type: CaptureType; /** * The transaction number, auto generated. * @example ```"42/T/001"``` */ number: string; /** * Information about the payment method used in the transaction. * @example ```"credit card"``` */ payment_method_type?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. * @example ```"EUR"``` */ currency_code: string; /** * The transaction amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The transaction amount, float. * @example ```15``` */ amount_float: number; /** * The transaction amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if the transaction is successful. */ succeeded: boolean; /** * The message returned by the payment gateway. * @example ```"Accepted"``` */ message?: string | null; /** * The error code, if any, returned by the payment gateway. * @example ```"00001"``` */ error_code?: string | null; /** * The error detail, if any, returned by the payment gateway. * @example ```"Already settled"``` */ error_detail?: string | null; /** * The token identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ token?: string | null; /** * The ID identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ gateway_transaction_id?: string | null; /** * The amount to be refunded, in cents. * @example ```500``` */ refund_amount_cents?: number | null; /** * The amount to be refunded, float. * @example ```5``` */ refund_amount_float?: number | null; /** * The amount to be refunded, formatted. * @example ```"€5,00"``` */ formatted_refund_amount?: string | null; /** * The balance to be refunded, in cents. * @example ```1000``` */ refund_balance_cents?: number | null; /** * The balance to be refunded, float. * @example ```10``` */ refund_balance_float?: number | null; /** * The balance to be refunded, formatted. * @example ```"€10,00"``` */ formatted_refund_balance?: string | null; order?: Order | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; reference_authorization?: Authorization | null; refunds?: Refund[] | null; return?: Return | null; } interface CaptureUpdate extends ResourceUpdate { /** * Indicates if the transaction is successful. */ succeeded?: boolean | null; /** * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. * @example ```true``` */ _forward?: boolean | null; /** * Send this attribute if you want to create a refund for this capture. * @example ```true``` */ _refund?: boolean | null; /** * Send this attribute as a value in cents if you want to overwrite the amount to be refunded. * @example ```500``` */ _refund_amount_cents?: number | null; /** * Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid). * @example ```true``` */ _cancel?: boolean | null; } declare class Captures extends ApiResource { static readonly TYPE: CaptureType; update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise>; reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; refunds(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise>; return(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _forward(id: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund(id: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund_amount_cents(id: string | Capture, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCapture(resource: any): resource is Capture; relationship(id: string | ResourceId | null): CaptureRel$1; relationshipToMany(...ids: string[]): CaptureRel$1[]; type(): CaptureType; } declare const instance$19: Captures; type ResourceErrorType = 'resource_errors'; type ResourceErrorRel = ResourceRel & { type: ResourceErrorType; }; type ResourceErrorSort = Pick & ResourceSort; interface ResourceError extends Resource { readonly type: ResourceErrorType; /** * The resource attribute name related to the error. * @example ```"number"``` */ name: string; /** * The error code. * @example ```"BLANK"``` */ code: string; /** * The error message. * @example ```"can't be blank"``` */ message: string; resource?: Order | Return | null; event_stores?: EventStore[] | null; } declare class ResourceErrors extends ApiResource { static readonly TYPE: ResourceErrorType; event_stores(resourceErrorId: string | ResourceError, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isResourceError(resource: any): resource is ResourceError; relationship(id: string | ResourceId | null): ResourceErrorRel; relationshipToMany(...ids: string[]): ResourceErrorRel[]; type(): ResourceErrorType; } declare const instance$18: ResourceErrors; type ReturnType = 'returns'; type ReturnRel$2 = ResourceRel & { type: ReturnType; }; type OrderRel$a = ResourceRel & { type: OrderType; }; type StockLocationRel$6 = ResourceRel & { type: StockLocationType; }; type CaptureRel = ResourceRel & { type: CaptureType; }; type TagRel$8 = ResourceRel & { type: TagType; }; type ReturnSort = Pick & ResourceSort; interface Return extends Resource { readonly type: ReturnType; /** * Unique identifier for the return. * @example ```"#1234/R/001"``` */ number?: string | null; /** * The return status. One of 'draft' (default), 'requested', 'approved', 'cancelled', 'shipped', 'rejected', 'received', or 'refunded'. * @example ```"draft"``` */ status: 'draft' | 'requested' | 'approved' | 'cancelled' | 'shipped' | 'rejected' | 'received' | 'refunded'; /** * The email address of the associated customer. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The total number of SKUs in the return's line items. This can be useful to display a preview of the return content. * @example ```2``` */ skus_count?: number | null; /** * Time at which the return was approved. * @example ```"2018-01-01T12:00:00.000Z"``` */ approved_at?: string | null; /** * Time at which the return was cancelled. * @example ```"2018-01-01T12:00:00.000Z"``` */ cancelled_at?: string | null; /** * Time at which the return was shipped. * @example ```"2018-01-01T12:00:00.000Z"``` */ shipped_at?: string | null; /** * Time at which the return was rejected. * @example ```"2018-01-01T12:00:00.000Z"``` */ rejected_at?: string | null; /** * Time at which the return was received. * @example ```"2018-01-01T12:00:00.000Z"``` */ received_at?: string | null; /** * Time at which the return was refunded. * @example ```"2018-01-01T12:00:00.000Z"``` */ refunded_at?: string | null; /** * Time at which the resource has been archived. * @example ```"2018-01-01T12:00:00.000Z"``` */ archived_at?: string | null; /** * The amount to be refunded, estimated by associated return line items, in cents. * @example ```500``` */ estimated_refund_amount_cents?: number | null; /** * The amount to be refunded, estimated by associated return line items, float. * @example ```5``` */ estimated_refund_amount_float?: number | null; /** * The amount to be refunded, estimated by associated return line items, formatted. * @example ```"€5,00"``` */ formatted_estimated_refund_amount?: string | null; order?: Order | null; customer?: Customer | null; stock_location?: StockLocation | null; origin_address?: Address | null; destination_address?: Address | null; reference_capture?: Capture | null; reference_refund?: Refund | null; return_line_items?: ReturnLineItem[] | null; attachments?: Attachment[] | null; resource_errors?: ResourceError[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ReturnCreate extends ResourceCreate { order: OrderRel$a; stock_location?: StockLocationRel$6 | null; reference_capture?: CaptureRel | null; tags?: TagRel$8[] | null; } interface ReturnUpdate extends ResourceUpdate { /** * Send this attribute if you want to activate this return. * @example ```true``` */ _request?: boolean | null; /** * Send this attribute if you want to mark this return as approved. * @example ```true``` */ _approve?: boolean | null; /** * Send this attribute if you want to mark this return as cancelled. * @example ```true``` */ _cancel?: boolean | null; /** * Send this attribute if you want to mark this return as shipped. * @example ```true``` */ _ship?: boolean | null; /** * Send this attribute if you want to mark this return as rejected. * @example ```true``` */ _reject?: boolean | null; /** * Send this attribute if you want to mark this return as received. * @example ```true``` */ _receive?: boolean | null; /** * Send this attribute if you want to restock all of the return line items. * @example ```true``` */ _restock?: boolean | null; /** * Send this attribute if you want to archive the return. * @example ```true``` */ _archive?: boolean | null; /** * Send this attribute if you want to unarchive the return. * @example ```true``` */ _unarchive?: boolean | null; /** * Send this attribute if you want to create a refund for this return. * @example ```true``` */ _refund?: boolean | null; /** * Send this attribute as a value in cents to specify the amount to be refunded. * @example ```500``` */ _refund_amount_cents?: number | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; stock_location?: StockLocationRel$6 | null; reference_capture?: CaptureRel | null; tags?: TagRel$8[] | null; } declare class Returns extends ApiResource { static readonly TYPE: ReturnType; create(resource: ReturnCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ReturnUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_location(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; origin_address(returnId: string | Return, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; destination_address(returnId: string | Return, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; reference_capture(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; reference_refund(returnId: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; return_line_items(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; resource_errors(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _request(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _approve(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _ship(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reject(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _receive(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _restock(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _archive(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _unarchive(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund_amount_cents(id: string | Return, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | Return, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Return, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isReturn(resource: any): resource is Return; relationship(id: string | ResourceId | null): ReturnRel$2; relationshipToMany(...ids: string[]): ReturnRel$2[]; type(): ReturnType; } declare const instance$17: Returns; type ReturnLineItemType = 'return_line_items'; type ReturnLineItemRel = ResourceRel & { type: ReturnLineItemType; }; type ReturnRel$1 = ResourceRel & { type: ReturnType; }; type LineItemRel$3 = ResourceRel & { type: LineItemType; }; type ReturnLineItemSort = Pick & ResourceSort; interface ReturnLineItem extends Resource { readonly type: ReturnLineItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The return line item quantity. * @example ```4``` */ quantity: number; /** * The name of the line item. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the associated line item. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * Calculated as line item unit amount x returned quantity and applied discounts, if any. * @example ```8800``` */ total_amount_cents?: number | null; /** * The return line item total amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```88``` */ total_amount_float: number; /** * The return line item total amount, formatted. This can be useful to display the amount with currency in you views. * @example ```"€88,00"``` */ formatted_total_amount?: string | null; /** * Set of key-value pairs that you can use to add details about return reason. * @example ```{"size":"was wrong"}``` */ return_reason?: Record | null; /** * Time at which the return line item was restocked. * @example ```"2018-01-01T12:00:00.000Z"``` */ restocked_at?: string | null; return?: Return | null; line_item?: LineItem | null; event_stores?: EventStore[] | null; } interface ReturnLineItemCreate extends ResourceCreate { /** * The return line item quantity. * @example ```4``` */ quantity: number; /** * Set of key-value pairs that you can use to add details about return reason. * @example ```{"size":"was wrong"}``` */ return_reason?: Record | null; return: ReturnRel$1; line_item: LineItemRel$3; } interface ReturnLineItemUpdate extends ResourceUpdate { /** * The return line item quantity. * @example ```4``` */ quantity?: number | null; /** * Send this attribute if you want to restock the line item. * @example ```true``` */ _restock?: boolean | null; /** * Set of key-value pairs that you can use to add details about return reason. * @example ```{"size":"was wrong"}``` */ return_reason?: Record | null; } declare class ReturnLineItems extends ApiResource { static readonly TYPE: ReturnLineItemType; create(resource: ReturnLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ReturnLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; return(returnLineItemId: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; line_item(returnLineItemId: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(returnLineItemId: string | ReturnLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _restock(id: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isReturnLineItem(resource: any): resource is ReturnLineItem; relationship(id: string | ResourceId | null): ReturnLineItemRel; relationshipToMany(...ids: string[]): ReturnLineItemRel[]; type(): ReturnLineItemType; } declare const instance$16: ReturnLineItems; type CarrierAccountType = 'carrier_accounts'; type CarrierAccountRel$1 = ResourceRel & { type: CarrierAccountType; }; type MarketRel$9 = ResourceRel & { type: MarketType; }; type CarrierAccountSort = Pick & ResourceSort; interface CarrierAccount extends Resource { readonly type: CarrierAccountType; /** * The carrier account internal name. * @example ```"Accurate"``` */ name: string; /** * The Easypost service carrier type. * @example ```"AccurateAccount"``` */ easypost_type: string; /** * The Easypost internal reference ID. * @example ```"xxxx-yyyy-zzzz"``` */ easypost_id?: string | null; /** * The Easypost carrier accounts credentials fields. * @example ```{"username":"xxxx","password":"secret"}``` */ credentials: Record; market?: Market | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CarrierAccountCreate extends ResourceCreate { /** * The carrier account internal name. * @example ```"Accurate"``` */ name: string; /** * The Easypost service carrier type. * @example ```"AccurateAccount"``` */ easypost_type: string; /** * The Easypost carrier accounts credentials fields. * @example ```{"username":"xxxx","password":"secret"}``` */ credentials: Record; market?: MarketRel$9 | null; } interface CarrierAccountUpdate extends ResourceUpdate { /** * The carrier account internal name. * @example ```"Accurate"``` */ name?: string | null; /** * The Easypost service carrier type. * @example ```"AccurateAccount"``` */ easypost_type?: string | null; /** * The Easypost carrier accounts credentials fields. * @example ```{"username":"xxxx","password":"secret"}``` */ credentials?: Record | null; market?: MarketRel$9 | null; } declare class CarrierAccounts extends ApiResource { static readonly TYPE: CarrierAccountType; create(resource: CarrierAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CarrierAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(carrierAccountId: string | CarrierAccount, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCarrierAccount(resource: any): resource is CarrierAccount; relationship(id: string | ResourceId | null): CarrierAccountRel$1; relationshipToMany(...ids: string[]): CarrierAccountRel$1[]; type(): CarrierAccountType; } declare const instance$15: CarrierAccounts; type PackageType = 'packages'; type PackageRel$2 = ResourceRel & { type: PackageType; }; type StockLocationRel$5 = ResourceRel & { type: StockLocationType; }; type PackageSort = Pick & ResourceSort; interface Package extends Resource { readonly type: PackageType; /** * Unique name for the package. * @example ```"Large (60x40x30)"``` */ name: string; /** * The package identifying code. * @example ```"YYYY 2000"``` */ code?: string | null; /** * The package length, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ length: number; /** * The package width, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ width: number; /** * The package height, used to automatically calculate the tax rates from the available carrier accounts. * @example ```25``` */ height: number; /** * The unit of length. Can be one of 'cm', or 'in'. * @example ```"gr"``` */ unit_of_length: string; stock_location?: StockLocation | null; parcels?: Parcel[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface PackageCreate extends ResourceCreate { /** * Unique name for the package. * @example ```"Large (60x40x30)"``` */ name: string; /** * The package identifying code. * @example ```"YYYY 2000"``` */ code?: string | null; /** * The package length, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ length: number; /** * The package width, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ width: number; /** * The package height, used to automatically calculate the tax rates from the available carrier accounts. * @example ```25``` */ height: number; /** * The unit of length. Can be one of 'cm', or 'in'. * @example ```"gr"``` */ unit_of_length: string; stock_location: StockLocationRel$5; } interface PackageUpdate extends ResourceUpdate { /** * Unique name for the package. * @example ```"Large (60x40x30)"``` */ name?: string | null; /** * The package identifying code. * @example ```"YYYY 2000"``` */ code?: string | null; /** * The package length, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ length?: number | null; /** * The package width, used to automatically calculate the tax rates from the available carrier accounts. * @example ```40``` */ width?: number | null; /** * The package height, used to automatically calculate the tax rates from the available carrier accounts. * @example ```25``` */ height?: number | null; /** * The unit of length. Can be one of 'cm', or 'in'. * @example ```"gr"``` */ unit_of_length?: string | null; stock_location?: StockLocationRel$5 | null; } declare class Packages extends ApiResource { static readonly TYPE: PackageType; create(resource: PackageCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PackageUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; stock_location(packageId: string | Package, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; parcels(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPackage(resource: any): resource is Package; relationship(id: string | ResourceId | null): PackageRel$2; relationshipToMany(...ids: string[]): PackageRel$2[]; type(): PackageType; } declare const instance$14: Packages; type StockLineItemType = 'stock_line_items'; type StockLineItemRel$1 = ResourceRel & { type: StockLineItemType; }; type ShipmentRel$6 = ResourceRel & { type: ShipmentType; }; type LineItemRel$2 = ResourceRel & { type: LineItemType; }; type StockItemRel$3 = ResourceRel & { type: StockItemType; }; type SkuRel$9 = ResourceRel & { type: SkuType; }; type StockLineItemSort = Pick & ResourceSort; interface StockLineItem extends Resource { readonly type: StockLineItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity: number; /** * The internal name of the associated line item. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the associated line item. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; shipment?: Shipment | null; line_item?: LineItem | null; stock_item?: StockItem | null; sku?: Sku | null; stock_reservation?: StockReservation | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StockLineItemCreate extends ResourceCreate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity: number; shipment?: ShipmentRel$6 | null; line_item?: LineItemRel$2 | null; stock_item?: StockItemRel$3 | null; sku?: SkuRel$9 | null; } interface StockLineItemUpdate extends ResourceUpdate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity?: number | null; /** * Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _reserve_stock?: boolean | null; /** * Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _release_stock?: boolean | null; /** * Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _decrement_stock?: boolean | null; shipment?: ShipmentRel$6 | null; line_item?: LineItemRel$2 | null; stock_item?: StockItemRel$3 | null; sku?: SkuRel$9 | null; } declare class StockLineItems extends ApiResource { static readonly TYPE: StockLineItemType; create(resource: StockLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StockLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_reservation(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(stockLineItemId: string | StockLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stockLineItemId: string | StockLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _reserve_stock(id: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _release_stock(id: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _decrement_stock(id: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStockLineItem(resource: any): resource is StockLineItem; relationship(id: string | ResourceId | null): StockLineItemRel$1; relationshipToMany(...ids: string[]): StockLineItemRel$1[]; type(): StockLineItemType; } declare const instance$13: StockLineItems; type ParcelLineItemType = 'parcel_line_items'; type ParcelLineItemRel = ResourceRel & { type: ParcelLineItemType; }; type ParcelRel$2 = ResourceRel & { type: ParcelType; }; type StockLineItemRel = ResourceRel & { type: StockLineItemType; }; type ParcelLineItemSort = Pick & ResourceSort; interface ParcelLineItem extends Resource { readonly type: ParcelLineItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The parcel line item quantity. * @example ```4``` */ quantity: number; /** * The internal name of the associated line item. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the associated line item. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; parcel?: Parcel | null; stock_line_item?: StockLineItem | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ParcelLineItemCreate extends ResourceCreate { /** * The parcel line item quantity. * @example ```4``` */ quantity: number; parcel: ParcelRel$2; stock_line_item: StockLineItemRel; } type ParcelLineItemUpdate = ResourceUpdate; declare class ParcelLineItems extends ApiResource { static readonly TYPE: ParcelLineItemType; create(resource: ParcelLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ParcelLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; parcel(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_line_item(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isParcelLineItem(resource: any): resource is ParcelLineItem; relationship(id: string | ResourceId | null): ParcelLineItemRel; relationshipToMany(...ids: string[]): ParcelLineItemRel[]; type(): ParcelLineItemType; } declare const instance$12: ParcelLineItems; type ParcelType = 'parcels'; type ParcelRel$1 = ResourceRel & { type: ParcelType; }; type ShipmentRel$5 = ResourceRel & { type: ShipmentType; }; type PackageRel$1 = ResourceRel & { type: PackageType; }; type ParcelSort = Pick & ResourceSort; interface Parcel extends Resource { readonly type: ParcelType; /** * Unique identifier for the parcel. * @example ```"#1234/S/001/P/001"``` */ number?: string | null; /** * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. * @example ```1000``` */ weight: number; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight: 'gr' | 'oz' | 'lb'; /** * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of "EEL" o "PFC". * @example ```"EEL"``` */ eel_pfc?: string | null; /** * The type of item you are sending. * @example ```"merchandise"``` */ contents_type?: string | null; /** * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. */ contents_explanation?: string | null; /** * Indicates if the provided information is accurate. */ customs_certify?: boolean | null; /** * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. * @example ```"John Doe"``` */ customs_signer?: string | null; /** * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. * @example ```"return"``` */ non_delivery_option?: string | null; /** * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. * @example ```"none"``` */ restriction_type?: string | null; /** * If you specify 'other' in the restriction type, you must supply a brief description of what is required. */ restriction_comments?: string | null; /** * Indicates if the parcel requires customs info to get the shipping rates. */ customs_info_required?: boolean | null; /** * The shipping label url, ready to be downloaded and printed. * @example ```"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf"``` */ shipping_label_url?: string | null; /** * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'. * @example ```"application/pdf"``` */ shipping_label_file_type?: string | null; /** * The shipping label size. * @example ```"4x7"``` */ shipping_label_size?: string | null; /** * The shipping label resolution. * @example ```"200"``` */ shipping_label_resolution?: string | null; /** * The tracking number associated to this parcel. * @example ```"1Z4V2A000000000000"``` */ tracking_number?: string | null; /** * The tracking status for this parcel, automatically updated in real time by the shipping carrier. * @example ```"delivered"``` */ tracking_status?: string | null; /** * Additional information about the tracking status, automatically updated in real time by the shipping carrier. * @example ```"arrived_at_destination"``` */ tracking_status_detail?: string | null; /** * Time at which the parcel's tracking status was last updated. * @example ```"2018-01-01T12:00:00.000Z"``` */ tracking_status_updated_at?: string | null; /** * The parcel's full tracking history, automatically updated in real time by the shipping carrier. * @example ```[{"object":"TrackingDetail","message":"Pre-Shipment information received","status":"pre_transit","datetime":"2018-02-27T16:02:17Z","source":"DHLExpress","tracking_location":{"object":"TrackingLocation"}}]``` */ tracking_details?: Array> | null; /** * The weight of the parcel as measured by the carrier in ounces (if available). * @example ```"42.32"``` */ carrier_weight_oz?: string | null; /** * The name of the person who signed for the parcel (if available). * @example ```"John Smith"``` */ signed_by?: string | null; /** * The type of Incoterm (if available). * @example ```"EXW"``` */ incoterm?: string | null; /** * The type of delivery confirmation option upon delivery. * @example ```"SIGNATURE"``` */ delivery_confirmation?: string | null; shipment?: Shipment | null; package?: Package | null; parcel_line_items?: ParcelLineItem[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ParcelCreate extends ResourceCreate { /** * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. * @example ```1000``` */ weight: number; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight: 'gr' | 'oz' | 'lb'; /** * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of "EEL" o "PFC". * @example ```"EEL"``` */ eel_pfc?: string | null; /** * The type of item you are sending. * @example ```"merchandise"``` */ contents_type?: string | null; /** * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. */ contents_explanation?: string | null; /** * Indicates if the provided information is accurate. */ customs_certify?: boolean | null; /** * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. * @example ```"John Doe"``` */ customs_signer?: string | null; /** * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. * @example ```"return"``` */ non_delivery_option?: string | null; /** * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. * @example ```"none"``` */ restriction_type?: string | null; /** * If you specify 'other' in the restriction type, you must supply a brief description of what is required. */ restriction_comments?: string | null; /** * Indicates if the parcel requires customs info to get the shipping rates. */ customs_info_required?: boolean | null; /** * The shipping label url, ready to be downloaded and printed. * @example ```"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf"``` */ shipping_label_url?: string | null; /** * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'. * @example ```"application/pdf"``` */ shipping_label_file_type?: string | null; /** * The shipping label size. * @example ```"4x7"``` */ shipping_label_size?: string | null; /** * The shipping label resolution. * @example ```"200"``` */ shipping_label_resolution?: string | null; /** * The tracking number associated to this parcel. * @example ```"1Z4V2A000000000000"``` */ tracking_number?: string | null; /** * The tracking status for this parcel, automatically updated in real time by the shipping carrier. * @example ```"delivered"``` */ tracking_status?: string | null; /** * Additional information about the tracking status, automatically updated in real time by the shipping carrier. * @example ```"arrived_at_destination"``` */ tracking_status_detail?: string | null; /** * Time at which the parcel's tracking status was last updated. * @example ```"2018-01-01T12:00:00.000Z"``` */ tracking_status_updated_at?: string | null; /** * The parcel's full tracking history, automatically updated in real time by the shipping carrier. * @example ```[{"object":"TrackingDetail","message":"Pre-Shipment information received","status":"pre_transit","datetime":"2018-02-27T16:02:17Z","source":"DHLExpress","tracking_location":{"object":"TrackingLocation"}}]``` */ tracking_details?: Array> | null; /** * The weight of the parcel as measured by the carrier in ounces (if available). * @example ```"42.32"``` */ carrier_weight_oz?: string | null; /** * The name of the person who signed for the parcel (if available). * @example ```"John Smith"``` */ signed_by?: string | null; /** * The type of Incoterm (if available). * @example ```"EXW"``` */ incoterm?: string | null; /** * The type of delivery confirmation option upon delivery. * @example ```"SIGNATURE"``` */ delivery_confirmation?: string | null; shipment: ShipmentRel$5; package: PackageRel$1; } interface ParcelUpdate extends ResourceUpdate { /** * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. * @example ```1000``` */ weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of "EEL" o "PFC". * @example ```"EEL"``` */ eel_pfc?: string | null; /** * The type of item you are sending. * @example ```"merchandise"``` */ contents_type?: string | null; /** * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. */ contents_explanation?: string | null; /** * Indicates if the provided information is accurate. */ customs_certify?: boolean | null; /** * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. * @example ```"John Doe"``` */ customs_signer?: string | null; /** * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. * @example ```"return"``` */ non_delivery_option?: string | null; /** * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. * @example ```"none"``` */ restriction_type?: string | null; /** * If you specify 'other' in the restriction type, you must supply a brief description of what is required. */ restriction_comments?: string | null; /** * Indicates if the parcel requires customs info to get the shipping rates. */ customs_info_required?: boolean | null; /** * The shipping label url, ready to be downloaded and printed. * @example ```"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf"``` */ shipping_label_url?: string | null; /** * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'. * @example ```"application/pdf"``` */ shipping_label_file_type?: string | null; /** * The shipping label size. * @example ```"4x7"``` */ shipping_label_size?: string | null; /** * The shipping label resolution. * @example ```"200"``` */ shipping_label_resolution?: string | null; /** * The tracking number associated to this parcel. * @example ```"1Z4V2A000000000000"``` */ tracking_number?: string | null; /** * The tracking status for this parcel, automatically updated in real time by the shipping carrier. * @example ```"delivered"``` */ tracking_status?: string | null; /** * Additional information about the tracking status, automatically updated in real time by the shipping carrier. * @example ```"arrived_at_destination"``` */ tracking_status_detail?: string | null; /** * Time at which the parcel's tracking status was last updated. * @example ```"2018-01-01T12:00:00.000Z"``` */ tracking_status_updated_at?: string | null; /** * The parcel's full tracking history, automatically updated in real time by the shipping carrier. * @example ```[{"object":"TrackingDetail","message":"Pre-Shipment information received","status":"pre_transit","datetime":"2018-02-27T16:02:17Z","source":"DHLExpress","tracking_location":{"object":"TrackingLocation"}}]``` */ tracking_details?: Array> | null; /** * The weight of the parcel as measured by the carrier in ounces (if available). * @example ```"42.32"``` */ carrier_weight_oz?: string | null; /** * The name of the person who signed for the parcel (if available). * @example ```"John Smith"``` */ signed_by?: string | null; /** * The type of Incoterm (if available). * @example ```"EXW"``` */ incoterm?: string | null; /** * The type of delivery confirmation option upon delivery. * @example ```"SIGNATURE"``` */ delivery_confirmation?: string | null; shipment?: ShipmentRel$5 | null; package?: PackageRel$1 | null; } declare class Parcels extends ApiResource { static readonly TYPE: ParcelType; create(resource: ParcelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ParcelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; package(parcelId: string | Parcel, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isParcel(resource: any): resource is Parcel; relationship(id: string | ResourceId | null): ParcelRel$1; relationshipToMany(...ids: string[]): ParcelRel$1[]; type(): ParcelType; } declare const instance$11: Parcels; type PickupType = 'pickups'; type PickupRel = ResourceRel & { type: PickupType; }; type PickupSort = Pick & ResourceSort; interface Pickup extends Resource { readonly type: PickupType; /** * The pick up status. * @example ```"unknown"``` */ status?: string | null; /** * The pick up service internal ID. * @example ```"pickup_13e5d7e2a7824432a07975bc553944bc"``` */ internal_id: string; shipment?: Shipment | null; parcels?: Parcel[] | null; events?: Event[] | null; event_stores?: EventStore[] | null; } declare class Pickups extends ApiResource { static readonly TYPE: PickupType; shipment(pickupId: string | Pickup, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; parcels(pickupId: string | Pickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(pickupId: string | Pickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(pickupId: string | Pickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPickup(resource: any): resource is Pickup; relationship(id: string | ResourceId | null): PickupRel; relationshipToMany(...ids: string[]): PickupRel[]; type(): PickupType; } declare const instance$10: Pickups; type StockTransferType = 'stock_transfers'; type StockTransferRel$1 = ResourceRel & { type: StockTransferType; }; type SkuRel$8 = ResourceRel & { type: SkuType; }; type StockLocationRel$4 = ResourceRel & { type: StockLocationType; }; type ShipmentRel$4 = ResourceRel & { type: ShipmentType; }; type LineItemRel$1 = ResourceRel & { type: LineItemType; }; type StockTransferSort = Pick & ResourceSort; interface StockTransfer extends Resource { readonly type: StockTransferType; /** * Unique identifier for the stock transfer (numeric). * @example ```"1234"``` */ number?: string | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'. * @example ```"draft"``` */ status: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'; /** * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability. * @example ```2``` */ quantity: number; /** * Time at which the stock transfer was put on hold. * @example ```"2018-01-01T12:00:00.000Z"``` */ on_hold_at?: string | null; /** * Time at which the stock transfer was picking. * @example ```"2018-01-01T12:00:00.000Z"``` */ picking_at?: string | null; /** * Time at which the stock transfer was in transit. * @example ```"2018-01-01T12:00:00.000Z"``` */ in_transit_at?: string | null; /** * Time at which the stock transfer was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the stock transfer was cancelled. * @example ```"2018-01-01T12:00:00.000Z"``` */ cancelled_at?: string | null; sku?: Sku | null; origin_stock_location?: StockLocation | null; destination_stock_location?: StockLocation | null; shipment?: Shipment | null; line_item?: LineItem | null; stock_reservation?: StockReservation | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StockTransferCreate extends ResourceCreate { /** * Unique identifier for the stock transfer (numeric). * @example ```"1234"``` */ number?: string | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability. * @example ```2``` */ quantity: number; sku: SkuRel$8; origin_stock_location: StockLocationRel$4; destination_stock_location: StockLocationRel$4; shipment?: ShipmentRel$4 | null; line_item?: LineItemRel$1 | null; } interface StockTransferUpdate extends ResourceUpdate { /** * Unique identifier for the stock transfer (numeric). * @example ```"1234"``` */ number?: string | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability. * @example ```2``` */ quantity?: number | null; /** * Send this attribute if you want to mark this stock transfer as upcoming. * @example ```true``` */ _upcoming?: boolean | null; /** * Send this attribute if you want to put this stock transfer on hold. * @example ```true``` */ _on_hold?: boolean | null; /** * Send this attribute if you want to start picking this stock transfer. * @example ```true``` */ _picking?: boolean | null; /** * Send this attribute if you want to mark this stock transfer as in transit. * @example ```true``` */ _in_transit?: boolean | null; /** * Send this attribute if you want to complete this stock transfer. * @example ```true``` */ _complete?: boolean | null; /** * Send this attribute if you want to cancel this stock transfer. * @example ```true``` */ _cancel?: boolean | null; sku?: SkuRel$8 | null; origin_stock_location?: StockLocationRel$4 | null; destination_stock_location?: StockLocationRel$4 | null; shipment?: ShipmentRel$4 | null; line_item?: LineItemRel$1 | null; } declare class StockTransfers extends ApiResource { static readonly TYPE: StockTransferType; create(resource: StockTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StockTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_reservation(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _picking(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _complete(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStockTransfer(resource: any): resource is StockTransfer; relationship(id: string | ResourceId | null): StockTransferRel$1; relationshipToMany(...ids: string[]): StockTransferRel$1[]; type(): StockTransferType; } declare const instance$$: StockTransfers; type ShipmentType = 'shipments'; type ShipmentRel$3 = ResourceRel & { type: ShipmentType; }; type OrderRel$9 = ResourceRel & { type: OrderType; }; type ShippingCategoryRel$2 = ResourceRel & { type: ShippingCategoryType; }; type InventoryStockLocationRel = ResourceRel & { type: InventoryStockLocationType; }; type AddressRel$3 = ResourceRel & { type: AddressType; }; type ShippingMethodRel$2 = ResourceRel & { type: ShippingMethodType; }; type TagRel$7 = ResourceRel & { type: TagType; }; type ShipmentSort = Pick & ResourceSort; interface Shipment extends Resource { readonly type: ShipmentType; /** * Unique identifier for the shipment. Cannot be passed by sales channels. * @example ```"#1234/S/001"``` */ number: string; /** * The shipment status. One of 'draft' (default), 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped', or 'delivered'. * @example ```"draft"``` */ status: 'draft' | 'upcoming' | 'cancelled' | 'on_hold' | 'picking' | 'packing' | 'ready_to_ship' | 'shipped' | 'delivered'; /** * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the associated order. * @example ```"EUR"``` */ currency_code?: string | null; /** * The cost of this shipment from the selected carrier account, in cents. * @example ```1000``` */ cost_amount_cents?: number | null; /** * The cost of this shipment from the selected carrier account, float. * @example ```10``` */ cost_amount_float?: number | null; /** * The cost of this shipment from the selected carrier account, formatted. * @example ```"€10,00"``` */ formatted_cost_amount?: string | null; /** * The total number of SKUs in the shipment's line items. This can be useful to display a preview of the shipment content. * @example ```2``` */ skus_count?: number | null; /** * The selected purchase rate from the available shipping rates. * @example ```"rate_f89e4663c3ed47ee94d37763f6d21d54"``` */ selected_rate_id?: string | null; /** * The available shipping rates. * @example ```[{"id":"rate_f89e4663c3ed47ee94d37763f6d21d54","rate":"45.59","carrier":"DHLExpress","service":"MedicalExpress"}]``` */ rates?: Array> | null; /** * The shipping rate purchase error code, if any. * @example ```"SHIPMENT.POSTAGE.FAILURE"``` */ purchase_error_code?: string | null; /** * The shipping rate purchase error message, if any. * @example ```"Account not allowed for this service."``` */ purchase_error_message?: string | null; /** * Any errors collected when fetching shipping rates. * @example ```[{"carrier":"DHLExpress","message":"to_address.postal_code: Shorter than minimum length 3","type":"rate_error"}]``` */ get_rates_errors?: Array> | null; /** * Time at which the getting of the shipping rates started. * @example ```"2018-01-01T12:00:00.000Z"``` */ get_rates_started_at?: string | null; /** * Time at which the getting of the shipping rates completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ get_rates_completed_at?: string | null; /** * Time at which the purchasing of the shipping rate started. * @example ```"2018-01-01T12:00:00.000Z"``` */ purchase_started_at?: string | null; /** * Time at which the purchasing of the shipping rate completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ purchase_completed_at?: string | null; /** * Time at which the purchasing of the shipping rate failed. * @example ```"2018-01-01T12:00:00.000Z"``` */ purchase_failed_at?: string | null; /** * Time at which the shipment was put on hold. * @example ```"2018-01-01T12:00:00.000Z"``` */ on_hold_at?: string | null; /** * Time at which the shipment was picking. * @example ```"2018-01-01T12:00:00.000Z"``` */ picking_at?: string | null; /** * Time at which the shipment was packing. * @example ```"2018-01-01T12:00:00.000Z"``` */ packing_at?: string | null; /** * Time at which the shipment was ready to ship. * @example ```"2018-01-01T12:00:00.000Z"``` */ ready_to_ship_at?: string | null; /** * Time at which the shipment was shipped. * @example ```"2018-01-01T12:00:00.000Z"``` */ shipped_at?: string | null; /** * Time at which the shipment was delivered. * @example ```"2018-01-01T12:00:00.000Z"``` */ delivered_at?: string | null; order?: Order | null; shipping_category?: ShippingCategory | null; inventory_stock_location?: InventoryStockLocation | null; stock_location?: StockLocation | null; origin_address?: Address | null; shipping_address?: Address | null; shipping_method?: ShippingMethod | null; delivery_lead_time?: DeliveryLeadTime | null; pickup?: Pickup | null; stock_line_items?: StockLineItem[] | null; stock_transfers?: StockTransfer[] | null; line_items?: LineItem[] | null; available_shipping_methods?: ShippingMethod[] | null; carrier_accounts?: CarrierAccount[] | null; parcels?: Parcel[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ShipmentCreate extends ResourceCreate { order: OrderRel$9; shipping_category?: ShippingCategoryRel$2 | null; inventory_stock_location: InventoryStockLocationRel; shipping_address?: AddressRel$3 | null; shipping_method?: ShippingMethodRel$2 | null; tags?: TagRel$7[] | null; } interface ShipmentUpdate extends ResourceUpdate { /** * Unique identifier for the shipment. Cannot be passed by sales channels. * @example ```"#1234/S/001"``` */ number?: string | null; /** * Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels. * @example ```true``` */ _upcoming?: boolean | null; /** * Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels. * @example ```true``` */ _cancel?: boolean | null; /** * Send this attribute if you want to put this shipment on hold. * @example ```true``` */ _on_hold?: boolean | null; /** * Send this attribute if you want to start picking this shipment. * @example ```true``` */ _picking?: boolean | null; /** * Send this attribute if you want to start packing this shipment. * @example ```true``` */ _packing?: boolean | null; /** * Send this attribute if you want to mark this shipment as ready to ship. * @example ```true``` */ _ready_to_ship?: boolean | null; /** * Send this attribute if you want to mark this shipment as shipped. * @example ```true``` */ _ship?: boolean | null; /** * Send this attribute if you want to mark this shipment as delivered. * @example ```true``` */ _deliver?: boolean | null; /** * Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _reserve_stock?: boolean | null; /** * Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _release_stock?: boolean | null; /** * Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. * @example ```true``` */ _decrement_stock?: boolean | null; /** * Send this attribute if you want get the shipping rates from the associated carrier accounts. * @example ```true``` */ _get_rates?: boolean | null; /** * The selected purchase rate from the available shipping rates. * @example ```"rate_f89e4663c3ed47ee94d37763f6d21d54"``` */ selected_rate_id?: string | null; /** * Send this attribute if you want to purchase this shipment with the selected rate. * @example ```true``` */ _purchase?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; shipping_category?: ShippingCategoryRel$2 | null; inventory_stock_location?: InventoryStockLocationRel | null; shipping_address?: AddressRel$3 | null; shipping_method?: ShippingMethodRel$2 | null; tags?: TagRel$7[] | null; } declare class Shipments extends ApiResource { static readonly TYPE: ShipmentType; create(resource: ShipmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ShipmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_category(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; inventory_stock_location(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_location(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; origin_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; shipping_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; shipping_method(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delivery_lead_time(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; pickup(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_line_items(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_transfers(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; line_items(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; available_shipping_methods(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; carrier_accounts(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; parcels(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _upcoming(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _on_hold(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _picking(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _packing(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _ready_to_ship(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _ship(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _deliver(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reserve_stock(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _release_stock(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _decrement_stock(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _get_rates(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _purchase(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | Shipment, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Shipment, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isShipment(resource: any): resource is Shipment; relationship(id: string | ResourceId | null): ShipmentRel$3; relationshipToMany(...ids: string[]): ShipmentRel$3[]; type(): ShipmentType; } declare const instance$_: Shipments; type LineItemType = 'line_items'; type LineItemRel = ResourceRel & { type: LineItemType; }; type OrderRel$8 = ResourceRel & { type: OrderType; }; type SkuRel$7 = ResourceRel & { type: SkuType; }; type BundleRel$3 = ResourceRel & { type: BundleType; }; type GiftCardRel$1 = ResourceRel & { type: GiftCardType; }; type ShipmentRel$2 = ResourceRel & { type: ShipmentType; }; type PaymentMethodRel$5 = ResourceRel & { type: PaymentMethodType; }; type AdjustmentRel$1 = ResourceRel & { type: AdjustmentType; }; type DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType; }; type PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType; }; type FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType; }; type BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType; }; type FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType; }; type FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType; }; type ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType; }; type FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType; }; type FlexPromotionRel = ResourceRel & { type: FlexPromotionType; }; type TagRel$6 = ResourceRel & { type: TagType; }; type LineItemSort = Pick & ResourceSort; interface LineItem extends Resource { readonly type: LineItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity: number; /** * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. * @example ```true``` */ _external_price?: boolean | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. * @example ```"EUR"``` */ currency_code?: string | null; /** * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels. * @example ```10000``` */ unit_amount_cents?: number | null; /** * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```100``` */ unit_amount_float?: number | null; /** * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views. * @example ```"€100,00"``` */ formatted_unit_amount?: string | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The compared price amount, float. * @example ```130``` */ compare_at_amount_float?: number | null; /** * The compared price amount, formatted. * @example ```"€130,00"``` */ formatted_compare_at_amount?: string | null; /** * The options amount of the line item, in cents. Cannot be passed by sales channels. * @example ```1000``` */ options_amount_cents?: number | null; /** * The options amount of the line item, float. * @example ```10``` */ options_amount_float?: number | null; /** * The options amount of the line item, formatted. * @example ```"€10,00"``` */ formatted_options_amount?: string | null; /** * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value. * @example ```-1000``` */ discount_cents?: number | null; /** * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value. * @example ```10``` */ discount_float?: number | null; /** * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value. * @example ```"€10,00"``` */ formatted_discount?: string | null; /** * Calculated as unit amount x quantity + options amount, in cents. * @example ```18800``` */ total_amount_cents?: number | null; /** * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```188``` */ total_amount_float: number; /** * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views. * @example ```"€188,00"``` */ formatted_total_amount?: string | null; /** * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents. * @example ```1880``` */ tax_amount_cents?: number | null; /** * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float. * @example ```18.8``` */ tax_amount_float: number; /** * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted. * @example ```"€18,80"``` */ formatted_tax_amount?: string | null; /** * The name of the line item. When blank, it gets populated with the name of the associated item (if present). * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The discount breakdown for this line item (if calculated). * @example ```{"41":{"name":"10% ALL","cents":-900,"weight":0.416,"coupon_code":"XXXXXXXX"}}``` */ discount_breakdown?: Record | null; /** * The tax rate for this line item (if calculated). * @example ```0.22``` */ tax_rate?: number | null; /** * The tax breakdown for this line item (if calculated). * @example ```{"id":"1234","city_amount":"0.0","state_amount":6.6,"city_tax_rate":0,"county_amount":2.78,"taxable_amount":139,"county_tax_rate":0.02,"tax_collectable":10.08,"special_tax_rate":0.005,"combined_tax_rate":0.0725,"city_taxable_amount":0,"state_sales_tax_rate":0.0475,"state_taxable_amount":139,"county_taxable_amount":139,"special_district_amount":0.7,"special_district_taxable_amount":139}``` */ tax_breakdown?: Record | null; /** * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. * @example ```"skus"``` */ item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null; /** * The frequency which generates a subscription. Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency?: string | null; /** * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon. * @example ```"SUMMERDISCOUNT"``` */ coupon_code?: string | null; /** * The rule outcomes. * @example ```[]``` */ rule_outcomes?: Record | null; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; order?: Order | null; item?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null; sku?: Sku | null; bundle?: Bundle | null; adjustment?: Adjustment | null; gift_card?: GiftCard | null; shipment?: Shipment | null; payment_method?: PaymentMethod | null; line_item_options?: LineItemOption[] | null; return_line_items?: ReturnLineItem[] | null; stock_reservations?: StockReservation[] | null; stock_line_items?: StockLineItem[] | null; stock_transfers?: StockTransfer[] | null; notifications?: Notification[] | null; events?: Event[] | null; tags?: Tag[] | null; event_stores?: EventStore[] | null; } interface LineItemCreate extends ResourceCreate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity: number; /** * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. * @example ```true``` */ _external_price?: boolean | null; /** * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU. * @example ```true``` */ _update_quantity?: boolean | null; /** * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. * @example ```true``` */ _reserve_stock?: boolean | null; /** * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels. * @example ```true``` */ _reset_restocked_quantity?: boolean | null; /** * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels. * @example ```10000``` */ unit_amount_cents?: number | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The name of the line item. When blank, it gets populated with the name of the associated item (if present). * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. * @example ```"skus"``` */ item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null; /** * The frequency which generates a subscription. Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency?: string | null; order: OrderRel$8; item?: SkuRel$7 | BundleRel$3 | GiftCardRel$1 | ShipmentRel$2 | PaymentMethodRel$5 | AdjustmentRel$1 | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null; tags?: TagRel$6[] | null; } interface LineItemUpdate extends ResourceUpdate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The line item quantity. * @example ```4``` */ quantity?: number | null; /** * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. * @example ```true``` */ _external_price?: boolean | null; /** * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. * @example ```true``` */ _reserve_stock?: boolean | null; /** * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels. * @example ```true``` */ _reset_restocked_quantity?: boolean | null; /** * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels. * @example ```10000``` */ unit_amount_cents?: number | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The options amount of the line item, in cents. Cannot be passed by sales channels. * @example ```1000``` */ options_amount_cents?: number | null; /** * The name of the line item. When blank, it gets populated with the name of the associated item (if present). * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The frequency which generates a subscription. Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency?: string | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; tags?: TagRel$6[] | null; } declare class LineItems extends ApiResource { static readonly TYPE: LineItemType; create(resource: LineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: LineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(lineItemId: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; line_item_options(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; return_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; notifications(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _external_price(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isLineItem(resource: any): resource is LineItem; relationship(id: string | ResourceId | null): LineItemRel; relationshipToMany(...ids: string[]): LineItemRel[]; type(): LineItemType; } declare const instance$Z: LineItems; type StockReservationType = 'stock_reservations'; type StockReservationRel = ResourceRel & { type: StockReservationType; }; type StockItemRel$2 = ResourceRel & { type: StockItemType; }; type StockReservationSort = Pick & ResourceSort; interface StockReservation extends Resource { readonly type: StockReservationType; /** * The stock reservation status. One of 'draft' (default), or 'pending'. * @example ```"draft"``` */ status: 'draft' | 'pending'; /** * The stock reservation quantity. * @example ```4``` */ quantity: number; /** * The expiration date/time of this stock reservation. * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; line_item?: LineItem | null; order?: Order | null; stock_line_item?: StockLineItem | null; stock_transfer?: StockTransfer | null; stock_item?: StockItem | null; reserved_stock?: ReservedStock | null; sku?: Sku | null; event_stores?: EventStore[] | null; } interface StockReservationCreate extends ResourceCreate { /** * The stock reservation quantity. * @example ```4``` */ quantity: number; stock_item: StockItemRel$2; } interface StockReservationUpdate extends ResourceUpdate { /** * The stock reservation quantity. * @example ```4``` */ quantity?: number | null; /** * Send this attribute if you want to mark this stock reservation as pending. * @example ```true``` */ _pending?: boolean | null; } declare class StockReservations extends ApiResource { static readonly TYPE: StockReservationType; create(resource: StockReservationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StockReservationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_transfer(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; reserved_stock(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(stockReservationId: string | StockReservation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _pending(id: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStockReservation(resource: any): resource is StockReservation; relationship(id: string | ResourceId | null): StockReservationRel; relationshipToMany(...ids: string[]): StockReservationRel[]; type(): StockReservationType; } declare const instance$Y: StockReservations; type ReservedStockType = 'reserved_stocks'; type ReservedStockRel = ResourceRel & { type: ReservedStockType; }; type ReservedStockSort = Pick & ResourceSort; interface ReservedStock extends Resource { readonly type: ReservedStockType; /** * The stock item reserved quantity. * @example ```100``` */ quantity: number; stock_item?: StockItem | null; sku?: Sku | null; stock_reservations?: StockReservation[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class ReservedStocks extends ApiResource { static readonly TYPE: ReservedStockType; stock_item(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_reservations(reservedStockId: string | ReservedStock, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(reservedStockId: string | ReservedStock, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(reservedStockId: string | ReservedStock, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isReservedStock(resource: any): resource is ReservedStock; relationship(id: string | ResourceId | null): ReservedStockRel; relationshipToMany(...ids: string[]): ReservedStockRel[]; type(): ReservedStockType; } declare const instance$X: ReservedStocks; type StockItemType = 'stock_items'; type StockItemRel$1 = ResourceRel & { type: StockItemType; }; type StockLocationRel$3 = ResourceRel & { type: StockLocationType; }; type SkuRel$6 = ResourceRel & { type: SkuType; }; type StockItemSort = Pick & ResourceSort; interface StockItem extends Resource { readonly type: StockItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock item quantity. * @example ```100``` */ quantity: number; stock_location?: StockLocation | null; sku?: Sku | null; reserved_stock?: ReservedStock | null; stock_reservations?: StockReservation[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StockItemCreate extends ResourceCreate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock item quantity. * @example ```100``` */ quantity: number; stock_location: StockLocationRel$3; sku?: SkuRel$6 | null; } interface StockItemUpdate extends ResourceUpdate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The stock item quantity. * @example ```100``` */ quantity?: number | null; /** * Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller. Cannot be passed by sales channels. * @example ```true``` */ _validate?: boolean | null; stock_location?: StockLocationRel$3 | null; sku?: SkuRel$6 | null; } declare class StockItems extends ApiResource { static readonly TYPE: StockItemType; create(resource: StockItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StockItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; stock_location(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; reserved_stock(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_reservations(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _validate(id: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStockItem(resource: any): resource is StockItem; relationship(id: string | ResourceId | null): StockItemRel$1; relationshipToMany(...ids: string[]): StockItemRel$1[]; type(): StockItemType; } declare const instance$W: StockItems; type StockLocationType = 'stock_locations'; type StockLocationRel$2 = ResourceRel & { type: StockLocationType; }; type AddressRel$2 = ResourceRel & { type: AddressType; }; type StockLocationSort = Pick & ResourceSort; interface StockLocation extends Resource { readonly type: StockLocationType; /** * Unique identifier for the stock location (numeric). * @example ```1234``` */ number?: number | null; /** * The stock location's internal name. * @example ```"Primary warehouse"``` */ name: string; /** * A string that you can use to identify the stock location (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. * @example ```"PDF"``` */ label_format?: string | null; /** * Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. */ suppress_etd?: boolean | null; address?: Address | null; inventory_stock_locations?: InventoryStockLocation[] | null; inventory_return_locations?: InventoryReturnLocation[] | null; stock_items?: StockItem[] | null; stock_transfers?: StockTransfer[] | null; stores?: Store[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StockLocationCreate extends ResourceCreate { /** * The stock location's internal name. * @example ```"Primary warehouse"``` */ name: string; /** * A string that you can use to identify the stock location (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. * @example ```"PDF"``` */ label_format?: string | null; /** * Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. */ suppress_etd?: boolean | null; address: AddressRel$2; } interface StockLocationUpdate extends ResourceUpdate { /** * The stock location's internal name. * @example ```"Primary warehouse"``` */ name?: string | null; /** * A string that you can use to identify the stock location (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. * @example ```"PDF"``` */ label_format?: string | null; /** * Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. */ suppress_etd?: boolean | null; address?: AddressRel$2 | null; } declare class StockLocations extends ApiResource { static readonly TYPE: StockLocationType; create(resource: StockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; address(stockLocationId: string | StockLocation, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; inventory_stock_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; inventory_return_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_items(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_transfers(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stores(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isStockLocation(resource: any): resource is StockLocation; relationship(id: string | ResourceId | null): StockLocationRel$2; relationshipToMany(...ids: string[]): StockLocationRel$2[]; type(): StockLocationType; } declare const instance$V: StockLocations; type StoreType = 'stores'; type StoreRel$2 = ResourceRel & { type: StoreType; }; type MarketRel$8 = ResourceRel & { type: MarketType; }; type MerchantRel$2 = ResourceRel & { type: MerchantType; }; type StockLocationRel$1 = ResourceRel & { type: StockLocationType; }; type StoreSort = Pick & ResourceSort; interface Store extends Resource { readonly type: StoreType; /** * The store's internal name. * @example ```"Rome Shop"``` */ name: string; /** * A string that you can use to identify the store (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; market?: Market | null; merchant?: Merchant | null; stock_location?: StockLocation | null; orders?: Order[] | null; payment_methods?: PaymentMethod[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface StoreCreate extends ResourceCreate { /** * The store's internal name. * @example ```"Rome Shop"``` */ name: string; /** * A string that you can use to identify the store (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; market: MarketRel$8; merchant?: MerchantRel$2 | null; stock_location?: StockLocationRel$1 | null; } interface StoreUpdate extends ResourceUpdate { /** * The store's internal name. * @example ```"Rome Shop"``` */ name?: string | null; /** * A string that you can use to identify the store (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; market?: MarketRel$8 | null; merchant?: MerchantRel$2 | null; stock_location?: StockLocationRel$1 | null; } declare class Stores extends ApiResource { static readonly TYPE: StoreType; create(resource: StoreCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StoreUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(storeId: string | Store, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; merchant(storeId: string | Store, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stock_location(storeId: string | Store, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; orders(storeId: string | Store, params?: QueryParamsList, options?: ResourcesConfig): Promise>; payment_methods(storeId: string | Store, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(storeId: string | Store, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(storeId: string | Store, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(storeId: string | Store, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isStore(resource: any): resource is Store; relationship(id: string | ResourceId | null): StoreRel$2; relationshipToMany(...ids: string[]): StoreRel$2[]; type(): StoreType; } declare const instance$U: Stores; type PaymentMethodType = 'payment_methods'; type PaymentMethodRel$4 = ResourceRel & { type: PaymentMethodType; }; type MarketRel$7 = ResourceRel & { type: MarketType; }; type PaymentGatewayRel$1 = ResourceRel & { type: PaymentGatewayType; }; type StoreRel$1 = ResourceRel & { type: StoreType; }; type PaymentMethodSort = Pick & ResourceSort; interface PaymentMethod extends Resource { readonly type: PaymentMethodType; /** * The payment method's internal name. * @example ```"Stripe Payment"``` */ name?: string | null; /** * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. * @example ```"stripe_payments"``` */ payment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. */ moto?: boolean | null; /** * Send this attribute if you want to require the payment capture before fulfillment. * @example ```true``` */ require_capture?: boolean | null; /** * Send this attribute if you want to automatically place the order upon authorization performed asynchronously. * @example ```true``` */ auto_place?: boolean | null; /** * Send this attribute if you want to automatically capture the payment upon authorization. */ auto_capture?: boolean | null; /** * The payment method's price, in cents. */ price_amount_cents: number; /** * The payment method's price, float. */ price_amount_float?: number | null; /** * The payment method's price, formatted. * @example ```"€0,00"``` */ formatted_price_amount?: string | null; /** * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. */ auto_capture_max_amount_cents?: number | null; /** * The automatic capture max amount, float. */ auto_capture_max_amount_float?: number | null; /** * The automatic capture max amount, formatted. * @example ```"€0,00"``` */ formatted_auto_capture_max_amount?: string | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; market?: Market | null; payment_gateway?: PaymentGateway | null; store?: Store | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface PaymentMethodCreate extends ResourceCreate { /** * The payment method's internal name. * @example ```"Stripe Payment"``` */ name?: string | null; /** * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. * @example ```"stripe_payments"``` */ payment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. */ moto?: boolean | null; /** * Send this attribute if you want to require the payment capture before fulfillment. * @example ```true``` */ require_capture?: boolean | null; /** * Send this attribute if you want to automatically place the order upon authorization performed asynchronously. * @example ```true``` */ auto_place?: boolean | null; /** * Send this attribute if you want to automatically capture the payment upon authorization. */ auto_capture?: boolean | null; /** * The payment method's price, in cents. */ price_amount_cents: number; /** * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. */ auto_capture_max_amount_cents?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; market?: MarketRel$7 | null; payment_gateway: PaymentGatewayRel$1; store?: StoreRel$1 | null; } interface PaymentMethodUpdate extends ResourceUpdate { /** * The payment method's internal name. * @example ```"Stripe Payment"``` */ name?: string | null; /** * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. * @example ```"stripe_payments"``` */ payment_source_type?: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers' | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. */ moto?: boolean | null; /** * Send this attribute if you want to require the payment capture before fulfillment. * @example ```true``` */ require_capture?: boolean | null; /** * Send this attribute if you want to automatically place the order upon authorization performed asynchronously. * @example ```true``` */ auto_place?: boolean | null; /** * Send this attribute if you want to automatically capture the payment upon authorization. */ auto_capture?: boolean | null; /** * The payment method's price, in cents. */ price_amount_cents?: number | null; /** * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. */ auto_capture_max_amount_cents?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; market?: MarketRel$7 | null; payment_gateway?: PaymentGatewayRel$1 | null; store?: StoreRel$1 | null; } declare class PaymentMethods extends ApiResource { static readonly TYPE: PaymentMethodType; create(resource: PaymentMethodCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isPaymentMethod(resource: any): resource is PaymentMethod; relationship(id: string | ResourceId | null): PaymentMethodRel$4; relationshipToMany(...ids: string[]): PaymentMethodRel$4[]; type(): PaymentMethodType; } declare const instance$T: PaymentMethods; type PaymentGatewayType = 'payment_gateways'; type PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType; }; type PaymentGatewaySort = Pick & ResourceSort; interface PaymentGateway extends Resource { readonly type: PaymentGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class PaymentGateways extends ApiResource { static readonly TYPE: PaymentGatewayType; payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPaymentGateway(resource: any): resource is PaymentGateway; relationship(id: string | ResourceId | null): PaymentGatewayRel; relationshipToMany(...ids: string[]): PaymentGatewayRel[]; type(): PaymentGatewayType; } declare const instance$S: PaymentGateways; type AxervePaymentType = 'axerve_payments'; type AxervePaymentRel$3 = ResourceRel & { type: AxervePaymentType; }; type OrderRel$7 = ResourceRel & { type: OrderType; }; type AxervePaymentSort = Pick & ResourceSort; interface AxervePayment extends Resource { readonly type: AxervePaymentType; /** * The merchant login code. * @example ```"xxxx-yyyy-zzzz"``` */ login: string; /** * The URL where the payer is redirected after they approve the payment. * @example ```"https://yourdomain.com/thankyou"``` */ return_url: string; /** * The Axerve payment request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_data?: Record | null; /** * The IP adress of the client creating the payment. * @example ```"213.45.120.5"``` */ client_ip?: string | null; /** * The details of the buyer creating the payment. * @example ```{"cardHolder":{"email":"george.harrison@gmail.com"},"shippingAddress":{"firstName":"George"}}``` */ buyer_details?: Record | null; /** * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. * @example ```true``` */ request_token?: boolean | null; /** * Indicates if the order current amount differs form the one of the associated authorization. */ mismatched_amounts?: boolean | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface AxervePaymentCreate extends ResourceCreate { /** * The URL where the payer is redirected after they approve the payment. * @example ```"https://yourdomain.com/thankyou"``` */ return_url: string; /** * The IP adress of the client creating the payment. * @example ```"213.45.120.5"``` */ client_ip?: string | null; /** * The details of the buyer creating the payment. * @example ```{"cardHolder":{"email":"george.harrison@gmail.com"},"shippingAddress":{"firstName":"George"}}``` */ buyer_details?: Record | null; /** * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. * @example ```true``` */ request_token?: boolean | null; order: OrderRel$7; } interface AxervePaymentUpdate extends ResourceUpdate { /** * The Axerve payment request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_data?: Record | null; /** * Send this attribute if you want to update the payment with fresh order data. * @example ```true``` */ _update?: boolean | null; order?: OrderRel$7 | null; } declare class AxervePayments extends ApiResource { static readonly TYPE: AxervePaymentType; create(resource: AxervePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AxervePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(axervePaymentId: string | AxervePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(axervePaymentId: string | AxervePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _update(id: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isAxervePayment(resource: any): resource is AxervePayment; relationship(id: string | ResourceId | null): AxervePaymentRel$3; relationshipToMany(...ids: string[]): AxervePaymentRel$3[]; type(): AxervePaymentType; } declare const instance$R: AxervePayments; type CustomerPaymentSourceType = 'customer_payment_sources'; type CustomerPaymentSourceRel$1 = ResourceRel & { type: CustomerPaymentSourceType; }; type CustomerRel$4 = ResourceRel & { type: CustomerType; }; type PaymentMethodRel$3 = ResourceRel & { type: PaymentMethodType; }; type AdyenPaymentRel$3 = ResourceRel & { type: AdyenPaymentType; }; type AxervePaymentRel$2 = ResourceRel & { type: AxervePaymentType; }; type BraintreePaymentRel$2 = ResourceRel & { type: BraintreePaymentType; }; type CheckoutComPaymentRel$2 = ResourceRel & { type: CheckoutComPaymentType; }; type ExternalPaymentRel$1 = ResourceRel & { type: ExternalPaymentType; }; type KlarnaPaymentRel$2 = ResourceRel & { type: KlarnaPaymentType; }; type PaypalPaymentRel$1 = ResourceRel & { type: PaypalPaymentType; }; type SatispayPaymentRel$2 = ResourceRel & { type: SatispayPaymentType; }; type StripePaymentRel$1 = ResourceRel & { type: StripePaymentType; }; type WireTransferRel$1 = ResourceRel & { type: WireTransferType; }; type CustomerPaymentSourceSort = Pick & ResourceSort; interface CustomerPaymentSource extends Resource { readonly type: CustomerPaymentSourceType; /** * Returns the associated payment source's name. * @example ```"XXXX-XXXX-XXXX-1111"``` */ name?: string | null; /** * Returns the customer gateway token stored in the gateway. * @example ```"cus_xxxyyyzzz"``` */ customer_token?: string | null; /** * Returns the payment source token stored in the gateway. * @example ```"pm_xxxyyyzzz"``` */ payment_source_token?: string | null; customer?: Customer | null; payment_method?: PaymentMethod | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CustomerPaymentSourceCreate extends ResourceCreate { /** * Returns the customer gateway token stored in the gateway. * @example ```"cus_xxxyyyzzz"``` */ customer_token?: string | null; /** * Returns the payment source token stored in the gateway. * @example ```"pm_xxxyyyzzz"``` */ payment_source_token?: string | null; customer: CustomerRel$4; payment_method?: PaymentMethodRel$3 | null; payment_source?: AdyenPaymentRel$3 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null; } interface CustomerPaymentSourceUpdate extends ResourceUpdate { /** * Returns the customer gateway token stored in the gateway. * @example ```"cus_xxxyyyzzz"``` */ customer_token?: string | null; /** * Returns the payment source token stored in the gateway. * @example ```"pm_xxxyyyzzz"``` */ payment_source_token?: string | null; customer?: CustomerRel$4 | null; payment_method?: PaymentMethodRel$3 | null; payment_source?: AdyenPaymentRel$3 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null; } declare class CustomerPaymentSources extends ApiResource { static readonly TYPE: CustomerPaymentSourceType; create(resource: CustomerPaymentSourceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerPaymentSourceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_method(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCustomerPaymentSource(resource: any): resource is CustomerPaymentSource; relationship(id: string | ResourceId | null): CustomerPaymentSourceRel$1; relationshipToMany(...ids: string[]): CustomerPaymentSourceRel$1[]; type(): CustomerPaymentSourceType; } declare const instance$Q: CustomerPaymentSources; type CustomerSubscriptionType = 'customer_subscriptions'; type CustomerSubscriptionRel = ResourceRel & { type: CustomerSubscriptionType; }; type CustomerSubscriptionSort = Pick & ResourceSort; interface CustomerSubscription extends Resource { readonly type: CustomerSubscriptionType; /** * The email of the customer that owns the subscription. * @example ```"john@example.com"``` */ customer_email: string; customer?: Customer | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CustomerSubscriptionCreate extends ResourceCreate { /** * The email of the customer that owns the subscription. * @example ```"john@example.com"``` */ customer_email: string; } type CustomerSubscriptionUpdate = ResourceUpdate; declare class CustomerSubscriptions extends ApiResource { static readonly TYPE: CustomerSubscriptionType; create(resource: CustomerSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isCustomerSubscription(resource: any): resource is CustomerSubscription; relationship(id: string | ResourceId | null): CustomerSubscriptionRel; relationshipToMany(...ids: string[]): CustomerSubscriptionRel[]; type(): CustomerSubscriptionType; } declare const instance$P: CustomerSubscriptions; type OrderFactoryType = 'order_factories'; type OrderFactoryRel = ResourceRel & { type: OrderFactoryType; }; type OrderFactorySort = Pick & ResourceSort; interface OrderFactory extends Resource { readonly type: OrderFactoryType; /** * The order factory status. One of 'pending' (default), 'in_progress', 'aborted', 'failed', or 'completed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'aborted' | 'failed' | 'completed'; /** * Time at which the order copy was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the order copy was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the order copy has failed. * @example ```"2018-01-01T12:00:00.000Z"``` */ failed_at?: string | null; /** * Contains the order copy errors, if any. * @example ```{"status":["cannot transition from draft to placed"]}``` */ errors_log?: Record | null; /** * Indicates the number of copy errors, if any. * @example ```2``` */ errors_count?: number | null; /** * Indicates if the target order must be placed upon copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates if the payment source within the source order customer's wallet must be copied. * @example ```true``` */ reuse_wallet?: boolean | null; source_order?: Order | null; target_order?: Order | null; events?: Event[] | null; event_stores?: EventStore[] | null; } declare class OrderFactories extends ApiResource { static readonly TYPE: OrderFactoryType; source_order(orderFactoryId: string | OrderFactory, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; target_order(orderFactoryId: string | OrderFactory, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(orderFactoryId: string | OrderFactory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(orderFactoryId: string | OrderFactory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isOrderFactory(resource: any): resource is OrderFactory; relationship(id: string | ResourceId | null): OrderFactoryRel; relationshipToMany(...ids: string[]): OrderFactoryRel[]; type(): OrderFactoryType; } declare const instance$O: OrderFactories; type OrderSubscriptionItemType = 'order_subscription_items'; type OrderSubscriptionItemRel = ResourceRel & { type: OrderSubscriptionItemType; }; type OrderSubscriptionRel$2 = ResourceRel & { type: OrderSubscriptionType; }; type SkuRel$5 = ResourceRel & { type: SkuType; }; type BundleRel$2 = ResourceRel & { type: BundleType; }; type AdjustmentRel = ResourceRel & { type: AdjustmentType; }; type OrderSubscriptionItemSort = Pick & ResourceSort; interface OrderSubscriptionItem extends Resource { readonly type: OrderSubscriptionItemType; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The subscription item quantity. * @example ```4``` */ quantity: number; /** * The unit amount of the subscription item, in cents. * @example ```9900``` */ unit_amount_cents?: number | null; /** * The unit amount of the subscription item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```99``` */ unit_amount_float?: number | null; /** * The unit amount of the subscription item, formatted. This can be useful to display the amount with currency in you views. * @example ```"€99,00"``` */ formatted_unit_amount?: string | null; /** * Calculated as unit amount x quantity amount, in cents. * @example ```18800``` */ total_amount_cents?: number | null; /** * Calculated as unit amount x quantity amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. * @example ```188``` */ total_amount_float: number; /** * Calculated as unit amount x quantity amount, formatted. This can be useful to display the amount with currency in you views. * @example ```"€188,00"``` */ formatted_total_amount?: string | null; order_subscription?: OrderSubscription | null; item?: Sku | Bundle | Adjustment | null; sku?: Sku | null; bundle?: Bundle | null; adjustment?: Adjustment | null; source_line_item?: LineItem | null; event_stores?: EventStore[] | null; } interface OrderSubscriptionItemCreate extends ResourceCreate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The subscription item quantity. * @example ```4``` */ quantity: number; /** * The unit amount of the subscription item, in cents. * @example ```9900``` */ unit_amount_cents?: number | null; order_subscription: OrderSubscriptionRel$2; item: SkuRel$5 | BundleRel$2 | AdjustmentRel; sku?: SkuRel$5 | null; bundle?: BundleRel$2 | null; adjustment?: AdjustmentRel | null; } interface OrderSubscriptionItemUpdate extends ResourceUpdate { /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The code of the associated bundle. * @example ```"BUNDLEMM000000FFFFFFXLXX"``` */ bundle_code?: string | null; /** * The subscription item quantity. * @example ```4``` */ quantity?: number | null; /** * The unit amount of the subscription item, in cents. * @example ```9900``` */ unit_amount_cents?: number | null; } declare class OrderSubscriptionItems extends ApiResource { static readonly TYPE: OrderSubscriptionItemType; create(resource: OrderSubscriptionItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: OrderSubscriptionItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order_subscription(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; event_stores(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem; relationship(id: string | ResourceId | null): OrderSubscriptionItemRel; relationshipToMany(...ids: string[]): OrderSubscriptionItemRel[]; type(): OrderSubscriptionItemType; } declare const instance$N: OrderSubscriptionItems; type RecurringOrderCopyType = 'recurring_order_copies'; type RecurringOrderCopyRel = ResourceRel & { type: RecurringOrderCopyType; }; type OrderRel$6 = ResourceRel & { type: OrderType; }; type OrderSubscriptionRel$1 = ResourceRel & { type: OrderSubscriptionType; }; type RecurringOrderCopySort = Pick & ResourceSort; interface RecurringOrderCopy extends Resource { readonly type: RecurringOrderCopyType; /** * The order factory status. One of 'pending' (default), 'in_progress', 'aborted', 'failed', or 'completed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'aborted' | 'failed' | 'completed'; /** * Time at which the order copy was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the order copy was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the order copy has failed. * @example ```"2018-01-01T12:00:00.000Z"``` */ failed_at?: string | null; /** * Contains the order copy errors, if any. * @example ```{"status":["cannot transition from draft to placed"]}``` */ errors_log?: Record | null; /** * Indicates the number of copy errors, if any. * @example ```2``` */ errors_count?: number | null; /** * Indicates if the target order must be placed upon copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates if the payment source within the source order customer's wallet must be copied. * @example ```true``` */ reuse_wallet?: boolean | null; source_order?: Order | null; target_order?: Order | null; events?: Event[] | null; event_stores?: EventStore[] | null; order_subscription?: OrderSubscription | null; } interface RecurringOrderCopyCreate extends ResourceCreate { /** * Indicates if the target order must be placed upon copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates if the payment source within the source order customer's wallet must be copied. * @example ```true``` */ reuse_wallet?: boolean | null; source_order: OrderRel$6; order_subscription: OrderSubscriptionRel$1; } type RecurringOrderCopyUpdate = ResourceUpdate; declare class RecurringOrderCopies extends ApiResource { static readonly TYPE: RecurringOrderCopyType; create(resource: RecurringOrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: RecurringOrderCopyUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; source_order(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; target_order(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_subscription(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isRecurringOrderCopy(resource: any): resource is RecurringOrderCopy; relationship(id: string | ResourceId | null): RecurringOrderCopyRel; relationshipToMany(...ids: string[]): RecurringOrderCopyRel[]; type(): RecurringOrderCopyType; } declare const instance$M: RecurringOrderCopies; type SubscriptionModelType = 'subscription_models'; type SubscriptionModelRel$2 = ResourceRel & { type: SubscriptionModelType; }; type SubscriptionModelSort = Pick & ResourceSort; interface SubscriptionModel extends Resource { readonly type: SubscriptionModelType; /** * The subscription model's internal name. * @example ```"EU Subscription Model"``` */ name: string; /** * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'. * @example ```"by_frequency"``` */ strategy?: string | null; /** * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour). * @example ```["hourly","10 * * * *","weekly","monthly","two-month"]``` */ frequencies: string[]; /** * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true. * @example ```true``` */ auto_activate?: boolean | null; /** * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false. */ auto_cancel?: boolean | null; markets?: Market[] | null; order_subscriptions?: OrderSubscription[] | null; attachments?: Attachment[] | null; event_stores?: EventStore[] | null; } interface SubscriptionModelCreate extends ResourceCreate { /** * The subscription model's internal name. * @example ```"EU Subscription Model"``` */ name: string; /** * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'. * @example ```"by_frequency"``` */ strategy?: string | null; /** * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour). * @example ```["hourly","10 * * * *","weekly","monthly","two-month"]``` */ frequencies: string[]; /** * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true. * @example ```true``` */ auto_activate?: boolean | null; /** * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false. */ auto_cancel?: boolean | null; } interface SubscriptionModelUpdate extends ResourceUpdate { /** * The subscription model's internal name. * @example ```"EU Subscription Model"``` */ name?: string | null; /** * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'. * @example ```"by_frequency"``` */ strategy?: string | null; /** * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour). * @example ```["hourly","10 * * * *","weekly","monthly","two-month"]``` */ frequencies?: string[] | null; /** * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true. * @example ```true``` */ auto_activate?: boolean | null; /** * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false. */ auto_cancel?: boolean | null; } declare class SubscriptionModels extends ApiResource { static readonly TYPE: SubscriptionModelType; create(resource: SubscriptionModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SubscriptionModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_subscriptions(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isSubscriptionModel(resource: any): resource is SubscriptionModel; relationship(id: string | ResourceId | null): SubscriptionModelRel$2; relationshipToMany(...ids: string[]): SubscriptionModelRel$2[]; type(): SubscriptionModelType; } declare const instance$L: SubscriptionModels; type OrderSubscriptionType = 'order_subscriptions'; type OrderSubscriptionRel = ResourceRel & { type: OrderSubscriptionType; }; type MarketRel$6 = ResourceRel & { type: MarketType; }; type OrderRel$5 = ResourceRel & { type: OrderType; }; type TagRel$5 = ResourceRel & { type: TagType; }; type CustomerPaymentSourceRel = ResourceRel & { type: CustomerPaymentSourceType; }; type OrderSubscriptionSort = Pick & ResourceSort; interface OrderSubscription extends Resource { readonly type: OrderSubscriptionType; /** * Unique identifier for the subscription (numeric). * @example ```"1234"``` */ number?: string | null; /** * The subscription status. One of 'draft' (default), 'inactive', 'active', 'running', or 'cancelled'. * @example ```"draft"``` */ status: 'draft' | 'inactive' | 'active' | 'running' | 'cancelled'; /** * The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency: string; /** * Indicates if the subscription will be activated considering the placed source order as its first run. * @example ```true``` */ activate_by_source_order?: boolean | null; /** * Indicates if the subscription created orders are automatically placed at the end of the copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. * @example ```1``` */ renewal_alert_period?: number | null; /** * The email address of the customer, if any, associated to the source order. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The activation date/time of this subscription. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this subscription (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The date/time of the subscription last run. * @example ```"2018-01-01T12:00:00.000Z"``` */ last_run_at?: string | null; /** * The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. * @example ```"2018-01-01T12:00:00.000Z"``` */ next_run_at?: string | null; /** * The number of times this subscription has run. * @example ```2``` */ occurrencies?: number | null; /** * Indicates the number of subscription errors, if any. * @example ```3``` */ errors_count?: number | null; /** * Indicates if the subscription has succeeded on its last run. * @example ```true``` */ succeeded_on_last_run?: boolean | null; market?: Market | null; subscription_model?: SubscriptionModel | null; source_order?: Order | null; customer?: Customer | null; customer_payment_source?: CustomerPaymentSource | null; order_subscription_items?: OrderSubscriptionItem[] | null; order_factories?: OrderFactory[] | null; recurring_order_copies?: RecurringOrderCopy[] | null; orders?: Order[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface OrderSubscriptionCreate extends ResourceCreate { /** * The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency: string; /** * Indicates if the subscription will be activated considering the placed source order as its first run. * @example ```true``` */ activate_by_source_order?: boolean | null; /** * Indicates if the subscription created orders are automatically placed at the end of the copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. * @example ```1``` */ renewal_alert_period?: number | null; /** * The activation date/time of this subscription. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this subscription (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; market?: MarketRel$6 | null; source_order: OrderRel$5; tags?: TagRel$5[] | null; } interface OrderSubscriptionUpdate extends ResourceUpdate { /** * The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. * @example ```"monthly"``` */ frequency?: string | null; /** * Indicates if the subscription will be activated considering the placed source order as its first run. * @example ```true``` */ activate_by_source_order?: boolean | null; /** * Indicates if the subscription created orders are automatically placed at the end of the copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. * @example ```1``` */ renewal_alert_period?: number | null; /** * The expiration date/time of this subscription (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. * @example ```"2018-01-01T12:00:00.000Z"``` */ next_run_at?: string | null; /** * Send this attribute if you want to mark this subscription as active. * @example ```true``` */ _activate?: boolean | null; /** * Send this attribute if you want to mark this subscription as inactive. * @example ```true``` */ _deactivate?: boolean | null; /** * Send this attribute if you want to mark this subscription as cancelled. * @example ```true``` */ _cancel?: boolean | null; /** * Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion. * @example ```true``` */ _convert?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; customer_payment_source?: CustomerPaymentSourceRel | null; tags?: TagRel$5[] | null; } declare class OrderSubscriptions extends ApiResource { static readonly TYPE: OrderSubscriptionType; create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; subscription_model(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; source_order(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer_payment_source(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_subscription_items(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_factories(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; recurring_order_copies(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; orders(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _activate(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _deactivate(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _convert(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | OrderSubscription, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | OrderSubscription, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isOrderSubscription(resource: any): resource is OrderSubscription; relationship(id: string | ResourceId | null): OrderSubscriptionRel; relationshipToMany(...ids: string[]): OrderSubscriptionRel[]; type(): OrderSubscriptionType; } declare const instance$K: OrderSubscriptions; type CustomerType = 'customers'; type CustomerRel$3 = ResourceRel & { type: CustomerType; }; type CustomerGroupRel$2 = ResourceRel & { type: CustomerGroupType; }; type TagRel$4 = ResourceRel & { type: TagType; }; type CustomerSort = Pick & ResourceSort; interface Customer extends Resource { readonly type: CustomerType; /** * The customer's email address. * @example ```"john@example.com"``` */ email: string; /** * The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'. * @example ```"prospect"``` */ status: 'prospect' | 'acquired' | 'repeat'; /** * Indicates if the customer has a password. */ has_password?: boolean | null; /** * The total number of orders for the customer. * @example ```6``` */ total_orders_count?: number | null; /** * A reference to uniquely identify the shopper during payment sessions. * @example ```"xxx-yyy-zzz"``` */ shopper_reference?: string | null; /** * A reference to uniquely identify the customer on any connected external services. * @example ```"xxx-yyy-zzz"``` */ profile_id?: string | null; /** * A specific code to identify the tax exemption reason for this customer. * @example ```"xxx-yyy-zzz"``` */ tax_exemption_code?: string | null; /** * The custom_claim attached to the current JWT (if any). * @example ```{}``` */ jwt_custom_claim?: Record | null; /** * The anonymization info object. * @example ```{"status":"requested","requested_at":"2025-03-15 11:39:21 UTC","requester":{"id":"fdgt56hh","first_name":"Travis","last_name":"Muller","email":"test@labadie.test"}}``` */ anonymization_info?: Record | null; /** * Status of the current anonymization request (if any). * @example ```"requested"``` */ anonymization_status?: string | null; customer_group?: CustomerGroup | null; customer_addresses?: CustomerAddress[] | null; customer_payment_sources?: CustomerPaymentSource[] | null; customer_subscriptions?: CustomerSubscription[] | null; orders?: Order[] | null; order_subscriptions?: OrderSubscription[] | null; returns?: Return[] | null; sku_lists?: SkuList[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; jwt_customer?: Customer | null; jwt_markets?: Market[] | null; jwt_stock_locations?: StockLocation[] | null; event_stores?: EventStore[] | null; } interface CustomerCreate extends ResourceCreate { /** * The customer's email address. * @example ```"john@example.com"``` */ email: string; /** * The customer's password. Initiate a customer password reset flow if you need to change it. * @example ```"secret"``` */ password?: string | null; /** * A reference to uniquely identify the shopper during payment sessions. * @example ```"xxx-yyy-zzz"``` */ shopper_reference?: string | null; /** * A reference to uniquely identify the customer on any connected external services. * @example ```"xxx-yyy-zzz"``` */ profile_id?: string | null; /** * A specific code to identify the tax exemption reason for this customer. * @example ```"xxx-yyy-zzz"``` */ tax_exemption_code?: string | null; customer_group?: CustomerGroupRel$2 | null; tags?: TagRel$4[] | null; } interface CustomerUpdate extends ResourceUpdate { /** * The customer's email address. * @example ```"john@example.com"``` */ email?: string | null; /** * The customer's password. Initiate a customer password reset flow if you need to change it. * @example ```"secret"``` */ password?: string | null; /** * A reference to uniquely identify the shopper during payment sessions. * @example ```"xxx-yyy-zzz"``` */ shopper_reference?: string | null; /** * A reference to uniquely identify the customer on any connected external services. * @example ```"xxx-yyy-zzz"``` */ profile_id?: string | null; /** * A specific code to identify the tax exemption reason for this customer. * @example ```"xxx-yyy-zzz"``` */ tax_exemption_code?: string | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; /** * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels. * @example ```true``` */ _request_anonymization?: boolean | null; /** * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels. * @example ```true``` */ _cancel_anonymization?: boolean | null; customer_group?: CustomerGroupRel$2 | null; tags?: TagRel$4[] | null; } declare class Customers extends ApiResource { static readonly TYPE: CustomerType; create(resource: CustomerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer_group(customerId: string | Customer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer_addresses(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; customer_payment_sources(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; customer_subscriptions(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; orders(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_subscriptions(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; returns(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_lists(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; jwt_markets(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCustomer(resource: any): resource is Customer; relationship(id: string | ResourceId | null): CustomerRel$3; relationshipToMany(...ids: string[]): CustomerRel$3[]; type(): CustomerType; } declare const instance$J: Customers; type PriceFrequencyTierType = 'price_frequency_tiers'; type PriceFrequencyTierRel = ResourceRel & { type: PriceFrequencyTierType; }; type PriceRel$3 = ResourceRel & { type: PriceType; }; type PriceFrequencyTierSort = Pick & ResourceSort; interface PriceFrequencyTier extends Resource { readonly type: PriceFrequencyTierType; /** * The price tier's name. * @example ```"six pack"``` */ name: string; /** * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). * @example ```7``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this price tier, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this price tier, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; price?: Price | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; events?: Event[] | null; } interface PriceFrequencyTierCreate extends ResourceCreate { /** * The price tier's name. * @example ```"six pack"``` */ name: string; /** * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). * @example ```7``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents: number; price: PriceRel$3; } interface PriceFrequencyTierUpdate extends ResourceUpdate { /** * The price tier's name. * @example ```"six pack"``` */ name?: string | null; /** * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). * @example ```7``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents?: number | null; price?: PriceRel$3 | null; } declare class PriceFrequencyTiers extends ApiResource { static readonly TYPE: PriceFrequencyTierType; create(resource: PriceFrequencyTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PriceFrequencyTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPriceFrequencyTier(resource: any): resource is PriceFrequencyTier; relationship(id: string | ResourceId | null): PriceFrequencyTierRel; relationshipToMany(...ids: string[]): PriceFrequencyTierRel[]; type(): PriceFrequencyTierType; } declare const instance$I: PriceFrequencyTiers; type PriceListSchedulerType = 'price_list_schedulers'; type PriceListSchedulerRel = ResourceRel & { type: PriceListSchedulerType; }; type MarketRel$5 = ResourceRel & { type: MarketType; }; type PriceListRel$4 = ResourceRel & { type: PriceListType; }; type PriceListSchedulerSort = Pick & ResourceSort; interface PriceListScheduler extends Resource { readonly type: PriceListSchedulerType; /** * The price list scheduler's internal name. * @example ```"FW SALE 2023"``` */ name: string; /** * The activation date/time of this price list scheduler. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this price list scheduler (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * Indicates if the price list scheduler is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; market?: Market | null; price_list?: PriceList | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface PriceListSchedulerCreate extends ResourceCreate { /** * The price list scheduler's internal name. * @example ```"FW SALE 2023"``` */ name: string; /** * The activation date/time of this price list scheduler. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this price list scheduler (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; market: MarketRel$5; price_list: PriceListRel$4; } interface PriceListSchedulerUpdate extends ResourceUpdate { /** * The price list scheduler's internal name. * @example ```"FW SALE 2023"``` */ name?: string | null; /** * The activation date/time of this price list scheduler. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at?: string | null; /** * The expiration date/time of this price list scheduler (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; market?: MarketRel$5 | null; price_list?: PriceListRel$4 | null; } declare class PriceListSchedulers extends ApiResource { static readonly TYPE: PriceListSchedulerType; create(resource: PriceListSchedulerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PriceListSchedulerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; price_list(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | PriceListScheduler, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | PriceListScheduler, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isPriceListScheduler(resource: any): resource is PriceListScheduler; relationship(id: string | ResourceId | null): PriceListSchedulerRel; relationshipToMany(...ids: string[]): PriceListSchedulerRel[]; type(): PriceListSchedulerType; } declare const instance$H: PriceListSchedulers; type PriceListType = 'price_lists'; type PriceListRel$3 = ResourceRel & { type: PriceListType; }; type PriceListSort = Pick & ResourceSort; interface PriceList extends Resource { readonly type: PriceListType; /** * The price list's internal name. * @example ```"EU Price list"``` */ name: string; /** * A string that you can use to identify the price list (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code: string; /** * Indicates if the associated prices include taxes. * @example ```true``` */ tax_included?: boolean | null; /** * The rule outcomes. * @example ```[]``` */ rule_outcomes?: Record | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; /** * The payload used to evaluate the rules. * @example ```{}``` */ resource_payload?: Record | null; prices?: Price[] | null; price_list_schedulers?: PriceListScheduler[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface PriceListCreate extends ResourceCreate { /** * The price list's internal name. * @example ```"EU Price list"``` */ name: string; /** * A string that you can use to identify the price list (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code: string; /** * Indicates if the associated prices include taxes. * @example ```true``` */ tax_included?: boolean | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; } interface PriceListUpdate extends ResourceUpdate { /** * The price list's internal name. * @example ```"EU Price list"``` */ name?: string | null; /** * A string that you can use to identify the price list (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the associated prices include taxes. * @example ```true``` */ tax_included?: boolean | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; } declare class PriceLists extends ApiResource { static readonly TYPE: PriceListType; create(resource: PriceListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PriceListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; prices(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; price_list_schedulers(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPriceList(resource: any): resource is PriceList; relationship(id: string | ResourceId | null): PriceListRel$3; relationshipToMany(...ids: string[]): PriceListRel$3[]; type(): PriceListType; } declare const instance$G: PriceLists; type PriceTierType = 'price_tiers'; type PriceTierRel$2 = ResourceRel & { type: PriceTierType; }; type PriceTierSort = Pick & ResourceSort; interface PriceTier extends Resource { readonly type: PriceTierType; /** * The price tier's name. * @example ```"six pack"``` */ name: string; /** * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). * @example ```20.5``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this price tier, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this price tier, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; price?: Price | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class PriceTiers extends ApiResource { static readonly TYPE: PriceTierType; price(priceTierId: string | PriceTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPriceTier(resource: any): resource is PriceTier; relationship(id: string | ResourceId | null): PriceTierRel$2; relationshipToMany(...ids: string[]): PriceTierRel$2[]; type(): PriceTierType; } declare const instance$F: PriceTiers; type PriceVolumeTierType = 'price_volume_tiers'; type PriceVolumeTierRel = ResourceRel & { type: PriceVolumeTierType; }; type PriceRel$2 = ResourceRel & { type: PriceType; }; type PriceVolumeTierSort = Pick & ResourceSort; interface PriceVolumeTier extends Resource { readonly type: PriceVolumeTierType; /** * The price tier's name. * @example ```"six pack"``` */ name: string; /** * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). * @example ```15``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents: number; /** * The price of this price tier, float. * @example ```10``` */ price_amount_float?: number | null; /** * The price of this price tier, formatted. * @example ```"€10,00"``` */ formatted_price_amount?: string | null; price?: Price | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; events?: Event[] | null; } interface PriceVolumeTierCreate extends ResourceCreate { /** * The price tier's name. * @example ```"six pack"``` */ name: string; /** * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). * @example ```15``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents: number; price: PriceRel$2; } interface PriceVolumeTierUpdate extends ResourceUpdate { /** * The price tier's name. * @example ```"six pack"``` */ name?: string | null; /** * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). * @example ```15``` */ up_to?: number | null; /** * The price of this price tier, in cents. * @example ```1000``` */ price_amount_cents?: number | null; price?: PriceRel$2 | null; } declare class PriceVolumeTiers extends ApiResource { static readonly TYPE: PriceVolumeTierType; create(resource: PriceVolumeTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PriceVolumeTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; price(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPriceVolumeTier(resource: any): resource is PriceVolumeTier; relationship(id: string | ResourceId | null): PriceVolumeTierRel; relationshipToMany(...ids: string[]): PriceVolumeTierRel[]; type(): PriceVolumeTierType; } declare const instance$E: PriceVolumeTiers; type PriceType = 'prices'; type PriceRel$1 = ResourceRel & { type: PriceType; }; type PriceListRel$2 = ResourceRel & { type: PriceListType; }; type SkuRel$4 = ResourceRel & { type: SkuType; }; type PriceTierRel$1 = ResourceRel & { type: PriceTierType; }; type PriceSort = Pick & ResourceSort; interface Price extends Resource { readonly type: PriceType; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated price list. * @example ```"EUR"``` */ currency_code?: string | null; /** * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU price amount for the associated price list, in cents. * @example ```10000``` */ amount_cents: number; /** * The SKU price amount for the associated price list, float. * @example ```100``` */ amount_float?: number | null; /** * The SKU price amount for the associated price list, formatted. * @example ```"€100,00"``` */ formatted_amount?: string | null; /** * The SKU price amount for the associated price list, in cents before any applied rule. * @example ```10000``` */ original_amount_cents?: number | null; /** * The SKU price amount for the associated price list, in cents before any applied rule, formatted. * @example ```"€100,00"``` */ formatted_original_amount?: string | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The compared price amount, float. * @example ```130``` */ compare_at_amount_float?: number | null; /** * The compared price amount, formatted. * @example ```"€130,00"``` */ formatted_compare_at_amount?: string | null; /** * The rule outcomes. * @example ```[]``` */ rule_outcomes?: Record | null; /** * Time at which the resource was processed by API. * @example ```"2018-01-01T12:00:00.000Z"``` */ processed_at?: string | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; /** * The payload used to evaluate the rules. * @example ```{}``` */ resource_payload?: Record | null; /** * The custom_claim attached to the current JWT (if any). * @example ```{}``` */ jwt_custom_claim?: Record | null; price_list?: PriceList | null; sku?: Sku | null; price_tiers?: PriceTier[] | null; price_volume_tiers?: PriceVolumeTier[] | null; price_frequency_tiers?: PriceFrequencyTier[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; jwt_customer?: Customer | null; jwt_markets?: Market[] | null; jwt_stock_locations?: StockLocation[] | null; event_stores?: EventStore[] | null; } interface PriceCreate extends ResourceCreate { /** * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU price amount for the associated price list, in cents. * @example ```10000``` */ amount_cents: number; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; price_list: PriceListRel$2; sku: SkuRel$4; price_tiers?: PriceTierRel$1[] | null; } interface PriceUpdate extends ResourceUpdate { /** * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The SKU price amount for the associated price list, in cents. * @example ```10000``` */ amount_cents?: number | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * Time at which the resource was processed by API. * @example ```"2018-01-01T12:00:00.000Z"``` */ processed_at?: string | null; /** * The rules (using Rules Engine) to be applied. * @example ```{}``` */ rules?: Record | null; price_list?: PriceListRel$2 | null; sku?: SkuRel$4 | null; price_tiers?: PriceTierRel$1[] | null; } declare class Prices extends ApiResource { static readonly TYPE: PriceType; create(resource: PriceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PriceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; price_list(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; price_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; price_volume_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; price_frequency_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_customer(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; jwt_markets(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_stock_locations(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPrice(resource: any): resource is Price; relationship(id: string | ResourceId | null): PriceRel$1; relationshipToMany(...ids: string[]): PriceRel$1[]; type(): PriceType; } declare const instance$D: Prices; type SkuType = 'skus'; type SkuRel$3 = ResourceRel & { type: SkuType; }; type ShippingCategoryRel$1 = ResourceRel & { type: ShippingCategoryType; }; type TagRel$3 = ResourceRel & { type: TagType; }; type SkuSort = Pick & ResourceSort; interface Sku extends Resource { readonly type: SkuType; /** * The SKU code, that uniquely identifies the SKU within the organization. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ code: string; /** * The internal name of the SKU. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name: string; /** * An internal description of the SKU. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The number of pieces that compose the SKU. This is useful to describe sets and bundles. * @example ```6``` */ pieces_per_pack?: number | null; /** * The weight of the SKU. If present, it will be used to calculate the shipping rates. * @example ```300``` */ weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The Harmonized System Code used by customs to identify the products shipped across international borders. * @example ```"4901.91.0020"``` */ hs_tariff_number?: string | null; /** * Indicates if the SKU doesn't generate shipments. */ do_not_ship?: boolean | null; /** * Indicates if the SKU doesn't track the stock inventory. */ do_not_track?: boolean | null; /** * Aggregated information about the SKU's inventory. Returned only when retrieving a single SKU. * @example ```{"available":true,"quantity":10,"levels":[{"quantity":4,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":72,"days":3},"max":{"hours":120,"days":5}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":48,"days":2},"max":{"hours":72,"days":3}}]},{"quantity":6,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":96,"days":4},"max":{"hours":144,"days":6}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":72,"days":3},"max":{"hours":96,"days":4}}]}]}``` */ inventory?: Record | null; /** * The custom_claim attached to the current JWT (if any). * @example ```{}``` */ jwt_custom_claim?: Record | null; shipping_category?: ShippingCategory | null; prices?: Price[] | null; stock_items?: StockItem[] | null; stock_reservations?: StockReservation[] | null; delivery_lead_times?: DeliveryLeadTime[] | null; sku_options?: SkuOption[] | null; sku_list_items?: SkuListItem[] | null; sku_lists?: SkuList[] | null; attachments?: Attachment[] | null; links?: Link[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; jwt_customer?: Customer | null; jwt_markets?: Market[] | null; jwt_stock_locations?: StockLocation[] | null; event_stores?: EventStore[] | null; } interface SkuCreate extends ResourceCreate { /** * The SKU code, that uniquely identifies the SKU within the organization. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ code: string; /** * The internal name of the SKU. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name: string; /** * An internal description of the SKU. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The number of pieces that compose the SKU. This is useful to describe sets and bundles. * @example ```6``` */ pieces_per_pack?: number | null; /** * The weight of the SKU. If present, it will be used to calculate the shipping rates. * @example ```300``` */ weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The Harmonized System Code used by customs to identify the products shipped across international borders. * @example ```"4901.91.0020"``` */ hs_tariff_number?: string | null; /** * Indicates if the SKU doesn't generate shipments. */ do_not_ship?: boolean | null; /** * Indicates if the SKU doesn't track the stock inventory. */ do_not_track?: boolean | null; shipping_category: ShippingCategoryRel$1; tags?: TagRel$3[] | null; } interface SkuUpdate extends ResourceUpdate { /** * The SKU code, that uniquely identifies the SKU within the organization. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ code?: string | null; /** * The internal name of the SKU. * @example ```"Men's Black T-shirt with White Logo (XL)"``` */ name?: string | null; /** * An internal description of the SKU. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the SKU. * @example ```"https://img.yourdomain.com/skus/xYZkjABcde.png"``` */ image_url?: string | null; /** * The number of pieces that compose the SKU. This is useful to describe sets and bundles. * @example ```6``` */ pieces_per_pack?: number | null; /** * The weight of the SKU. If present, it will be used to calculate the shipping rates. * @example ```300``` */ weight?: number | null; /** * The unit of weight. One of 'gr', 'oz', or 'lb'. * @example ```"gr"``` */ unit_of_weight?: 'gr' | 'oz' | 'lb' | null; /** * The Harmonized System Code used by customs to identify the products shipped across international borders. * @example ```"4901.91.0020"``` */ hs_tariff_number?: string | null; /** * Indicates if the SKU doesn't generate shipments. */ do_not_ship?: boolean | null; /** * Indicates if the SKU doesn't track the stock inventory. */ do_not_track?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; shipping_category?: ShippingCategoryRel$1 | null; tags?: TagRel$3[] | null; } declare class Skus extends ApiResource { static readonly TYPE: SkuType; create(resource: SkuCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SkuUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; shipping_category(skuId: string | Sku, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; prices(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_items(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_reservations(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; delivery_lead_times(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_options(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_list_items(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; sku_lists(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; links(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_customer(skuId: string | Sku, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; jwt_markets(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; jwt_stock_locations(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | Sku, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Sku, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isSku(resource: any): resource is Sku; relationship(id: string | ResourceId | null): SkuRel$3; relationshipToMany(...ids: string[]): SkuRel$3[]; type(): SkuType; } declare const instance$C: Skus; type StripeTaxAccountType = 'stripe_tax_accounts'; type StripeTaxAccountRel$2 = ResourceRel & { type: StripeTaxAccountType; }; type TaxCategoryRel$4 = ResourceRel & { type: TaxCategoryType; }; type StripeTaxAccountSort = Pick & ResourceSort; interface StripeTaxAccount extends Resource { readonly type: StripeTaxAccountType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * Indicates if the transaction will be recorded and visible on the Stripe website. * @example ```true``` */ commit_invoice?: boolean | null; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; tax_categories?: TaxCategory[] | null; } interface StripeTaxAccountCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The Stripe account API key. * @example ```"STRIPE_API_KEY"``` */ api_key: string; /** * Indicates if the transaction will be recorded and visible on the Stripe website. * @example ```true``` */ commit_invoice?: boolean | null; tax_categories?: TaxCategoryRel$4[] | null; } interface StripeTaxAccountUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; /** * The Stripe account API key. * @example ```"STRIPE_API_KEY"``` */ api_key?: string | null; /** * Indicates if the transaction will be recorded and visible on the Stripe website. * @example ```true``` */ commit_invoice?: boolean | null; tax_categories?: TaxCategoryRel$4[] | null; } declare class StripeTaxAccounts extends ApiResource { static readonly TYPE: StripeTaxAccountType; create(resource: StripeTaxAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StripeTaxAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tax_categories(stripeTaxAccountId: string | StripeTaxAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isStripeTaxAccount(resource: any): resource is StripeTaxAccount; relationship(id: string | ResourceId | null): StripeTaxAccountRel$2; relationshipToMany(...ids: string[]): StripeTaxAccountRel$2[]; type(): StripeTaxAccountType; } declare const instance$B: StripeTaxAccounts; type TaxjarAccountType = 'taxjar_accounts'; type TaxjarAccountRel$2 = ResourceRel & { type: TaxjarAccountType; }; type TaxCategoryRel$3 = ResourceRel & { type: TaxCategoryType; }; type TaxjarAccountSort = Pick & ResourceSort; interface TaxjarAccount extends Resource { readonly type: TaxjarAccountType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; tax_categories?: TaxCategory[] | null; } interface TaxjarAccountCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The TaxJar account API key. * @example ```"TAXJAR_API_KEY"``` */ api_key: string; tax_categories?: TaxCategoryRel$3[] | null; } interface TaxjarAccountUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; /** * The TaxJar account API key. * @example ```"TAXJAR_API_KEY"``` */ api_key?: string | null; tax_categories?: TaxCategoryRel$3[] | null; } declare class TaxjarAccounts extends ApiResource { static readonly TYPE: TaxjarAccountType; create(resource: TaxjarAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: TaxjarAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tax_categories(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTaxjarAccount(resource: any): resource is TaxjarAccount; relationship(id: string | ResourceId | null): TaxjarAccountRel$2; relationshipToMany(...ids: string[]): TaxjarAccountRel$2[]; type(): TaxjarAccountType; } declare const instance$A: TaxjarAccounts; type VertexAccountType = 'vertex_accounts'; type VertexAccountRel$2 = ResourceRel & { type: VertexAccountType; }; type VertexAccountSort = Pick & ResourceSort; interface VertexAccount extends Resource { readonly type: VertexAccountType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'. * @example ```"cloud"``` */ kind?: 'cloud' | 'on_demand' | 'on_premise' | null; /** * The Vertex API baseurl, optional for 'cloud' kind. * @example ```"yourbaseurl"``` */ baseurl?: string | null; /** * The API endpoint as computed by specified kind and baseurl. * @example ```"https://my_baseurl.ondemand.vertexinc.com"``` */ api_endpoint?: string | null; /** * Indicates if the transaction will be recorded and visible on the Vertex website. * @example ```true``` */ commit_invoice?: boolean | null; /** * The expiration date/time of the access token. * @example ```"2018-01-02T12:00:00.000Z"``` */ token_expires_at?: string | null; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface VertexAccountCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'. * @example ```"cloud"``` */ kind?: 'cloud' | 'on_demand' | 'on_premise' | null; /** * The Vertex API baseurl, optional for 'cloud' kind. * @example ```"yourbaseurl"``` */ baseurl?: string | null; /** * The Vertex account client ID. * @example ```"xxx-yyy-zzz"``` */ client_id: string; /** * The Vertex account client secret. * @example ```"xxx-yyy-zzz"``` */ client_secret: string; /** * Indicates if the transaction will be recorded and visible on the Vertex website. * @example ```true``` */ commit_invoice?: boolean | null; } interface VertexAccountUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; /** * The Vertex account kind. One of 'cloud', 'on_demand', or 'on_premise'. * @example ```"cloud"``` */ kind?: 'cloud' | 'on_demand' | 'on_premise' | null; /** * The Vertex API baseurl, optional for 'cloud' kind. * @example ```"yourbaseurl"``` */ baseurl?: string | null; /** * The Vertex account client ID. * @example ```"xxx-yyy-zzz"``` */ client_id?: string | null; /** * The Vertex account client secret. * @example ```"xxx-yyy-zzz"``` */ client_secret?: string | null; /** * Indicates if the transaction will be recorded and visible on the Vertex website. * @example ```true``` */ commit_invoice?: boolean | null; /** * Send this attribute if you want to manually refresh the access token. * @example ```true``` */ _refresh_token?: boolean | null; } declare class VertexAccounts extends ApiResource { static readonly TYPE: VertexAccountType; create(resource: VertexAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: VertexAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(vertexAccountId: string | VertexAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(vertexAccountId: string | VertexAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(vertexAccountId: string | VertexAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(vertexAccountId: string | VertexAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(vertexAccountId: string | VertexAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _refresh_token(id: string | VertexAccount, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isVertexAccount(resource: any): resource is VertexAccount; relationship(id: string | ResourceId | null): VertexAccountRel$2; relationshipToMany(...ids: string[]): VertexAccountRel$2[]; type(): VertexAccountType; } declare const instance$z: VertexAccounts; type TaxCategoryType = 'tax_categories'; type TaxCategoryRel$2 = ResourceRel & { type: TaxCategoryType; }; type SkuRel$2 = ResourceRel & { type: SkuType; }; type AvalaraAccountRel$2 = ResourceRel & { type: AvalaraAccountType; }; type StripeTaxAccountRel$1 = ResourceRel & { type: StripeTaxAccountType; }; type VertexAccountRel$1 = ResourceRel & { type: VertexAccountType; }; type TaxjarAccountRel$1 = ResourceRel & { type: TaxjarAccountType; }; type ManualTaxCalculatorRel$1 = ResourceRel & { type: ManualTaxCalculatorType; }; type ExternalTaxCalculatorRel$1 = ResourceRel & { type: ExternalTaxCalculatorType; }; type TaxCategorySort = Pick & ResourceSort; interface TaxCategory extends Resource { readonly type: TaxCategoryType; /** * The tax category identifier code, specific for a particular tax calculator. * @example ```"31000"``` */ code: string; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; sku?: Sku | null; tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface TaxCategoryCreate extends ResourceCreate { /** * The tax category identifier code, specific for a particular tax calculator. * @example ```"31000"``` */ code: string; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; sku: SkuRel$2; tax_calculator: AvalaraAccountRel$2 | StripeTaxAccountRel$1 | VertexAccountRel$1 | TaxjarAccountRel$1 | ManualTaxCalculatorRel$1 | ExternalTaxCalculatorRel$1; } interface TaxCategoryUpdate extends ResourceUpdate { /** * The tax category identifier code, specific for a particular tax calculator. * @example ```"31000"``` */ code?: string | null; /** * The code of the associated SKU. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; sku?: SkuRel$2 | null; } declare class TaxCategories extends ApiResource { static readonly TYPE: TaxCategoryType; create(resource: TaxCategoryCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: TaxCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; sku(taxCategoryId: string | TaxCategory, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTaxCategory(resource: any): resource is TaxCategory; relationship(id: string | ResourceId | null): TaxCategoryRel$2; relationshipToMany(...ids: string[]): TaxCategoryRel$2[]; type(): TaxCategoryType; } declare const instance$y: TaxCategories; type AvalaraAccountType = 'avalara_accounts'; type AvalaraAccountRel$1 = ResourceRel & { type: AvalaraAccountType; }; type TaxCategoryRel$1 = ResourceRel & { type: TaxCategoryType; }; type AvalaraAccountSort = Pick & ResourceSort; interface AvalaraAccount extends Resource { readonly type: AvalaraAccountType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The Avalara account username. * @example ```"user@mydomain.com"``` */ username: string; /** * The Avalara company code. * @example ```"MYCOMPANY"``` */ company_code: string; /** * Indicates if the transaction will be recorded and visible on the Avalara website. * @example ```true``` */ commit_invoice?: boolean | null; /** * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. * @example ```true``` */ ddp?: boolean | null; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; tax_categories?: TaxCategory[] | null; } interface AvalaraAccountCreate extends ResourceCreate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; /** * The Avalara account username. * @example ```"user@mydomain.com"``` */ username: string; /** * The Avalara account password. * @example ```"secret"``` */ password: string; /** * The Avalara company code. * @example ```"MYCOMPANY"``` */ company_code: string; /** * Indicates if the transaction will be recorded and visible on the Avalara website. * @example ```true``` */ commit_invoice?: boolean | null; /** * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. * @example ```true``` */ ddp?: boolean | null; tax_categories?: TaxCategoryRel$1[] | null; } interface AvalaraAccountUpdate extends ResourceUpdate { /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name?: string | null; /** * The Avalara account username. * @example ```"user@mydomain.com"``` */ username?: string | null; /** * The Avalara account password. * @example ```"secret"``` */ password?: string | null; /** * The Avalara company code. * @example ```"MYCOMPANY"``` */ company_code?: string | null; /** * Indicates if the transaction will be recorded and visible on the Avalara website. * @example ```true``` */ commit_invoice?: boolean | null; /** * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. * @example ```true``` */ ddp?: boolean | null; tax_categories?: TaxCategoryRel$1[] | null; } declare class AvalaraAccounts extends ApiResource { static readonly TYPE: AvalaraAccountType; create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isAvalaraAccount(resource: any): resource is AvalaraAccount; relationship(id: string | ResourceId | null): AvalaraAccountRel$1; relationshipToMany(...ids: string[]): AvalaraAccountRel$1[]; type(): AvalaraAccountType; } declare const instance$x: AvalaraAccounts; type GeocoderType = 'geocoders'; type GeocoderRel$3 = ResourceRel & { type: GeocoderType; }; type GeocoderSort = Pick & ResourceSort; interface Geocoder extends Resource { readonly type: GeocoderType; /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name: string; markets?: Market[] | null; addresses?: Address[] | null; attachments?: Attachment[] | null; event_stores?: EventStore[] | null; } declare class Geocoders extends ApiResource { static readonly TYPE: GeocoderType; markets(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; addresses(geocoderId: string | Geocoder, params?: QueryParamsList
, options?: ResourcesConfig): Promise>; attachments(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isGeocoder(resource: any): resource is Geocoder; relationship(id: string | ResourceId | null): GeocoderRel$3; relationshipToMany(...ids: string[]): GeocoderRel$3[]; type(): GeocoderType; } declare const instance$w: Geocoders; type MarketType = 'markets'; type MarketRel$4 = ResourceRel & { type: MarketType; }; type MerchantRel$1 = ResourceRel & { type: MerchantType; }; type PriceListRel$1 = ResourceRel & { type: PriceListType; }; type InventoryModelRel$1 = ResourceRel & { type: InventoryModelType; }; type SubscriptionModelRel$1 = ResourceRel & { type: SubscriptionModelType; }; type DiscountEngineRel$1 = ResourceRel & { type: DiscountEngineType; }; type AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType; }; type StripeTaxAccountRel = ResourceRel & { type: StripeTaxAccountType; }; type VertexAccountRel = ResourceRel & { type: VertexAccountType; }; type TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType; }; type ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType; }; type ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType; }; type CustomerGroupRel$1 = ResourceRel & { type: CustomerGroupType; }; type GeocoderRel$2 = ResourceRel & { type: GeocoderType; }; type ShippingMethodRel$1 = ResourceRel & { type: ShippingMethodType; }; type PaymentMethodRel$2 = ResourceRel & { type: PaymentMethodType; }; type MarketSort = Pick & ResourceSort; interface Market extends Resource { readonly type: MarketType; /** * Unique identifier for the market (numeric). * @example ```1234``` */ number?: number | null; /** * The market's internal name. * @example ```"EU Market"``` */ name: string; /** * A string that you can use to identify the market (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The Facebook Pixed ID. * @example ```"1234567890"``` */ facebook_pixel_id?: string | null; /** * The checkout URL for this market. * @example ```"https://checkout.yourbrand.com/:order_id"``` */ checkout_url?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The URL used to validate orders by an external source. * @example ```"https://external_validation.yourbrand.com"``` */ external_order_validation_url?: string | null; /** * Indicates if market belongs to a customer_group. * @example ```true``` */ private?: boolean | null; /** * When specified indicates the maximum number of shipping line items with cost that will be added to an order. * @example ```3``` */ shipping_cost_cutoff?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; merchant?: Merchant | null; price_list?: PriceList | null; base_price_list?: PriceList | null; inventory_model?: InventoryModel | null; subscription_model?: SubscriptionModel | null; discount_engine?: DiscountEngine | null; tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null; customer_group?: CustomerGroup | null; geocoder?: Geocoder | null; default_shipping_method?: ShippingMethod | null; default_payment_method?: PaymentMethod | null; stores?: Store[] | null; price_list_schedulers?: PriceListScheduler[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface MarketCreate extends ResourceCreate { /** * The market's internal name. * @example ```"EU Market"``` */ name: string; /** * A string that you can use to identify the market (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The Facebook Pixed ID. * @example ```"1234567890"``` */ facebook_pixel_id?: string | null; /** * The checkout URL for this market. * @example ```"https://checkout.yourbrand.com/:order_id"``` */ checkout_url?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The URL used to validate orders by an external source. * @example ```"https://external_validation.yourbrand.com"``` */ external_order_validation_url?: string | null; /** * When specified indicates the maximum number of shipping line items with cost that will be added to an order. * @example ```3``` */ shipping_cost_cutoff?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; merchant: MerchantRel$1; price_list: PriceListRel$1; inventory_model: InventoryModelRel$1; subscription_model?: SubscriptionModelRel$1 | null; discount_engine?: DiscountEngineRel$1 | null; tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null; customer_group?: CustomerGroupRel$1 | null; geocoder?: GeocoderRel$2 | null; default_shipping_method?: ShippingMethodRel$1 | null; default_payment_method?: PaymentMethodRel$2 | null; } interface MarketUpdate extends ResourceUpdate { /** * The market's internal name. * @example ```"EU Market"``` */ name?: string | null; /** * A string that you can use to identify the market (must be unique within the environment). * @example ```"europe1"``` */ code?: string | null; /** * The Facebook Pixed ID. * @example ```"1234567890"``` */ facebook_pixel_id?: string | null; /** * The checkout URL for this market. * @example ```"https://checkout.yourbrand.com/:order_id"``` */ checkout_url?: string | null; /** * The URL used to overwrite prices by an external source. * @example ```"https://external_prices.yourbrand.com"``` */ external_prices_url?: string | null; /** * The URL used to validate orders by an external source. * @example ```"https://external_validation.yourbrand.com"``` */ external_order_validation_url?: string | null; /** * When specified indicates the maximum number of shipping line items with cost that will be added to an order. * @example ```3``` */ shipping_cost_cutoff?: number | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; merchant?: MerchantRel$1 | null; price_list?: PriceListRel$1 | null; inventory_model?: InventoryModelRel$1 | null; subscription_model?: SubscriptionModelRel$1 | null; discount_engine?: DiscountEngineRel$1 | null; tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null; customer_group?: CustomerGroupRel$1 | null; geocoder?: GeocoderRel$2 | null; default_shipping_method?: ShippingMethodRel$1 | null; default_payment_method?: PaymentMethodRel$2 | null; } declare class Markets extends ApiResource { static readonly TYPE: MarketType; create(resource: MarketCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: MarketUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; merchant(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; price_list(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; base_price_list(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; inventory_model(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; subscription_model(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; discount_engine(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer_group(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; geocoder(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; stores(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise>; price_list_schedulers(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isMarket(resource: any): resource is Market; relationship(id: string | ResourceId | null): MarketRel$4; relationshipToMany(...ids: string[]): MarketRel$4[]; type(): MarketType; } declare const instance$v: Markets; type BundleType = 'bundles'; type BundleRel$1 = ResourceRel & { type: BundleType; }; type MarketRel$3 = ResourceRel & { type: MarketType; }; type SkuListRel$1 = ResourceRel & { type: SkuListType; }; type TagRel$2 = ResourceRel & { type: TagType; }; type BundleSort = Pick & ResourceSort; interface Bundle extends Resource { readonly type: BundleType; /** * The bundle code, that uniquely identifies the bundle within the market. * @example ```"BUNDMM000000FFFFFFXLXX"``` */ code: string; /** * The internal name of the bundle. * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the bundle. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the bundle. * @example ```"https://img.yourdomain.com/bundles/xYZkjABcde.png"``` */ image_url?: string | null; /** * Indicates if the bundle doesn't generate shipments (all sku_list's SKUs must be do_not_ship). */ do_not_ship?: boolean | null; /** * Indicates if the bundle doesn't track the stock inventory (all sku_list's SKUs must be do_not_track). */ do_not_track?: boolean | null; /** * The bundle price amount for the associated market, in cents. * @example ```10000``` */ price_amount_cents?: number | null; /** * The bundle price amount for the associated market, float. * @example ```100``` */ price_amount_float?: number | null; /** * The bundle price amount for the associated market, formatted. * @example ```"€100,00"``` */ formatted_price_amount?: string | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * The compared price amount, float. * @example ```130``` */ compare_at_amount_float?: number | null; /** * The compared price amount, formatted. * @example ```"€130,00"``` */ formatted_compare_at_amount?: string | null; /** * The total number of SKUs in the bundle. * @example ```2``` */ skus_count?: number | null; market?: Market | null; sku_list?: SkuList | null; skus?: Sku[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface BundleCreate extends ResourceCreate { /** * The bundle code, that uniquely identifies the bundle within the market. * @example ```"BUNDMM000000FFFFFFXLXX"``` */ code: string; /** * The internal name of the bundle. * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the bundle. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the bundle. * @example ```"https://img.yourdomain.com/bundles/xYZkjABcde.png"``` */ image_url?: string | null; /** * The bundle price amount for the associated market, in cents. * @example ```10000``` */ price_amount_cents?: number | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. * @example ```true``` */ _compute_price_amount?: boolean | null; /** * Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. * @example ```true``` */ _compute_compare_at_amount?: boolean | null; market?: MarketRel$3 | null; sku_list: SkuListRel$1; tags?: TagRel$2[] | null; } interface BundleUpdate extends ResourceUpdate { /** * The bundle code, that uniquely identifies the bundle within the market. * @example ```"BUNDMM000000FFFFFFXLXX"``` */ code?: string | null; /** * The internal name of the bundle. * @example ```"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo"``` */ name?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * An internal description of the bundle. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The URL of an image that represents the bundle. * @example ```"https://img.yourdomain.com/bundles/xYZkjABcde.png"``` */ image_url?: string | null; /** * The bundle price amount for the associated market, in cents. * @example ```10000``` */ price_amount_cents?: number | null; /** * The compared price amount, in cents. Useful to display a percentage discount. * @example ```13000``` */ compare_at_amount_cents?: number | null; /** * Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. * @example ```true``` */ _compute_price_amount?: boolean | null; /** * Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. * @example ```true``` */ _compute_compare_at_amount?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; tags?: TagRel$2[] | null; } declare class Bundles extends ApiResource { static readonly TYPE: BundleType; create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; skus(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _compute_price_amount(id: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _compute_compare_at_amount(id: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | Bundle, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Bundle, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isBundle(resource: any): resource is Bundle; relationship(id: string | ResourceId | null): BundleRel$1; relationshipToMany(...ids: string[]): BundleRel$1[]; type(): BundleType; } declare const instance$u: Bundles; type PaymentOptionType = 'payment_options'; type PaymentOptionRel$1 = ResourceRel & { type: PaymentOptionType; }; type OrderRel$4 = ResourceRel & { type: OrderType; }; type PaymentOptionSort = Pick & ResourceSort; interface PaymentOption extends Resource { readonly type: PaymentOptionType; /** * The payment option's name. Wehn blank is inherited by payment source type. * @example ```"Stripe Payment Option"``` */ name?: string | null; /** * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. * @example ```"stripe_payments"``` */ payment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'; /** * The payment options data to be added to the payment source payload. Check payment specific API for more details. * @example ```{"application_fee_amount":1000,"on_behalf_of":"pm_xxx"}``` */ data: Record; order?: Order | null; attachments?: Attachment[] | null; event_stores?: EventStore[] | null; } interface PaymentOptionCreate extends ResourceCreate { /** * The payment option's name. Wehn blank is inherited by payment source type. * @example ```"Stripe Payment Option"``` */ name?: string | null; /** * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. * @example ```"stripe_payments"``` */ payment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'; /** * The payment options data to be added to the payment source payload. Check payment specific API for more details. * @example ```{"application_fee_amount":1000,"on_behalf_of":"pm_xxx"}``` */ data: Record; order: OrderRel$4; } interface PaymentOptionUpdate extends ResourceUpdate { /** * The payment option's name. Wehn blank is inherited by payment source type. * @example ```"Stripe Payment Option"``` */ name?: string | null; /** * The payment options data to be added to the payment source payload. Check payment specific API for more details. * @example ```{"application_fee_amount":1000,"on_behalf_of":"pm_xxx"}``` */ data?: Record | null; order?: OrderRel$4 | null; } declare class PaymentOptions extends ApiResource { static readonly TYPE: PaymentOptionType; create(resource: PaymentOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PaymentOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(paymentOptionId: string | PaymentOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(paymentOptionId: string | PaymentOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(paymentOptionId: string | PaymentOption, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPaymentOption(resource: any): resource is PaymentOption; relationship(id: string | ResourceId | null): PaymentOptionRel$1; relationshipToMany(...ids: string[]): PaymentOptionRel$1[]; type(): PaymentOptionType; } declare const instance$t: PaymentOptions; type PromotionType = 'promotions'; type PromotionRel$1 = ResourceRel & { type: PromotionType; }; type PromotionSort = Pick & ResourceSort; interface Promotion extends Resource { readonly type: PromotionType; /** * The promotion's internal name. * @example ```"Personal promotion"``` */ name: string; /** * The international 3-letter currency code as defined by the ISO 4217 standard. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if the promotion will be applied exclusively, based on its priority score. * @example ```true``` */ exclusive?: boolean | null; /** * The priority assigned to the promotion (lower means higher priority). * @example ```2``` */ priority?: number | null; /** * The activation date/time of this promotion. * @example ```"2018-01-01T12:00:00.000Z"``` */ starts_at: string; /** * The expiration date/time of this promotion (must be after starts_at). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at: string; /** * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. * @example ```5``` */ total_usage_limit?: number | null; /** * The number of times this promotion has been applied. * @example ```2``` */ total_usage_count?: number | null; /** * Indicates if the promotion has been applied the total number of allowed times. */ total_usage_reached?: boolean | null; /** * Indicates if the promotion is active (enabled and not expired). * @example ```true``` */ active?: boolean | null; /** * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. * @example ```"pending"``` */ status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null; /** * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first. * @example ```112``` */ weight?: number | null; /** * The total number of coupons created for this promotion. * @example ```2``` */ coupons_count?: number | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; market?: Market | null; promotion_rules?: PromotionRule[] | null; order_amount_promotion_rule?: OrderAmountPromotionRule | null; sku_list_promotion_rule?: SkuListPromotionRule | null; coupon_codes_promotion_rule?: CouponCodesPromotionRule | null; custom_promotion_rule?: CustomPromotionRule | null; sku_list?: SkuList | null; coupons?: Coupon[] | null; attachments?: Attachment[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class Promotions extends ApiResource { static readonly TYPE: PromotionType; market(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_amount_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupon_codes_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; custom_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; coupons(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isPromotion(resource: any): resource is Promotion; relationship(id: string | ResourceId | null): PromotionRel$1; relationshipToMany(...ids: string[]): PromotionRel$1[]; type(): PromotionType; } declare const instance$s: Promotions; type TaxCalculatorType = 'tax_calculators'; type TaxCalculatorRel$1 = ResourceRel & { type: TaxCalculatorType; }; type TaxCalculatorSort = Pick & ResourceSort; interface TaxCalculator extends Resource { readonly type: TaxCalculatorType; /** * The tax calculator's internal name. * @example ```"Personal tax calculator"``` */ name: string; markets?: Market[] | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class TaxCalculators extends ApiResource { static readonly TYPE: TaxCalculatorType; markets(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTaxCalculator(resource: any): resource is TaxCalculator; relationship(id: string | ResourceId | null): TaxCalculatorRel$1; relationshipToMany(...ids: string[]): TaxCalculatorRel$1[]; type(): TaxCalculatorType; } declare const instance$r: TaxCalculators; type TransactionType = 'transactions'; type TransactionRel$1 = ResourceRel & { type: TransactionType; }; type TransactionSort = Pick & ResourceSort; interface Transaction extends Resource { readonly type: TransactionType; /** * The transaction number, auto generated. * @example ```"42/T/001"``` */ number: string; /** * Information about the payment method used in the transaction. * @example ```"credit card"``` */ payment_method_type?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. * @example ```"EUR"``` */ currency_code: string; /** * The transaction amount, in cents. * @example ```1500``` */ amount_cents: number; /** * The transaction amount, float. * @example ```15``` */ amount_float: number; /** * The transaction amount, formatted. * @example ```"€15,00"``` */ formatted_amount: string; /** * Indicates if the transaction is successful. */ succeeded: boolean; /** * The message returned by the payment gateway. * @example ```"Accepted"``` */ message?: string | null; /** * The error code, if any, returned by the payment gateway. * @example ```"00001"``` */ error_code?: string | null; /** * The error detail, if any, returned by the payment gateway. * @example ```"Already settled"``` */ error_detail?: string | null; /** * The token identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ token?: string | null; /** * The ID identifying the transaction, returned by the payment gateway. * @example ```"xxxx-yyyy-zzzz"``` */ gateway_transaction_id?: string | null; order?: Order | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; attachments?: Attachment[] | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } declare class Transactions extends ApiResource { static readonly TYPE: TransactionType; order(transactionId: string | Transaction, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; attachments(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTransaction(resource: any): resource is Transaction; relationship(id: string | ResourceId | null): TransactionRel$1; relationshipToMany(...ids: string[]): TransactionRel$1[]; type(): TransactionType; } declare const instance$q: Transactions; type AttachmentType = 'attachments'; type AttachmentRel = ResourceRel & { type: AttachmentType; }; type GeocoderRel$1 = ResourceRel & { type: GeocoderType; }; type PriceListRel = ResourceRel & { type: PriceListType; }; type PaymentMethodRel$1 = ResourceRel & { type: PaymentMethodType; }; type MarketRel$2 = ResourceRel & { type: MarketType; }; type CustomerGroupRel = ResourceRel & { type: CustomerGroupType; }; type PromotionRel = ResourceRel & { type: PromotionType; }; type OrderRel$3 = ResourceRel & { type: OrderType; }; type TransactionRel = ResourceRel & { type: TransactionType; }; type TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType; }; type TaxCategoryRel = ResourceRel & { type: TaxCategoryType; }; type SkuRel$1 = ResourceRel & { type: SkuType; }; type ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType; }; type BundleRel = ResourceRel & { type: BundleType; }; type SkuListRel = ResourceRel & { type: SkuListType; }; type StockItemRel = ResourceRel & { type: StockItemType; }; type StockLocationRel = ResourceRel & { type: StockLocationType; }; type ReturnRel = ResourceRel & { type: ReturnType; }; type CarrierAccountRel = ResourceRel & { type: CarrierAccountType; }; type CouponRecipientRel = ResourceRel & { type: CouponRecipientType; }; type CustomerRel$2 = ResourceRel & { type: CustomerType; }; type DeliveryLeadTimeRel = ResourceRel & { type: DeliveryLeadTimeType; }; type ShippingMethodRel = ResourceRel & { type: ShippingMethodType; }; type ShipmentRel$1 = ResourceRel & { type: ShipmentType; }; type DiscountEngineRel = ResourceRel & { type: DiscountEngineType; }; type ParcelRel = ResourceRel & { type: ParcelType; }; type GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType; }; type GiftCardRel = ResourceRel & { type: GiftCardType; }; type InventoryModelRel = ResourceRel & { type: InventoryModelType; }; type StockTransferRel = ResourceRel & { type: StockTransferType; }; type SkuOptionRel = ResourceRel & { type: SkuOptionType; }; type MerchantRel = ResourceRel & { type: MerchantType; }; type SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType; }; type PaymentOptionRel = ResourceRel & { type: PaymentOptionType; }; type PackageRel = ResourceRel & { type: PackageType; }; type PriceRel = ResourceRel & { type: PriceType; }; type PriceTierRel = ResourceRel & { type: PriceTierType; }; type ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType; }; type ShippingZoneRel = ResourceRel & { type: ShippingZoneType; }; type AttachmentSort = Pick & ResourceSort; interface Attachment extends Resource { readonly type: AttachmentType; /** * The internal name of the attachment. * @example ```"DDT transport document"``` */ name: string; /** * An internal description of the attachment. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The attachment URL. * @example ```"https://s3.yourdomain.com/attachment.pdf"``` */ url?: string | null; attachable?: Geocoder | PriceList | PaymentMethod | Market | CustomerGroup | Promotion | Order | Transaction | TaxCalculator | TaxCategory | Sku | ShippingCategory | Bundle | SkuList | StockItem | StockLocation | Return | CarrierAccount | CouponRecipient | Customer | DeliveryLeadTime | ShippingMethod | Shipment | DiscountEngine | Parcel | GiftCardRecipient | GiftCard | InventoryModel | StockTransfer | SkuOption | Merchant | SubscriptionModel | PaymentOption | Package | Price | PriceTier | ShippingMethodTier | ShippingZone | null; event_stores?: EventStore[] | null; } interface AttachmentCreate extends ResourceCreate { /** * The internal name of the attachment. * @example ```"DDT transport document"``` */ name: string; /** * An internal description of the attachment. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The attachment URL. * @example ```"https://s3.yourdomain.com/attachment.pdf"``` */ url?: string | null; attachable: GeocoderRel$1 | PriceListRel | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel | PromotionRel | OrderRel$3 | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$2 | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel$1 | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel; } interface AttachmentUpdate extends ResourceUpdate { /** * The internal name of the attachment. * @example ```"DDT transport document"``` */ name?: string | null; /** * An internal description of the attachment. * @example ```"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."``` */ description?: string | null; /** * The attachment URL. * @example ```"https://s3.yourdomain.com/attachment.pdf"``` */ url?: string | null; attachable?: GeocoderRel$1 | PriceListRel | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel | PromotionRel | OrderRel$3 | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$2 | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel$1 | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null; } declare class Attachments extends ApiResource { static readonly TYPE: AttachmentType; create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; event_stores(attachmentId: string | Attachment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isAttachment(resource: any): resource is Attachment; relationship(id: string | ResourceId | null): AttachmentRel; relationshipToMany(...ids: string[]): AttachmentRel[]; type(): AttachmentType; } declare const instance$p: Attachments; type OrderCopyType = 'order_copies'; type OrderCopyRel = ResourceRel & { type: OrderCopyType; }; type OrderRel$2 = ResourceRel & { type: OrderType; }; type OrderCopySort = Pick & ResourceSort; interface OrderCopy extends Resource { readonly type: OrderCopyType; /** * The order factory status. One of 'pending' (default), 'in_progress', 'aborted', 'failed', or 'completed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'aborted' | 'failed' | 'completed'; /** * Time at which the order copy was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the order copy was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the order copy has failed. * @example ```"2018-01-01T12:00:00.000Z"``` */ failed_at?: string | null; /** * Contains the order copy errors, if any. * @example ```{"status":["cannot transition from draft to placed"]}``` */ errors_log?: Record | null; /** * Indicates the number of copy errors, if any. * @example ```2``` */ errors_count?: number | null; /** * Indicates if the target order must be placed upon copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates if the payment source within the source order customer's wallet must be copied. * @example ```true``` */ reuse_wallet?: boolean | null; /** * Indicates if the source order must be cancelled upon copy. * @example ```true``` */ cancel_source_order?: boolean | null; /** * Indicates if promotions got applied upon copy. * @example ```true``` */ apply_promotions?: boolean | null; /** * Indicates to ignore any errors during copy. * @example ```true``` */ skip_errors?: boolean | null; /** * Indicates to ignore invalid coupon code during copy. * @example ```true``` */ ignore_invalid_coupon?: boolean | null; source_order?: Order | null; target_order?: Order | null; events?: Event[] | null; event_stores?: EventStore[] | null; order_subscription?: OrderSubscription | null; } interface OrderCopyCreate extends ResourceCreate { /** * Indicates if the target order must be placed upon copy. * @example ```true``` */ place_target_order?: boolean | null; /** * Indicates if the payment source within the source order customer's wallet must be copied. * @example ```true``` */ reuse_wallet?: boolean | null; /** * Indicates if the source order must be cancelled upon copy. * @example ```true``` */ cancel_source_order?: boolean | null; /** * Indicates if promotions got applied upon copy. * @example ```true``` */ apply_promotions?: boolean | null; /** * Indicates to ignore any errors during copy. * @example ```true``` */ skip_errors?: boolean | null; /** * Indicates to ignore invalid coupon code during copy. * @example ```true``` */ ignore_invalid_coupon?: boolean | null; source_order: OrderRel$2; } type OrderCopyUpdate = ResourceUpdate; declare class OrderCopies extends ApiResource { static readonly TYPE: OrderCopyType; create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: OrderCopyUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; source_order(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; target_order(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(orderCopyId: string | OrderCopy, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(orderCopyId: string | OrderCopy, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_subscription(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isOrderCopy(resource: any): resource is OrderCopy; relationship(id: string | ResourceId | null): OrderCopyRel; relationshipToMany(...ids: string[]): OrderCopyRel[]; type(): OrderCopyType; } declare const instance$o: OrderCopies; type OrderType = 'orders'; type OrderRel$1 = ResourceRel & { type: OrderType; }; type MarketRel$1 = ResourceRel & { type: MarketType; }; type CustomerRel$1 = ResourceRel & { type: CustomerType; }; type AddressRel$1 = ResourceRel & { type: AddressType; }; type StoreRel = ResourceRel & { type: StoreType; }; type PaymentMethodRel = ResourceRel & { type: PaymentMethodType; }; type AdyenPaymentRel$2 = ResourceRel & { type: AdyenPaymentType; }; type AxervePaymentRel$1 = ResourceRel & { type: AxervePaymentType; }; type BraintreePaymentRel$1 = ResourceRel & { type: BraintreePaymentType; }; type CheckoutComPaymentRel$1 = ResourceRel & { type: CheckoutComPaymentType; }; type ExternalPaymentRel = ResourceRel & { type: ExternalPaymentType; }; type KlarnaPaymentRel$1 = ResourceRel & { type: KlarnaPaymentType; }; type PaypalPaymentRel = ResourceRel & { type: PaypalPaymentType; }; type SatispayPaymentRel$1 = ResourceRel & { type: SatispayPaymentType; }; type StripePaymentRel = ResourceRel & { type: StripePaymentType; }; type WireTransferRel = ResourceRel & { type: WireTransferType; }; type TagRel$1 = ResourceRel & { type: TagType; }; type OrderSort = Pick & ResourceSort; interface Order extends Resource { readonly type: OrderType; /** * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. * @example ```"1234"``` */ number?: string | null; /** * The affiliate code, if any, to track commissions using any third party services. * @example ```"xxxx-yyyy-zzzz"``` */ affiliate_code?: string | null; /** * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). * @example ```true``` */ autorefresh?: boolean | null; /** * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. * @example ```true``` */ place_async?: boolean | null; /** * The order status. One of 'draft' (default), 'pending', 'editing', 'placing', 'placed', 'approved', or 'cancelled'. * @example ```"draft"``` */ status: 'draft' | 'pending' | 'editing' | 'placing' | 'placed' | 'approved' | 'cancelled'; /** * The order payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded', or 'free'. * @example ```"unpaid"``` */ payment_status: 'unpaid' | 'authorized' | 'partially_authorized' | 'paid' | 'partially_paid' | 'voided' | 'partially_voided' | 'refunded' | 'partially_refunded' | 'free'; /** * The order fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'. * @example ```"unfulfilled"``` */ fulfillment_status: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required'; /** * Indicates if the order has been placed as guest. * @example ```true``` */ guest?: boolean | null; /** * Indicates if the order can be edited. * @example ```true``` */ editable?: boolean | null; /** * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The type of the associated customer. One of 'new', or 'returning'. * @example ```"returning"``` */ customer_type?: 'new' | 'returning' | null; /** * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. * @example ```"it"``` */ language_code?: string | null; /** * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. * @example ```"EUR"``` */ currency_code?: string | null; /** * Indicates if taxes are included in the order amounts, automatically inherited from the order's price list. * @example ```true``` */ tax_included?: boolean | null; /** * The tax rate for this order (if calculated). * @example ```0.22``` */ tax_rate?: number | null; /** * Indicates if taxes are applied to shipping costs. * @example ```true``` */ freight_taxable?: boolean | null; /** * Indicates if taxes are applied to payment methods costs. * @example ```true``` */ payment_method_taxable?: boolean | null; /** * Indicates if taxes are applied to positive adjustments. * @example ```true``` */ adjustment_taxable?: boolean | null; /** * Indicates if taxes are applied to purchased gift cards. */ gift_card_taxable?: boolean | null; /** * Indicates if the billing address associated to this order requires billing info to be present. */ requires_billing_info?: boolean | null; /** * The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses. * @example ```"IT"``` */ country_code?: string | null; /** * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. * @example ```"IT"``` */ shipping_country_code_lock?: string | null; /** * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. * @example ```"SUMMERDISCOUNT"``` */ coupon_code?: string | null; /** * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. * @example ```"cc92c23e-967e-48b2-a323-59add603301f"``` */ gift_card_code?: string | null; /** * The sum of all the SKU line items total amounts, in cents. * @example ```5000``` */ subtotal_amount_cents?: number | null; /** * The sum of all the SKU line items total amounts, float. * @example ```50``` */ subtotal_amount_float?: number | null; /** * The sum of all the SKU line items total amounts, formatted. * @example ```"€50,00"``` */ formatted_subtotal_amount?: string | null; /** * The sum of all the shipping costs, in cents. * @example ```1200``` */ shipping_amount_cents?: number | null; /** * The sum of all the shipping costs, float. * @example ```12``` */ shipping_amount_float?: number | null; /** * The sum of all the shipping costs, formatted. * @example ```"€12,00"``` */ formatted_shipping_amount?: string | null; /** * The payment method costs, in cents. */ payment_method_amount_cents?: number | null; /** * The payment method costs, float. */ payment_method_amount_float?: number | null; /** * The payment method costs, formatted. * @example ```"€0,00"``` */ formatted_payment_method_amount?: string | null; /** * The sum of all the discounts applied to the order, in cents (negative amount). * @example ```-500``` */ discount_amount_cents?: number | null; /** * The sum of all the discounts applied to the order, float. * @example ```-5``` */ discount_amount_float?: number | null; /** * The sum of all the discounts applied to the order, formatted. * @example ```"-€5,00"``` */ formatted_discount_amount?: string | null; /** * The sum of all the adjustments applied to the order, in cents. * @example ```1500``` */ adjustment_amount_cents?: number | null; /** * The sum of all the adjustments applied to the order, float. * @example ```15``` */ adjustment_amount_float?: number | null; /** * The sum of all the adjustments applied to the order, formatted. * @example ```"€15,00"``` */ formatted_adjustment_amount?: string | null; /** * The sum of all the gift_cards applied to the order, in cents. * @example ```1500``` */ gift_card_amount_cents?: number | null; /** * The sum of all the gift_cards applied to the order, float. * @example ```15``` */ gift_card_amount_float?: number | null; /** * The sum of all the gift_cards applied to the order, formatted. * @example ```"€15,00"``` */ formatted_gift_card_amount?: string | null; /** * The sum of all the taxes applied to the order, in cents. * @example ```1028``` */ total_tax_amount_cents?: number | null; /** * The sum of all the taxes applied to the order, float. * @example ```10.28``` */ total_tax_amount_float?: number | null; /** * The sum of all the taxes applied to the order, formatted. * @example ```"€10,28"``` */ formatted_total_tax_amount?: string | null; /** * The taxes applied to the order's subtotal, in cents. * @example ```902``` */ subtotal_tax_amount_cents?: number | null; /** * The taxes applied to the order's subtotal, float. * @example ```9.02``` */ subtotal_tax_amount_float?: number | null; /** * The taxes applied to the order's subtotal, formatted. * @example ```"€9,02"``` */ formatted_subtotal_tax_amount?: string | null; /** * The taxes applied to the order's shipping costs, in cents. * @example ```216``` */ shipping_tax_amount_cents?: number | null; /** * The taxes applied to the order's shipping costs, float. * @example ```2.16``` */ shipping_tax_amount_float?: number | null; /** * The taxes applied to the order's shipping costs, formatted. * @example ```"€2,16"``` */ formatted_shipping_tax_amount?: string | null; /** * The taxes applied to the order's payment method costs, in cents. */ payment_method_tax_amount_cents?: number | null; /** * The taxes applied to the order's payment method costs, float. */ payment_method_tax_amount_float?: number | null; /** * The taxes applied to the order's payment method costs, formatted. * @example ```"€0,00"``` */ formatted_payment_method_tax_amount?: string | null; /** * The taxes applied to the order adjustments, in cents. * @example ```900``` */ adjustment_tax_amount_cents?: number | null; /** * The taxes applied to the order adjustments, float. * @example ```9``` */ adjustment_tax_amount_float?: number | null; /** * The taxes applied to the order adjustments, formatted. * @example ```"€9,00"``` */ formatted_adjustment_tax_amount?: string | null; /** * The order's total amount, in cents. * @example ```5700``` */ total_amount_cents?: number | null; /** * The order's total amount, float. * @example ```57``` */ total_amount_float?: number | null; /** * The order's total amount, formatted. * @example ```"€57,00"``` */ formatted_total_amount?: string | null; /** * The order's total taxable amount, in cents (without discounts). * @example ```4672``` */ total_taxable_amount_cents?: number | null; /** * The order's total taxable amount, float. * @example ```46.72``` */ total_taxable_amount_float?: number | null; /** * The order's total taxable amount, formatted. * @example ```"€46,72"``` */ formatted_total_taxable_amount?: string | null; /** * The order's subtotal taxable amount, in cents (equal to subtotal_amount_cents when prices don't include taxes). * @example ```4098``` */ subtotal_taxable_amount_cents?: number | null; /** * The order's subtotal taxable amount, float. * @example ```40.98``` */ subtotal_taxable_amount_float?: number | null; /** * The order's subtotal taxable amount, formatted. * @example ```"€40,98"``` */ formatted_subtotal_taxable_amount?: string | null; /** * The order's shipping taxable amount, in cents (equal to shipping_amount_cents when prices don't include taxes). * @example ```984``` */ shipping_taxable_amount_cents?: number | null; /** * The order's shipping taxable amount, float. * @example ```9.84``` */ shipping_taxable_amount_float?: number | null; /** * The order's shipping taxable amount, formatted. * @example ```"€9,84"``` */ formatted_shipping_taxable_amount?: string | null; /** * The order's payment method taxable amount, in cents (equal to payment_method_amount_cents when prices don't include taxes). */ payment_method_taxable_amount_cents?: number | null; /** * The order's payment method taxable amount, float. */ payment_method_taxable_amount_float?: number | null; /** * The order's payment method taxable amount, formatted. * @example ```"€0,00"``` */ formatted_payment_method_taxable_amount?: string | null; /** * The order's adjustment taxable amount, in cents (equal to discount_adjustment_cents when prices don't include taxes). * @example ```120``` */ adjustment_taxable_amount_cents?: number | null; /** * The order's adjustment taxable amount, float. * @example ```1.2``` */ adjustment_taxable_amount_float?: number | null; /** * The order's adjustment taxable amount, formatted. * @example ```"€1,20"``` */ formatted_adjustment_taxable_amount?: string | null; /** * The order's total amount (when prices include taxes) or the order's total + taxes amount (when prices don't include taxes, e.g. US Markets or B2B). * @example ```5700``` */ total_amount_with_taxes_cents?: number | null; /** * The order's total amount with taxes, float. * @example ```57``` */ total_amount_with_taxes_float?: number | null; /** * The order's total amount with taxes, formatted. * @example ```"€57,00"``` */ formatted_total_amount_with_taxes?: string | null; /** * The fees amount that is applied by Commerce Layer, in cents. */ fees_amount_cents?: number | null; /** * The fees amount that is applied by Commerce Layer, float. */ fees_amount_float?: number | null; /** * The fees amount that is applied by Commerce Layer, formatted. * @example ```"€0,00"``` */ formatted_fees_amount?: string | null; /** * The duty amount that is calculated by external services, in cents. */ duty_amount_cents?: number | null; /** * The duty amount that is calculated by external services, float. */ duty_amount_float?: number | null; /** * The duty amount that is calculated by external services, formatted. * @example ```"€0,00"``` */ formatted_duty_amount?: string | null; /** * The total amount at place time, in cents, which is used internally for editing. */ place_total_amount_cents?: number | null; /** * The total amount at place time, float. */ place_total_amount_float?: number | null; /** * The total amount at place time, formatted. * @example ```"€0,00"``` */ formatted_place_total_amount?: string | null; /** * The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content. * @example ```2``` */ skus_count?: number | null; /** * The total number of line item options. This can be useful to display a preview of the customer shopping cart content. * @example ```1``` */ line_item_options_count?: number | null; /** * The total number of shipments. This can be useful to manage the shipping method(s) selection during checkout. * @example ```1``` */ shipments_count?: number | null; /** * The total number of tax calculations. This can be useful to monitor external tax service usage. * @example ```1``` */ tax_calculations_count?: number | null; /** * The total number of external validation performed. This can be useful to monitor if external validation has been triggered. * @example ```1``` */ validations_count?: number | null; /** * The total number of resource errors. * @example ```1``` */ errors_count?: number | null; /** * An object that contains the shareable details of the order's payment source. * @example ```{"foo":"bar"}``` */ payment_source_details?: Record | null; /** * A unique token that can be shared more securely instead of the order's id. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ token?: string | null; /** * The cart url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/cart"``` */ cart_url?: string | null; /** * The return url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/"``` */ return_url?: string | null; /** * The terms and conditions url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/terms"``` */ terms_url?: string | null; /** * The privacy policy url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/privacy"``` */ privacy_url?: string | null; /** * The checkout url that was automatically generated for the order. Send the customers to this url to let them checkout the order securely on our hosted checkout application. * @example ```"https://yourdomain.commercelayer.io/checkout/1c0994cc4e996e8c6ee56a2198f66f3c"``` */ checkout_url?: string | null; /** * Time at which the order was placed. * @example ```"2018-01-01T12:00:00.000Z"``` */ placed_at?: string | null; /** * Time at which the order was approved. * @example ```"2018-01-01T12:00:00.000Z"``` */ approved_at?: string | null; /** * Time at which the order was cancelled. * @example ```"2018-01-01T12:00:00.000Z"``` */ cancelled_at?: string | null; /** * Time at which the order's payment status was last updated. * @example ```"2018-01-01T12:00:00.000Z"``` */ payment_updated_at?: string | null; /** * Time at which the order's fulfillment status was last updated. * @example ```"2018-01-01T12:00:00.000Z"``` */ fulfillment_updated_at?: string | null; /** * Last time at which the order was refreshed. * @example ```"2018-01-01T12:00:00.000Z"``` */ refreshed_at?: string | null; /** * Time at which the resource has been archived. * @example ```"2018-01-01T12:00:00.000Z"``` */ archived_at?: string | null; /** * Time at which the order has been marked to create a subscription from its recurring line items. * @example ```"2018-01-01T12:00:00.000Z"``` */ subscription_created_at?: string | null; /** * The expiration date/time of this order. Cannot be passed by sales channels. * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels. * @example ```{"summary_message":"Your tickets are reserved for the remaining time.","expired_message":"Your session has expired. Please start your checkout again.","redirect_url":"https://yourshop.com/"}``` */ expiration_info?: Record | null; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; market?: Market | null; customer?: Customer | null; shipping_address?: Address | null; billing_address?: Address | null; store?: Store | null; default_shipping_method?: ShippingMethod | null; default_payment_method?: PaymentMethod | null; available_payment_methods?: PaymentMethod[] | null; available_customer_payment_sources?: CustomerPaymentSource[] | null; available_free_skus?: Sku[] | null; available_free_bundles?: Bundle[] | null; payment_method?: PaymentMethod | null; payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null; discount_engine_item?: DiscountEngineItem | null; line_items?: LineItem[] | null; line_item_options?: LineItemOption[] | null; stock_reservations?: StockReservation[] | null; stock_line_items?: StockLineItem[] | null; stock_transfers?: StockTransfer[] | null; shipments?: Shipment[] | null; payment_options?: PaymentOption[] | null; transactions?: Array | null; authorizations?: Authorization[] | null; captures?: Capture[] | null; voids?: Void[] | null; refunds?: Refund[] | null; returns?: Return[] | null; order_subscription?: OrderSubscription | null; order_subscriptions?: OrderSubscription[] | null; order_factories?: OrderFactory[] | null; order_copies?: OrderCopy[] | null; recurring_order_copies?: RecurringOrderCopy[] | null; attachments?: Attachment[] | null; notifications?: Notification[] | null; links?: Link[] | null; resource_errors?: ResourceError[] | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface OrderCreate extends ResourceCreate { /** * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. * @example ```"1234"``` */ number?: string | null; /** * The affiliate code, if any, to track commissions using any third party services. * @example ```"xxxx-yyyy-zzzz"``` */ affiliate_code?: string | null; /** * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). * @example ```true``` */ autorefresh?: boolean | null; /** * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. * @example ```true``` */ place_async?: boolean | null; /** * Indicates if the order has been placed as guest. * @example ```true``` */ guest?: boolean | null; /** * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer. * @example ```"secret"``` */ customer_password?: string | null; /** * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. * @example ```"it"``` */ language_code?: string | null; /** * Indicates if taxes are applied to shipping costs. * @example ```true``` */ freight_taxable?: boolean | null; /** * Indicates if taxes are applied to payment methods costs. * @example ```true``` */ payment_method_taxable?: boolean | null; /** * Indicates if taxes are applied to positive adjustments. * @example ```true``` */ adjustment_taxable?: boolean | null; /** * Indicates if taxes are applied to purchased gift cards. */ gift_card_taxable?: boolean | null; /** * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. * @example ```"IT"``` */ shipping_country_code_lock?: string | null; /** * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. * @example ```"SUMMERDISCOUNT"``` */ coupon_code?: string | null; /** * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. * @example ```"cc92c23e-967e-48b2-a323-59add603301f"``` */ gift_card_code?: string | null; /** * The cart url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/cart"``` */ cart_url?: string | null; /** * The return url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/"``` */ return_url?: string | null; /** * The terms and conditions url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/terms"``` */ terms_url?: string | null; /** * The privacy policy url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/privacy"``` */ privacy_url?: string | null; /** * The expiration date/time of this order. Cannot be passed by sales channels. * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels. * @example ```{"summary_message":"Your tickets are reserved for the remaining time.","expired_message":"Your session has expired. Please start your checkout again.","redirect_url":"https://yourshop.com/"}``` */ expiration_info?: Record | null; market?: MarketRel$1 | null; customer?: CustomerRel$1 | null; shipping_address?: AddressRel$1 | null; billing_address?: AddressRel$1 | null; store?: StoreRel | null; payment_method?: PaymentMethodRel | null; payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null; tags?: TagRel$1[] | null; } interface OrderUpdate extends ResourceUpdate { /** * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. * @example ```"1234"``` */ number?: string | null; /** * The affiliate code, if any, to track commissions using any third party services. * @example ```"xxxx-yyyy-zzzz"``` */ affiliate_code?: string | null; /** * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). * @example ```true``` */ autorefresh?: boolean | null; /** * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. * @example ```true``` */ place_async?: boolean | null; /** * Indicates if the order has been placed as guest. * @example ```true``` */ guest?: boolean | null; /** * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer. * @example ```"secret"``` */ customer_password?: string | null; /** * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. * @example ```"it"``` */ language_code?: string | null; /** * Indicates if taxes are applied to shipping costs. * @example ```true``` */ freight_taxable?: boolean | null; /** * Indicates if taxes are applied to payment methods costs. * @example ```true``` */ payment_method_taxable?: boolean | null; /** * Indicates if taxes are applied to positive adjustments. * @example ```true``` */ adjustment_taxable?: boolean | null; /** * Indicates if taxes are applied to purchased gift cards. */ gift_card_taxable?: boolean | null; /** * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. * @example ```"IT"``` */ shipping_country_code_lock?: string | null; /** * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. * @example ```"SUMMERDISCOUNT"``` */ coupon_code?: string | null; /** * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. * @example ```"cc92c23e-967e-48b2-a323-59add603301f"``` */ gift_card_code?: string | null; /** * The cart url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/cart"``` */ cart_url?: string | null; /** * The return url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/"``` */ return_url?: string | null; /** * The terms and conditions url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/terms"``` */ terms_url?: string | null; /** * The privacy policy url on your site. If present, it will be used on our hosted checkout application. * @example ```"https://yourdomain.com/privacy"``` */ privacy_url?: string | null; /** * Send this attribute if you want to archive the order. * @example ```true``` */ _archive?: boolean | null; /** * Send this attribute if you want to unarchive the order. * @example ```true``` */ _unarchive?: boolean | null; /** * Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels. * @example ```true``` */ _pending?: boolean | null; /** * Send this attribute if you want to place the order. * @example ```true``` */ _place?: boolean | null; /** * Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided. * @example ```true``` */ _cancel?: boolean | null; /** * Send this attribute if you want to approve a placed order. Cannot be passed by sales channels. * @example ```true``` */ _approve?: boolean | null; /** * Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels. * @example ```true``` */ _approve_and_capture?: boolean | null; /** * Send this attribute if you want to authorize the order's payment source. * @example ```true``` */ _authorize?: boolean | null; /** * Send this attribute as a value in cents if you want to overwrite the amount to be authorized. * @example ```500``` */ _authorization_amount_cents?: number | null; /** * Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels. * @example ```true``` */ _capture?: boolean | null; /** * Send this attribute if you want to refund a captured order. Cannot be passed by sales channels. * @example ```true``` */ _refund?: boolean | null; /** * Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered, alternatively order must be approved). Cannot be passed by sales channels. * @example ```true``` */ _fulfill?: boolean | null; /** * Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market). * @example ```true``` */ _update_taxes?: boolean | null; /** * Send this attribute if you want to nullify the payment source for this order. */ _nullify_payment_source?: boolean | null; /** * Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready to be approved. A tentative to fix the payment source is done before approval automatically. Cannot be passed by sales channels. * @example ```true``` */ _fix_payment_source?: boolean | null; /** * The id of the address that you want to clone to create the order's billing address. * @example ```"1234"``` */ _billing_address_clone_id?: string | null; /** * The id of the address that you want to clone to create the order's shipping address. * @example ```"1234"``` */ _shipping_address_clone_id?: string | null; /** * The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source. * @example ```"1234"``` */ _customer_payment_source_id?: string | null; /** * Send this attribute if you want the shipping address to be cloned from the order's billing address. * @example ```true``` */ _shipping_address_same_as_billing?: boolean | null; /** * Send this attribute if you want the billing address to be cloned from the order's shipping address. * @example ```true``` */ _billing_address_same_as_shipping?: boolean | null; /** * Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara). * @example ```true``` */ _commit_invoice?: boolean | null; /** * Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara). * @example ```true``` */ _refund_invoice?: boolean | null; /** * Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source. * @example ```true``` */ _save_payment_source_to_customer_wallet?: boolean | null; /** * Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address. * @example ```true``` */ _save_shipping_address_to_customer_address_book?: boolean | null; /** * Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address. * @example ```true``` */ _save_billing_address_to_customer_address_book?: boolean | null; /** * Send this attribute if you want to manually refresh the order. * @example ```true``` */ _refresh?: boolean | null; /** * Send this attribute if you want to refresh the prices of the line items associated to this order. Cannot be passed by sales channels. * @example ```true``` */ _refresh_prices?: boolean | null; /** * Send this attribute if you want to trigger the external validation for the order. * @example ```true``` */ _validate?: boolean | null; /** * Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency. * @example ```true``` */ _create_subscriptions?: boolean | null; /** * Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels. * @example ```true``` */ _start_editing?: boolean | null; /** * Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels. * @example ```true``` */ _stop_editing?: boolean | null; /** * The expiration date/time of this order. Cannot be passed by sales channels. * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels. * @example ```{"summary_message":"Your tickets are reserved for the remaining time.","expired_message":"Your session has expired. Please start your checkout again.","redirect_url":"https://yourshop.com/"}``` */ expiration_info?: Record | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; market?: MarketRel$1 | null; customer?: CustomerRel$1 | null; shipping_address?: AddressRel$1 | null; billing_address?: AddressRel$1 | null; store?: StoreRel | null; payment_method?: PaymentMethodRel | null; payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null; tags?: TagRel$1[] | null; } declare class Orders extends ApiResource { static readonly TYPE: OrderType; create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; shipping_address(orderId: string | Order, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; billing_address(orderId: string | Order, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; store(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; default_shipping_method(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; default_payment_method(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; available_payment_methods(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; available_customer_payment_sources(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; available_free_skus(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; available_free_bundles(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; payment_method(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; discount_engine_item(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; line_items(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; line_item_options(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_reservations(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_line_items(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stock_transfers(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; shipments(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; payment_options(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; authorizations(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; captures(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; voids(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; refunds(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; returns(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_subscription(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; order_subscriptions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_factories(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; recurring_order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; notifications(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; links(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; resource_errors(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _archive(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _unarchive(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _pending(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _place(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _cancel(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _approve(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _approve_and_capture(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _authorize(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _authorization_amount_cents(id: string | Order, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _capture(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _fulfill(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _update_taxes(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _nullify_payment_source(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _fix_payment_source(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _billing_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _shipping_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _customer_payment_source_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _shipping_address_same_as_billing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _billing_address_same_as_shipping(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _commit_invoice(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refund_invoice(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _save_payment_source_to_customer_wallet(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _save_shipping_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _save_billing_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refresh(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _refresh_prices(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _validate(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _create_subscriptions(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _start_editing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _stop_editing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _add_tags(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _remove_tags(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isOrder(resource: any): resource is Order; relationship(id: string | ResourceId | null): OrderRel$1; relationshipToMany(...ids: string[]): OrderRel$1[]; type(): OrderType; } declare const instance$n: Orders; type AdyenPaymentType = 'adyen_payments'; type AdyenPaymentRel$1 = ResourceRel & { type: AdyenPaymentType; }; type OrderRel = ResourceRel & { type: OrderType; }; type AdyenPaymentSort = Pick & ResourceSort; interface AdyenPayment extends Resource { readonly type: AdyenPaymentType; /** * The public key linked to your API credential. * @example ```"xxxx-yyyy-zzzz"``` */ public_key?: string | null; /** * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK. * @example ```{"foo":"bar"}``` */ payment_methods: Record; /** * The Adyen payment request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_data?: Record | null; /** * The Adyen additional details request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_details?: Record | null; /** * The Adyen payment response, used by client (includes 'resultCode' and 'action'). * @example ```{"foo":"bar"}``` */ payment_response?: Record | null; /** * Indicates if the order current amount differs form the one of the associated authorization. */ mismatched_amounts?: boolean | null; /** * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute. * @example ```1000``` */ balance?: number | null; /** * The expiration date/time of this Adyen payment (valid for partial payments only). * @example ```"2018-01-02T12:00:00.000Z"``` */ expires_at?: string | null; /** * Information about the payment instrument used in the transaction. * @example ```{"issuer":"cl bank","card_type":"visa"}``` */ payment_instrument?: Record | null; order?: Order | null; payment_gateway?: PaymentGateway | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface AdyenPaymentCreate extends ResourceCreate { order: OrderRel; } interface AdyenPaymentUpdate extends ResourceUpdate { /** * The Adyen payment request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_data?: Record | null; /** * The Adyen additional details request data, collected by client. * @example ```{"foo":"bar"}``` */ payment_request_details?: Record | null; /** * Send this attribute if you want to authorize the payment. * @example ```true``` */ _authorize?: boolean | null; /** * Send this attribute if you want to send additional details the payment request. * @example ```true``` */ _details?: boolean | null; /** * Send this attribute if you want retrieve the balance remaining on a shopper's gift card. * @example ```true``` */ _balance?: boolean | null; order?: OrderRel | null; } declare class AdyenPayments extends ApiResource { static readonly TYPE: AdyenPaymentType; create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _details(id: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isAdyenPayment(resource: any): resource is AdyenPayment; relationship(id: string | ResourceId | null): AdyenPaymentRel$1; relationshipToMany(...ids: string[]): AdyenPaymentRel$1[]; type(): AdyenPaymentType; } declare const instance$m: AdyenPayments; type AdyenGatewayType = 'adyen_gateways'; type AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType; }; type AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType; }; type AdyenGatewaySort = Pick & ResourceSort; interface AdyenGateway extends Resource { readonly type: AdyenGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The prefix of the endpoint used for live transactions. * @example ```"1797a841fbb37ca7-AdyenDemo"``` */ live_url_prefix: string; /** * The checkout API version, supported range is from 66 to 71, default is 71. * @example ```71``` */ api_version?: number | null; /** * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. * @example ```true``` */ async_api?: boolean | null; /** * Send this attribute if you want to enable partial payments for the order. */ partial_payments?: boolean | null; /** * The minutes after which the order created for partial payments automatically expires. * @example ```30``` */ order_expiration_mins?: number | null; /** * Indicates if the gateway will use the native customer payment sources. * @example ```true``` */ native_customer_payment_sources?: boolean | null; /** * The gateway webhook endpoint secret, generated by Adyen customer area. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_secret?: string | null; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/adyen_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; adyen_payments?: AdyenPayment[] | null; } interface AdyenGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway merchant account. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_account: string; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key: string; /** * The public key linked to your API credential. * @example ```"xxxx-yyyy-zzzz"``` */ public_key?: string | null; /** * The prefix of the endpoint used for live transactions. * @example ```"1797a841fbb37ca7-AdyenDemo"``` */ live_url_prefix: string; /** * The checkout API version, supported range is from 66 to 71, default is 71. * @example ```71``` */ api_version?: number | null; /** * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. * @example ```true``` */ async_api?: boolean | null; /** * Send this attribute if you want to enable partial payments for the order. */ partial_payments?: boolean | null; /** * The minutes after which the order created for partial payments automatically expires. * @example ```30``` */ order_expiration_mins?: number | null; /** * Indicates if the gateway will use the native customer payment sources. * @example ```true``` */ native_customer_payment_sources?: boolean | null; /** * The gateway webhook endpoint secret, generated by Adyen customer area. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_secret?: string | null; adyen_payments?: AdyenPaymentRel[] | null; } interface AdyenGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway merchant account. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_account?: string | null; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key?: string | null; /** * The public key linked to your API credential. * @example ```"xxxx-yyyy-zzzz"``` */ public_key?: string | null; /** * The prefix of the endpoint used for live transactions. * @example ```"1797a841fbb37ca7-AdyenDemo"``` */ live_url_prefix?: string | null; /** * The checkout API version, supported range is from 66 to 71, default is 71. * @example ```71``` */ api_version?: number | null; /** * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. * @example ```true``` */ async_api?: boolean | null; /** * Send this attribute if you want to enable partial payments for the order. */ partial_payments?: boolean | null; /** * The minutes after which the order created for partial payments automatically expires. * @example ```30``` */ order_expiration_mins?: number | null; /** * Indicates if the gateway will use the native customer payment sources. * @example ```true``` */ native_customer_payment_sources?: boolean | null; /** * The gateway webhook endpoint secret, generated by Adyen customer area. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_secret?: string | null; adyen_payments?: AdyenPaymentRel[] | null; } declare class AdyenGateways extends ApiResource { static readonly TYPE: AdyenGatewayType; create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | AdyenGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | AdyenGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isAdyenGateway(resource: any): resource is AdyenGateway; relationship(id: string | ResourceId | null): AdyenGatewayRel; relationshipToMany(...ids: string[]): AdyenGatewayRel[]; type(): AdyenGatewayType; } declare const instance$l: AdyenGateways; type ApplicationType = 'applications'; type ApplicationRel = ResourceRel & { type: ApplicationType; }; type ApplicationSort = Pick & ResourceSort; interface Application extends Resource { readonly type: ApplicationType; /** * The application's internal name. * @example ```"My app"``` */ name?: string | null; /** * The application's kind. One of 'sales_channel', 'integration', or 'webapp'. * @example ```"sales-channel"``` */ kind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null; /** * Indicates if the application has public access. * @example ```true``` */ public_access?: boolean | null; /** * The application's redirect URI. * @example ```"https://bluebrand.com/img/logo.svg"``` */ redirect_uri?: string | null; /** * The application's scopes. * @example ```"market:all market:9 market:122 market:6 stock_location:6 stock_location:33"``` */ scopes?: string | null; } declare class Applications extends ApiSingleton { static readonly TYPE: ApplicationType; isApplication(resource: any): resource is Application; relationship(id: string | ResourceId | null): ApplicationRel; relationshipToMany(...ids: string[]): ApplicationRel[]; type(): ApplicationType; path(): string; } declare const instance$k: Applications; type AxerveGatewayType = 'axerve_gateways'; type AxerveGatewayRel = ResourceRel & { type: AxerveGatewayType; }; type AxervePaymentRel = ResourceRel & { type: AxervePaymentType; }; type AxerveGatewaySort = Pick & ResourceSort; interface AxerveGateway extends Resource { readonly type: AxerveGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The merchant login code. * @example ```"xxxx-yyyy-zzzz"``` */ login: string; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/axerve_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; axerve_payments?: AxervePayment[] | null; } interface AxerveGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The merchant login code. * @example ```"xxxx-yyyy-zzzz"``` */ login: string; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key: string; axerve_payments?: AxervePaymentRel[] | null; } interface AxerveGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The merchant login code. * @example ```"xxxx-yyyy-zzzz"``` */ login?: string | null; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key?: string | null; axerve_payments?: AxervePaymentRel[] | null; } declare class AxerveGateways extends ApiResource { static readonly TYPE: AxerveGatewayType; create(resource: AxerveGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: AxerveGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | AxerveGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | AxerveGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isAxerveGateway(resource: any): resource is AxerveGateway; relationship(id: string | ResourceId | null): AxerveGatewayRel; relationshipToMany(...ids: string[]): AxerveGatewayRel[]; type(): AxerveGatewayType; } declare const instance$j: AxerveGateways; type BingGeocoderType = 'bing_geocoders'; type BingGeocoderRel = ResourceRel & { type: BingGeocoderType; }; type BingGeocoderSort = Pick & ResourceSort; interface BingGeocoder extends Resource { readonly type: BingGeocoderType; /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name: string; markets?: Market[] | null; addresses?: Address[] | null; attachments?: Attachment[] | null; event_stores?: EventStore[] | null; } interface BingGeocoderCreate extends ResourceCreate { /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name: string; /** * The Bing Virtualearth key. * @example ```"xxxx-yyyy-zzzz"``` */ key: string; } interface BingGeocoderUpdate extends ResourceUpdate { /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name?: string | null; /** * The Bing Virtualearth key. * @example ```"xxxx-yyyy-zzzz"``` */ key?: string | null; } declare class BingGeocoders extends ApiResource { static readonly TYPE: BingGeocoderType; create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; addresses(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList
, options?: ResourcesConfig): Promise>; attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isBingGeocoder(resource: any): resource is BingGeocoder; relationship(id: string | ResourceId | null): BingGeocoderRel; relationshipToMany(...ids: string[]): BingGeocoderRel[]; type(): BingGeocoderType; } declare const instance$i: BingGeocoders; type BraintreeGatewayType = 'braintree_gateways'; type BraintreeGatewayRel = ResourceRel & { type: BraintreeGatewayType; }; type BraintreePaymentRel = ResourceRel & { type: BraintreePaymentType; }; type BraintreeGatewaySort = Pick & ResourceSort; interface BraintreeGateway extends Resource { readonly type: BraintreeGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars. * @example ```"company*productabc1234"``` */ descriptor_name?: string | null; /** * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods. * @example ```"3125551212"``` */ descriptor_phone?: string | null; /** * The dynamic descriptor URL. * @example ```"company.com"``` */ descriptor_url?: string | null; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/braintree_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; braintree_payments?: BraintreePayment[] | null; } interface BraintreeGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway merchant account ID. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_account_id: string; /** * The gateway merchant ID. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_id: string; /** * The gateway API public key. * @example ```"xxxx-yyyy-zzzz"``` */ public_key: string; /** * The gateway API private key. * @example ```"xxxx-yyyy-zzzz"``` */ private_key: string; /** * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars. * @example ```"company*productabc1234"``` */ descriptor_name?: string | null; /** * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods. * @example ```"3125551212"``` */ descriptor_phone?: string | null; /** * The dynamic descriptor URL. * @example ```"company.com"``` */ descriptor_url?: string | null; braintree_payments?: BraintreePaymentRel[] | null; } interface BraintreeGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway merchant account ID. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_account_id?: string | null; /** * The gateway merchant ID. * @example ```"xxxx-yyyy-zzzz"``` */ merchant_id?: string | null; /** * The gateway API public key. * @example ```"xxxx-yyyy-zzzz"``` */ public_key?: string | null; /** * The gateway API private key. * @example ```"xxxx-yyyy-zzzz"``` */ private_key?: string | null; /** * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars. * @example ```"company*productabc1234"``` */ descriptor_name?: string | null; /** * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods. * @example ```"3125551212"``` */ descriptor_phone?: string | null; /** * The dynamic descriptor URL. * @example ```"company.com"``` */ descriptor_url?: string | null; braintree_payments?: BraintreePaymentRel[] | null; } declare class BraintreeGateways extends ApiResource { static readonly TYPE: BraintreeGatewayType; create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; braintree_payments(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | BraintreeGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | BraintreeGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isBraintreeGateway(resource: any): resource is BraintreeGateway; relationship(id: string | ResourceId | null): BraintreeGatewayRel; relationshipToMany(...ids: string[]): BraintreeGatewayRel[]; type(): BraintreeGatewayType; } declare const instance$h: BraintreeGateways; type CheckoutComGatewayType = 'checkout_com_gateways'; type CheckoutComGatewayRel = ResourceRel & { type: CheckoutComGatewayType; }; type CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType; }; type CheckoutComGatewaySort = Pick & ResourceSort; interface CheckoutComGateway extends Resource { readonly type: CheckoutComGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The gateway webhook endpoint ID, generated automatically. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_id?: string | null; /** * The gateway webhook endpoint secret, generated automatically. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_secret?: string | null; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/checkout_com_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; checkout_com_payments?: CheckoutComPayment[] | null; } interface CheckoutComGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway secret key. * @example ```"sk_test_xxxx-yyyy-zzzz"``` */ secret_key: string; /** * The gateway public key. * @example ```"pk_test_xxxx-yyyy-zzzz"``` */ public_key: string; checkout_com_payments?: CheckoutComPaymentRel[] | null; } interface CheckoutComGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway secret key. * @example ```"sk_test_xxxx-yyyy-zzzz"``` */ secret_key?: string | null; /** * The gateway public key. * @example ```"pk_test_xxxx-yyyy-zzzz"``` */ public_key?: string | null; checkout_com_payments?: CheckoutComPaymentRel[] | null; } declare class CheckoutComGateways extends ApiResource { static readonly TYPE: CheckoutComGatewayType; create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCheckoutComGateway(resource: any): resource is CheckoutComGateway; relationship(id: string | ResourceId | null): CheckoutComGatewayRel; relationshipToMany(...ids: string[]): CheckoutComGatewayRel[]; type(): CheckoutComGatewayType; } declare const instance$g: CheckoutComGateways; type CleanupType = 'cleanups'; type CleanupRel = ResourceRel & { type: CleanupType; }; type CleanupSort = Pick & ResourceSort; interface Cleanup extends Resource { readonly type: CleanupType; /** * The type of resource being cleaned. * @example ```"skus"``` */ resource_type: string; /** * The cleanup job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'interrupted' | 'completed'; /** * Time at which the cleanup was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the cleanup was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the cleanup was interrupted. * @example ```"2018-01-01T12:00:00.000Z"``` */ interrupted_at?: string | null; /** * The filters used to select the records to be cleaned. * @example ```{"code_eq":"AAA"}``` */ filters?: Record | null; /** * Indicates the number of records to be cleaned. * @example ```300``` */ records_count?: number | null; /** * Indicates the number of cleanup errors, if any. * @example ```30``` */ errors_count?: number | null; /** * Indicates the number of records that have been cleaned. * @example ```270``` */ processed_count?: number | null; /** * Contains the cleanup errors, if any. * @example ```{"ABC":{"name":["has already been taken"]}}``` */ errors_log?: Record | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface CleanupCreate extends ResourceCreate { /** * The type of resource being cleaned. * @example ```"skus"``` */ resource_type: string; /** * The filters used to select the records to be cleaned. * @example ```{"code_eq":"AAA"}``` */ filters?: Record | null; } interface CleanupUpdate extends ResourceUpdate { /** * Send this attribute if you want to mark status as 'interrupted'. * @example ```true``` */ _interrupt?: boolean | null; } declare class Cleanups extends ApiResource { static readonly TYPE: CleanupType; create(resource: CleanupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CleanupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; events(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _interrupt(id: string | Cleanup, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCleanup(resource: any): resource is Cleanup; relationship(id: string | ResourceId | null): CleanupRel; relationshipToMany(...ids: string[]): CleanupRel[]; type(): CleanupType; } declare const instance$f: Cleanups; type CustomerPasswordResetType = 'customer_password_resets'; type CustomerPasswordResetRel = ResourceRel & { type: CustomerPasswordResetType; }; type CustomerPasswordResetSort = Pick & ResourceSort; interface CustomerPasswordReset extends Resource { readonly type: CustomerPasswordResetType; /** * The email of the customer that requires a password reset. * @example ```"john@example.com"``` */ customer_email: string; /** * Automatically generated on create. Send its value as the '_reset_password_token' argument when updating the customer password. * @example ```"xhFfkmfybsLxzaAP6xcs"``` */ reset_password_token?: string | null; /** * Time at which the password was reset. * @example ```"2018-01-01T12:00:00.000Z"``` */ reset_password_at?: string | null; customer?: Customer | null; events?: Event[] | null; event_stores?: EventStore[] | null; } interface CustomerPasswordResetCreate extends ResourceCreate { /** * The email of the customer that requires a password reset. * @example ```"john@example.com"``` */ customer_email: string; } interface CustomerPasswordResetUpdate extends ResourceUpdate { /** * The customer new password. This will be accepted only if a valid '_reset_password_token' is sent with the request. * @example ```"secret"``` */ customer_password?: string | null; /** * Send the 'reset_password_token' that you got on create when updating the customer password. * @example ```"xhFfkmfybsLxzaAP6xcs"``` */ _reset_password_token?: string | null; } declare class CustomerPasswordResets extends ApiResource { static readonly TYPE: CustomerPasswordResetType; create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; customer(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _reset_password_token(id: string | CustomerPasswordReset, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset; relationship(id: string | ResourceId | null): CustomerPasswordResetRel; relationshipToMany(...ids: string[]): CustomerPasswordResetRel[]; type(): CustomerPasswordResetType; } declare const instance$e: CustomerPasswordResets; type EasypostPickupType = 'easypost_pickups'; type EasypostPickupRel = ResourceRel & { type: EasypostPickupType; }; type ShipmentRel = ResourceRel & { type: ShipmentType; }; type EasypostPickupSort = Pick & ResourceSort; interface EasypostPickup extends Resource { readonly type: EasypostPickupType; /** * The pick up status. * @example ```"unknown"``` */ status?: string | null; /** * The pick up service internal ID. * @example ```"pickup_13e5d7e2a7824432a07975bc553944bc"``` */ internal_id: string; /** * The selected purchase rate from the available pick up rates. * @example ```"pickuprate_a6cd2647a898410aa5d33febde44e1b2"``` */ selected_rate_id?: string | null; /** * The available pick up rates. * @example ```[{"id":"pickuprate_a6cd2647a898410aa5d33febde44e1b2","rate":"45.59","carrier":"USPS","service":"NextDay"}]``` */ rates: Array>; /** * Additional text to help the driver successfully obtain the package, automatically enriched with parcels and package informations. * @example ```"Knock loudly"``` */ instructions?: string | null; /** * The earliest time at which the package is available to pick up, must be larger than 2 hours from creation time. * @example ```"2018-01-01T12:00:00.000Z"``` */ min_datetime: string; /** * The latest time at which the package is available to pick up, must be smaller than 24 hours from creation time. * @example ```"2018-01-01T12:00:00.000Z"``` */ max_datetime: string; /** * Time at which the purchasing of the pick up rate started. * @example ```"2018-01-01T12:00:00.000Z"``` */ purchase_started_at?: string | null; /** * Time at which the purchasing of the pick up rate completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ purchase_completed_at?: string | null; shipment?: Shipment | null; parcels?: Parcel[] | null; events?: Event[] | null; event_stores?: EventStore[] | null; } interface EasypostPickupCreate extends ResourceCreate { /** * Additional text to help the driver successfully obtain the package, automatically enriched with parcels and package informations. * @example ```"Knock loudly"``` */ instructions?: string | null; /** * The earliest time at which the package is available to pick up, must be larger than 2 hours from creation time. * @example ```"2018-01-01T12:00:00.000Z"``` */ min_datetime: string; /** * The latest time at which the package is available to pick up, must be smaller than 24 hours from creation time. * @example ```"2018-01-01T12:00:00.000Z"``` */ max_datetime: string; shipment: ShipmentRel; } interface EasypostPickupUpdate extends ResourceUpdate { /** * The selected purchase rate from the available pick up rates. * @example ```"pickuprate_a6cd2647a898410aa5d33febde44e1b2"``` */ selected_rate_id?: string | null; /** * Send this attribute if you want to purchase this pick up with the selected rate. * @example ```true``` */ _purchase?: boolean | null; shipment?: ShipmentRel | null; } declare class EasypostPickups extends ApiResource { static readonly TYPE: EasypostPickupType; create(resource: EasypostPickupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: EasypostPickupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; shipment(easypostPickupId: string | EasypostPickup, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; parcels(easypostPickupId: string | EasypostPickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; events(easypostPickupId: string | EasypostPickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(easypostPickupId: string | EasypostPickup, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _purchase(id: string | EasypostPickup, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isEasypostPickup(resource: any): resource is EasypostPickup; relationship(id: string | ResourceId | null): EasypostPickupRel; relationshipToMany(...ids: string[]): EasypostPickupRel[]; type(): EasypostPickupType; } declare const instance$d: EasypostPickups; type ExportType = 'exports'; type ExportRel = ResourceRel & { type: ExportType; }; type ExportSort = Pick & ResourceSort; interface Export extends Resource { readonly type: ExportType; /** * The type of resource being exported. * @example ```"skus"``` */ resource_type: string; /** * The format of the export one of 'json' (default) or 'csv'. * @example ```"json"``` */ format?: string | null; /** * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'; /** * List of related resources that should be included in the export (redundant when 'fields' are specified). * @example ```["prices.price_tiers"]``` */ includes?: string[] | null; /** * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources. * @example ```["code","name","prices.*","prices.price_tiers.price_amount_cents"]``` */ fields?: string[] | null; /** * The filters used to select the records to be exported. * @example ```{"code_eq":"AAA"}``` */ filters?: Record | null; /** * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset. */ dry_data?: boolean | null; /** * Send this attribute to apply JWT scope–based sales channel filtering to the exported data. * @example ```true``` */ jwt_filters?: boolean | null; /** * Time at which the export was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the export was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Estimated time at which the export should complete (dynamically refres^hed). * @example ```"2018-01-01T12:00:00.000Z"``` */ estimated_completion_at?: string | null; /** * Time at which the export was interrupted. * @example ```"2018-01-01T12:00:00.000Z"``` */ interrupted_at?: string | null; /** * Indicates the number of records to be exported. * @example ```300``` */ records_count?: number | null; /** * Indicates how many records have been processed in real time. * @example ```270``` */ processed_count?: number | null; /** * The percentage of progress of the export. * @example ```30``` */ progress?: number | null; /** * The URL to the output file, which will be generated upon export completion. * @example ```"http://cl_exports.s3.amazonaws.com/"``` */ attachment_url?: string | null; /** * Contains the exports errors, if any. * @example ```{"RuntimeError":"query timeout"}``` */ errors_log?: Record | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ExportCreate extends ResourceCreate { /** * The type of resource being exported. * @example ```"skus"``` */ resource_type: string; /** * The format of the export one of 'json' (default) or 'csv'. * @example ```"json"``` */ format?: string | null; /** * List of related resources that should be included in the export (redundant when 'fields' are specified). * @example ```["prices.price_tiers"]``` */ includes?: string[] | null; /** * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources. * @example ```["code","name","prices.*","prices.price_tiers.price_amount_cents"]``` */ fields?: string[] | null; /** * The filters used to select the records to be exported. * @example ```{"code_eq":"AAA"}``` */ filters?: Record | null; /** * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset. */ dry_data?: boolean | null; /** * Send this attribute to apply JWT scope–based sales channel filtering to the exported data. * @example ```true``` */ jwt_filters?: boolean | null; } interface ExportUpdate extends ResourceUpdate { /** * Send this attribute if you want to restart an 'interrupted' export. * @example ```true``` */ _start?: boolean | null; /** * Send this attribute if you want to mark status as 'interrupted'. * @example ```true``` */ _interrupt?: boolean | null; } declare class Exports extends ApiResource { static readonly TYPE: ExportType; create(resource: ExportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ExportUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; events(exportId: string | Export, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(exportId: string | Export, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(exportId: string | Export, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _start(id: string | Export, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _interrupt(id: string | Export, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isExport(resource: any): resource is Export; relationship(id: string | ResourceId | null): ExportRel; relationshipToMany(...ids: string[]): ExportRel[]; type(): ExportType; } declare const instance$c: Exports; type ExternalGatewayType = 'external_gateways'; type ExternalGatewayRel = ResourceRel & { type: ExternalGatewayType; }; type ExternalGatewaySort = Pick & ResourceSort; interface ExternalGateway extends Resource { readonly type: ExternalGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The endpoint used by the external gateway to authorize payments. * @example ```"https://external_gateway.com/authorize"``` */ authorize_url?: string | null; /** * The endpoint used by the external gateway to capture payments. * @example ```"https://external_gateway.com/capture"``` */ capture_url?: string | null; /** * The endpoint used by the external gateway to void payments. * @example ```"https://external_gateway.com/void"``` */ void_url?: string | null; /** * The endpoint used by the external gateway to refund payments. * @example ```"https://external_gateway.com/refund"``` */ refund_url?: string | null; /** * The endpoint used by the external gateway to create a customer payment token. * @example ```"https://external_gateway.com/token"``` */ token_url?: string | null; /** * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. * @example ```"closed"``` */ circuit_state?: string | null; /** * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. * @example ```5``` */ circuit_failure_count?: number | null; /** * The shared secret used to sign the external request payload. * @example ```"1c0994cc4e996e8c6ee56a2198f66f3c"``` */ shared_secret: string; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; external_payments?: ExternalPayment[] | null; } interface ExternalGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The endpoint used by the external gateway to authorize payments. * @example ```"https://external_gateway.com/authorize"``` */ authorize_url?: string | null; /** * The endpoint used by the external gateway to capture payments. * @example ```"https://external_gateway.com/capture"``` */ capture_url?: string | null; /** * The endpoint used by the external gateway to void payments. * @example ```"https://external_gateway.com/void"``` */ void_url?: string | null; /** * The endpoint used by the external gateway to refund payments. * @example ```"https://external_gateway.com/refund"``` */ refund_url?: string | null; /** * The endpoint used by the external gateway to create a customer payment token. * @example ```"https://external_gateway.com/token"``` */ token_url?: string | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; } interface ExternalGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The endpoint used by the external gateway to authorize payments. * @example ```"https://external_gateway.com/authorize"``` */ authorize_url?: string | null; /** * The endpoint used by the external gateway to capture payments. * @example ```"https://external_gateway.com/capture"``` */ capture_url?: string | null; /** * The endpoint used by the external gateway to void payments. * @example ```"https://external_gateway.com/void"``` */ void_url?: string | null; /** * The endpoint used by the external gateway to refund payments. * @example ```"https://external_gateway.com/refund"``` */ refund_url?: string | null; /** * The endpoint used by the external gateway to create a customer payment token. * @example ```"https://external_gateway.com/token"``` */ token_url?: string | null; /** * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. * @example ```true``` */ _reset_circuit?: boolean | null; /** * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided. * @example ```["order.line_item_options"]``` */ external_includes?: string[] | null; } declare class ExternalGateways extends ApiResource { static readonly TYPE: ExternalGatewayType; create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | ExternalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | ExternalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isExternalGateway(resource: any): resource is ExternalGateway; relationship(id: string | ResourceId | null): ExternalGatewayRel; relationshipToMany(...ids: string[]): ExternalGatewayRel[]; type(): ExternalGatewayType; } declare const instance$b: ExternalGateways; type GoogleGeocoderType = 'google_geocoders'; type GoogleGeocoderRel = ResourceRel & { type: GoogleGeocoderType; }; type GoogleGeocoderSort = Pick & ResourceSort; interface GoogleGeocoder extends Resource { readonly type: GoogleGeocoderType; /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name: string; markets?: Market[] | null; addresses?: Address[] | null; attachments?: Attachment[] | null; event_stores?: EventStore[] | null; } interface GoogleGeocoderCreate extends ResourceCreate { /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name: string; /** * The Google Map API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key: string; } interface GoogleGeocoderUpdate extends ResourceUpdate { /** * The geocoder's internal name. * @example ```"Default geocoder"``` */ name?: string | null; /** * The Google Map API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_key?: string | null; } declare class GoogleGeocoders extends ApiResource { static readonly TYPE: GoogleGeocoderType; create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; addresses(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList
, options?: ResourcesConfig): Promise>; attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isGoogleGeocoder(resource: any): resource is GoogleGeocoder; relationship(id: string | ResourceId | null): GoogleGeocoderRel; relationshipToMany(...ids: string[]): GoogleGeocoderRel[]; type(): GoogleGeocoderType; } declare const instance$a: GoogleGeocoders; type ImportType = 'imports'; type ImportRel = ResourceRel & { type: ImportType; }; type ImportSort = Pick & ResourceSort; interface Import extends Resource { readonly type: ImportType; /** * The type of resource being imported. * @example ```"skus"``` */ resource_type: string; /** * The format of the import inputs one of 'json' (default) or 'csv'. * @example ```"json"``` */ format?: string | null; /** * The ID of the parent resource to be associated with imported data. * @example ```"1234"``` */ parent_resource_id?: string | null; /** * The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. * @example ```"in_progress"``` */ status: 'pending' | 'in_progress' | 'interrupted' | 'completed'; /** * Time at which the import was started. * @example ```"2018-01-01T12:00:00.000Z"``` */ started_at?: string | null; /** * Time at which the import was completed. * @example ```"2018-01-01T12:00:00.000Z"``` */ completed_at?: string | null; /** * Time at which the import was interrupted. * @example ```"2018-01-01T12:00:00.000Z"``` */ interrupted_at?: string | null; /** * Array of objects representing the resources that are being imported. * @example ```[{"code":"ABC","name":"Foo"},{"code":"DEF","name":"Bar"}]``` */ inputs: Array>; /** * Indicates the size of the objects to be imported. * @example ```300``` */ inputs_size?: number | null; /** * Indicates the number of import errors, if any. * @example ```30``` */ errors_count?: number | null; /** * Indicates the number of import warnings, if any. * @example ```1``` */ warnings_count?: number | null; /** * Indicates the number of records that have been processed (created or updated). * @example ```270``` */ processed_count?: number | null; /** * Contains the import errors, if any. * @example ```{"ABC":{"name":["has already been taken"]}}``` */ errors_log?: Record | null; /** * Contains the import warnings, if any. * @example ```{"ABC":["could not be deleted"]}``` */ warnings_log?: Record | null; /** * Disables the interruption of the import in case its errors exceeds the 10% threshold. * @example ```true``` */ skip_errors?: boolean | null; /** * The URL the the raw inputs file, which will be generated at import start. * @example ```"http://cl_imports.s3.amazonaws.com/"``` */ attachment_url?: string | null; events?: Event[] | null; event_stores?: EventStore[] | null; } interface ImportCreate extends ResourceCreate { /** * The type of resource being imported. * @example ```"skus"``` */ resource_type: string; /** * The format of the import inputs one of 'json' (default) or 'csv'. * @example ```"json"``` */ format?: string | null; /** * The ID of the parent resource to be associated with imported data. * @example ```"1234"``` */ parent_resource_id?: string | null; /** * Array of objects representing the resources that are being imported. * @example ```[{"code":"ABC","name":"Foo"},{"code":"DEF","name":"Bar"}]``` */ inputs: Array>; /** * Disables the interruption of the import in case its errors exceeds the 10% threshold. * @example ```true``` */ skip_errors?: boolean | null; } interface ImportUpdate extends ResourceUpdate { /** * Send this attribute if you want to mark status as 'interrupted'. * @example ```true``` */ _interrupt?: boolean | null; } declare class Imports extends ApiResource { static readonly TYPE: ImportType; create(resource: ImportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ImportUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; events(importId: string | Import, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(importId: string | Import, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _interrupt(id: string | Import, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isImport(resource: any): resource is Import; relationship(id: string | ResourceId | null): ImportRel; relationshipToMany(...ids: string[]): ImportRel[]; type(): ImportType; } declare const instance$9: Imports; type InStockSubscriptionType = 'in_stock_subscriptions'; type InStockSubscriptionRel = ResourceRel & { type: InStockSubscriptionType; }; type MarketRel = ResourceRel & { type: MarketType; }; type CustomerRel = ResourceRel & { type: CustomerType; }; type SkuRel = ResourceRel & { type: SkuType; }; type InStockSubscriptionSort = Pick & ResourceSort; interface InStockSubscription extends Resource { readonly type: InStockSubscriptionType; /** * The subscription status. One of 'active' (default), 'inactive', or 'notified'. * @example ```"active"``` */ status: 'active' | 'inactive' | 'notified'; /** * The email of the associated customer, replace the relationship. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The code of the associated SKU, replace the relationship. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The threshold at which to trigger the back in stock notification. * @example ```3``` */ stock_threshold?: number | null; market?: Market | null; customer?: Customer | null; sku?: Sku | null; events?: Event[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface InStockSubscriptionCreate extends ResourceCreate { /** * The email of the associated customer, replace the relationship. * @example ```"john@example.com"``` */ customer_email?: string | null; /** * The code of the associated SKU, replace the relationship. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The threshold at which to trigger the back in stock notification. * @example ```3``` */ stock_threshold?: number | null; market: MarketRel; customer: CustomerRel; sku: SkuRel; } interface InStockSubscriptionUpdate extends ResourceUpdate { /** * The code of the associated SKU, replace the relationship. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` */ sku_code?: string | null; /** * The threshold at which to trigger the back in stock notification. * @example ```3``` */ stock_threshold?: number | null; /** * Send this attribute if you want to activate an inactive subscription. * @example ```true``` */ _activate?: boolean | null; /** * Send this attribute if you want to dactivate an active subscription. * @example ```true``` */ _deactivate?: boolean | null; market?: MarketRel | null; customer?: CustomerRel | null; sku?: SkuRel | null; } declare class InStockSubscriptions extends ApiResource { static readonly TYPE: InStockSubscriptionType; create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; market(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _activate(id: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _deactivate(id: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isInStockSubscription(resource: any): resource is InStockSubscription; relationship(id: string | ResourceId | null): InStockSubscriptionRel; relationshipToMany(...ids: string[]): InStockSubscriptionRel[]; type(): InStockSubscriptionType; } declare const instance$8: InStockSubscriptions; type KlarnaGatewayType = 'klarna_gateways'; type KlarnaGatewayRel = ResourceRel & { type: KlarnaGatewayType; }; type KlarnaPaymentRel = ResourceRel & { type: KlarnaPaymentType; }; type KlarnaGatewaySort = Pick & ResourceSort; interface KlarnaGateway extends Resource { readonly type: KlarnaGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; klarna_payments?: KlarnaPayment[] | null; } interface KlarnaGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway country code one of EU, US, or OC. * @example ```"EU"``` */ country_code: string; /** * The public key linked to your API credential. * @example ```"xxxx-yyyy-zzzz"``` */ api_key: string; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_secret: string; klarna_payments?: KlarnaPaymentRel[] | null; } interface KlarnaGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway country code one of EU, US, or OC. * @example ```"EU"``` */ country_code?: string | null; /** * The public key linked to your API credential. * @example ```"xxxx-yyyy-zzzz"``` */ api_key?: string | null; /** * The gateway API key. * @example ```"xxxx-yyyy-zzzz"``` */ api_secret?: string | null; klarna_payments?: KlarnaPaymentRel[] | null; } declare class KlarnaGateways extends ApiResource { static readonly TYPE: KlarnaGatewayType; create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | KlarnaGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | KlarnaGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isKlarnaGateway(resource: any): resource is KlarnaGateway; relationship(id: string | ResourceId | null): KlarnaGatewayRel; relationshipToMany(...ids: string[]): KlarnaGatewayRel[]; type(): KlarnaGatewayType; } declare const instance$7: KlarnaGateways; type ManualGatewayType = 'manual_gateways'; type ManualGatewayRel = ResourceRel & { type: ManualGatewayType; }; type ManualGatewaySort = Pick & ResourceSort; interface ManualGateway extends Resource { readonly type: ManualGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface ManualGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; } interface ManualGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; } declare class ManualGateways extends ApiResource { static readonly TYPE: ManualGatewayType; create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | ManualGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | ManualGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isManualGateway(resource: any): resource is ManualGateway; relationship(id: string | ResourceId | null): ManualGatewayRel; relationshipToMany(...ids: string[]): ManualGatewayRel[]; type(): ManualGatewayType; } declare const instance$6: ManualGateways; type OrganizationType = 'organizations'; type OrganizationRel = ResourceRel & { type: OrganizationType; }; type OrganizationSort = Pick & ResourceSort; interface Organization extends Resource { readonly type: OrganizationType; /** * The organization's internal name. * @example ```"The Blue Brand"``` */ name?: string | null; /** * The organization's slug name. * @example ```"the-blue-brand"``` */ slug?: string | null; /** * The organization's domain. * @example ```"the-blue-brand.commercelayer.io"``` */ domain?: string | null; /** * The organization's support phone. * @example ```"+01 30800857"``` */ support_phone?: string | null; /** * The organization's support email. * @example ```"support@bluebrand.com"``` */ support_email?: string | null; /** * The URL to the organization's logo. * @example ```"https://bluebrand.com/img/logo.svg"``` */ logo_url?: string | null; /** * The URL to the organization's favicon. * @example ```"https://bluebrand.com/img/favicon.ico"``` */ favicon_url?: string | null; /** * The organization's primary color. * @example ```"#C8984E"``` */ primary_color?: string | null; /** * The organization's Google Tag Manager ID. * @example ```"GTM-5FJXX6"``` */ gtm_id?: string | null; /** * The organization's Google Tag Manager ID for test. * @example ```"GTM-5FJXX7"``` */ gtm_id_test?: string | null; /** * The organization's configuration. * @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:accessToken","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:orderId","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}``` */ config?: Record | null; /** * Enables the redirect on the new Auth API. * @example ```true``` */ api_auth_redirect?: boolean | null; /** * Enables the rules engine for flex promotions and price list rules. */ api_rules_engine?: boolean | null; /** * The fallback maximum number of conditions within a rules payload on a ruleable object, default is 150. * @example ```150``` */ api_rules_engine_max_conditions_size?: number | null; /** * The fallback maximum number of rules within a rules payload on a ruleable object, default is 15. * @example ```15``` */ api_rules_engine_max_rules_size?: number | null; /** * Forces the usage of the new Authentication API. * @example ```true``` */ api_new_auth?: boolean | null; /** * Enables the purge of cached single resources when list is purged. */ api_purge_single_resource?: boolean | null; /** * The maximum length for the regular expressions, default is 5000. * @example ```5000``` */ api_max_regex_length?: number | null; /** * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true. * @example ```true``` */ addresses_avs_check?: boolean | null; /** * Indicates if the phone attribute is required for addresses, default is true. * @example ```true``` */ addresses_phone_required?: boolean | null; /** * Indicates if a sales channel application without customer can read and update just guest orders. * @example ```true``` */ orders_sales_channel_guest_only?: boolean | null; /** * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done. */ orders_min_rebuild_shipments_lapse?: number | null; /** * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done. */ orders_min_refresh_lapse?: number | null; /** * The maximum number line items allowed for a test order before disabling the autorefresh option. * @example ```50``` */ orders_autorefresh_cutoff_test?: number | null; /** * The maximum number line items allowed for a live order before disabling the autorefresh option. * @example ```500``` */ orders_autorefresh_cutoff_live?: number | null; /** * Enables orders number editing as a string in test (for enterprise plans only). */ orders_number_editable_test?: boolean | null; /** * Enables orders number editing as a string in live (for enterprise plans only). */ orders_number_editable_live?: boolean | null; /** * Enables to use the order number as payment reference on supported gateways. * @example ```true``` */ orders_number_as_reference?: boolean | null; /** * Enables raising of API errors in case the provided coupon code is invalid, default is true. * @example ```true``` */ orders_invalid_coupon_errors?: boolean | null; /** * Enables raising of API errors in case the provided gift card code is invalid, default is true. * @example ```true``` */ orders_invalid_gift_card_errors?: boolean | null; /** * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false. */ orders_validate_shipping_stock?: boolean | null; /** * The maximum number of SKUs allowed for bundles, default is 10. * @example ```10``` */ bundles_max_items_count?: number | null; /** * The minimum length for coupon code, default is 8. * @example ```8``` */ coupons_min_code_length?: number | null; /** * The maximum length for coupon code, default is 40. * @example ```40``` */ coupons_max_code_length?: number | null; /** * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false. */ gift_cards_exact_code_matching?: boolean | null; /** * The minimum length for gift card code, default is 8. * @example ```8``` */ gift_cards_min_code_length?: number | null; /** * The maximum length for gift card code, default is 40. * @example ```40``` */ gift_cards_max_code_length?: number | null; /** * The maximum number of concurrent cleanups allowed for your organization, default is 10. * @example ```10``` */ cleanups_max_concurrent_count?: number | null; /** * The maximum number of concurrent exports allowed for your organization, default is 10. * @example ```10``` */ exports_max_concurrent_count?: number | null; /** * The maximum number of concurrent imports allowed for your organization, default is 10. * @example ```10``` */ imports_max_concurrent_count?: number | null; /** * Enables purging of cached resources upon succeeded imports. * @example ```true``` */ imports_purge_cache?: boolean | null; /** * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false. */ imports_skip_errors?: boolean | null; /** * The maximum number for stock locations cutoff, default is 10. * @example ```10``` */ inventory_models_max_stock_locations_cutoff?: number | null; /** * The maximum number of active concurrent promotions allowed for your organization, default is 10. * @example ```10``` */ promotions_max_concurrent_count?: number | null; /** * The maximum number of conditions within a rules payload on a promotion object, default is 150. * @example ```150``` */ promotions_max_conditions_size?: number | null; /** * The maximum number of rules within a rules payload on a promotion object, default is 15. * @example ```15``` */ promotions_max_rules_size?: number | null; /** * The maximum number of conditions within a rules payload on a price list object, default is 150. * @example ```150``` */ price_lists_max_conditions_size?: number | null; /** * The maximum number of rules within a rules payload on a price list object, default is 15. * @example ```15``` */ price_lists_max_rules_size?: number | null; /** * Enables triggering of webhooks during imports, default is false. */ imports_trigger_webhooks?: number | null; /** * Enables the use of an external discount engine in place of the standard one, default is false. */ discount_engines_enabled?: boolean | null; /** * Enables raising of API errors in case of discount engine failure, default is false. */ discount_engines_errors?: boolean | null; /** * The maximum length for the tag name, default is 25. * @example ```25``` */ tags_max_name_length?: number | null; /** * The maximum allowed number of tags for each resource, default is 10. * @example ```10``` */ tags_max_allowed_number?: number | null; /** * Enables raising of API errors in case of tax calculation failure, default is false. */ tax_calculators_errors?: boolean | null; /** * Enables raising of API errors in case of external promotion failure, default is false. */ external_promotions_errors?: boolean | null; /** * Enables raising of API errors in case of external price failure, default is true. * @example ```true``` */ external_prices_errors?: boolean | null; event_stores?: EventStore[] | null; } declare class Organizations extends ApiSingleton { static readonly TYPE: OrganizationType; event_stores(organizationId: string | Organization, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isOrganization(resource: any): resource is Organization; relationship(id: string | ResourceId | null): OrganizationRel; relationshipToMany(...ids: string[]): OrganizationRel[]; type(): OrganizationType; path(): string; } declare const instance$5: Organizations; type PaypalGatewayType = 'paypal_gateways'; type PaypalGatewayRel = ResourceRel & { type: PaypalGatewayType; }; type PaypalGatewaySort = Pick & ResourceSort; interface PaypalGateway extends Resource { readonly type: PaypalGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; paypal_payments?: PaypalPayment[] | null; } interface PaypalGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway client ID. * @example ```"xxxx-yyyy-zzzz"``` */ client_id: string; /** * The gateway client secret. * @example ```"xxxx-yyyy-zzzz"``` */ client_secret: string; } interface PaypalGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway client ID. * @example ```"xxxx-yyyy-zzzz"``` */ client_id?: string | null; /** * The gateway client secret. * @example ```"xxxx-yyyy-zzzz"``` */ client_secret?: string | null; } declare class PaypalGateways extends ApiResource { static readonly TYPE: PaypalGatewayType; create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | PaypalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | PaypalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isPaypalGateway(resource: any): resource is PaypalGateway; relationship(id: string | ResourceId | null): PaypalGatewayRel; relationshipToMany(...ids: string[]): PaypalGatewayRel[]; type(): PaypalGatewayType; } declare const instance$4: PaypalGateways; type SatispayGatewayType = 'satispay_gateways'; type SatispayGatewayRel = ResourceRel & { type: SatispayGatewayType; }; type SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType; }; type SatispayGatewaySort = Pick & ResourceSort; interface SatispayGateway extends Resource { readonly type: SatispayGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * Activation code generated from the Satispay Dashboard. * @example ```"623ECX"``` */ token: string; /** * The Satispay API key auto generated basing on activation code. * @example ```"xxxx-yyyy-zzzz"``` */ key_id: string; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; satispay_payments?: SatispayPayment[] | null; } interface SatispayGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * Activation code generated from the Satispay Dashboard. * @example ```"623ECX"``` */ token: string; satispay_payments?: SatispayPaymentRel[] | null; } interface SatispayGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; /** * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway. * @example ```true``` */ force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; satispay_payments?: SatispayPaymentRel[] | null; } declare class SatispayGateways extends ApiResource { static readonly TYPE: SatispayGatewayType; create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | SatispayGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | SatispayGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isSatispayGateway(resource: any): resource is SatispayGateway; relationship(id: string | ResourceId | null): SatispayGatewayRel; relationshipToMany(...ids: string[]): SatispayGatewayRel[]; type(): SatispayGatewayType; } declare const instance$3: SatispayGateways; type StripeGatewayType = 'stripe_gateways'; type StripeGatewayRel = ResourceRel & { type: StripeGatewayType; }; type StripeGatewaySort = Pick & ResourceSort; interface StripeGateway extends Resource { readonly type: StripeGatewayType; /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; force_payments?: boolean | null; /** * Time at which this resource was disabled. * @example ```"2018-01-01T12:00:00.000Z"``` */ disabled_at?: string | null; /** * The account (if any) for which the funds of the PaymentIntent are intended. * @example ```"acct_xxxx-yyyy-zzzz"``` */ connected_account?: string | null; /** * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. * @example ```true``` */ auto_payments?: boolean | null; /** * The gateway webhook endpoint ID, generated automatically. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_id?: string | null; /** * The gateway webhook endpoint secret, generated automatically. * @example ```"xxxx-yyyy-zzzz"``` */ webhook_endpoint_secret?: string | null; /** * The gateway webhook URL, generated automatically. * @example ```"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx"``` */ webhook_endpoint_url?: string | null; payment_methods?: PaymentMethod[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; stripe_payments?: StripePayment[] | null; } interface StripeGatewayCreate extends ResourceCreate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name: string; force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The gateway login. * @example ```"sk_live_xxxx-yyyy-zzzz"``` */ login: string; /** * The gateway publishable API key. * @example ```"pk_live_xxxx-yyyy-zzzz"``` */ publishable_key?: string | null; /** * The account (if any) for which the funds of the PaymentIntent are intended. * @example ```"acct_xxxx-yyyy-zzzz"``` */ connected_account?: string | null; /** * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. * @example ```true``` */ auto_payments?: boolean | null; } interface StripeGatewayUpdate extends ResourceUpdate { /** * The payment gateway's internal name. * @example ```"US payment gateway"``` */ name?: string | null; force_payments?: boolean | null; /** * Send this attribute if you want to mark this resource as disabled. * @example ```true``` */ _disable?: boolean | null; /** * Send this attribute if you want to mark this resource as enabled. * @example ```true``` */ _enable?: boolean | null; /** * The account (if any) for which the funds of the PaymentIntent are intended. * @example ```"acct_xxxx-yyyy-zzzz"``` */ connected_account?: string | null; /** * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. * @example ```true``` */ auto_payments?: boolean | null; } declare class StripeGateways extends ApiResource { static readonly TYPE: StripeGatewayType; create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _disable(id: string | StripeGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; _enable(id: string | StripeGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; isStripeGateway(resource: any): resource is StripeGateway; relationship(id: string | ResourceId | null): StripeGatewayRel; relationshipToMany(...ids: string[]): StripeGatewayRel[]; type(): StripeGatewayType; } declare const instance$2: StripeGateways; type TalonOneAccountType = 'talon_one_accounts'; type TalonOneAccountRel = ResourceRel & { type: TalonOneAccountType; }; type TalonOneAccountSort = Pick & ResourceSort; interface TalonOneAccount extends Resource { readonly type: TalonOneAccountType; /** * The discount engine's internal name. * @example ```"Personal discount engine"``` */ name: string; /** * Indicates if the discount engine manages both promotions and gift cards application at once. */ manage_gift_cards?: boolean | null; /** * The API endpoint as computed by specified baseurl. * @example ```"https://my_baseurl.talon.one/v2"``` */ api_endpoint?: string | null; markets?: Market[] | null; discount_engine_items?: DiscountEngineItem[] | null; attachments?: Attachment[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface TalonOneAccountCreate extends ResourceCreate { /** * The discount engine's internal name. * @example ```"Personal discount engine"``` */ name: string; /** * Indicates if the discount engine manages both promotions and gift cards application at once. */ manage_gift_cards?: boolean | null; /** * The Talon.One account API key. * @example ```"TALON_ONE_API_KEY"``` */ api_key: string; /** * The Talon.One API baseurl (excluding the talon.one suffix). * @example ```"yourbaseurl"``` */ baseurl: string; } interface TalonOneAccountUpdate extends ResourceUpdate { /** * The discount engine's internal name. * @example ```"Personal discount engine"``` */ name?: string | null; /** * Indicates if the discount engine manages both promotions and gift cards application at once. */ manage_gift_cards?: boolean | null; /** * The Talon.One account API key. * @example ```"TALON_ONE_API_KEY"``` */ api_key?: string | null; /** * The Talon.One API baseurl (excluding the talon.one suffix). * @example ```"yourbaseurl"``` */ baseurl?: string | null; } declare class TalonOneAccounts extends ApiResource { static readonly TYPE: TalonOneAccountType; create(resource: TalonOneAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; update(resource: TalonOneAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; markets(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; discount_engine_items(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; attachments(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise>; isTalonOneAccount(resource: any): resource is TalonOneAccount; relationship(id: string | ResourceId | null): TalonOneAccountRel; relationshipToMany(...ids: string[]): TalonOneAccountRel[]; type(): TalonOneAccountType; } declare const instance$1: TalonOneAccounts; declare const apiResources: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "applications", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "discount_engine_items", "discount_engines", "easypost_pickups", "event_callbacks", "event_stores", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "notifications", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "orders", "organizations", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "pickups", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stores", "stripe_gateways", "stripe_payments", "stripe_tax_accounts", "subscription_models", "tags", "talon_one_accounts", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "vertex_accounts", "voids", "webhooks", "wire_transfers"]; type ResourceTypeLock = typeof apiResources[number]; declare const resourceList: readonly ResourceTypeLock[]; declare const singletonList: readonly ["applications", "organizations"]; type RetrievableResourceType = ResourceTypeLock; type RetrievableResource = Resource & { type: RetrievableResourceType; }; type ListableResourceType = Exclude; type ListableResource = Resource & { type: ListableResourceType; }; declare const creatableResources: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "attachments", "avalara_accounts", "axerve_gateways", "axerve_payments", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "easypost_pickups", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "notifications", "order_amount_promotion_rules", "order_copies", "order_subscription_items", "order_subscriptions", "orders", "packages", "parcel_line_items", "parcels", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_volume_tiers", "prices", "recurring_order_copies", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stores", "stripe_gateways", "stripe_payments", "stripe_tax_accounts", "subscription_models", "tags", "talon_one_accounts", "tax_categories", "tax_rules", "taxjar_accounts", "vertex_accounts", "webhooks", "wire_transfers"]; type CreatableResourceType = typeof creatableResources[number]; type CreatableResource = Resource & { type: CreatableResourceType; }; declare const updatableResources: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "easypost_pickups", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "notifications", "order_amount_promotion_rules", "order_copies", "order_subscription_items", "order_subscriptions", "orders", "packages", "parcel_line_items", "parcels", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_volume_tiers", "prices", "recurring_order_copies", "refunds", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stores", "stripe_gateways", "stripe_payments", "stripe_tax_accounts", "subscription_models", "tags", "talon_one_accounts", "tax_categories", "tax_rules", "taxjar_accounts", "vertex_accounts", "voids", "webhooks", "wire_transfers"]; type UpdatableResourceType = typeof updatableResources[number]; type UpdatableResource = Resource & { type: UpdatableResourceType; }; declare const deletableResources: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "attachments", "avalara_accounts", "axerve_gateways", "axerve_payments", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "easypost_pickups", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "links", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "notifications", "order_amount_promotion_rules", "order_copies", "order_subscription_items", "order_subscriptions", "orders", "packages", "parcel_line_items", "parcels", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_volume_tiers", "prices", "recurring_order_copies", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stores", "stripe_gateways", "stripe_payments", "stripe_tax_accounts", "subscription_models", "tags", "talon_one_accounts", "tax_categories", "tax_rules", "taxjar_accounts", "vertex_accounts", "webhooks", "wire_transfers"]; type DeletableResourceType = typeof deletableResources[number]; type DeletableResource = Resource & { type: DeletableResourceType; }; declare const taggableResources: readonly ["addresses", "bundles", "buy_x_pay_y_promotions", "coupons", "customers", "external_promotions", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "gift_cards", "line_item_options", "line_items", "order_subscriptions", "orders", "percentage_discount_promotions", "promotions", "returns", "shipments", "shipping_methods", "sku_options", "skus"]; type TaggableResourceType = typeof taggableResources[number]; type TaggableResource = Resource & { type: TaggableResourceType; tags?: Array | null; }; declare const versionableResources: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_payment_sources", "customer_subscriptions", "delivery_lead_times", "discount_engines", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "flex_promotions", "free_gift_promotions", "free_shipping_promotions", "gift_card_recipients", "gift_cards", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_subscriptions", "orders", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_list_schedulers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "reserved_stocks", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stores", "stripe_gateways", "stripe_payments", "stripe_tax_accounts", "talon_one_accounts", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "vertex_accounts", "voids", "webhooks", "wire_transfers"]; type VersionableResourceType = typeof versionableResources[number]; type VersionableResource = Resource & { type: VersionableResourceType; versions?: Array | null; }; declare function getResources(sort?: boolean): readonly ResourceTypeLock[]; declare function getSingletons(sort?: boolean): readonly string[]; declare function isSingleton(resource: ResourceTypeLock): boolean; declare function isCreatable(resource: ResourceTypeLock): boolean; declare function isUpdatable(resource: ResourceTypeLock): boolean; declare function isDeletable(resource: ResourceTypeLock): boolean; declare function isTaggable(resource: ResourceTypeLock): boolean; declare function isVersionable(resource: ResourceTypeLock): boolean; type ResourceFields = { addresses: Address; adjustments: Adjustment; adyen_gateways: AdyenGateway; adyen_payments: AdyenPayment; applications: Application; attachments: Attachment; authorizations: Authorization; avalara_accounts: AvalaraAccount; axerve_gateways: AxerveGateway; axerve_payments: AxervePayment; bing_geocoders: BingGeocoder; braintree_gateways: BraintreeGateway; braintree_payments: BraintreePayment; bundles: Bundle; buy_x_pay_y_promotions: BuyXPayYPromotion; captures: Capture; carrier_accounts: CarrierAccount; checkout_com_gateways: CheckoutComGateway; checkout_com_payments: CheckoutComPayment; cleanups: Cleanup; coupon_codes_promotion_rules: CouponCodesPromotionRule; coupon_recipients: CouponRecipient; coupons: Coupon; custom_promotion_rules: CustomPromotionRule; customer_addresses: CustomerAddress; customer_groups: CustomerGroup; customer_password_resets: CustomerPasswordReset; customer_payment_sources: CustomerPaymentSource; customer_subscriptions: CustomerSubscription; customers: Customer; delivery_lead_times: DeliveryLeadTime; discount_engine_items: DiscountEngineItem; discount_engines: DiscountEngine; easypost_pickups: EasypostPickup; event_callbacks: EventCallback; event_stores: EventStore; events: Event; exports: Export; external_gateways: ExternalGateway; external_payments: ExternalPayment; external_promotions: ExternalPromotion; external_tax_calculators: ExternalTaxCalculator; fixed_amount_promotions: FixedAmountPromotion; fixed_price_promotions: FixedPricePromotion; flex_promotions: FlexPromotion; free_gift_promotions: FreeGiftPromotion; free_shipping_promotions: FreeShippingPromotion; geocoders: Geocoder; gift_card_recipients: GiftCardRecipient; gift_cards: GiftCard; google_geocoders: GoogleGeocoder; imports: Import; in_stock_subscriptions: InStockSubscription; inventory_models: InventoryModel; inventory_return_locations: InventoryReturnLocation; inventory_stock_locations: InventoryStockLocation; klarna_gateways: KlarnaGateway; klarna_payments: KlarnaPayment; line_item_options: LineItemOption; line_items: LineItem; links: Link; manual_gateways: ManualGateway; manual_tax_calculators: ManualTaxCalculator; markets: Market; merchants: Merchant; notifications: Notification; order_amount_promotion_rules: OrderAmountPromotionRule; order_copies: OrderCopy; order_factories: OrderFactory; order_subscription_items: OrderSubscriptionItem; order_subscriptions: OrderSubscription; orders: Order; organizations: Organization; packages: Package; parcel_line_items: ParcelLineItem; parcels: Parcel; payment_gateways: PaymentGateway; payment_methods: PaymentMethod; payment_options: PaymentOption; paypal_gateways: PaypalGateway; paypal_payments: PaypalPayment; percentage_discount_promotions: PercentageDiscountPromotion; pickups: Pickup; price_frequency_tiers: PriceFrequencyTier; price_list_schedulers: PriceListScheduler; price_lists: PriceList; price_tiers: PriceTier; price_volume_tiers: PriceVolumeTier; prices: Price; promotion_rules: PromotionRule; promotions: Promotion; recurring_order_copies: RecurringOrderCopy; refunds: Refund; reserved_stocks: ReservedStock; resource_errors: ResourceError; return_line_items: ReturnLineItem; returns: Return; satispay_gateways: SatispayGateway; satispay_payments: SatispayPayment; shipments: Shipment; shipping_categories: ShippingCategory; shipping_method_tiers: ShippingMethodTier; shipping_methods: ShippingMethod; shipping_weight_tiers: ShippingWeightTier; shipping_zones: ShippingZone; sku_list_items: SkuListItem; sku_list_promotion_rules: SkuListPromotionRule; sku_lists: SkuList; sku_options: SkuOption; skus: Sku; stock_items: StockItem; stock_line_items: StockLineItem; stock_locations: StockLocation; stock_reservations: StockReservation; stock_transfers: StockTransfer; stores: Store; stripe_gateways: StripeGateway; stripe_payments: StripePayment; stripe_tax_accounts: StripeTaxAccount; subscription_models: SubscriptionModel; tags: Tag; talon_one_accounts: TalonOneAccount; tax_calculators: TaxCalculator; tax_categories: TaxCategory; tax_rules: TaxRule; taxjar_accounts: TaxjarAccount; transactions: Transaction; versions: Version; vertex_accounts: VertexAccount; voids: Void; webhooks: Webhook; wire_transfers: WireTransfer; }; type ResourceSortFields = { addresses: AddressSort; adjustments: AdjustmentSort; adyen_gateways: AdyenGatewaySort; adyen_payments: AdyenPaymentSort; applications: ApplicationSort; attachments: AttachmentSort; authorizations: AuthorizationSort; avalara_accounts: AvalaraAccountSort; axerve_gateways: AxerveGatewaySort; axerve_payments: AxervePaymentSort; bing_geocoders: BingGeocoderSort; braintree_gateways: BraintreeGatewaySort; braintree_payments: BraintreePaymentSort; bundles: BundleSort; buy_x_pay_y_promotions: BuyXPayYPromotionSort; captures: CaptureSort; carrier_accounts: CarrierAccountSort; checkout_com_gateways: CheckoutComGatewaySort; checkout_com_payments: CheckoutComPaymentSort; cleanups: CleanupSort; coupon_codes_promotion_rules: CouponCodesPromotionRuleSort; coupon_recipients: CouponRecipientSort; coupons: CouponSort; custom_promotion_rules: CustomPromotionRuleSort; customer_addresses: CustomerAddressSort; customer_groups: CustomerGroupSort; customer_password_resets: CustomerPasswordResetSort; customer_payment_sources: CustomerPaymentSourceSort; customer_subscriptions: CustomerSubscriptionSort; customers: CustomerSort; delivery_lead_times: DeliveryLeadTimeSort; discount_engine_items: DiscountEngineItemSort; discount_engines: DiscountEngineSort; easypost_pickups: EasypostPickupSort; event_callbacks: EventCallbackSort; event_stores: EventStoreSort; events: EventSort; exports: ExportSort; external_gateways: ExternalGatewaySort; external_payments: ExternalPaymentSort; external_promotions: ExternalPromotionSort; external_tax_calculators: ExternalTaxCalculatorSort; fixed_amount_promotions: FixedAmountPromotionSort; fixed_price_promotions: FixedPricePromotionSort; flex_promotions: FlexPromotionSort; free_gift_promotions: FreeGiftPromotionSort; free_shipping_promotions: FreeShippingPromotionSort; geocoders: GeocoderSort; gift_card_recipients: GiftCardRecipientSort; gift_cards: GiftCardSort; google_geocoders: GoogleGeocoderSort; imports: ImportSort; in_stock_subscriptions: InStockSubscriptionSort; inventory_models: InventoryModelSort; inventory_return_locations: InventoryReturnLocationSort; inventory_stock_locations: InventoryStockLocationSort; klarna_gateways: KlarnaGatewaySort; klarna_payments: KlarnaPaymentSort; line_item_options: LineItemOptionSort; line_items: LineItemSort; links: LinkSort; manual_gateways: ManualGatewaySort; manual_tax_calculators: ManualTaxCalculatorSort; markets: MarketSort; merchants: MerchantSort; notifications: NotificationSort; order_amount_promotion_rules: OrderAmountPromotionRuleSort; order_copies: OrderCopySort; order_factories: OrderFactorySort; order_subscription_items: OrderSubscriptionItemSort; order_subscriptions: OrderSubscriptionSort; orders: OrderSort; organizations: OrganizationSort; packages: PackageSort; parcel_line_items: ParcelLineItemSort; parcels: ParcelSort; payment_gateways: PaymentGatewaySort; payment_methods: PaymentMethodSort; payment_options: PaymentOptionSort; paypal_gateways: PaypalGatewaySort; paypal_payments: PaypalPaymentSort; percentage_discount_promotions: PercentageDiscountPromotionSort; pickups: PickupSort; price_frequency_tiers: PriceFrequencyTierSort; price_list_schedulers: PriceListSchedulerSort; price_lists: PriceListSort; price_tiers: PriceTierSort; price_volume_tiers: PriceVolumeTierSort; prices: PriceSort; promotion_rules: PromotionRuleSort; promotions: PromotionSort; recurring_order_copies: RecurringOrderCopySort; refunds: RefundSort; reserved_stocks: ReservedStockSort; resource_errors: ResourceErrorSort; return_line_items: ReturnLineItemSort; returns: ReturnSort; satispay_gateways: SatispayGatewaySort; satispay_payments: SatispayPaymentSort; shipments: ShipmentSort; shipping_categories: ShippingCategorySort; shipping_method_tiers: ShippingMethodTierSort; shipping_methods: ShippingMethodSort; shipping_weight_tiers: ShippingWeightTierSort; shipping_zones: ShippingZoneSort; sku_list_items: SkuListItemSort; sku_list_promotion_rules: SkuListPromotionRuleSort; sku_lists: SkuListSort; sku_options: SkuOptionSort; skus: SkuSort; stock_items: StockItemSort; stock_line_items: StockLineItemSort; stock_locations: StockLocationSort; stock_reservations: StockReservationSort; stock_transfers: StockTransferSort; stores: StoreSort; stripe_gateways: StripeGatewaySort; stripe_payments: StripePaymentSort; stripe_tax_accounts: StripeTaxAccountSort; subscription_models: SubscriptionModelSort; tags: TagSort; talon_one_accounts: TalonOneAccountSort; tax_calculators: TaxCalculatorSort; tax_categories: TaxCategorySort; tax_rules: TaxRuleSort; taxjar_accounts: TaxjarAccountSort; transactions: TransactionSort; versions: VersionSort; vertex_accounts: VertexAccountSort; voids: VoidSort; webhooks: WebhookSort; wire_transfers: WireTransferSort; }; type QueryResType = T['type']; type QueryInclude = string[]; type QueryResourceFields = keyof ResourceFields[R]; type QueryArrayFields = Array>>; type QueryRecordFields = { [key in keyof ResourceFields]?: Array<(QueryResourceFields)>; }; type QueryFields = QueryArrayFields | QueryRecordFields; interface QueryParamsRetrieve { include?: QueryInclude; fields?: QueryFields; } type QuerySortType = 'asc' | 'desc'; type QueryResourceSortable = ResourceSortFields[QueryResType]; type QueryResourceSortableFields = StringKey>; type QueryArraySortable = Array | `-${QueryResourceSortableFields}`>; type QueryRecordSortable = Partial, QuerySortType>>; type QuerySort = QueryArraySortable | QueryRecordSortable; type QueryFilter = Record>; type QueryPageNumber = number; type QueryPageSize = PositiveNumberRange<25>; interface QueryParamsList extends QueryParamsRetrieve { sort?: QuerySort; filters?: QueryFilter; pageNumber?: QueryPageNumber; pageSize?: QueryPageSize; } type QueryParams = QueryParamsRetrieve | QueryParamsList; declare const isParamsList: (params: any) => params is QueryParamsList; type QueryStringParams = Record; declare const generateQueryStringParams: (params: QueryParams | undefined, res: string | ResourceType) => QueryStringParams; declare const generateSearchString: (params?: QueryStringParams, questionMark?: boolean) => string; type AddressType = 'addresses'; type AddressRel = ResourceRel & { type: AddressType; }; type GeocoderRel = ResourceRel & { type: GeocoderType; }; type TagRel = ResourceRel & { type: TagType; }; type AddressSort = Pick & ResourceSort; interface Address extends Resource { readonly type: AddressType; /** * Indicates if it's a business or a personal address. */ business?: boolean | null; /** * Address first name (personal). * @example ```"John"``` */ first_name?: string | null; /** * Address last name (personal). * @example ```"Smith"``` */ last_name?: string | null; /** * Address company name (business). * @example ```"The Red Brand Inc."``` */ company?: string | null; /** * Company name (business) of first name and last name (personal). * @example ```"John Smith"``` */ full_name?: string | null; /** * Address line 1, i.e. Street address, PO Box. * @example ```"2883 Geraldine Lane"``` */ line_1: string; /** * Address line 2, i.e. Apartment, Suite, Building. * @example ```"Apt.23"``` */ line_2?: string | null; /** * Address city. * @example ```"New York"``` */ city: string; /** * ZIP or postal code. * @example ```"10013"``` */ zip_code?: string | null; /** * State, province or region code. * @example ```"NY"``` */ state_code?: string | null; /** * The international 2-letter country code as defined by the ISO 3166-1 standard. * @example ```"US"``` */ country_code: string; /** * Phone number (including extension). * @example ```"(212) 646-338-1228"``` */ phone: string; /** * Compact description of the address location, without the full name. * @example ```"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228"``` */ full_address?: string | null; /** * Compact description of the address location, including the full name. * @example ```"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228"``` */ name?: string | null; /** * Email address. * @example ```"john@example.com"``` */ email?: string | null; /** * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. * @example ```"Please ring the bell twice"``` */ notes?: string | null; /** * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```40.6971494``` */ lat?: number | null; /** * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```-74.2598672``` */ lng?: number | null; /** * Indicates if the latitude and logitude are present, either geocoded or manually updated. * @example ```true``` */ is_localized?: boolean | null; /** * Indicates if the address has been successfully geocoded. * @example ```true``` */ is_geocoded?: boolean | null; /** * The geocoder provider name (either Google or Bing). * @example ```"google"``` */ provider_name?: string | null; /** * The map url of the geocoded address (if geocoded). * @example ```"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672"``` */ map_url?: string | null; /** * The static map image url of the geocoded address (if geocoded). * @example ```"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15"``` */ static_map_url?: string | null; /** * Customer's billing information (i.e. VAT number, codice fiscale). * @example ```"VAT ID IT02382940977"``` */ billing_info?: string | null; geocoder?: Geocoder | null; events?: Event[] | null; tags?: Tag[] | null; versions?: Version[] | null; event_stores?: EventStore[] | null; } interface AddressCreate extends ResourceCreate { /** * Indicates if it's a business or a personal address. */ business?: boolean | null; /** * Address first name (personal). * @example ```"John"``` */ first_name?: string | null; /** * Address last name (personal). * @example ```"Smith"``` */ last_name?: string | null; /** * Address company name (business). * @example ```"The Red Brand Inc."``` */ company?: string | null; /** * Address line 1, i.e. Street address, PO Box. * @example ```"2883 Geraldine Lane"``` */ line_1: string; /** * Address line 2, i.e. Apartment, Suite, Building. * @example ```"Apt.23"``` */ line_2?: string | null; /** * Address city. * @example ```"New York"``` */ city: string; /** * ZIP or postal code. * @example ```"10013"``` */ zip_code?: string | null; /** * State, province or region code. * @example ```"NY"``` */ state_code?: string | null; /** * The international 2-letter country code as defined by the ISO 3166-1 standard. * @example ```"US"``` */ country_code: string; /** * Phone number (including extension). * @example ```"(212) 646-338-1228"``` */ phone: string; /** * Email address. * @example ```"john@example.com"``` */ email?: string | null; /** * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. * @example ```"Please ring the bell twice"``` */ notes?: string | null; /** * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```40.6971494``` */ lat?: number | null; /** * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```-74.2598672``` */ lng?: number | null; /** * Customer's billing information (i.e. VAT number, codice fiscale). * @example ```"VAT ID IT02382940977"``` */ billing_info?: string | null; geocoder?: GeocoderRel | null; tags?: TagRel[] | null; } interface AddressUpdate extends ResourceUpdate { /** * Indicates if it's a business or a personal address. */ business?: boolean | null; /** * Address first name (personal). * @example ```"John"``` */ first_name?: string | null; /** * Address last name (personal). * @example ```"Smith"``` */ last_name?: string | null; /** * Address company name (business). * @example ```"The Red Brand Inc."``` */ company?: string | null; /** * Address line 1, i.e. Street address, PO Box. * @example ```"2883 Geraldine Lane"``` */ line_1?: string | null; /** * Address line 2, i.e. Apartment, Suite, Building. * @example ```"Apt.23"``` */ line_2?: string | null; /** * Address city. * @example ```"New York"``` */ city?: string | null; /** * ZIP or postal code. * @example ```"10013"``` */ zip_code?: string | null; /** * State, province or region code. * @example ```"NY"``` */ state_code?: string | null; /** * The international 2-letter country code as defined by the ISO 3166-1 standard. * @example ```"US"``` */ country_code?: string | null; /** * Phone number (including extension). * @example ```"(212) 646-338-1228"``` */ phone?: string | null; /** * Email address. * @example ```"john@example.com"``` */ email?: string | null; /** * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. * @example ```"Please ring the bell twice"``` */ notes?: string | null; /** * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```40.6971494``` */ lat?: number | null; /** * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. * @example ```-74.2598672``` */ lng?: number | null; /** * Customer's billing information (i.e. VAT number, codice fiscale). * @example ```"VAT ID IT02382940977"``` */ billing_info?: string | null; /** * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _add_tags?: string | null; /** * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels. */ _remove_tags?: string | null; geocoder?: GeocoderRel | null; tags?: TagRel[] | null; } declare class Addresses extends ApiResource
{ static readonly TYPE: AddressType; create(resource: AddressCreate, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; update(resource: AddressUpdate, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; delete(id: string | ResourceId, options?: ResourcesConfig): Promise; geocoder(addressId: string | Address, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise; events(addressId: string | Address, params?: QueryParamsList, options?: ResourcesConfig): Promise>; tags(addressId: string | Address, params?: QueryParamsList, options?: ResourcesConfig): Promise>; versions(addressId: string | Address, params?: QueryParamsList, options?: ResourcesConfig): Promise>; event_stores(addressId: string | Address, params?: QueryParamsList, options?: ResourcesConfig): Promise>; _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve
, options?: ResourcesConfig): Promise
; isAddress(resource: any): resource is Address; relationship(id: string | ResourceId | null): AddressRel; relationshipToMany(...ids: string[]): AddressRel[]; type(): AddressType; } declare const instance: Addresses; export { BingGeocoders as $, type Address as A, type AttachmentSort as B, type AttachmentUpdate as C, Attachments as D, type Authorization as E, type AuthorizationSort as F, type AuthorizationUpdate as G, Authorizations as H, type AvalaraAccount as I, type AvalaraAccountCreate as J, type AvalaraAccountSort as K, type AvalaraAccountUpdate as L, AvalaraAccounts as M, type AxerveGateway as N, type AxerveGatewayCreate as O, type AxerveGatewaySort as P, type AxerveGatewayUpdate as Q, AxerveGateways as R, type AxervePayment as S, type AxervePaymentCreate as T, type AxervePaymentSort as U, type AxervePaymentUpdate as V, AxervePayments as W, type BingGeocoder as X, type BingGeocoderCreate as Y, type BingGeocoderSort as Z, type BingGeocoderUpdate as _, type AddressCreate as a, type CustomPromotionRuleSort as a$, type BraintreeGateway as a0, type BraintreeGatewayCreate as a1, type BraintreeGatewaySort as a2, type BraintreeGatewayUpdate as a3, BraintreeGateways as a4, type BraintreePayment as a5, type BraintreePaymentCreate as a6, type BraintreePaymentSort as a7, type BraintreePaymentUpdate as a8, BraintreePayments as a9, type CheckoutComPaymentSort as aA, type CheckoutComPaymentUpdate as aB, CheckoutComPayments as aC, type Cleanup as aD, type CleanupCreate as aE, type CleanupSort as aF, type CleanupUpdate as aG, Cleanups as aH, type Coupon as aI, type CouponCodesPromotionRule as aJ, type CouponCodesPromotionRuleCreate as aK, type CouponCodesPromotionRuleSort as aL, type CouponCodesPromotionRuleUpdate as aM, CouponCodesPromotionRules as aN, type CouponCreate as aO, type CouponRecipient as aP, type CouponRecipientCreate as aQ, type CouponRecipientSort as aR, type CouponRecipientUpdate as aS, CouponRecipients as aT, type CouponSort as aU, type CouponUpdate as aV, Coupons as aW, type CreatableResource as aX, type CreatableResourceType as aY, type CustomPromotionRule as aZ, type CustomPromotionRuleCreate as a_, type Bundle as aa, type BundleCreate as ab, type BundleSort as ac, type BundleUpdate as ad, Bundles as ae, type BuyXPayYPromotion as af, type BuyXPayYPromotionCreate as ag, type BuyXPayYPromotionSort as ah, type BuyXPayYPromotionUpdate as ai, BuyXPayYPromotions as aj, type Capture as ak, type CaptureSort as al, type CaptureUpdate as am, Captures as an, type CarrierAccount as ao, type CarrierAccountCreate as ap, type CarrierAccountSort as aq, type CarrierAccountUpdate as ar, CarrierAccounts as as, type CheckoutComGateway as at, type CheckoutComGatewayCreate as au, type CheckoutComGatewaySort as av, type CheckoutComGatewayUpdate as aw, CheckoutComGateways as ax, type CheckoutComPayment as ay, type CheckoutComPaymentCreate as az, type AddressSort as b, type ExportUpdate as b$, type CustomPromotionRuleUpdate as b0, CustomPromotionRules as b1, type Customer as b2, type CustomerAddress as b3, type CustomerAddressCreate as b4, type CustomerAddressSort as b5, type CustomerAddressUpdate as b6, CustomerAddresses as b7, type CustomerCreate as b8, type CustomerGroup as b9, type DeliveryLeadTimeSort as bA, type DeliveryLeadTimeUpdate as bB, DeliveryLeadTimes as bC, type DiscountEngine as bD, type DiscountEngineItem as bE, type DiscountEngineItemSort as bF, DiscountEngineItems as bG, type DiscountEngineSort as bH, DiscountEngines as bI, type EasypostPickup as bJ, type EasypostPickupCreate as bK, type EasypostPickupSort as bL, type EasypostPickupUpdate as bM, EasypostPickups as bN, type Event as bO, type EventCallback as bP, type EventCallbackSort as bQ, EventCallbacks as bR, type EventSort as bS, type EventStore as bT, type EventStoreSort as bU, EventStores as bV, type EventUpdate as bW, Events as bX, type Export as bY, type ExportCreate as bZ, type ExportSort as b_, type CustomerGroupCreate as ba, type CustomerGroupSort as bb, type CustomerGroupUpdate as bc, CustomerGroups as bd, type CustomerPasswordReset as be, type CustomerPasswordResetCreate as bf, type CustomerPasswordResetSort as bg, type CustomerPasswordResetUpdate as bh, CustomerPasswordResets as bi, type CustomerPaymentSource as bj, type CustomerPaymentSourceCreate as bk, type CustomerPaymentSourceSort as bl, type CustomerPaymentSourceUpdate as bm, CustomerPaymentSources as bn, type CustomerSort as bo, type CustomerSubscription as bp, type CustomerSubscriptionCreate as bq, type CustomerSubscriptionSort as br, type CustomerSubscriptionUpdate as bs, CustomerSubscriptions as bt, type CustomerUpdate as bu, Customers as bv, type DeletableResource as bw, type DeletableResourceType as bx, type DeliveryLeadTime as by, type DeliveryLeadTimeCreate as bz, type AddressUpdate as c, GoogleGeocoders as c$, Exports as c0, type ExternalGateway as c1, type ExternalGatewayCreate as c2, type ExternalGatewaySort as c3, type ExternalGatewayUpdate as c4, ExternalGateways as c5, type ExternalPayment as c6, type ExternalPaymentCreate as c7, type ExternalPaymentSort as c8, type ExternalPaymentUpdate as c9, type FreeGiftPromotion as cA, type FreeGiftPromotionCreate as cB, type FreeGiftPromotionSort as cC, type FreeGiftPromotionUpdate as cD, FreeGiftPromotions as cE, type FreeShippingPromotion as cF, type FreeShippingPromotionCreate as cG, type FreeShippingPromotionSort as cH, type FreeShippingPromotionUpdate as cI, FreeShippingPromotions as cJ, type Geocoder as cK, type GeocoderSort as cL, Geocoders as cM, type GiftCard as cN, type GiftCardCreate as cO, type GiftCardRecipient as cP, type GiftCardRecipientCreate as cQ, type GiftCardRecipientSort as cR, type GiftCardRecipientUpdate as cS, GiftCardRecipients as cT, type GiftCardSort as cU, type GiftCardUpdate as cV, GiftCards as cW, type GoogleGeocoder as cX, type GoogleGeocoderCreate as cY, type GoogleGeocoderSort as cZ, type GoogleGeocoderUpdate as c_, ExternalPayments as ca, type ExternalPromotion as cb, type ExternalPromotionCreate as cc, type ExternalPromotionSort as cd, type ExternalPromotionUpdate as ce, ExternalPromotions as cf, type ExternalTaxCalculator as cg, type ExternalTaxCalculatorCreate as ch, type ExternalTaxCalculatorSort as ci, type ExternalTaxCalculatorUpdate as cj, ExternalTaxCalculators as ck, type FixedAmountPromotion as cl, type FixedAmountPromotionCreate as cm, type FixedAmountPromotionSort as cn, type FixedAmountPromotionUpdate as co, FixedAmountPromotions as cp, type FixedPricePromotion as cq, type FixedPricePromotionCreate as cr, type FixedPricePromotionSort as cs, type FixedPricePromotionUpdate as ct, FixedPricePromotions as cu, type FlexPromotion as cv, type FlexPromotionCreate as cw, type FlexPromotionSort as cx, type FlexPromotionUpdate as cy, FlexPromotions as cz, Addresses as d, type ManualTaxCalculatorUpdate as d$, type Import as d0, type ImportCreate as d1, type ImportSort as d2, type ImportUpdate as d3, Imports as d4, type InStockSubscription as d5, type InStockSubscriptionCreate as d6, type InStockSubscriptionSort as d7, type InStockSubscriptionUpdate as d8, InStockSubscriptions as d9, type LineItem as dA, type LineItemCreate as dB, type LineItemOption as dC, type LineItemOptionCreate as dD, type LineItemOptionSort as dE, type LineItemOptionUpdate as dF, LineItemOptions as dG, type LineItemSort as dH, type LineItemUpdate as dI, LineItems as dJ, type Link as dK, type LinkCreate as dL, type LinkSort as dM, type LinkUpdate as dN, Links as dO, type ListMeta as dP, ListResponse as dQ, type ListableResource as dR, type ListableResourceType as dS, type ManualGateway as dT, type ManualGatewayCreate as dU, type ManualGatewaySort as dV, type ManualGatewayUpdate as dW, ManualGateways as dX, type ManualTaxCalculator as dY, type ManualTaxCalculatorCreate as dZ, type ManualTaxCalculatorSort as d_, type InventoryModel as da, type InventoryModelCreate as db, type InventoryModelSort as dc, type InventoryModelUpdate as dd, InventoryModels as de, type InventoryReturnLocation as df, type InventoryReturnLocationCreate as dg, type InventoryReturnLocationSort as dh, type InventoryReturnLocationUpdate as di, InventoryReturnLocations as dj, type InventoryStockLocation as dk, type InventoryStockLocationCreate as dl, type InventoryStockLocationSort as dm, type InventoryStockLocationUpdate as dn, InventoryStockLocations as dp, type KlarnaGateway as dq, type KlarnaGatewayCreate as dr, type KlarnaGatewaySort as ds, type KlarnaGatewayUpdate as dt, KlarnaGateways as du, type KlarnaPayment as dv, type KlarnaPaymentCreate as dw, type KlarnaPaymentSort as dx, type KlarnaPaymentUpdate as dy, KlarnaPayments as dz, type Adjustment as e, type PaymentGateway as e$, ManualTaxCalculators as e0, type Market as e1, type MarketCreate as e2, type MarketSort as e3, type MarketUpdate as e4, Markets as e5, type Merchant as e6, type MerchantCreate as e7, type MerchantSort as e8, type MerchantUpdate as e9, type OrderSubscriptionItemCreate as eA, type OrderSubscriptionItemSort as eB, type OrderSubscriptionItemUpdate as eC, OrderSubscriptionItems as eD, type OrderSubscriptionSort as eE, type OrderSubscriptionUpdate as eF, OrderSubscriptions as eG, type OrderUpdate as eH, Orders as eI, type Organization as eJ, type OrganizationSort as eK, Organizations as eL, type Package as eM, type PackageCreate as eN, type PackageSort as eO, type PackageUpdate as eP, Packages as eQ, type Parcel as eR, type ParcelCreate as eS, type ParcelLineItem as eT, type ParcelLineItemCreate as eU, type ParcelLineItemSort as eV, type ParcelLineItemUpdate as eW, ParcelLineItems as eX, type ParcelSort as eY, type ParcelUpdate as eZ, Parcels as e_, Merchants as ea, type Metadata as eb, type Notification as ec, type NotificationCreate as ed, type NotificationSort as ee, type NotificationUpdate as ef, Notifications as eg, type Order as eh, type OrderAmountPromotionRule as ei, type OrderAmountPromotionRuleCreate as ej, type OrderAmountPromotionRuleSort as ek, type OrderAmountPromotionRuleUpdate as el, OrderAmountPromotionRules as em, OrderCopies as en, type OrderCopy as eo, type OrderCopyCreate as ep, type OrderCopySort as eq, type OrderCopyUpdate as er, type OrderCreate as es, OrderFactories as et, type OrderFactory as eu, type OrderFactorySort as ev, type OrderSort as ew, type OrderSubscription as ex, type OrderSubscriptionCreate as ey, type OrderSubscriptionItem as ez, type AdjustmentCreate as f, Promotions as f$, type PaymentGatewaySort as f0, PaymentGateways as f1, type PaymentMethod as f2, type PaymentMethodCreate as f3, type PaymentMethodSort as f4, type PaymentMethodUpdate as f5, PaymentMethods as f6, type PaymentOption as f7, type PaymentOptionCreate as f8, type PaymentOptionSort as f9, PriceFrequencyTiers as fA, type PriceList as fB, type PriceListCreate as fC, type PriceListScheduler as fD, type PriceListSchedulerCreate as fE, type PriceListSchedulerSort as fF, type PriceListSchedulerUpdate as fG, PriceListSchedulers as fH, type PriceListSort as fI, type PriceListUpdate as fJ, PriceLists as fK, type PriceSort as fL, type PriceTier as fM, type PriceTierSort as fN, PriceTiers as fO, type PriceUpdate as fP, type PriceVolumeTier as fQ, type PriceVolumeTierCreate as fR, type PriceVolumeTierSort as fS, type PriceVolumeTierUpdate as fT, PriceVolumeTiers as fU, Prices as fV, type Promotion as fW, type PromotionRule as fX, type PromotionRuleSort as fY, PromotionRules as fZ, type PromotionSort as f_, type PaymentOptionUpdate as fa, PaymentOptions as fb, type PaypalGateway as fc, type PaypalGatewayCreate as fd, type PaypalGatewaySort as fe, type PaypalGatewayUpdate as ff, PaypalGateways as fg, type PaypalPayment as fh, type PaypalPaymentCreate as fi, type PaypalPaymentSort as fj, type PaypalPaymentUpdate as fk, PaypalPayments as fl, type PercentageDiscountPromotion as fm, type PercentageDiscountPromotionCreate as fn, type PercentageDiscountPromotionSort as fo, type PercentageDiscountPromotionUpdate as fp, PercentageDiscountPromotions as fq, type Pickup as fr, type PickupSort as fs, Pickups as ft, type Price as fu, type PriceCreate as fv, type PriceFrequencyTier as fw, type PriceFrequencyTierCreate as fx, type PriceFrequencyTierSort as fy, type PriceFrequencyTierUpdate as fz, type AdjustmentSort as g, type ShippingCategory as g$, type QueryFields as g0, type QueryFilter as g1, type QueryInclude as g2, type QueryPageNumber as g3, type QueryPageSize as g4, type QueryParams as g5, type QueryParamsList as g6, type QueryParamsRetrieve as g7, type QuerySort as g8, RecurringOrderCopies as g9, type RetrievableResourceType as gA, type Return as gB, type ReturnCreate as gC, type ReturnLineItem as gD, type ReturnLineItemCreate as gE, type ReturnLineItemSort as gF, type ReturnLineItemUpdate as gG, ReturnLineItems as gH, type ReturnSort as gI, type ReturnUpdate as gJ, Returns as gK, type SatispayGateway as gL, type SatispayGatewayCreate as gM, type SatispayGatewaySort as gN, type SatispayGatewayUpdate as gO, SatispayGateways as gP, type SatispayPayment as gQ, type SatispayPaymentCreate as gR, type SatispayPaymentSort as gS, type SatispayPaymentUpdate as gT, SatispayPayments as gU, type Shipment as gV, type ShipmentCreate as gW, type ShipmentSort as gX, type ShipmentUpdate as gY, Shipments as gZ, ShippingCategories as g_, type RecurringOrderCopy as ga, type RecurringOrderCopyCreate as gb, type RecurringOrderCopySort as gc, type RecurringOrderCopyUpdate as gd, type Refund as ge, type RefundSort as gf, type RefundUpdate as gg, Refunds as gh, type ReservedStock as gi, type ReservedStockSort as gj, ReservedStocks as gk, type Resource as gl, type ResourceCreate as gm, type ResourceError as gn, type ResourceErrorSort as go, ResourceErrors as gp, type ResourceFilter as gq, type ResourceId as gr, type ResourceRel as gs, type ResourceSort as gt, type ResourceType as gu, type ResourceTypeLock as gv, type ResourceUpdate as gw, type ResourcesConfig as gx, type ResourcesInitConfig as gy, type RetrievableResource as gz, type AdjustmentUpdate as h, type StockReservationSort as h$, type ShippingCategoryCreate as h0, type ShippingCategorySort as h1, type ShippingCategoryUpdate as h2, type ShippingMethod as h3, type ShippingMethodCreate as h4, type ShippingMethodSort as h5, type ShippingMethodTier as h6, type ShippingMethodTierSort as h7, ShippingMethodTiers as h8, type ShippingMethodUpdate as h9, type SkuListUpdate as hA, SkuLists as hB, type SkuOption as hC, type SkuOptionCreate as hD, type SkuOptionSort as hE, type SkuOptionUpdate as hF, SkuOptions as hG, type SkuSort as hH, type SkuUpdate as hI, Skus as hJ, type StockItem as hK, type StockItemCreate as hL, type StockItemSort as hM, type StockItemUpdate as hN, StockItems as hO, type StockLineItem as hP, type StockLineItemCreate as hQ, type StockLineItemSort as hR, type StockLineItemUpdate as hS, StockLineItems as hT, type StockLocation as hU, type StockLocationCreate as hV, type StockLocationSort as hW, type StockLocationUpdate as hX, StockLocations as hY, type StockReservation as hZ, type StockReservationCreate as h_, ShippingMethods as ha, type ShippingWeightTier as hb, type ShippingWeightTierCreate as hc, type ShippingWeightTierSort as hd, type ShippingWeightTierUpdate as he, ShippingWeightTiers as hf, type ShippingZone as hg, type ShippingZoneCreate as hh, type ShippingZoneSort as hi, type ShippingZoneUpdate as hj, ShippingZones as hk, type Sku as hl, type SkuCreate as hm, type SkuList as hn, type SkuListCreate as ho, type SkuListItem as hp, type SkuListItemCreate as hq, type SkuListItemSort as hr, type SkuListItemUpdate as hs, SkuListItems as ht, type SkuListPromotionRule as hu, type SkuListPromotionRuleCreate as hv, type SkuListPromotionRuleSort as hw, type SkuListPromotionRuleUpdate as hx, SkuListPromotionRules as hy, type SkuListSort as hz, Adjustments as i, TaxjarAccounts as i$, type StockReservationUpdate as i0, StockReservations as i1, type StockTransfer as i2, type StockTransferCreate as i3, type StockTransferSort as i4, type StockTransferUpdate as i5, StockTransfers as i6, type Store as i7, type StoreCreate as i8, type StoreSort as i9, type TagSort as iA, type TagUpdate as iB, type TaggableResource as iC, type TaggableResourceType as iD, Tags as iE, type TalonOneAccount as iF, type TalonOneAccountCreate as iG, type TalonOneAccountSort as iH, type TalonOneAccountUpdate as iI, TalonOneAccounts as iJ, type TaxCalculator as iK, type TaxCalculatorSort as iL, TaxCalculators as iM, TaxCategories as iN, type TaxCategory as iO, type TaxCategoryCreate as iP, type TaxCategorySort as iQ, type TaxCategoryUpdate as iR, type TaxRule as iS, type TaxRuleCreate as iT, type TaxRuleSort as iU, type TaxRuleUpdate as iV, TaxRules as iW, type TaxjarAccount as iX, type TaxjarAccountCreate as iY, type TaxjarAccountSort as iZ, type TaxjarAccountUpdate as i_, type StoreUpdate as ia, Stores as ib, type StripeGateway as ic, type StripeGatewayCreate as id, type StripeGatewaySort as ie, type StripeGatewayUpdate as ig, StripeGateways as ih, type StripePayment as ii, type StripePaymentCreate as ij, type StripePaymentSort as ik, type StripePaymentUpdate as il, StripePayments as im, type StripeTaxAccount as io, type StripeTaxAccountCreate as ip, type StripeTaxAccountSort as iq, type StripeTaxAccountUpdate as ir, StripeTaxAccounts as is, type SubscriptionModel as it, type SubscriptionModelCreate as iu, type SubscriptionModelSort as iv, type SubscriptionModelUpdate as iw, SubscriptionModels as ix, type Tag as iy, type TagCreate as iz, type AdyenGateway as j, instance$1$ as j$, type Transaction as j0, type TransactionSort as j1, Transactions as j2, type UpdatableResource as j3, type UpdatableResourceType as j4, type Version as j5, type VersionSort as j6, type VersionableResource as j7, type VersionableResourceType as j8, Versions as j9, instance$x as jA, instance$j as jB, instance$R as jC, instance$i as jD, instance$h as jE, instance$1k as jF, instance$u as jG, instance$1y as jH, instance$19 as jI, instance$15 as jJ, instance$g as jK, instance$1j as jL, instance$f as jM, instance$1z as jN, instance$1Q as jO, instance$1O as jP, instance$1B as jQ, instance$1W as jR, instance$1V as jS, instance$e as jT, instance$Q as jU, instance$P as jV, instance$J as jW, instance$1r as jX, instance$1w as jY, instance$1x as jZ, instance$d as j_, type VertexAccount as ja, type VertexAccountCreate as jb, type VertexAccountSort as jc, type VertexAccountUpdate as jd, VertexAccounts as je, type Void as jf, type VoidSort as jg, type VoidUpdate as jh, Voids as ji, type Webhook as jj, type WebhookCreate as jk, type WebhookSort as jl, type WebhookUpdate as jm, Webhooks as jn, type WireTransfer as jo, type WireTransferCreate as jp, type WireTransferSort as jq, type WireTransferUpdate as jr, WireTransfers as js, instance as jt, instance$21 as ju, instance$l as jv, instance$m as jw, instance$k as jx, instance$p as jy, instance$1b as jz, type AdyenGatewayCreate as k, instance$1f as k$, instance$23 as k0, instance$1_ as k1, instance$c as k2, instance$b as k3, instance$1i as k4, instance$1A as k5, instance$1Z as k6, instance$1C as k7, instance$1E as k8, instance$1N as k9, instance$n as kA, instance$5 as kB, instance$14 as kC, instance$12 as kD, instance$11 as kE, instance$S as kF, instance$T as kG, instance$t as kH, instance$4 as kI, instance$1g as kJ, instance$1I as kK, instance$10 as kL, instance$I as kM, instance$H as kN, instance$G as kO, instance$F as kP, instance$E as kQ, instance$D as kR, instance$1F as kS, instance$s as kT, instance$M as kU, instance$1a as kV, instance$X as kW, instance$18 as kX, instance$16 as kY, instance$17 as kZ, instance$3 as k_, instance$1G as ka, instance$1J as kb, instance$w as kc, instance$1v as kd, instance$1u as ke, instance$a as kf, instance$9 as kg, instance$8 as kh, instance$1S as ki, instance$1R as kj, instance$1T as kk, instance$7 as kl, instance$1h as km, instance$1s as kn, instance$Z as ko, instance$1M as kp, instance$6 as kq, instance$1X as kr, instance$v as ks, instance$1U as kt, instance$1l as ku, instance$1D as kv, instance$o as kw, instance$O as kx, instance$N as ky, instance$K as kz, type AdyenGatewaySort as l, type PromotionRuleType as l$, instance$_ as l0, instance$1q as l1, instance$1p as l2, instance$1m as l3, instance$1o as l4, instance$1n as l5, instance$1L as l6, instance$1H as l7, instance$1K as l8, instance$1t as l9, isResourceType as lA, type EventStoreType as lB, type VersionType as lC, type AdjustmentType as lD, type WebhookType as lE, type EventCallbackType as lF, type EventType as lG, type ExternalTaxCalculatorType as lH, type TaxRuleType as lI, type ManualTaxCalculatorType as lJ, type CustomerAddressType as lK, type CustomerGroupType as lL, type MerchantType as lM, type InventoryStockLocationType as lN, type InventoryModelType as lO, type InventoryReturnLocationType as lP, type CouponRecipientType as lQ, type TagType as lR, type CouponType as lS, type FlexPromotionType as lT, type LinkType as lU, type SkuListItemType as lV, type SkuListType as lW, type FreeShippingPromotionType as lX, type PercentageDiscountPromotionType as lY, type SkuListPromotionRuleType as lZ, type FreeGiftPromotionType as l_, instance$C as la, instance$W as lb, instance$13 as lc, instance$V as ld, instance$Y as le, instance$$ as lf, instance$U as lg, instance$2 as lh, instance$1e as li, instance$B as lj, instance$L as lk, instance$1P as ll, instance$1 as lm, instance$r as ln, instance$y as lo, instance$1Y as lp, instance$A as lq, instance$q as lr, instance$22 as ls, instance$z as lt, instance$1c as lu, instance$20 as lv, instance$1d as lw, ApiResourceAdapter as lx, ResourceAdapter as ly, isResourceId as lz, type AdyenGatewayUpdate as m, type PriceTierType as m$, type FixedPricePromotionType as m0, type OrderAmountPromotionRuleType as m1, type FixedAmountPromotionType as m2, type CustomPromotionRuleType as m3, type ExternalPromotionType as m4, type CouponCodesPromotionRuleType as m5, type BuyXPayYPromotionType as m6, type DiscountEngineType as m7, type DiscountEngineItemType as m8, type GiftCardRecipientType as m9, type PackageType as mA, type StockLineItemType as mB, type ParcelLineItemType as mC, type ParcelType as mD, type PickupType as mE, type StockTransferType as mF, type ShipmentType as mG, type LineItemType as mH, type StockReservationType as mI, type ReservedStockType as mJ, type StockItemType as mK, type StockLocationType as mL, type StoreType as mM, type PaymentMethodType as mN, type PaymentGatewayType as mO, type AxervePaymentType as mP, type CustomerPaymentSourceType as mQ, type CustomerSubscriptionType as mR, type OrderFactoryType as mS, type OrderSubscriptionItemType as mT, type RecurringOrderCopyType as mU, type SubscriptionModelType as mV, type OrderSubscriptionType as mW, type CustomerType as mX, type PriceFrequencyTierType as mY, type PriceListSchedulerType as mZ, type PriceListType as m_, type GiftCardType as ma, type SkuOptionType as mb, type LineItemOptionType as mc, type DeliveryLeadTimeType as md, type ShippingCategoryType as me, type ShippingMethodTierType as mf, type ShippingWeightTierType as mg, type ShippingZoneType as mh, type ShippingMethodType as mi, type NotificationType as mj, type BraintreePaymentType as mk, type CheckoutComPaymentType as ml, type ExternalPaymentType as mm, type KlarnaPaymentType as mn, type PaypalPaymentType as mo, type SatispayPaymentType as mp, type StripePaymentType as mq, type WireTransferType as mr, type VoidType as ms, type AuthorizationType as mt, type RefundType as mu, type CaptureType as mv, type ResourceErrorType as mw, type ReturnType as mx, type ReturnLineItemType as my, type CarrierAccountType as mz, AdyenGateways as n, type PriceVolumeTierType as n0, type PriceType as n1, type SkuType as n2, type StripeTaxAccountType as n3, type TaxjarAccountType as n4, type VertexAccountType as n5, type TaxCategoryType as n6, type AvalaraAccountType as n7, type GeocoderType as n8, type MarketType as n9, type PaypalGatewayType as nA, type SatispayGatewayType as nB, type StripeGatewayType as nC, type TalonOneAccountType as nD, type ResourceFields as nE, type ResourceSortFields as nF, creatableResources as nG, deletableResources as nH, getResources as nI, getSingletons as nJ, isCreatable as nK, isDeletable as nL, isSingleton as nM, isTaggable as nN, isUpdatable as nO, isVersionable as nP, resourceList as nQ, singletonList as nR, taggableResources as nS, updatableResources as nT, versionableResources as nU, generateQueryStringParams as nV, generateSearchString as nW, isParamsList as nX, type AddressType as nY, type BundleType as na, type PaymentOptionType as nb, type PromotionType as nc, type TaxCalculatorType as nd, type TransactionType as ne, type AttachmentType as nf, type OrderCopyType as ng, type OrderType as nh, type AdyenPaymentType as ni, type AdyenGatewayType as nj, type ApplicationType as nk, type AxerveGatewayType as nl, type BingGeocoderType as nm, type BraintreeGatewayType as nn, type CheckoutComGatewayType as no, type CleanupType as np, type CustomerPasswordResetType as nq, type EasypostPickupType as nr, type ExportType as ns, type ExternalGatewayType as nt, type GoogleGeocoderType as nu, type ImportType as nv, type InStockSubscriptionType as nw, type KlarnaGatewayType as nx, type ManualGatewayType as ny, type OrganizationType as nz, type AdyenPayment as o, type AdyenPaymentCreate as p, type AdyenPaymentSort as q, type AdyenPaymentUpdate as r, AdyenPayments as s, ApiResource as t, ApiSingleton as u, type Application as v, type ApplicationSort as w, Applications as x, type Attachment as y, type AttachmentCreate as z };