@commercelayer/sdk 4.7.3 → 4.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) 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/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/jsonapi.js +1 -1
  13. package/lib/cjs/model.d.ts +1 -101
  14. package/lib/cjs/query.d.ts +1 -23
  15. package/lib/cjs/resource.d.ts +1 -76
  16. package/lib/cjs/resources/addresses.d.ts +1 -88
  17. package/lib/cjs/resources/adjustments.d.ts +1 -35
  18. package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
  19. package/lib/cjs/resources/adyen_payments.d.ts +1 -44
  20. package/lib/cjs/resources/application.d.ts +1 -21
  21. package/lib/cjs/resources/attachments.d.ts +1 -156
  22. package/lib/cjs/resources/authorizations.d.ts +1 -57
  23. package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
  24. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
  25. package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
  26. package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
  27. package/lib/cjs/resources/braintree_payments.d.ts +1 -47
  28. package/lib/cjs/resources/bundles.d.ts +1 -74
  29. package/lib/cjs/resources/captures.d.ts +1 -48
  30. package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
  31. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
  32. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
  33. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
  34. package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
  35. package/lib/cjs/resources/coupons.d.ts +1 -45
  36. package/lib/cjs/resources/customer_addresses.d.ts +1 -41
  37. package/lib/cjs/resources/customer_groups.d.ts +1 -36
  38. package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
  39. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
  40. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
  41. package/lib/cjs/resources/customers.d.ts +1 -60
  42. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
  43. package/lib/cjs/resources/event_callbacks.d.ts +1 -24
  44. package/lib/cjs/resources/external_gateways.d.ts +1 -49
  45. package/lib/cjs/resources/external_payments.d.ts +1 -43
  46. package/lib/cjs/resources/external_promotions.d.ts +1 -86
  47. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
  48. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
  49. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
  50. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
  51. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
  52. package/lib/cjs/resources/geocoders.d.ts +1 -24
  53. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
  54. package/lib/cjs/resources/gift_cards.d.ts +1 -82
  55. package/lib/cjs/resources/google_geocoders.d.ts +1 -35
  56. package/lib/cjs/resources/imports.d.ts +1 -40
  57. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
  58. package/lib/cjs/resources/inventory_models.d.ts +1 -42
  59. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
  60. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
  61. package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
  62. package/lib/cjs/resources/klarna_payments.d.ts +1 -41
  63. package/lib/cjs/resources/line_item_options.d.ts +1 -57
  64. package/lib/cjs/resources/line_items.d.ts +1 -125
  65. package/lib/cjs/resources/manual_gateways.d.ts +1 -33
  66. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
  67. package/lib/cjs/resources/markets.d.ts +1 -81
  68. package/lib/cjs/resources/merchants.d.ts +1 -38
  69. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
  70. package/lib/cjs/resources/order_copies.d.ts +1 -45
  71. package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
  72. package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
  73. package/lib/cjs/resources/orders.d.ts +1 -271
  74. package/lib/cjs/resources/organization.d.ts +1 -32
  75. package/lib/cjs/resources/packages.d.ts +1 -56
  76. package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
  77. package/lib/cjs/resources/parcels.d.ts +1 -108
  78. package/lib/cjs/resources/payment_gateways.d.ts +1 -21
  79. package/lib/cjs/resources/payment_methods.d.ts +1 -59
  80. package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
  81. package/lib/cjs/resources/paypal_payments.d.ts +1 -49
  82. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
  83. package/lib/cjs/resources/price_lists.d.ts +1 -39
  84. package/lib/cjs/resources/prices.d.ts +1 -57
  85. package/lib/cjs/resources/promotion_rules.d.ts +1 -24
  86. package/lib/cjs/resources/promotions.d.ts +1 -41
  87. package/lib/cjs/resources/refunds.d.ts +1 -34
  88. package/lib/cjs/resources/return_line_items.d.ts +1 -49
  89. package/lib/cjs/resources/returns.d.ts +1 -72
  90. package/lib/cjs/resources/shipments.d.ts +1 -89
  91. package/lib/cjs/resources/shipping_categories.d.ts +1 -33
  92. package/lib/cjs/resources/shipping_methods.d.ts +1 -74
  93. package/lib/cjs/resources/shipping_zones.d.ts +1 -48
  94. package/lib/cjs/resources/sku_list_items.d.ts +1 -47
  95. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
  96. package/lib/cjs/resources/sku_lists.d.ts +1 -49
  97. package/lib/cjs/resources/sku_options.d.ts +1 -56
  98. package/lib/cjs/resources/skus.d.ts +1 -78
  99. package/lib/cjs/resources/stock_items.d.ts +1 -49
  100. package/lib/cjs/resources/stock_line_items.d.ts +1 -29
  101. package/lib/cjs/resources/stock_locations.d.ts +1 -57
  102. package/lib/cjs/resources/stock_transfers.d.ts +1 -71
  103. package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
  104. package/lib/cjs/resources/stripe_payments.d.ts +1 -42
  105. package/lib/cjs/resources/tax_calculators.d.ts +1 -27
  106. package/lib/cjs/resources/tax_categories.d.ts +1 -59
  107. package/lib/cjs/resources/tax_rules.d.ts +1 -69
  108. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
  109. package/lib/cjs/resources/transactions.d.ts +1 -31
  110. package/lib/cjs/resources/voids.d.ts +1 -34
  111. package/lib/cjs/resources/webhooks.d.ts +1 -42
  112. package/lib/cjs/resources/wire_transfers.d.ts +1 -32
  113. package/lib/cjs/static.d.ts +1 -6
  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/common.d.ts +1 -4
  119. package/lib/esm/config.d.ts +1 -11
  120. package/lib/esm/debug.d.ts +1 -3
  121. package/lib/esm/error.d.ts +1 -26
  122. package/lib/esm/index.d.ts +1 -7
  123. package/lib/esm/interceptor.d.ts +1 -19
  124. package/lib/esm/jsonapi.d.ts +1 -5
  125. package/lib/esm/jsonapi.js +1 -1
  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/util.d.ts +1 -2
  228. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  229. package/lib/tsconfig.tsbuildinfo +1 -1
  230. package/package.json +4 -6
@@ -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 { PaymentMethod } from './payment_methods';
4
- import type { CheckoutComPayment } from './checkout_com_payments';
5
- declare type CheckoutComGatewayRel = ResourceRel & {
6
- type: typeof CheckoutComGateways.TYPE;
7
- };
8
- declare type CheckoutComPaymentRel = ResourceRel & {
9
- type: 'checkout_com_payments';
10
- };
11
- interface CheckoutComGateway extends Resource {
12
- name?: string;
13
- webhook_endpoint_id?: string;
14
- webhook_endpoint_secret?: string;
15
- webhook_endpoint_url?: string;
16
- payment_methods?: PaymentMethod[];
17
- checkout_com_payments?: CheckoutComPayment[];
18
- }
19
- interface CheckoutComGatewayCreate extends ResourceCreate {
20
- name: string;
21
- secret_key: string;
22
- public_key: string;
23
- checkout_com_payments?: CheckoutComPaymentRel[];
24
- }
25
- interface CheckoutComGatewayUpdate extends ResourceUpdate {
26
- name?: string;
27
- secret_key?: string;
28
- public_key?: string;
29
- checkout_com_payments?: CheckoutComPaymentRel[];
30
- }
31
- declare class CheckoutComGateways extends ApiResource {
32
- static readonly TYPE: 'checkout_com_gateways';
33
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComGateway>>;
34
- create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
35
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
36
- update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
37
- delete(id: string, options?: ResourcesConfig): Promise<void>;
38
- payment_methods(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
39
- checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
40
- isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
41
- relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
42
- type(): string;
43
- }
44
- export default CheckoutComGateways;
45
- export { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate };
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{CheckoutComPayment}from'./checkout_com_payments';declare type CheckoutComGatewayRel=ResourceRel&{type:typeof CheckoutComGateways.TYPE;};declare type CheckoutComPaymentRel=ResourceRel&{type:'checkout_com_payments';};interface CheckoutComGateway extends Resource{name?:string;webhook_endpoint_id?:string;webhook_endpoint_secret?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];checkout_com_payments?:CheckoutComPayment[];}interface CheckoutComGatewayCreate extends ResourceCreate{name:string;secret_key:string;public_key:string;checkout_com_payments?:CheckoutComPaymentRel[];}interface CheckoutComGatewayUpdate extends ResourceUpdate{name?:string;secret_key?:string;public_key?:string;checkout_com_payments?:CheckoutComPaymentRel[];}declare class CheckoutComGateways extends ApiResource{static readonly TYPE:'checkout_com_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComGateway>>;create(resource:CheckoutComGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;update(resource:CheckoutComGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(checkoutComGatewayId:string|CheckoutComGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;checkout_com_payments(checkoutComGatewayId:string|CheckoutComGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComPayment>>;isCheckoutComGateway(resource:any):resource is CheckoutComGateway;relationship(id:string|ResourceId|null):CheckoutComGatewayRel;type():string;}export default CheckoutComGateways;export{CheckoutComGateway,CheckoutComGatewayCreate,CheckoutComGatewayUpdate};
@@ -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 { Order } from './orders';
4
- import type { PaymentGateway } from './payment_gateways';
5
- declare type CheckoutComPaymentRel = ResourceRel & {
6
- type: typeof CheckoutComPayments.TYPE;
7
- };
8
- declare type OrderRel = ResourceRel & {
9
- type: 'orders';
10
- };
11
- interface CheckoutComPayment extends Resource {
12
- public_key?: string;
13
- payment_type?: string;
14
- token?: string;
15
- session_id?: string;
16
- source_id?: string;
17
- customer_token?: string;
18
- redirect_uri?: string;
19
- payment_response?: object;
20
- order?: Order;
21
- payment_gateway?: PaymentGateway;
22
- }
23
- interface CheckoutComPaymentCreate extends ResourceCreate {
24
- payment_type: string;
25
- token: string;
26
- session_id?: string;
27
- order: OrderRel;
28
- }
29
- interface CheckoutComPaymentUpdate extends ResourceUpdate {
30
- payment_type?: string;
31
- token?: string;
32
- session_id?: string;
33
- _details?: boolean;
34
- _refresh?: boolean;
35
- order?: OrderRel;
36
- }
37
- declare class CheckoutComPayments extends ApiResource {
38
- static readonly TYPE: 'checkout_com_payments';
39
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
40
- create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
41
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
42
- update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
43
- delete(id: string, options?: ResourcesConfig): Promise<void>;
44
- order(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
45
- payment_gateway(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
46
- isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
47
- relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
48
- type(): string;
49
- }
50
- export default CheckoutComPayments;
51
- export { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate };
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 CheckoutComPaymentRel=ResourceRel&{type:typeof CheckoutComPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface CheckoutComPayment extends Resource{public_key?:string;payment_type?:string;token?:string;session_id?:string;source_id?:string;customer_token?:string;redirect_uri?:string;payment_response?:object;order?:Order;payment_gateway?:PaymentGateway;}interface CheckoutComPaymentCreate extends ResourceCreate{payment_type:string;token:string;session_id?:string;order:OrderRel;}interface CheckoutComPaymentUpdate extends ResourceUpdate{payment_type?:string;token?:string;session_id?:string;_details?:boolean;_refresh?:boolean;order?:OrderRel;}declare class CheckoutComPayments extends ApiResource{static readonly TYPE:'checkout_com_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComPayment>>;create(resource:CheckoutComPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;update(resource:CheckoutComPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(checkoutComPaymentId:string|CheckoutComPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(checkoutComPaymentId:string|CheckoutComPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isCheckoutComPayment(resource:any):resource is CheckoutComPayment;relationship(id:string|ResourceId|null):CheckoutComPaymentRel;type():string;}export default CheckoutComPayments;export{CheckoutComPayment,CheckoutComPaymentCreate,CheckoutComPaymentUpdate};
@@ -1,59 +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
- import type { Coupon } from './coupons';
10
- declare type CouponCodesPromotionRuleRel = ResourceRel & {
11
- type: typeof CouponCodesPromotionRules.TYPE;
12
- };
13
- declare type PercentageDiscountPromotionRel = ResourceRel & {
14
- type: 'percentage_discount_promotions';
15
- };
16
- declare type FreeShippingPromotionRel = ResourceRel & {
17
- type: 'free_shipping_promotions';
18
- };
19
- declare type FixedAmountPromotionRel = ResourceRel & {
20
- type: 'fixed_amount_promotions';
21
- };
22
- declare type FreeGiftPromotionRel = ResourceRel & {
23
- type: 'free_gift_promotions';
24
- };
25
- declare type FixedPricePromotionRel = ResourceRel & {
26
- type: 'fixed_price_promotions';
27
- };
28
- declare type ExternalPromotionRel = ResourceRel & {
29
- type: 'external_promotions';
30
- };
31
- declare type CouponRel = ResourceRel & {
32
- type: 'coupons';
33
- };
34
- interface CouponCodesPromotionRule extends Resource {
35
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
36
- coupons?: Coupon[];
37
- }
38
- interface CouponCodesPromotionRuleCreate extends ResourceCreate {
39
- promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
40
- coupons?: CouponRel[];
41
- }
42
- interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
43
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
44
- coupons?: CouponRel[];
45
- }
46
- declare class CouponCodesPromotionRules extends ApiResource {
47
- static readonly TYPE: 'coupon_codes_promotion_rules';
48
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponCodesPromotionRule>>;
49
- create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
50
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
51
- update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
52
- delete(id: string, options?: ResourcesConfig): Promise<void>;
53
- coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
54
- isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
55
- relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
56
- type(): string;
57
- }
58
- export default CouponCodesPromotionRules;
59
- export { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate };
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';import type{Coupon}from'./coupons';declare type CouponCodesPromotionRuleRel=ResourceRel&{type:typeof CouponCodesPromotionRules.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';};declare type CouponRel=ResourceRel&{type:'coupons';};interface CouponCodesPromotionRule extends Resource{promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;coupons?:Coupon[];}interface CouponCodesPromotionRuleCreate extends ResourceCreate{promotion:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;coupons?:CouponRel[];}interface CouponCodesPromotionRuleUpdate extends ResourceUpdate{promotion?:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;coupons?:CouponRel[];}declare class CouponCodesPromotionRules extends ApiResource{static readonly TYPE:'coupon_codes_promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CouponCodesPromotionRule>>;create(resource:CouponCodesPromotionRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;update(resource:CouponCodesPromotionRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;coupons(couponCodesPromotionRuleId:string|CouponCodesPromotionRule,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;isCouponCodesPromotionRule(resource:any):resource is CouponCodesPromotionRule;relationship(id:string|ResourceId|null):CouponCodesPromotionRuleRel;type():string;}export default CouponCodesPromotionRules;export{CouponCodesPromotionRule,CouponCodesPromotionRuleCreate,CouponCodesPromotionRuleUpdate};
@@ -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};