@commercelayer/sdk 4.7.5 → 4.8.1

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 (231) 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/commercelayer.js +1 -1
  5. package/lib/cjs/common.d.ts +1 -4
  6. package/lib/cjs/config.d.ts +1 -11
  7. package/lib/cjs/debug.d.ts +1 -3
  8. package/lib/cjs/error.d.ts +1 -26
  9. package/lib/cjs/index.d.ts +1 -7
  10. package/lib/cjs/interceptor.d.ts +1 -19
  11. package/lib/cjs/jsonapi.d.ts +1 -5
  12. package/lib/cjs/model.d.ts +1 -101
  13. package/lib/cjs/query.d.ts +1 -23
  14. package/lib/cjs/resource.d.ts +1 -76
  15. package/lib/cjs/resources/addresses.d.ts +1 -88
  16. package/lib/cjs/resources/adjustments.d.ts +1 -35
  17. package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
  18. package/lib/cjs/resources/adyen_payments.d.ts +1 -44
  19. package/lib/cjs/resources/application.d.ts +1 -21
  20. package/lib/cjs/resources/attachments.d.ts +1 -156
  21. package/lib/cjs/resources/authorizations.d.ts +1 -57
  22. package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
  23. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
  24. package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
  25. package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
  26. package/lib/cjs/resources/braintree_payments.d.ts +1 -47
  27. package/lib/cjs/resources/bundles.d.ts +1 -74
  28. package/lib/cjs/resources/captures.d.ts +1 -48
  29. package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
  30. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
  31. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
  32. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
  33. package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
  34. package/lib/cjs/resources/coupons.d.ts +1 -45
  35. package/lib/cjs/resources/customer_addresses.d.ts +1 -41
  36. package/lib/cjs/resources/customer_groups.d.ts +1 -36
  37. package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
  38. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
  39. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
  40. package/lib/cjs/resources/customers.d.ts +1 -60
  41. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
  42. package/lib/cjs/resources/event_callbacks.d.ts +1 -24
  43. package/lib/cjs/resources/external_gateways.d.ts +1 -49
  44. package/lib/cjs/resources/external_payments.d.ts +1 -43
  45. package/lib/cjs/resources/external_promotions.d.ts +1 -86
  46. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
  47. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
  48. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
  49. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
  50. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
  51. package/lib/cjs/resources/geocoders.d.ts +1 -24
  52. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
  53. package/lib/cjs/resources/gift_cards.d.ts +1 -82
  54. package/lib/cjs/resources/google_geocoders.d.ts +1 -35
  55. package/lib/cjs/resources/imports.d.ts +1 -40
  56. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
  57. package/lib/cjs/resources/inventory_models.d.ts +1 -42
  58. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
  59. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
  60. package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
  61. package/lib/cjs/resources/klarna_payments.d.ts +1 -41
  62. package/lib/cjs/resources/line_item_options.d.ts +1 -57
  63. package/lib/cjs/resources/line_items.d.ts +1 -125
  64. package/lib/cjs/resources/manual_gateways.d.ts +1 -33
  65. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
  66. package/lib/cjs/resources/markets.d.ts +1 -81
  67. package/lib/cjs/resources/merchants.d.ts +1 -38
  68. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
  69. package/lib/cjs/resources/order_copies.d.ts +1 -45
  70. package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
  71. package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
  72. package/lib/cjs/resources/orders.d.ts +1 -271
  73. package/lib/cjs/resources/organization.d.ts +1 -32
  74. package/lib/cjs/resources/packages.d.ts +1 -56
  75. package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
  76. package/lib/cjs/resources/parcels.d.ts +1 -108
  77. package/lib/cjs/resources/payment_gateways.d.ts +1 -21
  78. package/lib/cjs/resources/payment_methods.d.ts +1 -59
  79. package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
  80. package/lib/cjs/resources/paypal_payments.d.ts +1 -49
  81. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
  82. package/lib/cjs/resources/price_lists.d.ts +1 -39
  83. package/lib/cjs/resources/prices.d.ts +1 -57
  84. package/lib/cjs/resources/promotion_rules.d.ts +1 -24
  85. package/lib/cjs/resources/promotions.d.ts +1 -41
  86. package/lib/cjs/resources/refunds.d.ts +1 -34
  87. package/lib/cjs/resources/return_line_items.d.ts +1 -49
  88. package/lib/cjs/resources/returns.d.ts +1 -72
  89. package/lib/cjs/resources/shipments.d.ts +1 -89
  90. package/lib/cjs/resources/shipping_categories.d.ts +1 -33
  91. package/lib/cjs/resources/shipping_methods.d.ts +1 -74
  92. package/lib/cjs/resources/shipping_zones.d.ts +1 -48
  93. package/lib/cjs/resources/sku_list_items.d.ts +1 -47
  94. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
  95. package/lib/cjs/resources/sku_lists.d.ts +1 -49
  96. package/lib/cjs/resources/sku_options.d.ts +1 -56
  97. package/lib/cjs/resources/skus.d.ts +1 -78
  98. package/lib/cjs/resources/stock_items.d.ts +1 -49
  99. package/lib/cjs/resources/stock_line_items.d.ts +1 -29
  100. package/lib/cjs/resources/stock_locations.d.ts +1 -57
  101. package/lib/cjs/resources/stock_transfers.d.ts +1 -71
  102. package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
  103. package/lib/cjs/resources/stripe_payments.d.ts +1 -42
  104. package/lib/cjs/resources/tax_calculators.d.ts +1 -27
  105. package/lib/cjs/resources/tax_categories.d.ts +1 -59
  106. package/lib/cjs/resources/tax_rules.d.ts +1 -69
  107. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
  108. package/lib/cjs/resources/transactions.d.ts +1 -31
  109. package/lib/cjs/resources/voids.d.ts +1 -34
  110. package/lib/cjs/resources/webhooks.d.ts +1 -42
  111. package/lib/cjs/resources/wire_transfers.d.ts +1 -32
  112. package/lib/cjs/static.d.ts +1 -6
  113. package/lib/cjs/static.js +1 -1
  114. package/lib/cjs/util.d.ts +1 -2
  115. package/lib/esm/api.d.ts +1 -103
  116. package/lib/esm/client.d.ts +1 -31
  117. package/lib/esm/commercelayer.d.ts +1 -122
  118. package/lib/esm/commercelayer.js +1 -1
  119. package/lib/esm/common.d.ts +1 -4
  120. package/lib/esm/config.d.ts +1 -11
  121. package/lib/esm/debug.d.ts +1 -3
  122. package/lib/esm/error.d.ts +1 -26
  123. package/lib/esm/index.d.ts +1 -7
  124. package/lib/esm/interceptor.d.ts +1 -19
  125. package/lib/esm/jsonapi.d.ts +1 -5
  126. package/lib/esm/model.d.ts +1 -101
  127. package/lib/esm/query.d.ts +1 -23
  128. package/lib/esm/resource.d.ts +1 -76
  129. package/lib/esm/resources/addresses.d.ts +1 -88
  130. package/lib/esm/resources/adjustments.d.ts +1 -35
  131. package/lib/esm/resources/adyen_gateways.d.ts +1 -47
  132. package/lib/esm/resources/adyen_payments.d.ts +1 -44
  133. package/lib/esm/resources/application.d.ts +1 -21
  134. package/lib/esm/resources/attachments.d.ts +1 -156
  135. package/lib/esm/resources/authorizations.d.ts +1 -57
  136. package/lib/esm/resources/avalara_accounts.d.ts +1 -52
  137. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
  138. package/lib/esm/resources/bing_geocoders.d.ts +1 -35
  139. package/lib/esm/resources/braintree_gateways.d.ts +1 -56
  140. package/lib/esm/resources/braintree_payments.d.ts +1 -47
  141. package/lib/esm/resources/bundles.d.ts +1 -74
  142. package/lib/esm/resources/captures.d.ts +1 -48
  143. package/lib/esm/resources/carrier_accounts.d.ts +1 -26
  144. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
  145. package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
  146. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
  147. package/lib/esm/resources/coupon_recipients.d.ts +1 -44
  148. package/lib/esm/resources/coupons.d.ts +1 -45
  149. package/lib/esm/resources/customer_addresses.d.ts +1 -41
  150. package/lib/esm/resources/customer_groups.d.ts +1 -36
  151. package/lib/esm/resources/customer_password_resets.d.ts +1 -33
  152. package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
  153. package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
  154. package/lib/esm/resources/customers.d.ts +1 -60
  155. package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
  156. package/lib/esm/resources/event_callbacks.d.ts +1 -24
  157. package/lib/esm/resources/external_gateways.d.ts +1 -49
  158. package/lib/esm/resources/external_payments.d.ts +1 -43
  159. package/lib/esm/resources/external_promotions.d.ts +1 -86
  160. package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
  161. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
  162. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
  163. package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
  164. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
  165. package/lib/esm/resources/geocoders.d.ts +1 -24
  166. package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
  167. package/lib/esm/resources/gift_cards.d.ts +1 -82
  168. package/lib/esm/resources/google_geocoders.d.ts +1 -35
  169. package/lib/esm/resources/imports.d.ts +1 -40
  170. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
  171. package/lib/esm/resources/inventory_models.d.ts +1 -42
  172. package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
  173. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
  174. package/lib/esm/resources/klarna_gateways.d.ts +1 -44
  175. package/lib/esm/resources/klarna_payments.d.ts +1 -41
  176. package/lib/esm/resources/line_item_options.d.ts +1 -57
  177. package/lib/esm/resources/line_items.d.ts +1 -125
  178. package/lib/esm/resources/manual_gateways.d.ts +1 -33
  179. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
  180. package/lib/esm/resources/markets.d.ts +1 -81
  181. package/lib/esm/resources/merchants.d.ts +1 -38
  182. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
  183. package/lib/esm/resources/order_copies.d.ts +1 -45
  184. package/lib/esm/resources/order_subscriptions.d.ts +1 -67
  185. package/lib/esm/resources/order_validation_rules.d.ts +1 -20
  186. package/lib/esm/resources/orders.d.ts +1 -271
  187. package/lib/esm/resources/organization.d.ts +1 -32
  188. package/lib/esm/resources/packages.d.ts +1 -56
  189. package/lib/esm/resources/parcel_line_items.d.ts +1 -49
  190. package/lib/esm/resources/parcels.d.ts +1 -108
  191. package/lib/esm/resources/payment_gateways.d.ts +1 -21
  192. package/lib/esm/resources/payment_methods.d.ts +1 -59
  193. package/lib/esm/resources/paypal_gateways.d.ts +1 -39
  194. package/lib/esm/resources/paypal_payments.d.ts +1 -49
  195. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
  196. package/lib/esm/resources/price_lists.d.ts +1 -39
  197. package/lib/esm/resources/prices.d.ts +1 -57
  198. package/lib/esm/resources/promotion_rules.d.ts +1 -24
  199. package/lib/esm/resources/promotions.d.ts +1 -41
  200. package/lib/esm/resources/refunds.d.ts +1 -34
  201. package/lib/esm/resources/return_line_items.d.ts +1 -49
  202. package/lib/esm/resources/returns.d.ts +1 -72
  203. package/lib/esm/resources/shipments.d.ts +1 -89
  204. package/lib/esm/resources/shipping_categories.d.ts +1 -33
  205. package/lib/esm/resources/shipping_methods.d.ts +1 -74
  206. package/lib/esm/resources/shipping_zones.d.ts +1 -48
  207. package/lib/esm/resources/sku_list_items.d.ts +1 -47
  208. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
  209. package/lib/esm/resources/sku_lists.d.ts +1 -49
  210. package/lib/esm/resources/sku_options.d.ts +1 -56
  211. package/lib/esm/resources/skus.d.ts +1 -78
  212. package/lib/esm/resources/stock_items.d.ts +1 -49
  213. package/lib/esm/resources/stock_line_items.d.ts +1 -29
  214. package/lib/esm/resources/stock_locations.d.ts +1 -57
  215. package/lib/esm/resources/stock_transfers.d.ts +1 -71
  216. package/lib/esm/resources/stripe_gateways.d.ts +1 -38
  217. package/lib/esm/resources/stripe_payments.d.ts +1 -42
  218. package/lib/esm/resources/tax_calculators.d.ts +1 -27
  219. package/lib/esm/resources/tax_categories.d.ts +1 -59
  220. package/lib/esm/resources/tax_rules.d.ts +1 -69
  221. package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
  222. package/lib/esm/resources/transactions.d.ts +1 -31
  223. package/lib/esm/resources/voids.d.ts +1 -34
  224. package/lib/esm/resources/webhooks.d.ts +1 -42
  225. package/lib/esm/resources/wire_transfers.d.ts +1 -32
  226. package/lib/esm/static.d.ts +1 -6
  227. package/lib/esm/static.js +1 -1
  228. package/lib/esm/util.d.ts +1 -2
  229. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  230. package/lib/tsconfig.tsbuildinfo +1 -1
  231. package/package.json +3 -3
@@ -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 { Customer } from './customers';
4
- import type { Attachment } from './attachments';
5
- declare type CouponRecipientRel = ResourceRel & {
6
- type: typeof CouponRecipients.TYPE;
7
- };
8
- declare type CustomerRel = ResourceRel & {
9
- type: 'customers';
10
- };
11
- interface CouponRecipient extends Resource {
12
- email?: string;
13
- first_name?: string;
14
- last_name?: string;
15
- customer?: Customer;
16
- attachments?: Attachment[];
17
- }
18
- interface CouponRecipientCreate extends ResourceCreate {
19
- email: string;
20
- first_name?: string;
21
- last_name?: string;
22
- customer?: CustomerRel;
23
- }
24
- interface CouponRecipientUpdate extends ResourceUpdate {
25
- email?: string;
26
- first_name?: string;
27
- last_name?: string;
28
- customer?: CustomerRel;
29
- }
30
- declare class CouponRecipients extends ApiResource {
31
- static readonly TYPE: 'coupon_recipients';
32
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponRecipient>>;
33
- create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
34
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
35
- update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
36
- delete(id: string, options?: ResourcesConfig): Promise<void>;
37
- customer(couponRecipientId: string | CouponRecipient, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
38
- attachments(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
39
- isCouponRecipient(resource: any): resource is CouponRecipient;
40
- relationship(id: string | ResourceId | null): CouponRecipientRel;
41
- type(): string;
42
- }
43
- export default CouponRecipients;
44
- export { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate };
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{Attachment}from'./attachments';declare type CouponRecipientRel=ResourceRel&{type:typeof CouponRecipients.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};interface CouponRecipient extends Resource{email?:string;first_name?:string;last_name?:string;customer?:Customer;attachments?:Attachment[];}interface CouponRecipientCreate extends ResourceCreate{email:string;first_name?:string;last_name?:string;customer?:CustomerRel;}interface CouponRecipientUpdate extends ResourceUpdate{email?:string;first_name?:string;last_name?:string;customer?:CustomerRel;}declare class CouponRecipients extends ApiResource{static readonly TYPE:'coupon_recipients';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CouponRecipient>>;create(resource:CouponRecipientCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponRecipient>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponRecipient>;update(resource:CouponRecipientUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponRecipient>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(couponRecipientId:string|CouponRecipient,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;attachments(couponRecipientId:string|CouponRecipient,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCouponRecipient(resource:any):resource is CouponRecipient;relationship(id:string|ResourceId|null):CouponRecipientRel;type():string;}export default CouponRecipients;export{CouponRecipient,CouponRecipientCreate,CouponRecipientUpdate};
@@ -1,45 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
4
- declare type CouponRel = ResourceRel & {
5
- type: typeof Coupons.TYPE;
6
- };
7
- declare type CouponCodesPromotionRuleRel = ResourceRel & {
8
- type: 'coupon_codes_promotion_rules';
9
- };
10
- interface Coupon extends Resource {
11
- code?: string;
12
- customer_single_use?: boolean;
13
- usage_limit?: number;
14
- usage_count?: number;
15
- recipient_email?: string;
16
- promotion_rule?: CouponCodesPromotionRule;
17
- }
18
- interface CouponCreate extends ResourceCreate {
19
- code: string;
20
- customer_single_use?: boolean;
21
- usage_limit: number;
22
- recipient_email?: string;
23
- promotion_rule: CouponCodesPromotionRuleRel;
24
- }
25
- interface CouponUpdate extends ResourceUpdate {
26
- code?: string;
27
- customer_single_use?: boolean;
28
- usage_limit?: number;
29
- recipient_email?: string;
30
- promotion_rule?: CouponCodesPromotionRuleRel;
31
- }
32
- declare class Coupons extends ApiResource {
33
- static readonly TYPE: 'coupons';
34
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
35
- create(resource: CouponCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
36
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
37
- update(resource: CouponUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
38
- delete(id: string, options?: ResourcesConfig): Promise<void>;
39
- promotion_rule(couponId: string | Coupon, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
40
- isCoupon(resource: any): resource is Coupon;
41
- relationship(id: string | ResourceId | null): CouponRel;
42
- type(): string;
43
- }
44
- export default Coupons;
45
- export { Coupon, CouponCreate, CouponUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';declare type CouponRel=ResourceRel&{type:typeof Coupons.TYPE;};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};interface Coupon extends Resource{code?:string;customer_single_use?:boolean;usage_limit?:number;usage_count?:number;recipient_email?:string;promotion_rule?:CouponCodesPromotionRule;}interface CouponCreate extends ResourceCreate{code:string;customer_single_use?:boolean;usage_limit:number;recipient_email?:string;promotion_rule:CouponCodesPromotionRuleRel;}interface CouponUpdate extends ResourceUpdate{code?:string;customer_single_use?:boolean;usage_limit?:number;recipient_email?:string;promotion_rule?:CouponCodesPromotionRuleRel;}declare class Coupons extends ApiResource{static readonly TYPE:'coupons';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;create(resource:CouponCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Coupon>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Coupon>;update(resource:CouponUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Coupon>;delete(id:string,options?:ResourcesConfig):Promise<void>;promotion_rule(couponId:string|Coupon,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;isCoupon(resource:any):resource is Coupon;relationship(id:string|ResourceId|null):CouponRel;type():string;}export default Coupons;export{Coupon,CouponCreate,CouponUpdate};
@@ -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};