@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,108 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Shipment } from './shipments';
4
- import type { Package } from './packages';
5
- import type { ParcelLineItem } from './parcel_line_items';
6
- import type { Attachment } from './attachments';
7
- declare type ParcelRel = ResourceRel & {
8
- type: typeof Parcels.TYPE;
9
- };
10
- declare type ShipmentRel = ResourceRel & {
11
- type: 'shipments';
12
- };
13
- declare type PackageRel = ResourceRel & {
14
- type: 'packages';
15
- };
16
- interface Parcel extends Resource {
17
- number?: string;
18
- weight?: number;
19
- unit_of_weight?: string;
20
- eel_pfc?: string;
21
- contents_type?: string;
22
- contents_explanation?: string;
23
- customs_certify?: boolean;
24
- customs_signer?: string;
25
- non_delivery_option?: string;
26
- restriction_type?: string;
27
- restriction_comments?: string;
28
- customs_info_required?: boolean;
29
- shipping_label_url?: string;
30
- shipping_label_file_type?: string;
31
- shipping_label_size?: string;
32
- shipping_label_resolution?: string;
33
- tracking_number?: string;
34
- tracking_status?: string;
35
- tracking_status_detail?: string;
36
- tracking_status_updated_at?: string;
37
- tracking_details?: string;
38
- carrier_weight_oz?: string;
39
- signed_by?: string;
40
- incoterm?: string;
41
- shipment?: Shipment;
42
- package?: Package;
43
- parcel_line_items?: ParcelLineItem[];
44
- attachments?: Attachment[];
45
- }
46
- interface ParcelCreate extends ResourceCreate {
47
- weight?: number;
48
- unit_of_weight?: string;
49
- eel_pfc?: string;
50
- contents_type?: string;
51
- contents_explanation?: string;
52
- customs_certify?: boolean;
53
- customs_signer?: string;
54
- non_delivery_option?: string;
55
- restriction_type?: string;
56
- restriction_comments?: string;
57
- customs_info_required?: boolean;
58
- tracking_number?: string;
59
- tracking_status?: string;
60
- tracking_status_detail?: string;
61
- tracking_status_updated_at?: string;
62
- tracking_details?: string;
63
- carrier_weight_oz?: string;
64
- signed_by?: string;
65
- incoterm?: string;
66
- shipment: ShipmentRel;
67
- package: PackageRel;
68
- }
69
- interface ParcelUpdate extends ResourceUpdate {
70
- weight?: number;
71
- unit_of_weight?: string;
72
- eel_pfc?: string;
73
- contents_type?: string;
74
- contents_explanation?: string;
75
- customs_certify?: boolean;
76
- customs_signer?: string;
77
- non_delivery_option?: string;
78
- restriction_type?: string;
79
- restriction_comments?: string;
80
- customs_info_required?: boolean;
81
- tracking_number?: string;
82
- tracking_status?: string;
83
- tracking_status_detail?: string;
84
- tracking_status_updated_at?: string;
85
- tracking_details?: string;
86
- carrier_weight_oz?: string;
87
- signed_by?: string;
88
- incoterm?: string;
89
- shipment?: ShipmentRel;
90
- package?: PackageRel;
91
- }
92
- declare class Parcels extends ApiResource {
93
- static readonly TYPE: 'parcels';
94
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
95
- create(resource: ParcelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
96
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
97
- update(resource: ParcelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
98
- delete(id: string, options?: ResourcesConfig): Promise<void>;
99
- shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
100
- package(parcelId: string | Parcel, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Package>;
101
- parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>>;
102
- attachments(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
103
- isParcel(resource: any): resource is Parcel;
104
- relationship(id: string | ResourceId | null): ParcelRel;
105
- type(): string;
106
- }
107
- export default Parcels;
108
- export { Parcel, ParcelCreate, ParcelUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Shipment}from'./shipments';import type{Package}from'./packages';import type{ParcelLineItem}from'./parcel_line_items';import type{Attachment}from'./attachments';declare type ParcelRel=ResourceRel&{type:typeof Parcels.TYPE;};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type PackageRel=ResourceRel&{type:'packages';};interface Parcel extends Resource{number?:string;weight?:number;unit_of_weight?:string;eel_pfc?:string;contents_type?:string;contents_explanation?:string;customs_certify?:boolean;customs_signer?:string;non_delivery_option?:string;restriction_type?:string;restriction_comments?:string;customs_info_required?:boolean;shipping_label_url?:string;shipping_label_file_type?:string;shipping_label_size?:string;shipping_label_resolution?:string;tracking_number?:string;tracking_status?:string;tracking_status_detail?:string;tracking_status_updated_at?:string;tracking_details?:string;carrier_weight_oz?:string;signed_by?:string;incoterm?:string;shipment?:Shipment;package?:Package;parcel_line_items?:ParcelLineItem[];attachments?:Attachment[];}interface ParcelCreate extends ResourceCreate{weight?:number;unit_of_weight?:string;eel_pfc?:string;contents_type?:string;contents_explanation?:string;customs_certify?:boolean;customs_signer?:string;non_delivery_option?:string;restriction_type?:string;restriction_comments?:string;customs_info_required?:boolean;tracking_number?:string;tracking_status?:string;tracking_status_detail?:string;tracking_status_updated_at?:string;tracking_details?:string;carrier_weight_oz?:string;signed_by?:string;incoterm?:string;shipment:ShipmentRel;package:PackageRel;}interface ParcelUpdate extends ResourceUpdate{weight?:number;unit_of_weight?:string;eel_pfc?:string;contents_type?:string;contents_explanation?:string;customs_certify?:boolean;customs_signer?:string;non_delivery_option?:string;restriction_type?:string;restriction_comments?:string;customs_info_required?:boolean;tracking_number?:string;tracking_status?:string;tracking_status_detail?:string;tracking_status_updated_at?:string;tracking_details?:string;carrier_weight_oz?:string;signed_by?:string;incoterm?:string;shipment?:ShipmentRel;package?:PackageRel;}declare class Parcels extends ApiResource{static readonly TYPE:'parcels';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Parcel>>;create(resource:ParcelCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Parcel>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Parcel>;update(resource:ParcelUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Parcel>;delete(id:string,options?:ResourcesConfig):Promise<void>;shipment(parcelId:string|Parcel,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;package(parcelId:string|Parcel,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Package>;parcel_line_items(parcelId:string|Parcel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ParcelLineItem>>;attachments(parcelId:string|Parcel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isParcel(resource:any):resource is Parcel;relationship(id:string|ResourceId|null):ParcelRel;type():string;}export default Parcels;export{Parcel,ParcelCreate,ParcelUpdate};
@@ -1,21 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { PaymentMethod } from './payment_methods';
4
- declare type PaymentGatewayRel = ResourceRel & {
5
- type: typeof PaymentGateways.TYPE;
6
- };
7
- interface PaymentGateway extends Resource {
8
- name?: string;
9
- payment_methods?: PaymentMethod[];
10
- }
11
- declare class PaymentGateways extends ApiResource {
12
- static readonly TYPE: 'payment_gateways';
13
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
14
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
15
- payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
16
- isPaymentGateway(resource: any): resource is PaymentGateway;
17
- relationship(id: string | ResourceId | null): PaymentGatewayRel;
18
- type(): string;
19
- }
20
- export default PaymentGateways;
21
- export { PaymentGateway };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';declare type PaymentGatewayRel=ResourceRel&{type:typeof PaymentGateways.TYPE;};interface PaymentGateway extends Resource{name?:string;payment_methods?:PaymentMethod[];}declare class PaymentGateways extends ApiResource{static readonly TYPE:'payment_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentGateway>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;payment_methods(paymentGatewayId:string|PaymentGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;isPaymentGateway(resource:any):resource is PaymentGateway;relationship(id:string|ResourceId|null):PaymentGatewayRel;type():string;}export default PaymentGateways;export{PaymentGateway};
@@ -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 { Market } from './markets';
4
- import type { PaymentGateway } from './payment_gateways';
5
- import type { Attachment } from './attachments';
6
- declare type PaymentMethodRel = ResourceRel & {
7
- type: typeof PaymentMethods.TYPE;
8
- };
9
- declare type MarketRel = ResourceRel & {
10
- type: 'markets';
11
- };
12
- declare type PaymentGatewayRel = ResourceRel & {
13
- type: 'payment_gateways';
14
- };
15
- interface PaymentMethod extends Resource {
16
- payment_source_type?: string;
17
- name?: string;
18
- currency_code?: string;
19
- moto?: boolean;
20
- disabled_at?: string;
21
- price_amount_cents?: number;
22
- price_amount_float?: number;
23
- formatted_price_amount?: string;
24
- market?: Market;
25
- payment_gateway?: PaymentGateway;
26
- attachments?: Attachment[];
27
- }
28
- interface PaymentMethodCreate extends ResourceCreate {
29
- payment_source_type: string;
30
- currency_code?: string;
31
- moto?: boolean;
32
- price_amount_cents: number;
33
- market?: MarketRel;
34
- payment_gateway: PaymentGatewayRel;
35
- }
36
- interface PaymentMethodUpdate extends ResourceUpdate {
37
- payment_source_type?: string;
38
- currency_code?: string;
39
- moto?: boolean;
40
- price_amount_cents?: number;
41
- market?: MarketRel;
42
- payment_gateway?: PaymentGatewayRel;
43
- }
44
- declare class PaymentMethods extends ApiResource {
45
- static readonly TYPE: 'payment_methods';
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
47
- create(resource: PaymentMethodCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
48
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
49
- update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
50
- delete(id: string, options?: ResourcesConfig): Promise<void>;
51
- market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
52
- payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
53
- attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
54
- isPaymentMethod(resource: any): resource is PaymentMethod;
55
- relationship(id: string | ResourceId | null): PaymentMethodRel;
56
- type(): string;
57
- }
58
- export default PaymentMethods;
59
- export { PaymentMethod, PaymentMethodCreate, PaymentMethodUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PaymentGateway}from'./payment_gateways';import type{Attachment}from'./attachments';declare type PaymentMethodRel=ResourceRel&{type:typeof PaymentMethods.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PaymentGatewayRel=ResourceRel&{type:'payment_gateways';};interface PaymentMethod extends Resource{payment_source_type?:string;name?:string;currency_code?:string;moto?:boolean;disabled_at?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;market?:Market;payment_gateway?:PaymentGateway;attachments?:Attachment[];}interface PaymentMethodCreate extends ResourceCreate{payment_source_type:string;currency_code?:string;moto?:boolean;price_amount_cents:number;market?:MarketRel;payment_gateway:PaymentGatewayRel;}interface PaymentMethodUpdate extends ResourceUpdate{payment_source_type?:string;currency_code?:string;moto?:boolean;price_amount_cents?:number;market?:MarketRel;payment_gateway?:PaymentGatewayRel;}declare class PaymentMethods extends ApiResource{static readonly TYPE:'payment_methods';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;create(resource:PaymentMethodCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentMethod>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentMethod>;update(resource:PaymentMethodUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentMethod>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(paymentMethodId:string|PaymentMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;payment_gateway(paymentMethodId:string|PaymentMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;attachments(paymentMethodId:string|PaymentMethod,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPaymentMethod(resource:any):resource is PaymentMethod;relationship(id:string|ResourceId|null):PaymentMethodRel;type():string;}export default PaymentMethods;export{PaymentMethod,PaymentMethodCreate,PaymentMethodUpdate};
@@ -1,39 +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 { PaypalPayment } from './paypal_payments';
5
- declare type PaypalGatewayRel = ResourceRel & {
6
- type: typeof PaypalGateways.TYPE;
7
- };
8
- interface PaypalGateway extends Resource {
9
- name?: string;
10
- payment_methods?: PaymentMethod[];
11
- paypal_payments?: PaypalPayment[];
12
- }
13
- interface PaypalGatewayCreate extends ResourceCreate {
14
- name: string;
15
- client_id: string;
16
- client_secret: string;
17
- mode: string;
18
- }
19
- interface PaypalGatewayUpdate extends ResourceUpdate {
20
- name?: string;
21
- client_id?: string;
22
- client_secret?: string;
23
- mode?: string;
24
- }
25
- declare class PaypalGateways extends ApiResource {
26
- static readonly TYPE: 'paypal_gateways';
27
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalGateway>>;
28
- create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
29
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
30
- update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
31
- delete(id: string, options?: ResourcesConfig): Promise<void>;
32
- payment_methods(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
33
- paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
34
- isPaypalGateway(resource: any): resource is PaypalGateway;
35
- relationship(id: string | ResourceId | null): PaypalGatewayRel;
36
- type(): string;
37
- }
38
- export default PaypalGateways;
39
- export { PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate };
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{PaypalPayment}from'./paypal_payments';declare type PaypalGatewayRel=ResourceRel&{type:typeof PaypalGateways.TYPE;};interface PaypalGateway extends Resource{name?:string;payment_methods?:PaymentMethod[];paypal_payments?:PaypalPayment[];}interface PaypalGatewayCreate extends ResourceCreate{name:string;client_id:string;client_secret:string;}interface PaypalGatewayUpdate extends ResourceUpdate{name?:string;client_id?:string;client_secret?:string;}declare class PaypalGateways extends ApiResource{static readonly TYPE:'paypal_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaypalGateway>>;create(resource:PaypalGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalGateway>;update(resource:PaypalGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(paypalGatewayId:string|PaypalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;paypal_payments(paypalGatewayId:string|PaypalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaypalPayment>>;isPaypalGateway(resource:any):resource is PaypalGateway;relationship(id:string|ResourceId|null):PaypalGatewayRel;type():string;}export default PaypalGateways;export{PaypalGateway,PaypalGatewayCreate,PaypalGatewayUpdate};
@@ -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 { Order } from './orders';
4
- import type { PaymentGateway } from './payment_gateways';
5
- declare type PaypalPaymentRel = ResourceRel & {
6
- type: typeof PaypalPayments.TYPE;
7
- };
8
- declare type OrderRel = ResourceRel & {
9
- type: 'orders';
10
- };
11
- interface PaypalPayment extends Resource {
12
- return_url?: string;
13
- cancel_url?: string;
14
- store_payment_source?: boolean;
15
- note_to_payer?: string;
16
- paypal_payer_id?: string;
17
- name?: string;
18
- paypal_id?: string;
19
- status?: string;
20
- approval_url?: string;
21
- order?: Order;
22
- payment_gateway?: PaymentGateway;
23
- }
24
- interface PaypalPaymentCreate extends ResourceCreate {
25
- return_url: string;
26
- cancel_url: string;
27
- store_payment_source?: boolean;
28
- note_to_payer?: string;
29
- order: OrderRel;
30
- }
31
- interface PaypalPaymentUpdate extends ResourceUpdate {
32
- paypal_payer_id?: string;
33
- order?: OrderRel;
34
- }
35
- declare class PaypalPayments extends ApiResource {
36
- static readonly TYPE: 'paypal_payments';
37
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
38
- create(resource: PaypalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
39
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
40
- update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
41
- delete(id: string, options?: ResourcesConfig): Promise<void>;
42
- order(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
43
- payment_gateway(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
44
- isPaypalPayment(resource: any): resource is PaypalPayment;
45
- relationship(id: string | ResourceId | null): PaypalPaymentRel;
46
- type(): string;
47
- }
48
- export default PaypalPayments;
49
- export { PaypalPayment, PaypalPaymentCreate, PaypalPaymentUpdate };
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 PaypalPaymentRel=ResourceRel&{type:typeof PaypalPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface PaypalPayment extends Resource{return_url?:string;cancel_url?:string;note_to_payer?:string;paypal_payer_id?:string;name?:string;paypal_id?:string;status?:string;approval_url?:string;mismatched_amounts?:boolean;intent_amount_cents?:number;intent_amount_float?:number;formatted_intent_amount?:string;order?:Order;payment_gateway?:PaymentGateway;}interface PaypalPaymentCreate extends ResourceCreate{return_url:string;cancel_url:string;note_to_payer?:string;order:OrderRel;}interface PaypalPaymentUpdate extends ResourceUpdate{paypal_payer_id?:string;order?:OrderRel;}declare class PaypalPayments extends ApiResource{static readonly TYPE:'paypal_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaypalPayment>>;create(resource:PaypalPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalPayment>;update(resource:PaypalPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaypalPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(paypalPaymentId:string|PaypalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(paypalPaymentId:string|PaypalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isPaypalPayment(resource:any):resource is PaypalPayment;relationship(id:string|ResourceId|null):PaypalPaymentRel;type():string;}export default PaypalPayments;export{PaypalPayment,PaypalPaymentCreate,PaypalPaymentUpdate};
@@ -1,97 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Market } from './markets';
4
- import type { PromotionRule } from './promotion_rules';
5
- import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
6
- import type { SkuListPromotionRule } from './sku_list_promotion_rules';
7
- import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
8
- import type { Attachment } from './attachments';
9
- import type { SkuList } from './sku_lists';
10
- import type { Sku } from './skus';
11
- declare type PercentageDiscountPromotionRel = ResourceRel & {
12
- type: typeof PercentageDiscountPromotions.TYPE;
13
- };
14
- declare type MarketRel = ResourceRel & {
15
- type: 'markets';
16
- };
17
- declare type PromotionRuleRel = ResourceRel & {
18
- type: 'promotion_rules';
19
- };
20
- declare type OrderAmountPromotionRuleRel = ResourceRel & {
21
- type: 'order_amount_promotion_rules';
22
- };
23
- declare type SkuListPromotionRuleRel = ResourceRel & {
24
- type: 'sku_list_promotion_rules';
25
- };
26
- declare type CouponCodesPromotionRuleRel = ResourceRel & {
27
- type: 'coupon_codes_promotion_rules';
28
- };
29
- declare type SkuListRel = ResourceRel & {
30
- type: 'sku_lists';
31
- };
32
- interface PercentageDiscountPromotion extends Resource {
33
- name?: string;
34
- currency_code?: string;
35
- starts_at?: string;
36
- expires_at?: string;
37
- total_usage_limit?: number;
38
- total_usage_count?: number;
39
- active?: boolean;
40
- percentage?: number;
41
- market?: Market;
42
- promotion_rules?: PromotionRule[];
43
- order_amount_promotion_rule?: OrderAmountPromotionRule;
44
- sku_list_promotion_rule?: SkuListPromotionRule;
45
- coupon_codes_promotion_rule?: CouponCodesPromotionRule;
46
- attachments?: Attachment[];
47
- sku_list?: SkuList;
48
- skus?: Sku[];
49
- }
50
- interface PercentageDiscountPromotionCreate extends ResourceCreate {
51
- name: string;
52
- currency_code?: string;
53
- starts_at: string;
54
- expires_at: string;
55
- total_usage_limit: number;
56
- percentage: number;
57
- market?: MarketRel;
58
- promotion_rules?: PromotionRuleRel[];
59
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
60
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
61
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
62
- sku_list?: SkuListRel;
63
- }
64
- interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
65
- name?: string;
66
- currency_code?: string;
67
- starts_at?: string;
68
- expires_at?: string;
69
- total_usage_limit?: number;
70
- percentage?: number;
71
- market?: MarketRel;
72
- promotion_rules?: PromotionRuleRel[];
73
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
74
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
75
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
76
- sku_list?: SkuListRel;
77
- }
78
- declare class PercentageDiscountPromotions extends ApiResource {
79
- static readonly TYPE: 'percentage_discount_promotions';
80
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PercentageDiscountPromotion>>;
81
- create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
82
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
83
- update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
84
- delete(id: string, options?: ResourcesConfig): Promise<void>;
85
- market(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
86
- order_amount_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
87
- sku_list_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
88
- coupon_codes_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
89
- attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
90
- sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
91
- skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
92
- isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion;
93
- relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel;
94
- type(): string;
95
- }
96
- export default PercentageDiscountPromotions;
97
- export { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotionUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';declare type PercentageDiscountPromotionRel=ResourceRel&{type:typeof PercentageDiscountPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface PercentageDiscountPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;percentage?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];sku_list?:SkuList;skus?:Sku[];}interface PercentageDiscountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;percentage:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list?:SkuListRel;}interface PercentageDiscountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;percentage?:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list?:SkuListRel;}declare class PercentageDiscountPromotions extends ApiResource{static readonly TYPE:'percentage_discount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PercentageDiscountPromotion>>;create(resource:PercentageDiscountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;update(resource:PercentageDiscountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;sku_list(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isPercentageDiscountPromotion(resource:any):resource is PercentageDiscountPromotion;relationship(id:string|ResourceId|null):PercentageDiscountPromotionRel;type():string;}export default PercentageDiscountPromotions;export{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate};
@@ -1,39 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Price } from './prices';
4
- import type { Attachment } from './attachments';
5
- declare type PriceListRel = ResourceRel & {
6
- type: typeof PriceLists.TYPE;
7
- };
8
- interface PriceList extends Resource {
9
- name?: string;
10
- currency_code?: string;
11
- tax_included?: boolean;
12
- prices?: Price[];
13
- attachments?: Attachment[];
14
- }
15
- interface PriceListCreate extends ResourceCreate {
16
- name: string;
17
- currency_code: string;
18
- tax_included?: boolean;
19
- }
20
- interface PriceListUpdate extends ResourceUpdate {
21
- name?: string;
22
- currency_code?: string;
23
- tax_included?: boolean;
24
- }
25
- declare class PriceLists extends ApiResource {
26
- static readonly TYPE: 'price_lists';
27
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceList>>;
28
- create(resource: PriceListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
29
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
30
- update(resource: PriceListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
31
- delete(id: string, options?: ResourcesConfig): Promise<void>;
32
- prices(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
33
- attachments(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
34
- isPriceList(resource: any): resource is PriceList;
35
- relationship(id: string | ResourceId | null): PriceListRel;
36
- type(): string;
37
- }
38
- export default PriceLists;
39
- export { PriceList, PriceListCreate, PriceListUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Price}from'./prices';import type{Attachment}from'./attachments';declare type PriceListRel=ResourceRel&{type:typeof PriceLists.TYPE;};interface PriceList extends Resource{name?:string;currency_code?:string;tax_included?:boolean;prices?:Price[];attachments?:Attachment[];}interface PriceListCreate extends ResourceCreate{name:string;currency_code:string;tax_included?:boolean;}interface PriceListUpdate extends ResourceUpdate{name?:string;currency_code?:string;tax_included?:boolean;}declare class PriceLists extends ApiResource{static readonly TYPE:'price_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceList>>;create(resource:PriceListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;update(resource:PriceListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;delete(id:string,options?:ResourcesConfig):Promise<void>;prices(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;attachments(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPriceList(resource:any):resource is PriceList;relationship(id:string|ResourceId|null):PriceListRel;type():string;}export default PriceLists;export{PriceList,PriceListCreate,PriceListUpdate};
@@ -1,57 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { PriceList } from './price_lists';
4
- import type { Sku } from './skus';
5
- import type { Attachment } from './attachments';
6
- declare type PriceRel = ResourceRel & {
7
- type: typeof Prices.TYPE;
8
- };
9
- declare type PriceListRel = ResourceRel & {
10
- type: 'price_lists';
11
- };
12
- declare type SkuRel = ResourceRel & {
13
- type: 'skus';
14
- };
15
- interface Price extends Resource {
16
- currency_code?: string;
17
- sku_code?: string;
18
- amount_cents?: number;
19
- amount_float?: number;
20
- formatted_amount?: string;
21
- compare_at_amount_cents?: number;
22
- compare_at_amount_float?: number;
23
- formatted_compare_at_amount?: string;
24
- price_list?: PriceList;
25
- sku?: Sku;
26
- attachments?: Attachment[];
27
- }
28
- interface PriceCreate extends ResourceCreate {
29
- sku_code?: string;
30
- amount_cents: number;
31
- compare_at_amount_cents: number;
32
- price_list: PriceListRel;
33
- sku?: SkuRel;
34
- }
35
- interface PriceUpdate extends ResourceUpdate {
36
- sku_code?: string;
37
- amount_cents?: number;
38
- compare_at_amount_cents?: number;
39
- price_list?: PriceListRel;
40
- sku?: SkuRel;
41
- }
42
- declare class Prices extends ApiResource {
43
- static readonly TYPE: 'prices';
44
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
45
- create(resource: PriceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
46
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
47
- update(resource: PriceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
48
- delete(id: string, options?: ResourcesConfig): Promise<void>;
49
- price_list(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
50
- sku(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
51
- attachments(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
52
- isPrice(resource: any): resource is Price;
53
- relationship(id: string | ResourceId | null): PriceRel;
54
- type(): string;
55
- }
56
- export default Prices;
57
- export { Price, PriceCreate, PriceUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PriceList}from'./price_lists';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type PriceRel=ResourceRel&{type:typeof Prices.TYPE;};declare type PriceListRel=ResourceRel&{type:'price_lists';};declare type SkuRel=ResourceRel&{type:'skus';};interface Price extends Resource{currency_code?:string;sku_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;price_list?:PriceList;sku?:Sku;attachments?:Attachment[];}interface PriceCreate extends ResourceCreate{sku_code?:string;amount_cents:number;compare_at_amount_cents:number;price_list:PriceListRel;sku?:SkuRel;}interface PriceUpdate extends ResourceUpdate{sku_code?:string;amount_cents?:number;compare_at_amount_cents?:number;price_list?:PriceListRel;sku?:SkuRel;}declare class Prices extends ApiResource{static readonly TYPE:'prices';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;create(resource:PriceCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;update(resource:PriceUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Price>;delete(id:string,options?:ResourcesConfig):Promise<void>;price_list(priceId:string|Price,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;sku(priceId:string|Price,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(priceId:string|Price,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPrice(resource:any):resource is Price;relationship(id:string|ResourceId|null):PriceRel;type():string;}export default Prices;export{Price,PriceCreate,PriceUpdate};
@@ -1,24 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
4
- import type { FreeShippingPromotion } from './free_shipping_promotions';
5
- import type { FixedAmountPromotion } from './fixed_amount_promotions';
6
- import type { FreeGiftPromotion } from './free_gift_promotions';
7
- import type { FixedPricePromotion } from './fixed_price_promotions';
8
- import type { ExternalPromotion } from './external_promotions';
9
- declare type PromotionRuleRel = ResourceRel & {
10
- type: typeof PromotionRules.TYPE;
11
- };
12
- interface PromotionRule extends Resource {
13
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
14
- }
15
- declare class PromotionRules extends ApiResource {
16
- static readonly TYPE: 'promotion_rules';
17
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
18
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
19
- isPromotionRule(resource: any): resource is PromotionRule;
20
- relationship(id: string | ResourceId | null): PromotionRuleRel;
21
- type(): string;
22
- }
23
- export default PromotionRules;
24
- export { PromotionRule };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';declare type PromotionRuleRel=ResourceRel&{type:typeof PromotionRules.TYPE;};interface PromotionRule extends Resource{promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;}declare class PromotionRules extends ApiResource{static readonly TYPE:'promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PromotionRule>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PromotionRule>;isPromotionRule(resource:any):resource is PromotionRule;relationship(id:string|ResourceId|null):PromotionRuleRel;type():string;}export default PromotionRules;export{PromotionRule};
@@ -1,41 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Market } from './markets';
4
- import type { PromotionRule } from './promotion_rules';
5
- import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
6
- import type { SkuListPromotionRule } from './sku_list_promotion_rules';
7
- import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
8
- import type { Attachment } from './attachments';
9
- declare type PromotionRel = ResourceRel & {
10
- type: typeof Promotions.TYPE;
11
- };
12
- interface Promotion extends Resource {
13
- name?: string;
14
- currency_code?: string;
15
- starts_at?: string;
16
- expires_at?: string;
17
- total_usage_limit?: number;
18
- total_usage_count?: number;
19
- active?: boolean;
20
- market?: Market;
21
- promotion_rules?: PromotionRule[];
22
- order_amount_promotion_rule?: OrderAmountPromotionRule;
23
- sku_list_promotion_rule?: SkuListPromotionRule;
24
- coupon_codes_promotion_rule?: CouponCodesPromotionRule;
25
- attachments?: Attachment[];
26
- }
27
- declare class Promotions extends ApiResource {
28
- static readonly TYPE: 'promotions';
29
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
30
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
31
- market(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
32
- order_amount_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
33
- sku_list_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
34
- coupon_codes_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
35
- attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
36
- isPromotion(resource: any): resource is Promotion;
37
- relationship(id: string | ResourceId | null): PromotionRel;
38
- type(): string;
39
- }
40
- export default Promotions;
41
- export { Promotion };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type PromotionRel=ResourceRel&{type:typeof Promotions.TYPE;};interface Promotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];}declare class Promotions extends ApiResource{static readonly TYPE:'promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Promotion>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Promotion>;market(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isPromotion(resource:any):resource is Promotion;relationship(id:string|ResourceId|null):PromotionRel;type():string;}export default Promotions;export{Promotion};
@@ -1,34 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Order } from './orders';
4
- import type { Capture } from './captures';
5
- declare type RefundRel = ResourceRel & {
6
- type: typeof Refunds.TYPE;
7
- };
8
- interface Refund extends Resource {
9
- number?: string;
10
- currency_code?: string;
11
- amount_cents?: number;
12
- amount_float?: number;
13
- formatted_amount?: string;
14
- succeeded?: boolean;
15
- message?: string;
16
- error_code?: string;
17
- error_detail?: string;
18
- token?: string;
19
- gateway_transaction_id?: string;
20
- order?: Order;
21
- reference_capture?: Capture;
22
- }
23
- declare class Refunds extends ApiResource {
24
- static readonly TYPE: 'refunds';
25
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
26
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Refund>;
27
- order(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
28
- reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
29
- isRefund(resource: any): resource is Refund;
30
- relationship(id: string | ResourceId | null): RefundRel;
31
- type(): string;
32
- }
33
- export default Refunds;
34
- export { Refund };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Capture}from'./captures';declare type RefundRel=ResourceRel&{type:typeof Refunds.TYPE;};interface Refund extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;reference_capture?:Capture;}declare class Refunds extends ApiResource{static readonly TYPE:'refunds';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Refund>;order(refundId:string|Refund,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_capture(refundId:string|Refund,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;isRefund(resource:any):resource is Refund;relationship(id:string|ResourceId|null):RefundRel;type():string;}export default Refunds;export{Refund};