@commercelayer/sdk 4.7.4 → 4.8.0

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 (232) hide show
  1. package/README.md +37 -24
  2. package/lib/cjs/api.d.ts +1 -103
  3. package/lib/cjs/client.d.ts +1 -31
  4. package/lib/cjs/commercelayer.d.ts +1 -122
  5. package/lib/cjs/commercelayer.js +1 -1
  6. package/lib/cjs/common.d.ts +1 -4
  7. package/lib/cjs/config.d.ts +1 -11
  8. package/lib/cjs/debug.d.ts +1 -3
  9. package/lib/cjs/error.d.ts +1 -26
  10. package/lib/cjs/index.d.ts +1 -7
  11. package/lib/cjs/interceptor.d.ts +1 -19
  12. package/lib/cjs/jsonapi.d.ts +1 -5
  13. package/lib/cjs/jsonapi.js +1 -1
  14. package/lib/cjs/model.d.ts +1 -101
  15. package/lib/cjs/query.d.ts +1 -23
  16. package/lib/cjs/resource.d.ts +1 -76
  17. package/lib/cjs/resources/addresses.d.ts +1 -88
  18. package/lib/cjs/resources/adjustments.d.ts +1 -35
  19. package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
  20. package/lib/cjs/resources/adyen_payments.d.ts +1 -44
  21. package/lib/cjs/resources/application.d.ts +1 -21
  22. package/lib/cjs/resources/attachments.d.ts +1 -156
  23. package/lib/cjs/resources/authorizations.d.ts +1 -57
  24. package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
  25. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
  26. package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
  27. package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
  28. package/lib/cjs/resources/braintree_payments.d.ts +1 -47
  29. package/lib/cjs/resources/bundles.d.ts +1 -74
  30. package/lib/cjs/resources/captures.d.ts +1 -48
  31. package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
  32. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
  33. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
  34. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
  35. package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
  36. package/lib/cjs/resources/coupons.d.ts +1 -45
  37. package/lib/cjs/resources/customer_addresses.d.ts +1 -41
  38. package/lib/cjs/resources/customer_groups.d.ts +1 -36
  39. package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
  40. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
  41. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
  42. package/lib/cjs/resources/customers.d.ts +1 -60
  43. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
  44. package/lib/cjs/resources/event_callbacks.d.ts +1 -24
  45. package/lib/cjs/resources/external_gateways.d.ts +1 -49
  46. package/lib/cjs/resources/external_payments.d.ts +1 -43
  47. package/lib/cjs/resources/external_promotions.d.ts +1 -86
  48. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
  49. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
  50. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
  51. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
  52. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
  53. package/lib/cjs/resources/geocoders.d.ts +1 -24
  54. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
  55. package/lib/cjs/resources/gift_cards.d.ts +1 -82
  56. package/lib/cjs/resources/google_geocoders.d.ts +1 -35
  57. package/lib/cjs/resources/imports.d.ts +1 -40
  58. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
  59. package/lib/cjs/resources/inventory_models.d.ts +1 -42
  60. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
  61. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
  62. package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
  63. package/lib/cjs/resources/klarna_payments.d.ts +1 -41
  64. package/lib/cjs/resources/line_item_options.d.ts +1 -57
  65. package/lib/cjs/resources/line_items.d.ts +1 -125
  66. package/lib/cjs/resources/manual_gateways.d.ts +1 -33
  67. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
  68. package/lib/cjs/resources/markets.d.ts +1 -81
  69. package/lib/cjs/resources/merchants.d.ts +1 -38
  70. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
  71. package/lib/cjs/resources/order_copies.d.ts +1 -45
  72. package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
  73. package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
  74. package/lib/cjs/resources/orders.d.ts +1 -271
  75. package/lib/cjs/resources/organization.d.ts +1 -32
  76. package/lib/cjs/resources/packages.d.ts +1 -56
  77. package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
  78. package/lib/cjs/resources/parcels.d.ts +1 -108
  79. package/lib/cjs/resources/payment_gateways.d.ts +1 -21
  80. package/lib/cjs/resources/payment_methods.d.ts +1 -59
  81. package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
  82. package/lib/cjs/resources/paypal_payments.d.ts +1 -49
  83. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
  84. package/lib/cjs/resources/price_lists.d.ts +1 -39
  85. package/lib/cjs/resources/prices.d.ts +1 -57
  86. package/lib/cjs/resources/promotion_rules.d.ts +1 -24
  87. package/lib/cjs/resources/promotions.d.ts +1 -41
  88. package/lib/cjs/resources/refunds.d.ts +1 -34
  89. package/lib/cjs/resources/return_line_items.d.ts +1 -49
  90. package/lib/cjs/resources/returns.d.ts +1 -72
  91. package/lib/cjs/resources/shipments.d.ts +1 -89
  92. package/lib/cjs/resources/shipping_categories.d.ts +1 -33
  93. package/lib/cjs/resources/shipping_methods.d.ts +1 -74
  94. package/lib/cjs/resources/shipping_zones.d.ts +1 -48
  95. package/lib/cjs/resources/sku_list_items.d.ts +1 -47
  96. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
  97. package/lib/cjs/resources/sku_lists.d.ts +1 -49
  98. package/lib/cjs/resources/sku_options.d.ts +1 -56
  99. package/lib/cjs/resources/skus.d.ts +1 -78
  100. package/lib/cjs/resources/stock_items.d.ts +1 -49
  101. package/lib/cjs/resources/stock_line_items.d.ts +1 -29
  102. package/lib/cjs/resources/stock_locations.d.ts +1 -57
  103. package/lib/cjs/resources/stock_transfers.d.ts +1 -71
  104. package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
  105. package/lib/cjs/resources/stripe_payments.d.ts +1 -42
  106. package/lib/cjs/resources/tax_calculators.d.ts +1 -27
  107. package/lib/cjs/resources/tax_categories.d.ts +1 -59
  108. package/lib/cjs/resources/tax_rules.d.ts +1 -69
  109. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
  110. package/lib/cjs/resources/transactions.d.ts +1 -31
  111. package/lib/cjs/resources/voids.d.ts +1 -34
  112. package/lib/cjs/resources/webhooks.d.ts +1 -42
  113. package/lib/cjs/resources/wire_transfers.d.ts +1 -32
  114. package/lib/cjs/static.d.ts +1 -6
  115. package/lib/cjs/util.d.ts +1 -2
  116. package/lib/esm/api.d.ts +1 -103
  117. package/lib/esm/client.d.ts +1 -31
  118. package/lib/esm/commercelayer.d.ts +1 -122
  119. package/lib/esm/commercelayer.js +1 -1
  120. package/lib/esm/common.d.ts +1 -4
  121. package/lib/esm/config.d.ts +1 -11
  122. package/lib/esm/debug.d.ts +1 -3
  123. package/lib/esm/error.d.ts +1 -26
  124. package/lib/esm/index.d.ts +1 -7
  125. package/lib/esm/interceptor.d.ts +1 -19
  126. package/lib/esm/jsonapi.d.ts +1 -5
  127. package/lib/esm/jsonapi.js +1 -1
  128. package/lib/esm/model.d.ts +1 -101
  129. package/lib/esm/query.d.ts +1 -23
  130. package/lib/esm/resource.d.ts +1 -76
  131. package/lib/esm/resources/addresses.d.ts +1 -88
  132. package/lib/esm/resources/adjustments.d.ts +1 -35
  133. package/lib/esm/resources/adyen_gateways.d.ts +1 -47
  134. package/lib/esm/resources/adyen_payments.d.ts +1 -44
  135. package/lib/esm/resources/application.d.ts +1 -21
  136. package/lib/esm/resources/attachments.d.ts +1 -156
  137. package/lib/esm/resources/authorizations.d.ts +1 -57
  138. package/lib/esm/resources/avalara_accounts.d.ts +1 -52
  139. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
  140. package/lib/esm/resources/bing_geocoders.d.ts +1 -35
  141. package/lib/esm/resources/braintree_gateways.d.ts +1 -56
  142. package/lib/esm/resources/braintree_payments.d.ts +1 -47
  143. package/lib/esm/resources/bundles.d.ts +1 -74
  144. package/lib/esm/resources/captures.d.ts +1 -48
  145. package/lib/esm/resources/carrier_accounts.d.ts +1 -26
  146. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
  147. package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
  148. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
  149. package/lib/esm/resources/coupon_recipients.d.ts +1 -44
  150. package/lib/esm/resources/coupons.d.ts +1 -45
  151. package/lib/esm/resources/customer_addresses.d.ts +1 -41
  152. package/lib/esm/resources/customer_groups.d.ts +1 -36
  153. package/lib/esm/resources/customer_password_resets.d.ts +1 -33
  154. package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
  155. package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
  156. package/lib/esm/resources/customers.d.ts +1 -60
  157. package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
  158. package/lib/esm/resources/event_callbacks.d.ts +1 -24
  159. package/lib/esm/resources/external_gateways.d.ts +1 -49
  160. package/lib/esm/resources/external_payments.d.ts +1 -43
  161. package/lib/esm/resources/external_promotions.d.ts +1 -86
  162. package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
  163. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
  164. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
  165. package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
  166. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
  167. package/lib/esm/resources/geocoders.d.ts +1 -24
  168. package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
  169. package/lib/esm/resources/gift_cards.d.ts +1 -82
  170. package/lib/esm/resources/google_geocoders.d.ts +1 -35
  171. package/lib/esm/resources/imports.d.ts +1 -40
  172. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
  173. package/lib/esm/resources/inventory_models.d.ts +1 -42
  174. package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
  175. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
  176. package/lib/esm/resources/klarna_gateways.d.ts +1 -44
  177. package/lib/esm/resources/klarna_payments.d.ts +1 -41
  178. package/lib/esm/resources/line_item_options.d.ts +1 -57
  179. package/lib/esm/resources/line_items.d.ts +1 -125
  180. package/lib/esm/resources/manual_gateways.d.ts +1 -33
  181. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
  182. package/lib/esm/resources/markets.d.ts +1 -81
  183. package/lib/esm/resources/merchants.d.ts +1 -38
  184. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
  185. package/lib/esm/resources/order_copies.d.ts +1 -45
  186. package/lib/esm/resources/order_subscriptions.d.ts +1 -67
  187. package/lib/esm/resources/order_validation_rules.d.ts +1 -20
  188. package/lib/esm/resources/orders.d.ts +1 -271
  189. package/lib/esm/resources/organization.d.ts +1 -32
  190. package/lib/esm/resources/packages.d.ts +1 -56
  191. package/lib/esm/resources/parcel_line_items.d.ts +1 -49
  192. package/lib/esm/resources/parcels.d.ts +1 -108
  193. package/lib/esm/resources/payment_gateways.d.ts +1 -21
  194. package/lib/esm/resources/payment_methods.d.ts +1 -59
  195. package/lib/esm/resources/paypal_gateways.d.ts +1 -39
  196. package/lib/esm/resources/paypal_payments.d.ts +1 -49
  197. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
  198. package/lib/esm/resources/price_lists.d.ts +1 -39
  199. package/lib/esm/resources/prices.d.ts +1 -57
  200. package/lib/esm/resources/promotion_rules.d.ts +1 -24
  201. package/lib/esm/resources/promotions.d.ts +1 -41
  202. package/lib/esm/resources/refunds.d.ts +1 -34
  203. package/lib/esm/resources/return_line_items.d.ts +1 -49
  204. package/lib/esm/resources/returns.d.ts +1 -72
  205. package/lib/esm/resources/shipments.d.ts +1 -89
  206. package/lib/esm/resources/shipping_categories.d.ts +1 -33
  207. package/lib/esm/resources/shipping_methods.d.ts +1 -74
  208. package/lib/esm/resources/shipping_zones.d.ts +1 -48
  209. package/lib/esm/resources/sku_list_items.d.ts +1 -47
  210. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
  211. package/lib/esm/resources/sku_lists.d.ts +1 -49
  212. package/lib/esm/resources/sku_options.d.ts +1 -56
  213. package/lib/esm/resources/skus.d.ts +1 -78
  214. package/lib/esm/resources/stock_items.d.ts +1 -49
  215. package/lib/esm/resources/stock_line_items.d.ts +1 -29
  216. package/lib/esm/resources/stock_locations.d.ts +1 -57
  217. package/lib/esm/resources/stock_transfers.d.ts +1 -71
  218. package/lib/esm/resources/stripe_gateways.d.ts +1 -38
  219. package/lib/esm/resources/stripe_payments.d.ts +1 -42
  220. package/lib/esm/resources/tax_calculators.d.ts +1 -27
  221. package/lib/esm/resources/tax_categories.d.ts +1 -59
  222. package/lib/esm/resources/tax_rules.d.ts +1 -69
  223. package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
  224. package/lib/esm/resources/transactions.d.ts +1 -31
  225. package/lib/esm/resources/voids.d.ts +1 -34
  226. package/lib/esm/resources/webhooks.d.ts +1 -42
  227. package/lib/esm/resources/wire_transfers.d.ts +1 -32
  228. package/lib/esm/static.d.ts +1 -6
  229. package/lib/esm/util.d.ts +1 -2
  230. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  231. package/lib/tsconfig.tsbuildinfo +1 -1
  232. package/package.json +4 -5
@@ -1,46 +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 { InventoryModel } from './inventory_models';
5
- declare type InventoryStockLocationRel = ResourceRel & {
6
- type: typeof InventoryStockLocations.TYPE;
7
- };
8
- declare type StockLocationRel = ResourceRel & {
9
- type: 'stock_locations';
10
- };
11
- declare type InventoryModelRel = ResourceRel & {
12
- type: 'inventory_models';
13
- };
14
- interface InventoryStockLocation extends Resource {
15
- priority?: number;
16
- on_hold?: boolean;
17
- stock_location?: StockLocation;
18
- inventory_model?: InventoryModel;
19
- }
20
- interface InventoryStockLocationCreate extends ResourceCreate {
21
- priority: number;
22
- on_hold?: boolean;
23
- stock_location: StockLocationRel;
24
- inventory_model: InventoryModelRel;
25
- }
26
- interface InventoryStockLocationUpdate extends ResourceUpdate {
27
- priority?: number;
28
- on_hold?: boolean;
29
- stock_location?: StockLocationRel;
30
- inventory_model?: InventoryModelRel;
31
- }
32
- declare class InventoryStockLocations extends ApiResource {
33
- static readonly TYPE: 'inventory_stock_locations';
34
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
35
- create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
36
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
37
- update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
38
- delete(id: string, options?: ResourcesConfig): Promise<void>;
39
- stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
40
- inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
41
- isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
42
- relationship(id: string | ResourceId | null): InventoryStockLocationRel;
43
- type(): string;
44
- }
45
- export default InventoryStockLocations;
46
- export { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate };
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{InventoryModel}from'./inventory_models';declare type InventoryStockLocationRel=ResourceRel&{type:typeof InventoryStockLocations.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};interface InventoryStockLocation extends Resource{priority?:number;on_hold?:boolean;stock_location?:StockLocation;inventory_model?:InventoryModel;}interface InventoryStockLocationCreate extends ResourceCreate{priority:number;on_hold?:boolean;stock_location:StockLocationRel;inventory_model:InventoryModelRel;}interface InventoryStockLocationUpdate extends ResourceUpdate{priority?:number;on_hold?:boolean;stock_location?:StockLocationRel;inventory_model?:InventoryModelRel;}declare class InventoryStockLocations extends ApiResource{static readonly TYPE:'inventory_stock_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;create(resource:InventoryStockLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;update(resource:InventoryStockLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(inventoryStockLocationId:string|InventoryStockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;inventory_model(inventoryStockLocationId:string|InventoryStockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;isInventoryStockLocation(resource:any):resource is InventoryStockLocation;relationship(id:string|ResourceId|null):InventoryStockLocationRel;type():string;}export default InventoryStockLocations;export{InventoryStockLocation,InventoryStockLocationCreate,InventoryStockLocationUpdate};
@@ -1,44 +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 { KlarnaPayment } from './klarna_payments';
5
- declare type KlarnaGatewayRel = ResourceRel & {
6
- type: typeof KlarnaGateways.TYPE;
7
- };
8
- declare type KlarnaPaymentRel = ResourceRel & {
9
- type: 'klarna_payments';
10
- };
11
- interface KlarnaGateway extends Resource {
12
- name?: string;
13
- payment_methods?: PaymentMethod[];
14
- klarna_payments?: KlarnaPayment[];
15
- }
16
- interface KlarnaGatewayCreate extends ResourceCreate {
17
- name: string;
18
- country_code: string;
19
- api_key: string;
20
- api_secret: string;
21
- klarna_payments?: KlarnaPaymentRel[];
22
- }
23
- interface KlarnaGatewayUpdate extends ResourceUpdate {
24
- name?: string;
25
- country_code?: string;
26
- api_key?: string;
27
- api_secret?: string;
28
- klarna_payments?: KlarnaPaymentRel[];
29
- }
30
- declare class KlarnaGateways extends ApiResource {
31
- static readonly TYPE: 'klarna_gateways';
32
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaGateway>>;
33
- create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
34
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
35
- update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
36
- delete(id: string, options?: ResourcesConfig): Promise<void>;
37
- payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
38
- klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
39
- isKlarnaGateway(resource: any): resource is KlarnaGateway;
40
- relationship(id: string | ResourceId | null): KlarnaGatewayRel;
41
- type(): string;
42
- }
43
- export default KlarnaGateways;
44
- export { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate };
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{KlarnaPayment}from'./klarna_payments';declare type KlarnaGatewayRel=ResourceRel&{type:typeof KlarnaGateways.TYPE;};declare type KlarnaPaymentRel=ResourceRel&{type:'klarna_payments';};interface KlarnaGateway extends Resource{name?:string;payment_methods?:PaymentMethod[];klarna_payments?:KlarnaPayment[];}interface KlarnaGatewayCreate extends ResourceCreate{name:string;country_code:string;api_key:string;api_secret:string;klarna_payments?:KlarnaPaymentRel[];}interface KlarnaGatewayUpdate extends ResourceUpdate{name?:string;country_code?:string;api_key?:string;api_secret?:string;klarna_payments?:KlarnaPaymentRel[];}declare class KlarnaGateways extends ApiResource{static readonly TYPE:'klarna_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaGateway>>;create(resource:KlarnaGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;update(resource:KlarnaGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(klarnaGatewayId:string|KlarnaGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;klarna_payments(klarnaGatewayId:string|KlarnaGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaPayment>>;isKlarnaGateway(resource:any):resource is KlarnaGateway;relationship(id:string|ResourceId|null):KlarnaGatewayRel;type():string;}export default KlarnaGateways;export{KlarnaGateway,KlarnaGatewayCreate,KlarnaGatewayUpdate};
@@ -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 { Order } from './orders';
4
- import type { PaymentGateway } from './payment_gateways';
5
- declare type KlarnaPaymentRel = ResourceRel & {
6
- type: typeof KlarnaPayments.TYPE;
7
- };
8
- declare type OrderRel = ResourceRel & {
9
- type: 'orders';
10
- };
11
- interface KlarnaPayment extends Resource {
12
- session_id?: string;
13
- client_token?: string;
14
- payment_methods?: object[];
15
- auth_token?: string;
16
- order?: Order;
17
- payment_gateway?: PaymentGateway;
18
- }
19
- interface KlarnaPaymentCreate extends ResourceCreate {
20
- order: OrderRel;
21
- }
22
- interface KlarnaPaymentUpdate extends ResourceUpdate {
23
- auth_token?: string;
24
- _update?: boolean;
25
- order?: OrderRel;
26
- }
27
- declare class KlarnaPayments extends ApiResource {
28
- static readonly TYPE: 'klarna_payments';
29
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
30
- create(resource: KlarnaPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
31
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
32
- update(resource: KlarnaPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
33
- delete(id: string, options?: ResourcesConfig): Promise<void>;
34
- order(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
35
- payment_gateway(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
36
- isKlarnaPayment(resource: any): resource is KlarnaPayment;
37
- relationship(id: string | ResourceId | null): KlarnaPaymentRel;
38
- type(): string;
39
- }
40
- export default KlarnaPayments;
41
- export { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate };
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';declare type KlarnaPaymentRel=ResourceRel&{type:typeof KlarnaPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface KlarnaPayment extends Resource{session_id?:string;client_token?:string;payment_methods?:object[];auth_token?:string;order?:Order;payment_gateway?:PaymentGateway;}interface KlarnaPaymentCreate extends ResourceCreate{order:OrderRel;}interface KlarnaPaymentUpdate extends ResourceUpdate{auth_token?:string;_update?:boolean;order?:OrderRel;}declare class KlarnaPayments extends ApiResource{static readonly TYPE:'klarna_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaPayment>>;create(resource:KlarnaPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;update(resource:KlarnaPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(klarnaPaymentId:string|KlarnaPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(klarnaPaymentId:string|KlarnaPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isKlarnaPayment(resource:any):resource is KlarnaPayment;relationship(id:string|ResourceId|null):KlarnaPaymentRel;type():string;}export default KlarnaPayments;export{KlarnaPayment,KlarnaPaymentCreate,KlarnaPaymentUpdate};
@@ -1,57 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { LineItem } from './line_items';
4
- import type { SkuOption } from './sku_options';
5
- declare type LineItemOptionRel = ResourceRel & {
6
- type: typeof LineItemOptions.TYPE;
7
- };
8
- declare type LineItemRel = ResourceRel & {
9
- type: 'line_items';
10
- };
11
- declare type SkuOptionRel = ResourceRel & {
12
- type: 'sku_options';
13
- };
14
- interface LineItemOption extends Resource {
15
- name?: string;
16
- quantity?: number;
17
- currency_code?: string;
18
- unit_amount_cents?: number;
19
- unit_amount_float?: number;
20
- formatted_unit_amount?: string;
21
- total_amount_cents?: number;
22
- total_amount_float?: number;
23
- formatted_total_amount?: string;
24
- delay_hours?: number;
25
- delay_days?: number;
26
- options?: object;
27
- line_item?: LineItem;
28
- sku_option?: SkuOption;
29
- }
30
- interface LineItemOptionCreate extends ResourceCreate {
31
- name?: string;
32
- quantity: number;
33
- options: object;
34
- line_item: LineItemRel;
35
- sku_option: SkuOptionRel;
36
- }
37
- interface LineItemOptionUpdate extends ResourceUpdate {
38
- name?: string;
39
- quantity?: number;
40
- options?: object;
41
- sku_option?: SkuOptionRel;
42
- }
43
- declare class LineItemOptions extends ApiResource {
44
- static readonly TYPE: 'line_item_options';
45
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
46
- create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
47
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
48
- update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
49
- delete(id: string, options?: ResourcesConfig): Promise<void>;
50
- line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
51
- sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
52
- isLineItemOption(resource: any): resource is LineItemOption;
53
- relationship(id: string | ResourceId | null): LineItemOptionRel;
54
- type(): string;
55
- }
56
- export default LineItemOptions;
57
- export { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{LineItem}from'./line_items';import type{SkuOption}from'./sku_options';declare type LineItemOptionRel=ResourceRel&{type:typeof LineItemOptions.TYPE;};declare type LineItemRel=ResourceRel&{type:'line_items';};declare type SkuOptionRel=ResourceRel&{type:'sku_options';};interface LineItemOption extends Resource{name?:string;quantity?:number;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;delay_hours?:number;delay_days?:number;options?:object;line_item?:LineItem;sku_option?:SkuOption;}interface LineItemOptionCreate extends ResourceCreate{name?:string;quantity:number;options:object;line_item:LineItemRel;sku_option:SkuOptionRel;}interface LineItemOptionUpdate extends ResourceUpdate{name?:string;quantity?:number;options?:object;sku_option?:SkuOptionRel;}declare class LineItemOptions extends ApiResource{static readonly TYPE:'line_item_options';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;create(resource:LineItemOptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;update(resource:LineItemOptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;delete(id:string,options?:ResourcesConfig):Promise<void>;line_item(lineItemOptionId:string|LineItemOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;sku_option(lineItemOptionId:string|LineItemOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;isLineItemOption(resource:any):resource is LineItemOption;relationship(id:string|ResourceId|null):LineItemOptionRel;type():string;}export default LineItemOptions;export{LineItemOption,LineItemOptionCreate,LineItemOptionUpdate};
@@ -1,125 +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 { Adjustment } from './adjustments';
5
- import type { Bundle } from './bundles';
6
- import type { ExternalPromotion } from './external_promotions';
7
- import type { FixedAmountPromotion } from './fixed_amount_promotions';
8
- import type { FreeShippingPromotion } from './free_shipping_promotions';
9
- import type { GiftCard } from './gift_cards';
10
- import type { PaymentMethod } from './payment_methods';
11
- import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
12
- import type { Shipment } from './shipments';
13
- import type { Sku } from './skus';
14
- import type { LineItemOption } from './line_item_options';
15
- import type { StockLineItem } from './stock_line_items';
16
- import type { StockTransfer } from './stock_transfers';
17
- declare type LineItemRel = ResourceRel & {
18
- type: typeof LineItems.TYPE;
19
- };
20
- declare type OrderRel = ResourceRel & {
21
- type: 'orders';
22
- };
23
- declare type AdjustmentRel = ResourceRel & {
24
- type: 'adjustments';
25
- };
26
- declare type BundleRel = ResourceRel & {
27
- type: 'bundles';
28
- };
29
- declare type ExternalPromotionRel = ResourceRel & {
30
- type: 'external_promotions';
31
- };
32
- declare type FixedAmountPromotionRel = ResourceRel & {
33
- type: 'fixed_amount_promotions';
34
- };
35
- declare type FreeShippingPromotionRel = ResourceRel & {
36
- type: 'free_shipping_promotions';
37
- };
38
- declare type GiftCardRel = ResourceRel & {
39
- type: 'gift_cards';
40
- };
41
- declare type PaymentMethodRel = ResourceRel & {
42
- type: 'payment_methods';
43
- };
44
- declare type PercentageDiscountPromotionRel = ResourceRel & {
45
- type: 'percentage_discount_promotions';
46
- };
47
- declare type ShipmentRel = ResourceRel & {
48
- type: 'shipments';
49
- };
50
- declare type SkuRel = ResourceRel & {
51
- type: 'skus';
52
- };
53
- interface LineItem extends Resource {
54
- sku_code?: string;
55
- bundle_code?: string;
56
- quantity?: number;
57
- currency_code?: string;
58
- unit_amount_cents?: number;
59
- unit_amount_float?: number;
60
- formatted_unit_amount?: string;
61
- options_amount_cents?: number;
62
- options_amount_float?: number;
63
- formatted_options_amount?: string;
64
- discount_cents?: number;
65
- discount_float?: number;
66
- formatted_discount?: string;
67
- total_amount_cents?: number;
68
- total_amount_float?: number;
69
- formatted_total_amount?: string;
70
- tax_amount_cents?: number;
71
- tax_amount_float?: number;
72
- formatted_tax_amount?: string;
73
- name?: string;
74
- image_url?: string;
75
- discount_breakdown?: object;
76
- tax_rate?: number;
77
- tax_breakdown?: object;
78
- item_type?: string;
79
- order?: Order;
80
- item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
81
- line_item_options?: LineItemOption[];
82
- /**
83
- * @deprecated This field should not be used as it may be removed in the future without notice
84
- */
85
- shipment_line_items?: object[];
86
- stock_line_items?: StockLineItem[];
87
- stock_transfers?: StockTransfer[];
88
- }
89
- interface LineItemCreate extends ResourceCreate {
90
- sku_code?: string;
91
- bundle_code?: string;
92
- quantity: number;
93
- _external_price?: boolean;
94
- _update_quantity?: boolean;
95
- unit_amount_cents?: number;
96
- name?: string;
97
- image_url?: string;
98
- item_type?: string;
99
- order: OrderRel;
100
- item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
101
- }
102
- interface LineItemUpdate extends ResourceUpdate {
103
- sku_code?: string;
104
- bundle_code?: string;
105
- quantity?: number;
106
- name?: string;
107
- image_url?: string;
108
- }
109
- declare class LineItems extends ApiResource {
110
- static readonly TYPE: 'line_items';
111
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
112
- create(resource: LineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
113
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
114
- update(resource: LineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
115
- delete(id: string, options?: ResourcesConfig): Promise<void>;
116
- order(lineItemId: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
117
- line_item_options(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
118
- stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
119
- stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
120
- isLineItem(resource: any): resource is LineItem;
121
- relationship(id: string | ResourceId | null): LineItemRel;
122
- type(): string;
123
- }
124
- export default LineItems;
125
- export { LineItem, LineItemCreate, LineItemUpdate };
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{Adjustment}from'./adjustments';import type{Bundle}from'./bundles';import type{ExternalPromotion}from'./external_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{GiftCard}from'./gift_cards';import type{PaymentMethod}from'./payment_methods';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{Shipment}from'./shipments';import type{Sku}from'./skus';import type{LineItemOption}from'./line_item_options';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';declare type LineItemRel=ResourceRel&{type:typeof LineItems.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};declare type AdjustmentRel=ResourceRel&{type:'adjustments';};declare type BundleRel=ResourceRel&{type:'bundles';};declare type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};declare type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};declare type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};declare type GiftCardRel=ResourceRel&{type:'gift_cards';};declare type PaymentMethodRel=ResourceRel&{type:'payment_methods';};declare type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type SkuRel=ResourceRel&{type:'skus';};interface LineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;options_amount_cents?:number;options_amount_float?:number;formatted_options_amount?:string;discount_cents?:number;discount_float?:number;formatted_discount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;tax_amount_cents?:number;tax_amount_float?:number;formatted_tax_amount?:string;name?:string;image_url?:string;discount_breakdown?:object;tax_rate?:number;tax_breakdown?:object;item_type?:string;order?:Order;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku;line_item_options?:LineItemOption[];shipment_line_items?:object[];stock_line_items?:StockLineItem[];stock_transfers?:StockTransfer[];}interface LineItemCreate extends ResourceCreate{sku_code?:string;bundle_code?:string;quantity:number;_external_price?:boolean;_update_quantity?:boolean;unit_amount_cents?:number;name?:string;image_url?:string;item_type?:string;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel;}interface LineItemUpdate extends ResourceUpdate{sku_code?:string;bundle_code?:string;quantity?:number;name?:string;image_url?:string;}declare class LineItems extends ApiResource{static readonly TYPE:'line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():string;}export default LineItems;export{LineItem,LineItemCreate,LineItemUpdate};
@@ -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 { PaymentMethod } from './payment_methods';
4
- declare type ManualGatewayRel = ResourceRel & {
5
- type: typeof ManualGateways.TYPE;
6
- };
7
- interface ManualGateway extends Resource {
8
- name?: string;
9
- require_capture?: boolean;
10
- payment_methods?: PaymentMethod[];
11
- }
12
- interface ManualGatewayCreate extends ResourceCreate {
13
- name: string;
14
- require_capture?: boolean;
15
- }
16
- interface ManualGatewayUpdate extends ResourceUpdate {
17
- name?: string;
18
- require_capture?: boolean;
19
- }
20
- declare class ManualGateways extends ApiResource {
21
- static readonly TYPE: 'manual_gateways';
22
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualGateway>>;
23
- create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
24
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
25
- update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
26
- delete(id: string, options?: ResourcesConfig): Promise<void>;
27
- payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
28
- isManualGateway(resource: any): resource is ManualGateway;
29
- relationship(id: string | ResourceId | null): ManualGatewayRel;
30
- type(): string;
31
- }
32
- export default ManualGateways;
33
- export { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';declare type ManualGatewayRel=ResourceRel&{type:typeof ManualGateways.TYPE;};interface ManualGateway extends Resource{name?:string;require_capture?:boolean;payment_methods?:PaymentMethod[];}interface ManualGatewayCreate extends ResourceCreate{name:string;require_capture?:boolean;}interface ManualGatewayUpdate extends ResourceUpdate{name?:string;require_capture?:boolean;}declare class ManualGateways extends ApiResource{static readonly TYPE:'manual_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ManualGateway>>;create(resource:ManualGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;update(resource:ManualGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(manualGatewayId:string|ManualGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;isManualGateway(resource:any):resource is ManualGateway;relationship(id:string|ResourceId|null):ManualGatewayRel;type():string;}export default ManualGateways;export{ManualGateway,ManualGatewayCreate,ManualGatewayUpdate};
@@ -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 { TaxCategory } from './tax_categories';
4
- import type { Market } from './markets';
5
- import type { Attachment } from './attachments';
6
- import type { TaxRule } from './tax_rules';
7
- declare type ManualTaxCalculatorRel = ResourceRel & {
8
- type: typeof ManualTaxCalculators.TYPE;
9
- };
10
- declare type TaxCategoryRel = ResourceRel & {
11
- type: 'tax_categories';
12
- };
13
- declare type TaxRuleRel = ResourceRel & {
14
- type: 'tax_rules';
15
- };
16
- interface ManualTaxCalculator extends Resource {
17
- name?: string;
18
- tax_categories?: TaxCategory[];
19
- markets?: Market[];
20
- attachments?: Attachment[];
21
- tax_rules?: TaxRule[];
22
- }
23
- interface ManualTaxCalculatorCreate extends ResourceCreate {
24
- name: string;
25
- tax_categories?: TaxCategoryRel[];
26
- tax_rules?: TaxRuleRel[];
27
- }
28
- interface ManualTaxCalculatorUpdate extends ResourceUpdate {
29
- name?: string;
30
- tax_categories?: TaxCategoryRel[];
31
- tax_rules?: TaxRuleRel[];
32
- }
33
- declare class ManualTaxCalculators extends ApiResource {
34
- static readonly TYPE: 'manual_tax_calculators';
35
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualTaxCalculator>>;
36
- create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
37
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
38
- update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
39
- delete(id: string, options?: ResourcesConfig): Promise<void>;
40
- tax_categories(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
41
- markets(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
42
- attachments(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
43
- tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
44
- isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
45
- relationship(id: string | ResourceId | null): ManualTaxCalculatorRel;
46
- type(): string;
47
- }
48
- export default ManualTaxCalculators;
49
- export { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{TaxCategory}from'./tax_categories';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{TaxRule}from'./tax_rules';declare type ManualTaxCalculatorRel=ResourceRel&{type:typeof ManualTaxCalculators.TYPE;};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};declare type TaxRuleRel=ResourceRel&{type:'tax_rules';};interface ManualTaxCalculator extends Resource{name?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];tax_rules?:TaxRule[];}interface ManualTaxCalculatorCreate extends ResourceCreate{name:string;tax_categories?:TaxCategoryRel[];tax_rules?:TaxRuleRel[];}interface ManualTaxCalculatorUpdate extends ResourceUpdate{name?:string;tax_categories?:TaxCategoryRel[];tax_rules?:TaxRuleRel[];}declare class ManualTaxCalculators extends ApiResource{static readonly TYPE:'manual_tax_calculators';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ManualTaxCalculator>>;create(resource:ManualTaxCalculatorCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;update(resource:ManualTaxCalculatorUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;delete(id:string,options?:ResourcesConfig):Promise<void>;tax_categories(manualTaxCalculatorId:string|ManualTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(manualTaxCalculatorId:string|ManualTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(manualTaxCalculatorId:string|ManualTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;tax_rules(manualTaxCalculatorId:string|ManualTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxRule>>;isManualTaxCalculator(resource:any):resource is ManualTaxCalculator;relationship(id:string|ResourceId|null):ManualTaxCalculatorRel;type():string;}export default ManualTaxCalculators;export{ManualTaxCalculator,ManualTaxCalculatorCreate,ManualTaxCalculatorUpdate};
@@ -1,81 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Merchant } from './merchants';
4
- import type { PriceList } from './price_lists';
5
- import type { InventoryModel } from './inventory_models';
6
- import type { TaxCalculator } from './tax_calculators';
7
- import type { CustomerGroup } from './customer_groups';
8
- import type { Attachment } from './attachments';
9
- declare type MarketRel = ResourceRel & {
10
- type: typeof Markets.TYPE;
11
- };
12
- declare type MerchantRel = ResourceRel & {
13
- type: 'merchants';
14
- };
15
- declare type PriceListRel = ResourceRel & {
16
- type: 'price_lists';
17
- };
18
- declare type InventoryModelRel = ResourceRel & {
19
- type: 'inventory_models';
20
- };
21
- declare type TaxCalculatorRel = ResourceRel & {
22
- type: 'tax_calculators';
23
- };
24
- declare type CustomerGroupRel = ResourceRel & {
25
- type: 'customer_groups';
26
- };
27
- interface Market extends Resource {
28
- number?: number;
29
- name?: string;
30
- facebook_pixel_id?: string;
31
- checkout_url?: string;
32
- external_prices_url?: string;
33
- private?: boolean;
34
- merchant?: Merchant;
35
- price_list?: PriceList;
36
- inventory_model?: InventoryModel;
37
- tax_calculator?: TaxCalculator;
38
- customer_group?: CustomerGroup;
39
- attachments?: Attachment[];
40
- }
41
- interface MarketCreate extends ResourceCreate {
42
- name: string;
43
- facebook_pixel_id?: string;
44
- checkout_url?: string;
45
- external_prices_url?: string;
46
- merchant: MerchantRel;
47
- price_list: PriceListRel;
48
- inventory_model: InventoryModelRel;
49
- tax_calculator?: TaxCalculatorRel;
50
- customer_group?: CustomerGroupRel;
51
- }
52
- interface MarketUpdate extends ResourceUpdate {
53
- name?: string;
54
- facebook_pixel_id?: string;
55
- checkout_url?: string;
56
- external_prices_url?: string;
57
- merchant?: MerchantRel;
58
- price_list?: PriceListRel;
59
- inventory_model?: InventoryModelRel;
60
- tax_calculator?: TaxCalculatorRel;
61
- customer_group?: CustomerGroupRel;
62
- }
63
- declare class Markets extends ApiResource {
64
- static readonly TYPE: 'markets';
65
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
66
- create(resource: MarketCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
67
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
68
- update(resource: MarketUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
69
- delete(id: string, options?: ResourcesConfig): Promise<void>;
70
- merchant(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
71
- price_list(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
72
- inventory_model(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
73
- tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
74
- customer_group(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
75
- attachments(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
76
- isMarket(resource: any): resource is Market;
77
- relationship(id: string | ResourceId | null): MarketRel;
78
- type(): string;
79
- }
80
- export default Markets;
81
- export { Market, MarketCreate, MarketUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Merchant}from'./merchants';import type{PriceList}from'./price_lists';import type{InventoryModel}from'./inventory_models';import type{TaxCalculator}from'./tax_calculators';import type{CustomerGroup}from'./customer_groups';import type{Attachment}from'./attachments';declare type MarketRel=ResourceRel&{type:typeof Markets.TYPE;};declare type MerchantRel=ResourceRel&{type:'merchants';};declare type PriceListRel=ResourceRel&{type:'price_lists';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};declare type TaxCalculatorRel=ResourceRel&{type:'tax_calculators';};declare type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Market extends Resource{number?:number;name?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;private?:boolean;merchant?:Merchant;price_list?:PriceList;inventory_model?:InventoryModel;tax_calculator?:TaxCalculator;customer_group?:CustomerGroup;attachments?:Attachment[];}interface MarketCreate extends ResourceCreate{name:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;merchant:MerchantRel;price_list:PriceListRel;inventory_model:InventoryModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}interface MarketUpdate extends ResourceUpdate{name?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;merchant?:MerchantRel;price_list?:PriceListRel;inventory_model?:InventoryModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}declare class Markets extends ApiResource{static readonly TYPE:'markets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;create(resource:MarketCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;update(resource:MarketUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;delete(id:string,options?:ResourcesConfig):Promise<void>;merchant(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;price_list(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;inventory_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;tax_calculator(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;customer_group(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;attachments(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isMarket(resource:any):resource is Market;relationship(id:string|ResourceId|null):MarketRel;type():string;}export default Markets;export{Market,MarketCreate,MarketUpdate};
@@ -1,38 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Address } from './addresses';
4
- import type { Attachment } from './attachments';
5
- declare type MerchantRel = ResourceRel & {
6
- type: typeof Merchants.TYPE;
7
- };
8
- declare type AddressRel = ResourceRel & {
9
- type: 'addresses';
10
- };
11
- interface Merchant extends Resource {
12
- name?: string;
13
- address?: Address;
14
- attachments?: Attachment[];
15
- }
16
- interface MerchantCreate extends ResourceCreate {
17
- name: string;
18
- address: AddressRel;
19
- }
20
- interface MerchantUpdate extends ResourceUpdate {
21
- name?: string;
22
- address?: AddressRel;
23
- }
24
- declare class Merchants extends ApiResource {
25
- static readonly TYPE: 'merchants';
26
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Merchant>>;
27
- create(resource: MerchantCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
28
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
29
- update(resource: MerchantUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
30
- delete(id: string, options?: ResourcesConfig): Promise<void>;
31
- address(merchantId: string | Merchant, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
32
- attachments(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
33
- isMerchant(resource: any): resource is Merchant;
34
- relationship(id: string | ResourceId | null): MerchantRel;
35
- type(): string;
36
- }
37
- export default Merchants;
38
- export { Merchant, MerchantCreate, MerchantUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{Attachment}from'./attachments';declare type MerchantRel=ResourceRel&{type:typeof Merchants.TYPE;};declare type AddressRel=ResourceRel&{type:'addresses';};interface Merchant extends Resource{name?:string;address?:Address;attachments?:Attachment[];}interface MerchantCreate extends ResourceCreate{name:string;address:AddressRel;}interface MerchantUpdate extends ResourceUpdate{name?:string;address?:AddressRel;}declare class Merchants extends ApiResource{static readonly TYPE:'merchants';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Merchant>>;create(resource:MerchantCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;update(resource:MerchantUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;delete(id:string,options?:ResourcesConfig):Promise<void>;address(merchantId:string|Merchant,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;attachments(merchantId:string|Merchant,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isMerchant(resource:any):resource is Merchant;relationship(id:string|ResourceId|null):MerchantRel;type():string;}export default Merchants;export{Merchant,MerchantCreate,MerchantUpdate};
@@ -1,56 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
- import type { FreeShippingPromotion } from './free_shipping_promotions';
5
- import type { FixedAmountPromotion } from './fixed_amount_promotions';
6
- import type { FreeGiftPromotion } from './free_gift_promotions';
7
- import type { FixedPricePromotion } from './fixed_price_promotions';
8
- import type { ExternalPromotion } from './external_promotions';
9
- declare type OrderAmountPromotionRuleRel = ResourceRel & {
10
- type: typeof OrderAmountPromotionRules.TYPE;
11
- };
12
- declare type PercentageDiscountPromotionRel = ResourceRel & {
13
- type: 'percentage_discount_promotions';
14
- };
15
- declare type FreeShippingPromotionRel = ResourceRel & {
16
- type: 'free_shipping_promotions';
17
- };
18
- declare type FixedAmountPromotionRel = ResourceRel & {
19
- type: 'fixed_amount_promotions';
20
- };
21
- declare type FreeGiftPromotionRel = ResourceRel & {
22
- type: 'free_gift_promotions';
23
- };
24
- declare type FixedPricePromotionRel = ResourceRel & {
25
- type: 'fixed_price_promotions';
26
- };
27
- declare type ExternalPromotionRel = ResourceRel & {
28
- type: 'external_promotions';
29
- };
30
- interface OrderAmountPromotionRule extends Resource {
31
- order_amount_cents?: number;
32
- order_amount_float?: number;
33
- formatted_order_amount?: string;
34
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
35
- }
36
- interface OrderAmountPromotionRuleCreate extends ResourceCreate {
37
- order_amount_cents?: number;
38
- promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
39
- }
40
- interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
41
- order_amount_cents?: number;
42
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
43
- }
44
- declare class OrderAmountPromotionRules extends ApiResource {
45
- static readonly TYPE: 'order_amount_promotion_rules';
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
47
- create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
48
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
49
- update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
50
- delete(id: string, options?: ResourcesConfig): Promise<void>;
51
- isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
52
- relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
53
- type(): string;
54
- }
55
- export default OrderAmountPromotionRules;
56
- export { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';declare type OrderAmountPromotionRuleRel=ResourceRel&{type:typeof OrderAmountPromotionRules.TYPE;};declare type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};declare type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};declare type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};declare type FreeGiftPromotionRel=ResourceRel&{type:'free_gift_promotions';};declare type FixedPricePromotionRel=ResourceRel&{type:'fixed_price_promotions';};declare type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};interface OrderAmountPromotionRule extends Resource{order_amount_cents?:number;order_amount_float?:number;formatted_order_amount?:string;promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;}interface OrderAmountPromotionRuleCreate extends ResourceCreate{order_amount_cents?:number;promotion:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;}interface OrderAmountPromotionRuleUpdate extends ResourceUpdate{order_amount_cents?:number;promotion?:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;}declare class OrderAmountPromotionRules extends ApiResource{static readonly TYPE:'order_amount_promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderAmountPromotionRule>>;create(resource:OrderAmountPromotionRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;update(resource:OrderAmountPromotionRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;isOrderAmountPromotionRule(resource:any):resource is OrderAmountPromotionRule;relationship(id:string|ResourceId|null):OrderAmountPromotionRuleRel;type():string;}export default OrderAmountPromotionRules;export{OrderAmountPromotionRule,OrderAmountPromotionRuleCreate,OrderAmountPromotionRuleUpdate};