@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,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 FreeGiftPromotionRel = ResourceRel & {
12
- type: typeof FreeGiftPromotions.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 FreeGiftPromotion 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
- max_quantity?: 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 FreeGiftPromotionCreate extends ResourceCreate {
51
- name: string;
52
- currency_code?: string;
53
- starts_at: string;
54
- expires_at: string;
55
- total_usage_limit: number;
56
- max_quantity?: 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 FreeGiftPromotionUpdate extends ResourceUpdate {
65
- name?: string;
66
- currency_code?: string;
67
- starts_at?: string;
68
- expires_at?: string;
69
- total_usage_limit?: number;
70
- max_quantity?: 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 FreeGiftPromotions extends ApiResource {
79
- static readonly TYPE: 'free_gift_promotions';
80
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
81
- create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
82
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
83
- update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
84
- delete(id: string, options?: ResourcesConfig): Promise<void>;
85
- market(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
86
- order_amount_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
87
- sku_list_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
88
- coupon_codes_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
89
- attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
90
- sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
91
- skus(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
92
- isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
93
- relationship(id: string | ResourceId | null): FreeGiftPromotionRel;
94
- type(): string;
95
- }
96
- export default FreeGiftPromotions;
97
- export { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate };
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 FreeGiftPromotionRel=ResourceRel&{type:typeof FreeGiftPromotions.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 FreeGiftPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;max_quantity?: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 FreeGiftPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;max_quantity?: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 FreeGiftPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;max_quantity?: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 FreeGiftPromotions extends ApiResource{static readonly TYPE:'free_gift_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeGiftPromotion>>;create(resource:FreeGiftPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;update(resource:FreeGiftPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;sku_list(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFreeGiftPromotion(resource:any):resource is FreeGiftPromotion;relationship(id:string|ResourceId|null):FreeGiftPromotionRel;type():string;}export default FreeGiftPromotions;export{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate};
@@ -1,83 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Market } from './markets';
4
- import type { PromotionRule } from './promotion_rules';
5
- import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
6
- import type { SkuListPromotionRule } from './sku_list_promotion_rules';
7
- import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
8
- import type { Attachment } from './attachments';
9
- declare type FreeShippingPromotionRel = ResourceRel & {
10
- type: typeof FreeShippingPromotions.TYPE;
11
- };
12
- declare type MarketRel = ResourceRel & {
13
- type: 'markets';
14
- };
15
- declare type PromotionRuleRel = ResourceRel & {
16
- type: 'promotion_rules';
17
- };
18
- declare type OrderAmountPromotionRuleRel = ResourceRel & {
19
- type: 'order_amount_promotion_rules';
20
- };
21
- declare type SkuListPromotionRuleRel = ResourceRel & {
22
- type: 'sku_list_promotion_rules';
23
- };
24
- declare type CouponCodesPromotionRuleRel = ResourceRel & {
25
- type: 'coupon_codes_promotion_rules';
26
- };
27
- interface FreeShippingPromotion extends Resource {
28
- name?: string;
29
- currency_code?: string;
30
- starts_at?: string;
31
- expires_at?: string;
32
- total_usage_limit?: number;
33
- total_usage_count?: number;
34
- active?: boolean;
35
- market?: Market;
36
- promotion_rules?: PromotionRule[];
37
- order_amount_promotion_rule?: OrderAmountPromotionRule;
38
- sku_list_promotion_rule?: SkuListPromotionRule;
39
- coupon_codes_promotion_rule?: CouponCodesPromotionRule;
40
- attachments?: Attachment[];
41
- }
42
- interface FreeShippingPromotionCreate extends ResourceCreate {
43
- name: string;
44
- currency_code?: string;
45
- starts_at: string;
46
- expires_at: string;
47
- total_usage_limit: number;
48
- market?: MarketRel;
49
- promotion_rules?: PromotionRuleRel[];
50
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
51
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
52
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
53
- }
54
- interface FreeShippingPromotionUpdate extends ResourceUpdate {
55
- name?: string;
56
- currency_code?: string;
57
- starts_at?: string;
58
- expires_at?: string;
59
- total_usage_limit?: number;
60
- market?: MarketRel;
61
- promotion_rules?: PromotionRuleRel[];
62
- order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
63
- sku_list_promotion_rule?: SkuListPromotionRuleRel;
64
- coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
65
- }
66
- declare class FreeShippingPromotions extends ApiResource {
67
- static readonly TYPE: 'free_shipping_promotions';
68
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeShippingPromotion>>;
69
- create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
70
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
71
- update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
72
- delete(id: string, options?: ResourcesConfig): Promise<void>;
73
- market(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
74
- order_amount_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
75
- sku_list_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
76
- coupon_codes_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
77
- attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
78
- isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
79
- relationship(id: string | ResourceId | null): FreeShippingPromotionRel;
80
- type(): string;
81
- }
82
- export default FreeShippingPromotions;
83
- export { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type FreeShippingPromotionRel=ResourceRel&{type:typeof FreeShippingPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};interface FreeShippingPromotion 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[];}interface FreeShippingPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}interface FreeShippingPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}declare class FreeShippingPromotions extends ApiResource{static readonly TYPE:'free_shipping_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeShippingPromotion>>;create(resource:FreeShippingPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;update(resource:FreeShippingPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isFreeShippingPromotion(resource:any):resource is FreeShippingPromotion;relationship(id:string|ResourceId|null):FreeShippingPromotionRel;type():string;}export default FreeShippingPromotions;export{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate};
@@ -1,24 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Address } from './addresses';
4
- import type { Attachment } from './attachments';
5
- declare type GeocoderRel = ResourceRel & {
6
- type: typeof Geocoders.TYPE;
7
- };
8
- interface Geocoder extends Resource {
9
- name?: string;
10
- addresses?: Address[];
11
- attachments?: Attachment[];
12
- }
13
- declare class Geocoders extends ApiResource {
14
- static readonly TYPE: 'geocoders';
15
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
16
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Geocoder>;
17
- addresses(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
18
- attachments(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
19
- isGeocoder(resource: any): resource is Geocoder;
20
- relationship(id: string | ResourceId | null): GeocoderRel;
21
- type(): string;
22
- }
23
- export default Geocoders;
24
- export { Geocoder };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{Attachment}from'./attachments';declare type GeocoderRel=ResourceRel&{type:typeof Geocoders.TYPE;};interface Geocoder extends Resource{name?:string;addresses?:Address[];attachments?:Attachment[];}declare class Geocoders extends ApiResource{static readonly TYPE:'geocoders';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Geocoder>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Geocoder>;addresses(geocoderId:string|Geocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;attachments(geocoderId:string|Geocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGeocoder(resource:any):resource is Geocoder;relationship(id:string|ResourceId|null):GeocoderRel;type():string;}export default Geocoders;export{Geocoder};
@@ -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 GiftCardRecipientRel = ResourceRel & {
6
- type: typeof GiftCardRecipients.TYPE;
7
- };
8
- declare type CustomerRel = ResourceRel & {
9
- type: 'customers';
10
- };
11
- interface GiftCardRecipient extends Resource {
12
- email?: string;
13
- first_name?: string;
14
- last_name?: string;
15
- customer?: Customer;
16
- attachments?: Attachment[];
17
- }
18
- interface GiftCardRecipientCreate extends ResourceCreate {
19
- email: string;
20
- first_name?: string;
21
- last_name?: string;
22
- customer?: CustomerRel;
23
- }
24
- interface GiftCardRecipientUpdate extends ResourceUpdate {
25
- email?: string;
26
- first_name?: string;
27
- last_name?: string;
28
- customer?: CustomerRel;
29
- }
30
- declare class GiftCardRecipients extends ApiResource {
31
- static readonly TYPE: 'gift_card_recipients';
32
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCardRecipient>>;
33
- create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
34
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
35
- update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
36
- delete(id: string, options?: ResourcesConfig): Promise<void>;
37
- customer(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
38
- attachments(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
39
- isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
40
- relationship(id: string | ResourceId | null): GiftCardRecipientRel;
41
- type(): string;
42
- }
43
- export default GiftCardRecipients;
44
- export { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate };
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 GiftCardRecipientRel=ResourceRel&{type:typeof GiftCardRecipients.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};interface GiftCardRecipient extends Resource{email?:string;first_name?:string;last_name?:string;customer?:Customer;attachments?:Attachment[];}interface GiftCardRecipientCreate extends ResourceCreate{email:string;first_name?:string;last_name?:string;customer?:CustomerRel;}interface GiftCardRecipientUpdate extends ResourceUpdate{email?:string;first_name?:string;last_name?:string;customer?:CustomerRel;}declare class GiftCardRecipients extends ApiResource{static readonly TYPE:'gift_card_recipients';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GiftCardRecipient>>;create(resource:GiftCardRecipientCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;update(resource:GiftCardRecipientUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(giftCardRecipientId:string|GiftCardRecipient,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;attachments(giftCardRecipientId:string|GiftCardRecipient,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGiftCardRecipient(resource:any):resource is GiftCardRecipient;relationship(id:string|ResourceId|null):GiftCardRecipientRel;type():string;}export default GiftCardRecipients;export{GiftCardRecipient,GiftCardRecipientCreate,GiftCardRecipientUpdate};
@@ -1,82 +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 { GiftCardRecipient } from './gift_card_recipients';
5
- import type { Attachment } from './attachments';
6
- declare type GiftCardRel = ResourceRel & {
7
- type: typeof GiftCards.TYPE;
8
- };
9
- declare type MarketRel = ResourceRel & {
10
- type: 'markets';
11
- };
12
- declare type GiftCardRecipientRel = ResourceRel & {
13
- type: 'gift_card_recipients';
14
- };
15
- interface GiftCard extends Resource {
16
- status?: string;
17
- code?: string;
18
- currency_code?: string;
19
- initial_balance_cents?: number;
20
- initial_balance_float?: number;
21
- formatted_initial_balance?: string;
22
- balance_cents?: number;
23
- balance_float?: number;
24
- formatted_balance?: string;
25
- balance_max_cents?: string;
26
- balance_max_float?: number;
27
- formatted_balance_max?: string;
28
- balance_log?: object[];
29
- single_use?: boolean;
30
- rechargeable?: boolean;
31
- image_url?: string;
32
- expires_at?: string;
33
- recipient_email?: string;
34
- market?: Market;
35
- gift_card_recipient?: GiftCardRecipient;
36
- attachments?: Attachment[];
37
- }
38
- interface GiftCardCreate extends ResourceCreate {
39
- code?: string;
40
- currency_code?: string;
41
- balance_cents: number;
42
- balance_max_cents?: string;
43
- single_use?: boolean;
44
- rechargeable?: boolean;
45
- image_url?: string;
46
- expires_at?: string;
47
- recipient_email?: string;
48
- market?: MarketRel;
49
- gift_card_recipient?: GiftCardRecipientRel;
50
- }
51
- interface GiftCardUpdate extends ResourceUpdate {
52
- currency_code?: string;
53
- balance_cents?: number;
54
- balance_max_cents?: string;
55
- single_use?: boolean;
56
- rechargeable?: boolean;
57
- image_url?: string;
58
- expires_at?: string;
59
- recipient_email?: string;
60
- _purchase?: boolean;
61
- _activate?: boolean;
62
- _deactivate?: boolean;
63
- _balance_change_cents?: number;
64
- market?: MarketRel;
65
- gift_card_recipient?: GiftCardRecipientRel;
66
- }
67
- declare class GiftCards extends ApiResource {
68
- static readonly TYPE: 'gift_cards';
69
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCard>>;
70
- create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
71
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
72
- update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
73
- delete(id: string, options?: ResourcesConfig): Promise<void>;
74
- market(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
75
- gift_card_recipient(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
76
- attachments(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
77
- isGiftCard(resource: any): resource is GiftCard;
78
- relationship(id: string | ResourceId | null): GiftCardRel;
79
- type(): string;
80
- }
81
- export default GiftCards;
82
- export { GiftCard, GiftCardCreate, GiftCardUpdate };
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{GiftCardRecipient}from'./gift_card_recipients';import type{Attachment}from'./attachments';declare type GiftCardRel=ResourceRel&{type:typeof GiftCards.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type GiftCardRecipientRel=ResourceRel&{type:'gift_card_recipients';};interface GiftCard extends Resource{status?:string;code?:string;currency_code?:string;initial_balance_cents?:number;initial_balance_float?:number;formatted_initial_balance?:string;balance_cents?:number;balance_float?:number;formatted_balance?:string;balance_max_cents?:string;balance_max_float?:number;formatted_balance_max?:string;balance_log?:object[];single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:Market;gift_card_recipient?:GiftCardRecipient;attachments?:Attachment[];}interface GiftCardCreate extends ResourceCreate{code?:string;currency_code?:string;balance_cents:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string;balance_cents?:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;_purchase?:boolean;_activate?:boolean;_deactivate?:boolean;_balance_change_cents?:number;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}declare class GiftCards extends ApiResource{static readonly TYPE:'gift_cards';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GiftCard>>;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():string;}export default GiftCards;export{GiftCard,GiftCardCreate,GiftCardUpdate};
@@ -1,35 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Address } from './addresses';
4
- import type { Attachment } from './attachments';
5
- declare type GoogleGeocoderRel = ResourceRel & {
6
- type: typeof GoogleGeocoders.TYPE;
7
- };
8
- interface GoogleGeocoder extends Resource {
9
- name?: string;
10
- addresses?: Address[];
11
- attachments?: Attachment[];
12
- }
13
- interface GoogleGeocoderCreate extends ResourceCreate {
14
- name: string;
15
- api_key: string;
16
- }
17
- interface GoogleGeocoderUpdate extends ResourceUpdate {
18
- name?: string;
19
- api_key?: string;
20
- }
21
- declare class GoogleGeocoders extends ApiResource {
22
- static readonly TYPE: 'google_geocoders';
23
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GoogleGeocoder>>;
24
- create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
25
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
26
- update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
27
- delete(id: string, options?: ResourcesConfig): Promise<void>;
28
- addresses(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
29
- attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
30
- isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
31
- relationship(id: string | ResourceId | null): GoogleGeocoderRel;
32
- type(): string;
33
- }
34
- export default GoogleGeocoders;
35
- export { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{Attachment}from'./attachments';declare type GoogleGeocoderRel=ResourceRel&{type:typeof GoogleGeocoders.TYPE;};interface GoogleGeocoder extends Resource{name?:string;addresses?:Address[];attachments?:Attachment[];}interface GoogleGeocoderCreate extends ResourceCreate{name:string;api_key:string;}interface GoogleGeocoderUpdate extends ResourceUpdate{name?:string;api_key?:string;}declare class GoogleGeocoders extends ApiResource{static readonly TYPE:'google_geocoders';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GoogleGeocoder>>;create(resource:GoogleGeocoderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;update(resource:GoogleGeocoderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;delete(id:string,options?:ResourcesConfig):Promise<void>;addresses(googleGeocoderId:string|GoogleGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;attachments(googleGeocoderId:string|GoogleGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGoogleGeocoder(resource:any):resource is GoogleGeocoder;relationship(id:string|ResourceId|null):GoogleGeocoderRel;type():string;}export default GoogleGeocoders;export{GoogleGeocoder,GoogleGeocoderCreate,GoogleGeocoderUpdate};
@@ -1,40 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- declare type ImportRel = ResourceRel & {
4
- type: typeof Imports.TYPE;
5
- };
6
- interface Import extends Resource {
7
- resource_type?: string;
8
- parent_resource_id?: string;
9
- status?: string;
10
- started_at?: string;
11
- completed_at?: string;
12
- interrupted_at?: string;
13
- inputs?: object[];
14
- inputs_size?: number;
15
- errors_count?: number;
16
- warnings_count?: number;
17
- destroyed_count?: number;
18
- processed_count?: number;
19
- errors_log?: object;
20
- warnings_log?: object;
21
- cleanup_records?: boolean;
22
- }
23
- interface ImportCreate extends ResourceCreate {
24
- resource_type: string;
25
- parent_resource_id?: string;
26
- inputs: object[];
27
- cleanup_records?: boolean;
28
- }
29
- declare class Imports extends ApiResource {
30
- static readonly TYPE: 'imports';
31
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Import>>;
32
- create(resource: ImportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
33
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
34
- delete(id: string, options?: ResourcesConfig): Promise<void>;
35
- isImport(resource: any): resource is Import;
36
- relationship(id: string | ResourceId | null): ImportRel;
37
- type(): string;
38
- }
39
- export default Imports;
40
- export { Import, ImportCreate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';declare type ImportRel=ResourceRel&{type:typeof Imports.TYPE;};interface Import extends Resource{resource_type?:string;parent_resource_id?:string;status?:string;started_at?:string;completed_at?:string;interrupted_at?:string;inputs?:object[];inputs_size?:number;errors_count?:number;warnings_count?:number;destroyed_count?:number;processed_count?:number;errors_log?:object;warnings_log?:object;cleanup_records?:boolean;}interface ImportCreate extends ResourceCreate{resource_type:string;parent_resource_id?:string;inputs:object[];cleanup_records?:boolean;}declare class Imports extends ApiResource{static readonly TYPE:'imports';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Import>>;create(resource:ImportCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;delete(id:string,options?:ResourcesConfig):Promise<void>;isImport(resource:any):resource is Import;relationship(id:string|ResourceId|null):ImportRel;type():string;}export default Imports;export{Import,ImportCreate};
@@ -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 { Customer } from './customers';
5
- import type { Sku } from './skus';
6
- declare type InStockSubscriptionRel = ResourceRel & {
7
- type: typeof InStockSubscriptions.TYPE;
8
- };
9
- declare type MarketRel = ResourceRel & {
10
- type: 'markets';
11
- };
12
- declare type CustomerRel = ResourceRel & {
13
- type: 'customers';
14
- };
15
- declare type SkuRel = ResourceRel & {
16
- type: 'skus';
17
- };
18
- interface InStockSubscription extends Resource {
19
- status?: string;
20
- customer_email?: string;
21
- sku_code?: string;
22
- stock_threshold?: number;
23
- market?: Market;
24
- customer?: Customer;
25
- sku?: Sku;
26
- }
27
- interface InStockSubscriptionCreate extends ResourceCreate {
28
- customer_email?: string;
29
- sku_code?: string;
30
- stock_threshold?: number;
31
- market: MarketRel;
32
- customer: CustomerRel;
33
- sku: SkuRel;
34
- }
35
- interface InStockSubscriptionUpdate extends ResourceUpdate {
36
- sku_code?: string;
37
- stock_threshold?: number;
38
- _activate?: boolean;
39
- _deactivate?: boolean;
40
- market?: MarketRel;
41
- customer?: CustomerRel;
42
- sku?: SkuRel;
43
- }
44
- declare class InStockSubscriptions extends ApiResource {
45
- static readonly TYPE: 'in_stock_subscriptions';
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InStockSubscription>>;
47
- create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
48
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
49
- update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
50
- delete(id: string, options?: ResourcesConfig): Promise<void>;
51
- market(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
52
- customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
53
- sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
54
- isInStockSubscription(resource: any): resource is InStockSubscription;
55
- relationship(id: string | ResourceId | null): InStockSubscriptionRel;
56
- type(): string;
57
- }
58
- export default InStockSubscriptions;
59
- export { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate };
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{Customer}from'./customers';import type{Sku}from'./skus';declare type InStockSubscriptionRel=ResourceRel&{type:typeof InStockSubscriptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type CustomerRel=ResourceRel&{type:'customers';};declare type SkuRel=ResourceRel&{type:'skus';};interface InStockSubscription extends Resource{status?:string;customer_email?:string;sku_code?:string;stock_threshold?:number;market?:Market;customer?:Customer;sku?:Sku;}interface InStockSubscriptionCreate extends ResourceCreate{customer_email?:string;sku_code?:string;stock_threshold?:number;market:MarketRel;customer:CustomerRel;sku:SkuRel;}interface InStockSubscriptionUpdate extends ResourceUpdate{sku_code?:string;stock_threshold?:number;_activate?:boolean;_deactivate?:boolean;market?:MarketRel;customer?:CustomerRel;sku?:SkuRel;}declare class InStockSubscriptions extends ApiResource{static readonly TYPE:'in_stock_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InStockSubscription>>;create(resource:InStockSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;update(resource:InStockSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;sku(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;isInStockSubscription(resource:any):resource is InStockSubscription;relationship(id:string|ResourceId|null):InStockSubscriptionRel;type():string;}export default InStockSubscriptions;export{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate};
@@ -1,42 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { InventoryStockLocation } from './inventory_stock_locations';
4
- import type { InventoryReturnLocation } from './inventory_return_locations';
5
- import type { Attachment } from './attachments';
6
- declare type InventoryModelRel = ResourceRel & {
7
- type: typeof InventoryModels.TYPE;
8
- };
9
- interface InventoryModel extends Resource {
10
- name?: string;
11
- strategy?: string;
12
- stock_locations_cutoff?: number;
13
- inventory_stock_locations?: InventoryStockLocation[];
14
- inventory_return_locations?: InventoryReturnLocation[];
15
- attachments?: Attachment[];
16
- }
17
- interface InventoryModelCreate extends ResourceCreate {
18
- name: string;
19
- strategy: string;
20
- stock_locations_cutoff?: number;
21
- }
22
- interface InventoryModelUpdate extends ResourceUpdate {
23
- name?: string;
24
- strategy?: string;
25
- stock_locations_cutoff?: number;
26
- }
27
- declare class InventoryModels extends ApiResource {
28
- static readonly TYPE: 'inventory_models';
29
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryModel>>;
30
- create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
31
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
32
- update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
33
- delete(id: string, options?: ResourcesConfig): Promise<void>;
34
- inventory_stock_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
35
- inventory_return_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
36
- attachments(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
37
- isInventoryModel(resource: any): resource is InventoryModel;
38
- relationship(id: string | ResourceId | null): InventoryModelRel;
39
- type(): string;
40
- }
41
- export default InventoryModels;
42
- export { InventoryModel, InventoryModelCreate, InventoryModelUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{Attachment}from'./attachments';declare type InventoryModelRel=ResourceRel&{type:typeof InventoryModels.TYPE;};interface InventoryModel extends Resource{name?:string;strategy?:string;stock_locations_cutoff?:number;inventory_stock_locations?:InventoryStockLocation[];inventory_return_locations?:InventoryReturnLocation[];attachments?:Attachment[];}interface InventoryModelCreate extends ResourceCreate{name:string;strategy:string;stock_locations_cutoff?:number;}interface InventoryModelUpdate extends ResourceUpdate{name?:string;strategy?:string;stock_locations_cutoff?:number;}declare class InventoryModels extends ApiResource{static readonly TYPE:'inventory_models';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryModel>>;create(resource:InventoryModelCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;update(resource:InventoryModelUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;delete(id:string,options?:ResourcesConfig):Promise<void>;inventory_stock_locations(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;inventory_return_locations(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;attachments(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isInventoryModel(resource:any):resource is InventoryModel;relationship(id:string|ResourceId|null):InventoryModelRel;type():string;}export default InventoryModels;export{InventoryModel,InventoryModelCreate,InventoryModelUpdate};
@@ -1,43 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { StockLocation } from './stock_locations';
4
- import type { InventoryModel } from './inventory_models';
5
- declare type InventoryReturnLocationRel = ResourceRel & {
6
- type: typeof InventoryReturnLocations.TYPE;
7
- };
8
- declare type StockLocationRel = ResourceRel & {
9
- type: 'stock_locations';
10
- };
11
- declare type InventoryModelRel = ResourceRel & {
12
- type: 'inventory_models';
13
- };
14
- interface InventoryReturnLocation extends Resource {
15
- priority?: number;
16
- stock_location?: StockLocation;
17
- inventory_model?: InventoryModel;
18
- }
19
- interface InventoryReturnLocationCreate extends ResourceCreate {
20
- priority: number;
21
- stock_location: StockLocationRel;
22
- inventory_model: InventoryModelRel;
23
- }
24
- interface InventoryReturnLocationUpdate extends ResourceUpdate {
25
- priority?: number;
26
- stock_location?: StockLocationRel;
27
- inventory_model?: InventoryModelRel;
28
- }
29
- declare class InventoryReturnLocations extends ApiResource {
30
- static readonly TYPE: 'inventory_return_locations';
31
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
32
- create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
33
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
34
- update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
35
- delete(id: string, options?: ResourcesConfig): Promise<void>;
36
- stock_location(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
37
- inventory_model(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
38
- isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
39
- relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
40
- type(): string;
41
- }
42
- export default InventoryReturnLocations;
43
- export { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{InventoryModel}from'./inventory_models';declare type InventoryReturnLocationRel=ResourceRel&{type:typeof InventoryReturnLocations.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};interface InventoryReturnLocation extends Resource{priority?:number;stock_location?:StockLocation;inventory_model?:InventoryModel;}interface InventoryReturnLocationCreate extends ResourceCreate{priority:number;stock_location:StockLocationRel;inventory_model:InventoryModelRel;}interface InventoryReturnLocationUpdate extends ResourceUpdate{priority?:number;stock_location?:StockLocationRel;inventory_model?:InventoryModelRel;}declare class InventoryReturnLocations extends ApiResource{static readonly TYPE:'inventory_return_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;create(resource:InventoryReturnLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;update(resource:InventoryReturnLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(inventoryReturnLocationId:string|InventoryReturnLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;inventory_model(inventoryReturnLocationId:string|InventoryReturnLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;isInventoryReturnLocation(resource:any):resource is InventoryReturnLocation;relationship(id:string|ResourceId|null):InventoryReturnLocationRel;type():string;}export default InventoryReturnLocations;export{InventoryReturnLocation,InventoryReturnLocationCreate,InventoryReturnLocationUpdate};