@commercelayer/sdk 4.7.5 → 4.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/lib/cjs/api.d.ts +1 -103
  2. package/lib/cjs/client.d.ts +1 -31
  3. package/lib/cjs/commercelayer.d.ts +1 -122
  4. package/lib/cjs/common.d.ts +1 -4
  5. package/lib/cjs/config.d.ts +1 -11
  6. package/lib/cjs/debug.d.ts +1 -3
  7. package/lib/cjs/error.d.ts +1 -26
  8. package/lib/cjs/index.d.ts +1 -7
  9. package/lib/cjs/interceptor.d.ts +1 -19
  10. package/lib/cjs/jsonapi.d.ts +1 -5
  11. package/lib/cjs/model.d.ts +1 -101
  12. package/lib/cjs/query.d.ts +1 -23
  13. package/lib/cjs/resource.d.ts +1 -76
  14. package/lib/cjs/resources/addresses.d.ts +1 -88
  15. package/lib/cjs/resources/adjustments.d.ts +1 -35
  16. package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
  17. package/lib/cjs/resources/adyen_payments.d.ts +1 -44
  18. package/lib/cjs/resources/application.d.ts +1 -21
  19. package/lib/cjs/resources/attachments.d.ts +1 -156
  20. package/lib/cjs/resources/authorizations.d.ts +1 -57
  21. package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
  22. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
  23. package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
  24. package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
  25. package/lib/cjs/resources/braintree_payments.d.ts +1 -47
  26. package/lib/cjs/resources/bundles.d.ts +1 -74
  27. package/lib/cjs/resources/captures.d.ts +1 -48
  28. package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
  29. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
  30. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
  31. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
  32. package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
  33. package/lib/cjs/resources/coupons.d.ts +1 -45
  34. package/lib/cjs/resources/customer_addresses.d.ts +1 -41
  35. package/lib/cjs/resources/customer_groups.d.ts +1 -36
  36. package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
  37. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
  38. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
  39. package/lib/cjs/resources/customers.d.ts +1 -60
  40. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
  41. package/lib/cjs/resources/event_callbacks.d.ts +1 -24
  42. package/lib/cjs/resources/external_gateways.d.ts +1 -49
  43. package/lib/cjs/resources/external_payments.d.ts +1 -43
  44. package/lib/cjs/resources/external_promotions.d.ts +1 -86
  45. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
  46. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
  47. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
  48. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
  49. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
  50. package/lib/cjs/resources/geocoders.d.ts +1 -24
  51. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
  52. package/lib/cjs/resources/gift_cards.d.ts +1 -82
  53. package/lib/cjs/resources/google_geocoders.d.ts +1 -35
  54. package/lib/cjs/resources/imports.d.ts +1 -40
  55. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
  56. package/lib/cjs/resources/inventory_models.d.ts +1 -42
  57. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
  58. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
  59. package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
  60. package/lib/cjs/resources/klarna_payments.d.ts +1 -41
  61. package/lib/cjs/resources/line_item_options.d.ts +1 -57
  62. package/lib/cjs/resources/line_items.d.ts +1 -125
  63. package/lib/cjs/resources/manual_gateways.d.ts +1 -33
  64. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
  65. package/lib/cjs/resources/markets.d.ts +1 -81
  66. package/lib/cjs/resources/merchants.d.ts +1 -38
  67. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
  68. package/lib/cjs/resources/order_copies.d.ts +1 -45
  69. package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
  70. package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
  71. package/lib/cjs/resources/orders.d.ts +1 -271
  72. package/lib/cjs/resources/organization.d.ts +1 -32
  73. package/lib/cjs/resources/packages.d.ts +1 -56
  74. package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
  75. package/lib/cjs/resources/parcels.d.ts +1 -108
  76. package/lib/cjs/resources/payment_gateways.d.ts +1 -21
  77. package/lib/cjs/resources/payment_methods.d.ts +1 -59
  78. package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
  79. package/lib/cjs/resources/paypal_payments.d.ts +1 -49
  80. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
  81. package/lib/cjs/resources/price_lists.d.ts +1 -39
  82. package/lib/cjs/resources/prices.d.ts +1 -57
  83. package/lib/cjs/resources/promotion_rules.d.ts +1 -24
  84. package/lib/cjs/resources/promotions.d.ts +1 -41
  85. package/lib/cjs/resources/refunds.d.ts +1 -34
  86. package/lib/cjs/resources/return_line_items.d.ts +1 -49
  87. package/lib/cjs/resources/returns.d.ts +1 -72
  88. package/lib/cjs/resources/shipments.d.ts +1 -89
  89. package/lib/cjs/resources/shipping_categories.d.ts +1 -33
  90. package/lib/cjs/resources/shipping_methods.d.ts +1 -74
  91. package/lib/cjs/resources/shipping_zones.d.ts +1 -48
  92. package/lib/cjs/resources/sku_list_items.d.ts +1 -47
  93. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
  94. package/lib/cjs/resources/sku_lists.d.ts +1 -49
  95. package/lib/cjs/resources/sku_options.d.ts +1 -56
  96. package/lib/cjs/resources/skus.d.ts +1 -78
  97. package/lib/cjs/resources/stock_items.d.ts +1 -49
  98. package/lib/cjs/resources/stock_line_items.d.ts +1 -29
  99. package/lib/cjs/resources/stock_locations.d.ts +1 -57
  100. package/lib/cjs/resources/stock_transfers.d.ts +1 -71
  101. package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
  102. package/lib/cjs/resources/stripe_payments.d.ts +1 -42
  103. package/lib/cjs/resources/tax_calculators.d.ts +1 -27
  104. package/lib/cjs/resources/tax_categories.d.ts +1 -59
  105. package/lib/cjs/resources/tax_rules.d.ts +1 -69
  106. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
  107. package/lib/cjs/resources/transactions.d.ts +1 -31
  108. package/lib/cjs/resources/voids.d.ts +1 -34
  109. package/lib/cjs/resources/webhooks.d.ts +1 -42
  110. package/lib/cjs/resources/wire_transfers.d.ts +1 -32
  111. package/lib/cjs/static.d.ts +1 -6
  112. package/lib/cjs/util.d.ts +1 -2
  113. package/lib/esm/api.d.ts +1 -103
  114. package/lib/esm/client.d.ts +1 -31
  115. package/lib/esm/commercelayer.d.ts +1 -122
  116. package/lib/esm/common.d.ts +1 -4
  117. package/lib/esm/config.d.ts +1 -11
  118. package/lib/esm/debug.d.ts +1 -3
  119. package/lib/esm/error.d.ts +1 -26
  120. package/lib/esm/index.d.ts +1 -7
  121. package/lib/esm/interceptor.d.ts +1 -19
  122. package/lib/esm/jsonapi.d.ts +1 -5
  123. package/lib/esm/model.d.ts +1 -101
  124. package/lib/esm/query.d.ts +1 -23
  125. package/lib/esm/resource.d.ts +1 -76
  126. package/lib/esm/resources/addresses.d.ts +1 -88
  127. package/lib/esm/resources/adjustments.d.ts +1 -35
  128. package/lib/esm/resources/adyen_gateways.d.ts +1 -47
  129. package/lib/esm/resources/adyen_payments.d.ts +1 -44
  130. package/lib/esm/resources/application.d.ts +1 -21
  131. package/lib/esm/resources/attachments.d.ts +1 -156
  132. package/lib/esm/resources/authorizations.d.ts +1 -57
  133. package/lib/esm/resources/avalara_accounts.d.ts +1 -52
  134. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
  135. package/lib/esm/resources/bing_geocoders.d.ts +1 -35
  136. package/lib/esm/resources/braintree_gateways.d.ts +1 -56
  137. package/lib/esm/resources/braintree_payments.d.ts +1 -47
  138. package/lib/esm/resources/bundles.d.ts +1 -74
  139. package/lib/esm/resources/captures.d.ts +1 -48
  140. package/lib/esm/resources/carrier_accounts.d.ts +1 -26
  141. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
  142. package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
  143. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
  144. package/lib/esm/resources/coupon_recipients.d.ts +1 -44
  145. package/lib/esm/resources/coupons.d.ts +1 -45
  146. package/lib/esm/resources/customer_addresses.d.ts +1 -41
  147. package/lib/esm/resources/customer_groups.d.ts +1 -36
  148. package/lib/esm/resources/customer_password_resets.d.ts +1 -33
  149. package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
  150. package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
  151. package/lib/esm/resources/customers.d.ts +1 -60
  152. package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
  153. package/lib/esm/resources/event_callbacks.d.ts +1 -24
  154. package/lib/esm/resources/external_gateways.d.ts +1 -49
  155. package/lib/esm/resources/external_payments.d.ts +1 -43
  156. package/lib/esm/resources/external_promotions.d.ts +1 -86
  157. package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
  158. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
  159. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
  160. package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
  161. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
  162. package/lib/esm/resources/geocoders.d.ts +1 -24
  163. package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
  164. package/lib/esm/resources/gift_cards.d.ts +1 -82
  165. package/lib/esm/resources/google_geocoders.d.ts +1 -35
  166. package/lib/esm/resources/imports.d.ts +1 -40
  167. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
  168. package/lib/esm/resources/inventory_models.d.ts +1 -42
  169. package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
  170. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
  171. package/lib/esm/resources/klarna_gateways.d.ts +1 -44
  172. package/lib/esm/resources/klarna_payments.d.ts +1 -41
  173. package/lib/esm/resources/line_item_options.d.ts +1 -57
  174. package/lib/esm/resources/line_items.d.ts +1 -125
  175. package/lib/esm/resources/manual_gateways.d.ts +1 -33
  176. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
  177. package/lib/esm/resources/markets.d.ts +1 -81
  178. package/lib/esm/resources/merchants.d.ts +1 -38
  179. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
  180. package/lib/esm/resources/order_copies.d.ts +1 -45
  181. package/lib/esm/resources/order_subscriptions.d.ts +1 -67
  182. package/lib/esm/resources/order_validation_rules.d.ts +1 -20
  183. package/lib/esm/resources/orders.d.ts +1 -271
  184. package/lib/esm/resources/organization.d.ts +1 -32
  185. package/lib/esm/resources/packages.d.ts +1 -56
  186. package/lib/esm/resources/parcel_line_items.d.ts +1 -49
  187. package/lib/esm/resources/parcels.d.ts +1 -108
  188. package/lib/esm/resources/payment_gateways.d.ts +1 -21
  189. package/lib/esm/resources/payment_methods.d.ts +1 -59
  190. package/lib/esm/resources/paypal_gateways.d.ts +1 -39
  191. package/lib/esm/resources/paypal_payments.d.ts +1 -49
  192. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
  193. package/lib/esm/resources/price_lists.d.ts +1 -39
  194. package/lib/esm/resources/prices.d.ts +1 -57
  195. package/lib/esm/resources/promotion_rules.d.ts +1 -24
  196. package/lib/esm/resources/promotions.d.ts +1 -41
  197. package/lib/esm/resources/refunds.d.ts +1 -34
  198. package/lib/esm/resources/return_line_items.d.ts +1 -49
  199. package/lib/esm/resources/returns.d.ts +1 -72
  200. package/lib/esm/resources/shipments.d.ts +1 -89
  201. package/lib/esm/resources/shipping_categories.d.ts +1 -33
  202. package/lib/esm/resources/shipping_methods.d.ts +1 -74
  203. package/lib/esm/resources/shipping_zones.d.ts +1 -48
  204. package/lib/esm/resources/sku_list_items.d.ts +1 -47
  205. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
  206. package/lib/esm/resources/sku_lists.d.ts +1 -49
  207. package/lib/esm/resources/sku_options.d.ts +1 -56
  208. package/lib/esm/resources/skus.d.ts +1 -78
  209. package/lib/esm/resources/stock_items.d.ts +1 -49
  210. package/lib/esm/resources/stock_line_items.d.ts +1 -29
  211. package/lib/esm/resources/stock_locations.d.ts +1 -57
  212. package/lib/esm/resources/stock_transfers.d.ts +1 -71
  213. package/lib/esm/resources/stripe_gateways.d.ts +1 -38
  214. package/lib/esm/resources/stripe_payments.d.ts +1 -42
  215. package/lib/esm/resources/tax_calculators.d.ts +1 -27
  216. package/lib/esm/resources/tax_categories.d.ts +1 -59
  217. package/lib/esm/resources/tax_rules.d.ts +1 -69
  218. package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
  219. package/lib/esm/resources/transactions.d.ts +1 -31
  220. package/lib/esm/resources/voids.d.ts +1 -34
  221. package/lib/esm/resources/webhooks.d.ts +1 -42
  222. package/lib/esm/resources/wire_transfers.d.ts +1 -32
  223. package/lib/esm/static.d.ts +1 -6
  224. package/lib/esm/util.d.ts +1 -2
  225. package/package.json +3 -3
@@ -1,41 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Customer } from './customers';
4
- import type { Address } from './addresses';
5
- declare type CustomerAddressRel = ResourceRel & {
6
- type: typeof CustomerAddresses.TYPE;
7
- };
8
- declare type CustomerRel = ResourceRel & {
9
- type: 'customers';
10
- };
11
- declare type AddressRel = ResourceRel & {
12
- type: 'addresses';
13
- };
14
- interface CustomerAddress extends Resource {
15
- name?: string;
16
- customer?: Customer;
17
- address?: Address;
18
- }
19
- interface CustomerAddressCreate extends ResourceCreate {
20
- customer: CustomerRel;
21
- address: AddressRel;
22
- }
23
- interface CustomerAddressUpdate extends ResourceUpdate {
24
- customer?: CustomerRel;
25
- address?: AddressRel;
26
- }
27
- declare class CustomerAddresses extends ApiResource {
28
- static readonly TYPE: 'customer_addresses';
29
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>>;
30
- create(resource: CustomerAddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
31
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
32
- update(resource: CustomerAddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
33
- delete(id: string, options?: ResourcesConfig): Promise<void>;
34
- customer(customerAddressId: string | CustomerAddress, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
35
- address(customerAddressId: string | CustomerAddress, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
36
- isCustomerAddress(resource: any): resource is CustomerAddress;
37
- relationship(id: string | ResourceId | null): CustomerAddressRel;
38
- type(): string;
39
- }
40
- export default CustomerAddresses;
41
- export { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Address}from'./addresses';declare type CustomerAddressRel=ResourceRel&{type:typeof CustomerAddresses.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};declare type AddressRel=ResourceRel&{type:'addresses';};interface CustomerAddress extends Resource{name?:string;customer?:Customer;address?:Address;}interface CustomerAddressCreate extends ResourceCreate{customer:CustomerRel;address:AddressRel;}interface CustomerAddressUpdate extends ResourceUpdate{customer?:CustomerRel;address?:AddressRel;}declare class CustomerAddresses extends ApiResource{static readonly TYPE:'customer_addresses';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;create(resource:CustomerAddressCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;update(resource:CustomerAddressUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;address(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;isCustomerAddress(resource:any):resource is CustomerAddress;relationship(id:string|ResourceId|null):CustomerAddressRel;type():string;}export default CustomerAddresses;export{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate};
@@ -1,36 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Customer } from './customers';
4
- import type { Market } from './markets';
5
- import type { Attachment } from './attachments';
6
- declare type CustomerGroupRel = ResourceRel & {
7
- type: typeof CustomerGroups.TYPE;
8
- };
9
- interface CustomerGroup extends Resource {
10
- name?: string;
11
- customers?: Customer[];
12
- markets?: Market[];
13
- attachments?: Attachment[];
14
- }
15
- interface CustomerGroupCreate extends ResourceCreate {
16
- name: string;
17
- }
18
- interface CustomerGroupUpdate extends ResourceUpdate {
19
- name?: string;
20
- }
21
- declare class CustomerGroups extends ApiResource {
22
- static readonly TYPE: 'customer_groups';
23
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerGroup>>;
24
- create(resource: CustomerGroupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
25
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
26
- update(resource: CustomerGroupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
27
- delete(id: string, options?: ResourcesConfig): Promise<void>;
28
- customers(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Customer>>;
29
- markets(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
30
- attachments(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
31
- isCustomerGroup(resource: any): resource is CustomerGroup;
32
- relationship(id: string | ResourceId | null): CustomerGroupRel;
33
- type(): string;
34
- }
35
- export default CustomerGroups;
36
- export { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type CustomerGroupRel=ResourceRel&{type:typeof CustomerGroups.TYPE;};interface CustomerGroup extends Resource{name?:string;customers?:Customer[];markets?:Market[];attachments?:Attachment[];}interface CustomerGroupCreate extends ResourceCreate{name:string;}interface CustomerGroupUpdate extends ResourceUpdate{name?:string;}declare class CustomerGroups extends ApiResource{static readonly TYPE:'customer_groups';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerGroup>>;create(resource:CustomerGroupCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;update(resource:CustomerGroupUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;delete(id:string,options?:ResourcesConfig):Promise<void>;customers(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;markets(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCustomerGroup(resource:any):resource is CustomerGroup;relationship(id:string|ResourceId|null):CustomerGroupRel;type():string;}export default CustomerGroups;export{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate};
@@ -1,33 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Customer } from './customers';
4
- declare type CustomerPasswordResetRel = ResourceRel & {
5
- type: typeof CustomerPasswordResets.TYPE;
6
- };
7
- interface CustomerPasswordReset extends Resource {
8
- customer_email?: string;
9
- reset_password_token?: string;
10
- reset_password_at?: string;
11
- customer?: Customer;
12
- }
13
- interface CustomerPasswordResetCreate extends ResourceCreate {
14
- customer_email: string;
15
- }
16
- interface CustomerPasswordResetUpdate extends ResourceUpdate {
17
- customer_password?: string;
18
- _reset_password_token?: string;
19
- }
20
- declare class CustomerPasswordResets extends ApiResource {
21
- static readonly TYPE: 'customer_password_resets';
22
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPasswordReset>>;
23
- create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
24
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
25
- update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
26
- delete(id: string, options?: ResourcesConfig): Promise<void>;
27
- customer(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
28
- isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset;
29
- relationship(id: string | ResourceId | null): CustomerPasswordResetRel;
30
- type(): string;
31
- }
32
- export default CustomerPasswordResets;
33
- export { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';declare type CustomerPasswordResetRel=ResourceRel&{type:typeof CustomerPasswordResets.TYPE;};interface CustomerPasswordReset extends Resource{customer_email?:string;reset_password_token?:string;reset_password_at?:string;customer?:Customer;}interface CustomerPasswordResetCreate extends ResourceCreate{customer_email:string;}interface CustomerPasswordResetUpdate extends ResourceUpdate{customer_password?:string;_reset_password_token?:string;}declare class CustomerPasswordResets extends ApiResource{static readonly TYPE:'customer_password_resets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPasswordReset>>;create(resource:CustomerPasswordResetCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;update(resource:CustomerPasswordResetUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerPasswordResetId:string|CustomerPasswordReset,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;isCustomerPasswordReset(resource:any):resource is CustomerPasswordReset;relationship(id:string|ResourceId|null):CustomerPasswordResetRel;type():string;}export default CustomerPasswordResets;export{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate};
@@ -1,70 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Customer } from './customers';
4
- import type { AdyenPayment } from './adyen_payments';
5
- import type { BraintreePayment } from './braintree_payments';
6
- import type { CheckoutComPayment } from './checkout_com_payments';
7
- import type { ExternalPayment } from './external_payments';
8
- import type { KlarnaPayment } from './klarna_payments';
9
- import type { PaypalPayment } from './paypal_payments';
10
- import type { StripePayment } from './stripe_payments';
11
- import type { WireTransfer } from './wire_transfers';
12
- declare type CustomerPaymentSourceRel = ResourceRel & {
13
- type: typeof CustomerPaymentSources.TYPE;
14
- };
15
- declare type CustomerRel = ResourceRel & {
16
- type: 'customers';
17
- };
18
- declare type AdyenPaymentRel = ResourceRel & {
19
- type: 'adyen_payments';
20
- };
21
- declare type BraintreePaymentRel = ResourceRel & {
22
- type: 'braintree_payments';
23
- };
24
- declare type CheckoutComPaymentRel = ResourceRel & {
25
- type: 'checkout_com_payments';
26
- };
27
- declare type ExternalPaymentRel = ResourceRel & {
28
- type: 'external_payments';
29
- };
30
- declare type KlarnaPaymentRel = ResourceRel & {
31
- type: 'klarna_payments';
32
- };
33
- declare type PaypalPaymentRel = ResourceRel & {
34
- type: 'paypal_payments';
35
- };
36
- declare type StripePaymentRel = ResourceRel & {
37
- type: 'stripe_payments';
38
- };
39
- declare type WireTransferRel = ResourceRel & {
40
- type: 'wire_transfers';
41
- };
42
- interface CustomerPaymentSource extends Resource {
43
- name?: string;
44
- customer_token?: string;
45
- payment_source_token?: string;
46
- customer?: Customer;
47
- payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
48
- }
49
- interface CustomerPaymentSourceCreate extends ResourceCreate {
50
- customer: CustomerRel;
51
- payment_source: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
52
- }
53
- interface CustomerPaymentSourceUpdate extends ResourceUpdate {
54
- customer?: CustomerRel;
55
- payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
56
- }
57
- declare class CustomerPaymentSources extends ApiResource {
58
- static readonly TYPE: 'customer_payment_sources';
59
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
60
- create(resource: CustomerPaymentSourceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
61
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
62
- update(resource: CustomerPaymentSourceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
63
- delete(id: string, options?: ResourcesConfig): Promise<void>;
64
- customer(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
65
- isCustomerPaymentSource(resource: any): resource is CustomerPaymentSource;
66
- relationship(id: string | ResourceId | null): CustomerPaymentSourceRel;
67
- type(): string;
68
- }
69
- export default CustomerPaymentSources;
70
- export { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSourceUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{AdyenPayment}from'./adyen_payments';import type{BraintreePayment}from'./braintree_payments';import type{CheckoutComPayment}from'./checkout_com_payments';import type{ExternalPayment}from'./external_payments';import type{KlarnaPayment}from'./klarna_payments';import type{PaypalPayment}from'./paypal_payments';import type{StripePayment}from'./stripe_payments';import type{WireTransfer}from'./wire_transfers';declare type CustomerPaymentSourceRel=ResourceRel&{type:typeof CustomerPaymentSources.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};declare type AdyenPaymentRel=ResourceRel&{type:'adyen_payments';};declare type BraintreePaymentRel=ResourceRel&{type:'braintree_payments';};declare type CheckoutComPaymentRel=ResourceRel&{type:'checkout_com_payments';};declare type ExternalPaymentRel=ResourceRel&{type:'external_payments';};declare type KlarnaPaymentRel=ResourceRel&{type:'klarna_payments';};declare type PaypalPaymentRel=ResourceRel&{type:'paypal_payments';};declare type StripePaymentRel=ResourceRel&{type:'stripe_payments';};declare type WireTransferRel=ResourceRel&{type:'wire_transfers';};interface CustomerPaymentSource extends Resource{name?:string;customer_token?:string;payment_source_token?:string;customer?:Customer;payment_source?:AdyenPayment|BraintreePayment|CheckoutComPayment|ExternalPayment|KlarnaPayment|PaypalPayment|StripePayment|WireTransfer;}interface CustomerPaymentSourceCreate extends ResourceCreate{customer:CustomerRel;payment_source:AdyenPaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|StripePaymentRel|WireTransferRel;}interface CustomerPaymentSourceUpdate extends ResourceUpdate{customer?:CustomerRel;payment_source?:AdyenPaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|StripePaymentRel|WireTransferRel;}declare class CustomerPaymentSources extends ApiResource{static readonly TYPE:'customer_payment_sources';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;create(resource:CustomerPaymentSourceCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;update(resource:CustomerPaymentSourceUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerPaymentSourceId:string|CustomerPaymentSource,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;isCustomerPaymentSource(resource:any):resource is CustomerPaymentSource;relationship(id:string|ResourceId|null):CustomerPaymentSourceRel;type():string;}export default CustomerPaymentSources;export{CustomerPaymentSource,CustomerPaymentSourceCreate,CustomerPaymentSourceUpdate};
@@ -1,28 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Customer } from './customers';
4
- declare type CustomerSubscriptionRel = ResourceRel & {
5
- type: typeof CustomerSubscriptions.TYPE;
6
- };
7
- interface CustomerSubscription extends Resource {
8
- customer_email?: string;
9
- customer?: Customer;
10
- }
11
- interface CustomerSubscriptionCreate extends ResourceCreate {
12
- customer_email: string;
13
- }
14
- declare type CustomerSubscriptionUpdate = ResourceUpdate;
15
- declare class CustomerSubscriptions extends ApiResource {
16
- static readonly TYPE: 'customer_subscriptions';
17
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>>;
18
- create(resource: CustomerSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
19
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
20
- update(resource: CustomerSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
21
- delete(id: string, options?: ResourcesConfig): Promise<void>;
22
- customer(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
23
- isCustomerSubscription(resource: any): resource is CustomerSubscription;
24
- relationship(id: string | ResourceId | null): CustomerSubscriptionRel;
25
- type(): string;
26
- }
27
- export default CustomerSubscriptions;
28
- export { CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';declare type CustomerSubscriptionRel=ResourceRel&{type:typeof CustomerSubscriptions.TYPE;};interface CustomerSubscription extends Resource{customer_email?:string;customer?:Customer;}interface CustomerSubscriptionCreate extends ResourceCreate{customer_email:string;}declare type CustomerSubscriptionUpdate=ResourceUpdate;declare class CustomerSubscriptions extends ApiResource{static readonly TYPE:'customer_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;create(resource:CustomerSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;update(resource:CustomerSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerSubscriptionId:string|CustomerSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;isCustomerSubscription(resource:any):resource is CustomerSubscription;relationship(id:string|ResourceId|null):CustomerSubscriptionRel;type():string;}export default CustomerSubscriptions;export{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate};
@@ -1,60 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { CustomerGroup } from './customer_groups';
4
- import type { CustomerAddress } from './customer_addresses';
5
- import type { CustomerPaymentSource } from './customer_payment_sources';
6
- import type { CustomerSubscription } from './customer_subscriptions';
7
- import type { Order } from './orders';
8
- import type { OrderSubscription } from './order_subscriptions';
9
- import type { Return } from './returns';
10
- import type { Attachment } from './attachments';
11
- declare type CustomerRel = ResourceRel & {
12
- type: typeof Customers.TYPE;
13
- };
14
- declare type CustomerGroupRel = ResourceRel & {
15
- type: 'customer_groups';
16
- };
17
- interface Customer extends Resource {
18
- email?: string;
19
- status?: string;
20
- has_password?: boolean;
21
- customer_group?: CustomerGroup;
22
- customer_addresses?: CustomerAddress[];
23
- customer_payment_sources?: CustomerPaymentSource[];
24
- customer_subscriptions?: CustomerSubscription[];
25
- orders?: Order[];
26
- order_subscriptions?: OrderSubscription[];
27
- returns?: Return[];
28
- attachments?: Attachment[];
29
- }
30
- interface CustomerCreate extends ResourceCreate {
31
- email: string;
32
- password?: string;
33
- customer_group?: CustomerGroupRel;
34
- }
35
- interface CustomerUpdate extends ResourceUpdate {
36
- email?: string;
37
- password?: string;
38
- customer_group?: CustomerGroupRel;
39
- }
40
- declare class Customers extends ApiResource {
41
- static readonly TYPE: 'customers';
42
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Customer>>;
43
- create(resource: CustomerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
44
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
45
- update(resource: CustomerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
46
- delete(id: string, options?: ResourcesConfig): Promise<void>;
47
- customer_group(customerId: string | Customer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
48
- customer_addresses(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>>;
49
- customer_payment_sources(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
50
- customer_subscriptions(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>>;
51
- orders(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
52
- order_subscriptions(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
53
- returns(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Return>>;
54
- attachments(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
55
- isCustomer(resource: any): resource is Customer;
56
- relationship(id: string | ResourceId | null): CustomerRel;
57
- type(): string;
58
- }
59
- export default Customers;
60
- export { Customer, CustomerCreate, CustomerUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{CustomerGroup}from'./customer_groups';import type{CustomerAddress}from'./customer_addresses';import type{CustomerPaymentSource}from'./customer_payment_sources';import type{CustomerSubscription}from'./customer_subscriptions';import type{Order}from'./orders';import type{OrderSubscription}from'./order_subscriptions';import type{Return}from'./returns';import type{Attachment}from'./attachments';declare type CustomerRel=ResourceRel&{type:typeof Customers.TYPE;};declare type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Customer extends Resource{email?:string;status?:string;has_password?:boolean;customer_group?:CustomerGroup;customer_addresses?:CustomerAddress[];customer_payment_sources?:CustomerPaymentSource[];customer_subscriptions?:CustomerSubscription[];orders?:Order[];order_subscriptions?:OrderSubscription[];returns?:Return[];attachments?:Attachment[];}interface CustomerCreate extends ResourceCreate{email:string;password?:string;customer_group?:CustomerGroupRel;}interface CustomerUpdate extends ResourceUpdate{email?:string;password?:string;customer_group?:CustomerGroupRel;}declare class Customers extends ApiResource{static readonly TYPE:'customers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;create(resource:CustomerCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;update(resource:CustomerUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer_group(customerId:string|Customer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;customer_addresses(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;customer_payment_sources(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;customer_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;orders(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;order_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscription>>;returns(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;attachments(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCustomer(resource:any):resource is Customer;relationship(id:string|ResourceId|null):CustomerRel;type():string;}export default Customers;export{Customer,CustomerCreate,CustomerUpdate};
@@ -1,51 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { StockLocation } from './stock_locations';
4
- import type { ShippingMethod } from './shipping_methods';
5
- import type { Attachment } from './attachments';
6
- declare type DeliveryLeadTimeRel = ResourceRel & {
7
- type: typeof DeliveryLeadTimes.TYPE;
8
- };
9
- declare type StockLocationRel = ResourceRel & {
10
- type: 'stock_locations';
11
- };
12
- declare type ShippingMethodRel = ResourceRel & {
13
- type: 'shipping_methods';
14
- };
15
- interface DeliveryLeadTime extends Resource {
16
- min_hours?: number;
17
- max_hours?: number;
18
- min_days?: number;
19
- max_days?: number;
20
- stock_location?: StockLocation;
21
- shipping_method?: ShippingMethod;
22
- attachments?: Attachment[];
23
- }
24
- interface DeliveryLeadTimeCreate extends ResourceCreate {
25
- min_hours: number;
26
- max_hours: number;
27
- stock_location: StockLocationRel;
28
- shipping_method: ShippingMethodRel;
29
- }
30
- interface DeliveryLeadTimeUpdate extends ResourceUpdate {
31
- min_hours?: number;
32
- max_hours?: number;
33
- stock_location?: StockLocationRel;
34
- shipping_method?: ShippingMethodRel;
35
- }
36
- declare class DeliveryLeadTimes extends ApiResource {
37
- static readonly TYPE: 'delivery_lead_times';
38
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
39
- create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
40
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
41
- update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
42
- delete(id: string, options?: ResourcesConfig): Promise<void>;
43
- stock_location(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
44
- shipping_method(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
45
- attachments(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
46
- isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
47
- relationship(id: string | ResourceId | null): DeliveryLeadTimeRel;
48
- type(): string;
49
- }
50
- export default DeliveryLeadTimes;
51
- export { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';declare type DeliveryLeadTimeRel=ResourceRel&{type:typeof DeliveryLeadTimes.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type ShippingMethodRel=ResourceRel&{type:'shipping_methods';};interface DeliveryLeadTime extends Resource{min_hours?:number;max_hours?:number;min_days?:number;max_days?:number;stock_location?:StockLocation;shipping_method?:ShippingMethod;attachments?:Attachment[];}interface DeliveryLeadTimeCreate extends ResourceCreate{min_hours:number;max_hours:number;stock_location:StockLocationRel;shipping_method:ShippingMethodRel;}interface DeliveryLeadTimeUpdate extends ResourceUpdate{min_hours?:number;max_hours?:number;stock_location?:StockLocationRel;shipping_method?:ShippingMethodRel;}declare class DeliveryLeadTimes extends ApiResource{static readonly TYPE:'delivery_lead_times';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<DeliveryLeadTime>>;create(resource:DeliveryLeadTimeCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;update(resource:DeliveryLeadTimeUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipping_method(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;attachments(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isDeliveryLeadTime(resource:any):resource is DeliveryLeadTime;relationship(id:string|ResourceId|null):DeliveryLeadTimeRel;type():string;}export default DeliveryLeadTimes;export{DeliveryLeadTime,DeliveryLeadTimeCreate,DeliveryLeadTimeUpdate};
@@ -1,24 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Webhook } from './webhooks';
4
- declare type EventCallbackRel = ResourceRel & {
5
- type: typeof EventCallbacks.TYPE;
6
- };
7
- interface EventCallback extends Resource {
8
- callback_url?: string;
9
- payload?: object;
10
- response_code?: string;
11
- response_message?: string;
12
- webhook?: Webhook;
13
- }
14
- declare class EventCallbacks extends ApiResource {
15
- static readonly TYPE: 'event_callbacks';
16
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
17
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<EventCallback>;
18
- webhook(eventCallbackId: string | EventCallback, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
19
- isEventCallback(resource: any): resource is EventCallback;
20
- relationship(id: string | ResourceId | null): EventCallbackRel;
21
- type(): string;
22
- }
23
- export default EventCallbacks;
24
- export { EventCallback };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Webhook}from'./webhooks';declare type EventCallbackRel=ResourceRel&{type:typeof EventCallbacks.TYPE;};interface EventCallback extends Resource{callback_url?:string;payload?:object;response_code?:string;response_message?:string;webhook?:Webhook;}declare class EventCallbacks extends ApiResource{static readonly TYPE:'event_callbacks';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<EventCallback>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<EventCallback>;webhook(eventCallbackId:string|EventCallback,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;isEventCallback(resource:any):resource is EventCallback;relationship(id:string|ResourceId|null):EventCallbackRel;type():string;}export default EventCallbacks;export{EventCallback};
@@ -1,49 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { PaymentMethod } from './payment_methods';
4
- import type { ExternalPayment } from './external_payments';
5
- declare type ExternalGatewayRel = ResourceRel & {
6
- type: typeof ExternalGateways.TYPE;
7
- };
8
- interface ExternalGateway extends Resource {
9
- name?: string;
10
- shared_secret?: string;
11
- authorize_url?: string;
12
- capture_url?: string;
13
- void_url?: string;
14
- refund_url?: string;
15
- token_url?: string;
16
- payment_methods?: PaymentMethod[];
17
- external_payments?: ExternalPayment[];
18
- }
19
- interface ExternalGatewayCreate extends ResourceCreate {
20
- name: string;
21
- authorize_url?: string;
22
- capture_url?: string;
23
- void_url?: string;
24
- refund_url?: string;
25
- token_url?: string;
26
- }
27
- interface ExternalGatewayUpdate extends ResourceUpdate {
28
- name?: string;
29
- authorize_url?: string;
30
- capture_url?: string;
31
- void_url?: string;
32
- refund_url?: string;
33
- token_url?: string;
34
- }
35
- declare class ExternalGateways extends ApiResource {
36
- static readonly TYPE: 'external_gateways';
37
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalGateway>>;
38
- create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
39
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
40
- update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
41
- delete(id: string, options?: ResourcesConfig): Promise<void>;
42
- payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
43
- external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
44
- isExternalGateway(resource: any): resource is ExternalGateway;
45
- relationship(id: string | ResourceId | null): ExternalGatewayRel;
46
- type(): string;
47
- }
48
- export default ExternalGateways;
49
- export { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{ExternalPayment}from'./external_payments';declare type ExternalGatewayRel=ResourceRel&{type:typeof ExternalGateways.TYPE;};interface ExternalGateway extends Resource{name?:string;shared_secret?:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;payment_methods?:PaymentMethod[];external_payments?:ExternalPayment[];}interface ExternalGatewayCreate extends ResourceCreate{name:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;}interface ExternalGatewayUpdate extends ResourceUpdate{name?:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;}declare class ExternalGateways extends ApiResource{static readonly TYPE:'external_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalGateway>>;create(resource:ExternalGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;update(resource:ExternalGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(externalGatewayId:string|ExternalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;external_payments(externalGatewayId:string|ExternalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPayment>>;isExternalGateway(resource:any):resource is ExternalGateway;relationship(id:string|ResourceId|null):ExternalGatewayRel;type():string;}export default ExternalGateways;export{ExternalGateway,ExternalGatewayCreate,ExternalGatewayUpdate};
@@ -1,43 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Order } from './orders';
4
- import type { PaymentGateway } from './payment_gateways';
5
- import type { CustomerPaymentSource } from './customer_payment_sources';
6
- declare type ExternalPaymentRel = ResourceRel & {
7
- type: typeof ExternalPayments.TYPE;
8
- };
9
- declare type OrderRel = ResourceRel & {
10
- type: 'orders';
11
- };
12
- interface ExternalPayment extends Resource {
13
- payment_source_token?: string;
14
- options?: object;
15
- order?: Order;
16
- payment_gateway?: PaymentGateway;
17
- wallet?: CustomerPaymentSource;
18
- }
19
- interface ExternalPaymentCreate extends ResourceCreate {
20
- payment_source_token: string;
21
- options?: object;
22
- order: OrderRel;
23
- }
24
- interface ExternalPaymentUpdate extends ResourceUpdate {
25
- options?: object;
26
- order?: OrderRel;
27
- }
28
- declare class ExternalPayments extends ApiResource {
29
- static readonly TYPE: 'external_payments';
30
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
31
- create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
32
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
33
- update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
34
- delete(id: string, options?: ResourcesConfig): Promise<void>;
35
- order(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
36
- payment_gateway(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
37
- wallet(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
38
- isExternalPayment(resource: any): resource is ExternalPayment;
39
- relationship(id: string | ResourceId | null): ExternalPaymentRel;
40
- type(): string;
41
- }
42
- export default ExternalPayments;
43
- export { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';import type{CustomerPaymentSource}from'./customer_payment_sources';declare type ExternalPaymentRel=ResourceRel&{type:typeof ExternalPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface ExternalPayment extends Resource{payment_source_token?:string;options?:object;order?:Order;payment_gateway?:PaymentGateway;wallet?:CustomerPaymentSource;}interface ExternalPaymentCreate extends ResourceCreate{payment_source_token:string;options?:object;order:OrderRel;}interface ExternalPaymentUpdate extends ResourceUpdate{options?:object;order?:OrderRel;}declare class ExternalPayments extends ApiResource{static readonly TYPE:'external_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPayment>>;create(resource:ExternalPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;update(resource:ExternalPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;wallet(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;isExternalPayment(resource:any):resource is ExternalPayment;relationship(id:string|ResourceId|null):ExternalPaymentRel;type():string;}export default ExternalPayments;export{ExternalPayment,ExternalPaymentCreate,ExternalPaymentUpdate};
@@ -1,86 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Market } from './markets';
4
- import type { PromotionRule } from './promotion_rules';
5
- import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
6
- import type { SkuListPromotionRule } from './sku_list_promotion_rules';
7
- import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
8
- import type { Attachment } from './attachments';
9
- declare type ExternalPromotionRel = ResourceRel & {
10
- type: typeof ExternalPromotions.TYPE;
11
- };
12
- declare type MarketRel = ResourceRel & {
13
- type: 'markets';
14
- };
15
- declare type PromotionRuleRel = ResourceRel & {
16
- type: 'promotion_rules';
17
- };
18
- declare type OrderAmountPromotionRuleRel = ResourceRel & {
19
- type: 'order_amount_promotion_rules';
20
- };
21
- declare type SkuListPromotionRuleRel = ResourceRel & {
22
- type: 'sku_list_promotion_rules';
23
- };
24
- declare type CouponCodesPromotionRuleRel = ResourceRel & {
25
- type: 'coupon_codes_promotion_rules';
26
- };
27
- interface ExternalPromotion extends Resource {
28
- name?: string;
29
- currency_code?: string;
30
- starts_at?: string;
31
- expires_at?: string;
32
- total_usage_limit?: number;
33
- total_usage_count?: number;
34
- active?: boolean;
35
- promotion_url?: string;
36
- market?: Market;
37
- promotion_rules?: PromotionRule[];
38
- order_amount_promotion_rule?: OrderAmountPromotionRule;
39
- sku_list_promotion_rule?: SkuListPromotionRule;
40
- coupon_codes_promotion_rule?: CouponCodesPromotionRule;
41
- attachments?: Attachment[];
42
- }
43
- interface ExternalPromotionCreate extends ResourceCreate {
44
- name: string;
45
- currency_code?: string;
46
- starts_at: string;
47
- expires_at: string;
48
- total_usage_limit: number;
49
- promotion_url: string;
50
- market?: MarketRel;
51
- promotion_rules?: PromotionRuleRel[];
52
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
53
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
54
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
55
- }
56
- interface ExternalPromotionUpdate extends ResourceUpdate {
57
- name?: string;
58
- currency_code?: string;
59
- starts_at?: string;
60
- expires_at?: string;
61
- total_usage_limit?: number;
62
- promotion_url?: string;
63
- market?: MarketRel;
64
- promotion_rules?: PromotionRuleRel[];
65
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
66
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
67
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
68
- }
69
- declare class ExternalPromotions extends ApiResource {
70
- static readonly TYPE: 'external_promotions';
71
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPromotion>>;
72
- create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
73
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
74
- update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
75
- delete(id: string, options?: ResourcesConfig): Promise<void>;
76
- market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
77
- order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
78
- sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
79
- coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
80
- attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
81
- isExternalPromotion(resource: any): resource is ExternalPromotion;
82
- relationship(id: string | ResourceId | null): ExternalPromotionRel;
83
- type(): string;
84
- }
85
- export default ExternalPromotions;
86
- export { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type ExternalPromotionRel=ResourceRel&{type:typeof ExternalPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};interface ExternalPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;promotion_url?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;promotion_url:string;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;promotion_url?:string;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}declare class ExternalPromotions extends ApiResource{static readonly TYPE:'external_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPromotion>>;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():string;}export default ExternalPromotions;export{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate};