@commercelayer/sdk 4.7.5 → 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 (225) 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/common.d.ts +1 -4
  5. package/lib/cjs/config.d.ts +1 -11
  6. package/lib/cjs/debug.d.ts +1 -3
  7. package/lib/cjs/error.d.ts +1 -26
  8. package/lib/cjs/index.d.ts +1 -7
  9. package/lib/cjs/interceptor.d.ts +1 -19
  10. package/lib/cjs/jsonapi.d.ts +1 -5
  11. package/lib/cjs/model.d.ts +1 -101
  12. package/lib/cjs/query.d.ts +1 -23
  13. package/lib/cjs/resource.d.ts +1 -76
  14. package/lib/cjs/resources/addresses.d.ts +1 -88
  15. package/lib/cjs/resources/adjustments.d.ts +1 -35
  16. package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
  17. package/lib/cjs/resources/adyen_payments.d.ts +1 -44
  18. package/lib/cjs/resources/application.d.ts +1 -21
  19. package/lib/cjs/resources/attachments.d.ts +1 -156
  20. package/lib/cjs/resources/authorizations.d.ts +1 -57
  21. package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
  22. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
  23. package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
  24. package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
  25. package/lib/cjs/resources/braintree_payments.d.ts +1 -47
  26. package/lib/cjs/resources/bundles.d.ts +1 -74
  27. package/lib/cjs/resources/captures.d.ts +1 -48
  28. package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
  29. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
  30. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
  31. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
  32. package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
  33. package/lib/cjs/resources/coupons.d.ts +1 -45
  34. package/lib/cjs/resources/customer_addresses.d.ts +1 -41
  35. package/lib/cjs/resources/customer_groups.d.ts +1 -36
  36. package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
  37. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
  38. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
  39. package/lib/cjs/resources/customers.d.ts +1 -60
  40. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
  41. package/lib/cjs/resources/event_callbacks.d.ts +1 -24
  42. package/lib/cjs/resources/external_gateways.d.ts +1 -49
  43. package/lib/cjs/resources/external_payments.d.ts +1 -43
  44. package/lib/cjs/resources/external_promotions.d.ts +1 -86
  45. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
  46. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
  47. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
  48. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
  49. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
  50. package/lib/cjs/resources/geocoders.d.ts +1 -24
  51. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
  52. package/lib/cjs/resources/gift_cards.d.ts +1 -82
  53. package/lib/cjs/resources/google_geocoders.d.ts +1 -35
  54. package/lib/cjs/resources/imports.d.ts +1 -40
  55. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
  56. package/lib/cjs/resources/inventory_models.d.ts +1 -42
  57. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
  58. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
  59. package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
  60. package/lib/cjs/resources/klarna_payments.d.ts +1 -41
  61. package/lib/cjs/resources/line_item_options.d.ts +1 -57
  62. package/lib/cjs/resources/line_items.d.ts +1 -125
  63. package/lib/cjs/resources/manual_gateways.d.ts +1 -33
  64. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
  65. package/lib/cjs/resources/markets.d.ts +1 -81
  66. package/lib/cjs/resources/merchants.d.ts +1 -38
  67. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
  68. package/lib/cjs/resources/order_copies.d.ts +1 -45
  69. package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
  70. package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
  71. package/lib/cjs/resources/orders.d.ts +1 -271
  72. package/lib/cjs/resources/organization.d.ts +1 -32
  73. package/lib/cjs/resources/packages.d.ts +1 -56
  74. package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
  75. package/lib/cjs/resources/parcels.d.ts +1 -108
  76. package/lib/cjs/resources/payment_gateways.d.ts +1 -21
  77. package/lib/cjs/resources/payment_methods.d.ts +1 -59
  78. package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
  79. package/lib/cjs/resources/paypal_payments.d.ts +1 -49
  80. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
  81. package/lib/cjs/resources/price_lists.d.ts +1 -39
  82. package/lib/cjs/resources/prices.d.ts +1 -57
  83. package/lib/cjs/resources/promotion_rules.d.ts +1 -24
  84. package/lib/cjs/resources/promotions.d.ts +1 -41
  85. package/lib/cjs/resources/refunds.d.ts +1 -34
  86. package/lib/cjs/resources/return_line_items.d.ts +1 -49
  87. package/lib/cjs/resources/returns.d.ts +1 -72
  88. package/lib/cjs/resources/shipments.d.ts +1 -89
  89. package/lib/cjs/resources/shipping_categories.d.ts +1 -33
  90. package/lib/cjs/resources/shipping_methods.d.ts +1 -74
  91. package/lib/cjs/resources/shipping_zones.d.ts +1 -48
  92. package/lib/cjs/resources/sku_list_items.d.ts +1 -47
  93. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
  94. package/lib/cjs/resources/sku_lists.d.ts +1 -49
  95. package/lib/cjs/resources/sku_options.d.ts +1 -56
  96. package/lib/cjs/resources/skus.d.ts +1 -78
  97. package/lib/cjs/resources/stock_items.d.ts +1 -49
  98. package/lib/cjs/resources/stock_line_items.d.ts +1 -29
  99. package/lib/cjs/resources/stock_locations.d.ts +1 -57
  100. package/lib/cjs/resources/stock_transfers.d.ts +1 -71
  101. package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
  102. package/lib/cjs/resources/stripe_payments.d.ts +1 -42
  103. package/lib/cjs/resources/tax_calculators.d.ts +1 -27
  104. package/lib/cjs/resources/tax_categories.d.ts +1 -59
  105. package/lib/cjs/resources/tax_rules.d.ts +1 -69
  106. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
  107. package/lib/cjs/resources/transactions.d.ts +1 -31
  108. package/lib/cjs/resources/voids.d.ts +1 -34
  109. package/lib/cjs/resources/webhooks.d.ts +1 -42
  110. package/lib/cjs/resources/wire_transfers.d.ts +1 -32
  111. package/lib/cjs/static.d.ts +1 -6
  112. package/lib/cjs/util.d.ts +1 -2
  113. package/lib/esm/api.d.ts +1 -103
  114. package/lib/esm/client.d.ts +1 -31
  115. package/lib/esm/commercelayer.d.ts +1 -122
  116. package/lib/esm/common.d.ts +1 -4
  117. package/lib/esm/config.d.ts +1 -11
  118. package/lib/esm/debug.d.ts +1 -3
  119. package/lib/esm/error.d.ts +1 -26
  120. package/lib/esm/index.d.ts +1 -7
  121. package/lib/esm/interceptor.d.ts +1 -19
  122. package/lib/esm/jsonapi.d.ts +1 -5
  123. package/lib/esm/model.d.ts +1 -101
  124. package/lib/esm/query.d.ts +1 -23
  125. package/lib/esm/resource.d.ts +1 -76
  126. package/lib/esm/resources/addresses.d.ts +1 -88
  127. package/lib/esm/resources/adjustments.d.ts +1 -35
  128. package/lib/esm/resources/adyen_gateways.d.ts +1 -47
  129. package/lib/esm/resources/adyen_payments.d.ts +1 -44
  130. package/lib/esm/resources/application.d.ts +1 -21
  131. package/lib/esm/resources/attachments.d.ts +1 -156
  132. package/lib/esm/resources/authorizations.d.ts +1 -57
  133. package/lib/esm/resources/avalara_accounts.d.ts +1 -52
  134. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
  135. package/lib/esm/resources/bing_geocoders.d.ts +1 -35
  136. package/lib/esm/resources/braintree_gateways.d.ts +1 -56
  137. package/lib/esm/resources/braintree_payments.d.ts +1 -47
  138. package/lib/esm/resources/bundles.d.ts +1 -74
  139. package/lib/esm/resources/captures.d.ts +1 -48
  140. package/lib/esm/resources/carrier_accounts.d.ts +1 -26
  141. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
  142. package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
  143. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
  144. package/lib/esm/resources/coupon_recipients.d.ts +1 -44
  145. package/lib/esm/resources/coupons.d.ts +1 -45
  146. package/lib/esm/resources/customer_addresses.d.ts +1 -41
  147. package/lib/esm/resources/customer_groups.d.ts +1 -36
  148. package/lib/esm/resources/customer_password_resets.d.ts +1 -33
  149. package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
  150. package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
  151. package/lib/esm/resources/customers.d.ts +1 -60
  152. package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
  153. package/lib/esm/resources/event_callbacks.d.ts +1 -24
  154. package/lib/esm/resources/external_gateways.d.ts +1 -49
  155. package/lib/esm/resources/external_payments.d.ts +1 -43
  156. package/lib/esm/resources/external_promotions.d.ts +1 -86
  157. package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
  158. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
  159. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
  160. package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
  161. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
  162. package/lib/esm/resources/geocoders.d.ts +1 -24
  163. package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
  164. package/lib/esm/resources/gift_cards.d.ts +1 -82
  165. package/lib/esm/resources/google_geocoders.d.ts +1 -35
  166. package/lib/esm/resources/imports.d.ts +1 -40
  167. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
  168. package/lib/esm/resources/inventory_models.d.ts +1 -42
  169. package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
  170. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
  171. package/lib/esm/resources/klarna_gateways.d.ts +1 -44
  172. package/lib/esm/resources/klarna_payments.d.ts +1 -41
  173. package/lib/esm/resources/line_item_options.d.ts +1 -57
  174. package/lib/esm/resources/line_items.d.ts +1 -125
  175. package/lib/esm/resources/manual_gateways.d.ts +1 -33
  176. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
  177. package/lib/esm/resources/markets.d.ts +1 -81
  178. package/lib/esm/resources/merchants.d.ts +1 -38
  179. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
  180. package/lib/esm/resources/order_copies.d.ts +1 -45
  181. package/lib/esm/resources/order_subscriptions.d.ts +1 -67
  182. package/lib/esm/resources/order_validation_rules.d.ts +1 -20
  183. package/lib/esm/resources/orders.d.ts +1 -271
  184. package/lib/esm/resources/organization.d.ts +1 -32
  185. package/lib/esm/resources/packages.d.ts +1 -56
  186. package/lib/esm/resources/parcel_line_items.d.ts +1 -49
  187. package/lib/esm/resources/parcels.d.ts +1 -108
  188. package/lib/esm/resources/payment_gateways.d.ts +1 -21
  189. package/lib/esm/resources/payment_methods.d.ts +1 -59
  190. package/lib/esm/resources/paypal_gateways.d.ts +1 -39
  191. package/lib/esm/resources/paypal_payments.d.ts +1 -49
  192. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
  193. package/lib/esm/resources/price_lists.d.ts +1 -39
  194. package/lib/esm/resources/prices.d.ts +1 -57
  195. package/lib/esm/resources/promotion_rules.d.ts +1 -24
  196. package/lib/esm/resources/promotions.d.ts +1 -41
  197. package/lib/esm/resources/refunds.d.ts +1 -34
  198. package/lib/esm/resources/return_line_items.d.ts +1 -49
  199. package/lib/esm/resources/returns.d.ts +1 -72
  200. package/lib/esm/resources/shipments.d.ts +1 -89
  201. package/lib/esm/resources/shipping_categories.d.ts +1 -33
  202. package/lib/esm/resources/shipping_methods.d.ts +1 -74
  203. package/lib/esm/resources/shipping_zones.d.ts +1 -48
  204. package/lib/esm/resources/sku_list_items.d.ts +1 -47
  205. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
  206. package/lib/esm/resources/sku_lists.d.ts +1 -49
  207. package/lib/esm/resources/sku_options.d.ts +1 -56
  208. package/lib/esm/resources/skus.d.ts +1 -78
  209. package/lib/esm/resources/stock_items.d.ts +1 -49
  210. package/lib/esm/resources/stock_line_items.d.ts +1 -29
  211. package/lib/esm/resources/stock_locations.d.ts +1 -57
  212. package/lib/esm/resources/stock_transfers.d.ts +1 -71
  213. package/lib/esm/resources/stripe_gateways.d.ts +1 -38
  214. package/lib/esm/resources/stripe_payments.d.ts +1 -42
  215. package/lib/esm/resources/tax_calculators.d.ts +1 -27
  216. package/lib/esm/resources/tax_categories.d.ts +1 -59
  217. package/lib/esm/resources/tax_rules.d.ts +1 -69
  218. package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
  219. package/lib/esm/resources/transactions.d.ts +1 -31
  220. package/lib/esm/resources/voids.d.ts +1 -34
  221. package/lib/esm/resources/webhooks.d.ts +1 -42
  222. package/lib/esm/resources/wire_transfers.d.ts +1 -32
  223. package/lib/esm/static.d.ts +1 -6
  224. package/lib/esm/util.d.ts +1 -2
  225. package/package.json +3 -3
@@ -1,101 +1 @@
1
- /**
2
- * ©2022 Commerce Layer Inc.
3
- * OpenAPI schema, version 2.9.0
4
- **/
5
- export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
6
- export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
7
- export type { AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate } from './resources/adyen_gateways';
8
- export type { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate } from './resources/adyen_payments';
9
- export type { Application } from './resources/application';
10
- export type { Attachment, AttachmentCreate, AttachmentUpdate } from './resources/attachments';
11
- export type { Authorization, AuthorizationUpdate } from './resources/authorizations';
12
- export type { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate } from './resources/avalara_accounts';
13
- export type { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate } from './resources/billing_info_validation_rules';
14
- export type { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate } from './resources/bing_geocoders';
15
- export type { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate } from './resources/braintree_gateways';
16
- export type { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate } from './resources/braintree_payments';
17
- export type { Bundle, BundleCreate, BundleUpdate } from './resources/bundles';
18
- export type { Capture, CaptureUpdate } from './resources/captures';
19
- export type { CarrierAccount } from './resources/carrier_accounts';
20
- export type { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate } from './resources/checkout_com_gateways';
21
- export type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate } from './resources/checkout_com_payments';
22
- export type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate } from './resources/coupon_codes_promotion_rules';
23
- export type { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate } from './resources/coupon_recipients';
24
- export type { Coupon, CouponCreate, CouponUpdate } from './resources/coupons';
25
- export type { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate } from './resources/customer_addresses';
26
- export type { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate } from './resources/customer_groups';
27
- export type { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate } from './resources/customer_password_resets';
28
- export type { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSourceUpdate } from './resources/customer_payment_sources';
29
- export type { CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate } from './resources/customer_subscriptions';
30
- export type { Customer, CustomerCreate, CustomerUpdate } from './resources/customers';
31
- export type { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate } from './resources/delivery_lead_times';
32
- export type { EventCallback } from './resources/event_callbacks';
33
- export type { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate } from './resources/external_gateways';
34
- export type { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate } from './resources/external_payments';
35
- export type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate } from './resources/external_promotions';
36
- export type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate } from './resources/external_tax_calculators';
37
- export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate } from './resources/fixed_amount_promotions';
38
- export type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate } from './resources/fixed_price_promotions';
39
- export type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate } from './resources/free_gift_promotions';
40
- export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate } from './resources/free_shipping_promotions';
41
- export type { Geocoder } from './resources/geocoders';
42
- export type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate } from './resources/gift_card_recipients';
43
- export type { GiftCard, GiftCardCreate, GiftCardUpdate } from './resources/gift_cards';
44
- export type { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate } from './resources/google_geocoders';
45
- export type { Import, ImportCreate } from './resources/imports';
46
- export type { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate } from './resources/in_stock_subscriptions';
47
- export type { InventoryModel, InventoryModelCreate, InventoryModelUpdate } from './resources/inventory_models';
48
- export type { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate } from './resources/inventory_return_locations';
49
- export type { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate } from './resources/inventory_stock_locations';
50
- export type { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate } from './resources/klarna_gateways';
51
- export type { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate } from './resources/klarna_payments';
52
- export type { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate } from './resources/line_item_options';
53
- export type { LineItem, LineItemCreate, LineItemUpdate } from './resources/line_items';
54
- export type { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate } from './resources/manual_gateways';
55
- export type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate } from './resources/manual_tax_calculators';
56
- export type { Market, MarketCreate, MarketUpdate } from './resources/markets';
57
- export type { Merchant, MerchantCreate, MerchantUpdate } from './resources/merchants';
58
- export type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate } from './resources/order_amount_promotion_rules';
59
- export type { OrderCopy, OrderCopyCreate } from './resources/order_copies';
60
- export type { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate } from './resources/order_subscriptions';
61
- export type { OrderValidationRule } from './resources/order_validation_rules';
62
- export type { Order, OrderCreate, OrderUpdate } from './resources/orders';
63
- export type { Organization } from './resources/organization';
64
- export type { Package, PackageCreate, PackageUpdate } from './resources/packages';
65
- export type { ParcelLineItem, ParcelLineItemCreate, ParcelLineItemUpdate } from './resources/parcel_line_items';
66
- export type { Parcel, ParcelCreate, ParcelUpdate } from './resources/parcels';
67
- export type { PaymentGateway } from './resources/payment_gateways';
68
- export type { PaymentMethod, PaymentMethodCreate, PaymentMethodUpdate } from './resources/payment_methods';
69
- export type { PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate } from './resources/paypal_gateways';
70
- export type { PaypalPayment, PaypalPaymentCreate, PaypalPaymentUpdate } from './resources/paypal_payments';
71
- export type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotionUpdate } from './resources/percentage_discount_promotions';
72
- export type { PriceList, PriceListCreate, PriceListUpdate } from './resources/price_lists';
73
- export type { Price, PriceCreate, PriceUpdate } from './resources/prices';
74
- export type { PromotionRule } from './resources/promotion_rules';
75
- export type { Promotion } from './resources/promotions';
76
- export type { Refund } from './resources/refunds';
77
- export type { ReturnLineItem, ReturnLineItemCreate, ReturnLineItemUpdate } from './resources/return_line_items';
78
- export type { Return, ReturnCreate, ReturnUpdate } from './resources/returns';
79
- export type { Shipment, ShipmentUpdate } from './resources/shipments';
80
- export type { ShippingCategory, ShippingCategoryCreate, ShippingCategoryUpdate } from './resources/shipping_categories';
81
- export type { ShippingMethod, ShippingMethodCreate, ShippingMethodUpdate } from './resources/shipping_methods';
82
- export type { ShippingZone, ShippingZoneCreate, ShippingZoneUpdate } from './resources/shipping_zones';
83
- export type { SkuListItem, SkuListItemCreate, SkuListItemUpdate } from './resources/sku_list_items';
84
- export type { SkuListPromotionRule, SkuListPromotionRuleCreate, SkuListPromotionRuleUpdate } from './resources/sku_list_promotion_rules';
85
- export type { SkuList, SkuListCreate, SkuListUpdate } from './resources/sku_lists';
86
- export type { SkuOption, SkuOptionCreate, SkuOptionUpdate } from './resources/sku_options';
87
- export type { Sku, SkuCreate, SkuUpdate } from './resources/skus';
88
- export type { StockItem, StockItemCreate, StockItemUpdate } from './resources/stock_items';
89
- export type { StockLineItem } from './resources/stock_line_items';
90
- export type { StockLocation, StockLocationCreate, StockLocationUpdate } from './resources/stock_locations';
91
- export type { StockTransfer, StockTransferCreate, StockTransferUpdate } from './resources/stock_transfers';
92
- export type { StripeGateway, StripeGatewayCreate, StripeGatewayUpdate } from './resources/stripe_gateways';
93
- export type { StripePayment, StripePaymentCreate, StripePaymentUpdate } from './resources/stripe_payments';
94
- export type { TaxCalculator } from './resources/tax_calculators';
95
- export type { TaxCategory, TaxCategoryCreate, TaxCategoryUpdate } from './resources/tax_categories';
96
- export type { TaxRule, TaxRuleCreate, TaxRuleUpdate } from './resources/tax_rules';
97
- export type { TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate } from './resources/taxjar_accounts';
98
- export type { Transaction } from './resources/transactions';
99
- export type { Void } from './resources/voids';
100
- export type { Webhook, WebhookCreate, WebhookUpdate } from './resources/webhooks';
101
- export type { WireTransfer, WireTransferCreate, WireTransferUpdate } from './resources/wire_transfers';
1
+ export type{Address,AddressCreate,AddressUpdate}from'./resources/addresses';export type{Adjustment,AdjustmentCreate,AdjustmentUpdate}from'./resources/adjustments';export type{AdyenGateway,AdyenGatewayCreate,AdyenGatewayUpdate}from'./resources/adyen_gateways';export type{AdyenPayment,AdyenPaymentCreate,AdyenPaymentUpdate}from'./resources/adyen_payments';export type{Application}from'./resources/application';export type{Attachment,AttachmentCreate,AttachmentUpdate}from'./resources/attachments';export type{Authorization,AuthorizationUpdate}from'./resources/authorizations';export type{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate}from'./resources/avalara_accounts';export type{BillingInfoValidationRule,BillingInfoValidationRuleCreate,BillingInfoValidationRuleUpdate}from'./resources/billing_info_validation_rules';export type{BingGeocoder,BingGeocoderCreate,BingGeocoderUpdate}from'./resources/bing_geocoders';export type{BraintreeGateway,BraintreeGatewayCreate,BraintreeGatewayUpdate}from'./resources/braintree_gateways';export type{BraintreePayment,BraintreePaymentCreate,BraintreePaymentUpdate}from'./resources/braintree_payments';export type{Bundle,BundleCreate,BundleUpdate}from'./resources/bundles';export type{Capture,CaptureUpdate}from'./resources/captures';export type{CarrierAccount}from'./resources/carrier_accounts';export type{CheckoutComGateway,CheckoutComGatewayCreate,CheckoutComGatewayUpdate}from'./resources/checkout_com_gateways';export type{CheckoutComPayment,CheckoutComPaymentCreate,CheckoutComPaymentUpdate}from'./resources/checkout_com_payments';export type{CouponCodesPromotionRule,CouponCodesPromotionRuleCreate,CouponCodesPromotionRuleUpdate}from'./resources/coupon_codes_promotion_rules';export type{CouponRecipient,CouponRecipientCreate,CouponRecipientUpdate}from'./resources/coupon_recipients';export type{Coupon,CouponCreate,CouponUpdate}from'./resources/coupons';export type{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate}from'./resources/customer_addresses';export type{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate}from'./resources/customer_groups';export type{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate}from'./resources/customer_password_resets';export type{CustomerPaymentSource,CustomerPaymentSourceCreate,CustomerPaymentSourceUpdate}from'./resources/customer_payment_sources';export type{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate}from'./resources/customer_subscriptions';export type{Customer,CustomerCreate,CustomerUpdate}from'./resources/customers';export type{DeliveryLeadTime,DeliveryLeadTimeCreate,DeliveryLeadTimeUpdate}from'./resources/delivery_lead_times';export type{EventCallback}from'./resources/event_callbacks';export type{ExternalGateway,ExternalGatewayCreate,ExternalGatewayUpdate}from'./resources/external_gateways';export type{ExternalPayment,ExternalPaymentCreate,ExternalPaymentUpdate}from'./resources/external_payments';export type{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate}from'./resources/external_promotions';export type{ExternalTaxCalculator,ExternalTaxCalculatorCreate,ExternalTaxCalculatorUpdate}from'./resources/external_tax_calculators';export type{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate}from'./resources/fixed_amount_promotions';export type{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate}from'./resources/fixed_price_promotions';export type{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate}from'./resources/free_gift_promotions';export type{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate}from'./resources/free_shipping_promotions';export type{Geocoder}from'./resources/geocoders';export type{GiftCardRecipient,GiftCardRecipientCreate,GiftCardRecipientUpdate}from'./resources/gift_card_recipients';export type{GiftCard,GiftCardCreate,GiftCardUpdate}from'./resources/gift_cards';export type{GoogleGeocoder,GoogleGeocoderCreate,GoogleGeocoderUpdate}from'./resources/google_geocoders';export type{Import,ImportCreate}from'./resources/imports';export type{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate}from'./resources/in_stock_subscriptions';export type{InventoryModel,InventoryModelCreate,InventoryModelUpdate}from'./resources/inventory_models';export type{InventoryReturnLocation,InventoryReturnLocationCreate,InventoryReturnLocationUpdate}from'./resources/inventory_return_locations';export type{InventoryStockLocation,InventoryStockLocationCreate,InventoryStockLocationUpdate}from'./resources/inventory_stock_locations';export type{KlarnaGateway,KlarnaGatewayCreate,KlarnaGatewayUpdate}from'./resources/klarna_gateways';export type{KlarnaPayment,KlarnaPaymentCreate,KlarnaPaymentUpdate}from'./resources/klarna_payments';export type{LineItemOption,LineItemOptionCreate,LineItemOptionUpdate}from'./resources/line_item_options';export type{LineItem,LineItemCreate,LineItemUpdate}from'./resources/line_items';export type{ManualGateway,ManualGatewayCreate,ManualGatewayUpdate}from'./resources/manual_gateways';export type{ManualTaxCalculator,ManualTaxCalculatorCreate,ManualTaxCalculatorUpdate}from'./resources/manual_tax_calculators';export type{Market,MarketCreate,MarketUpdate}from'./resources/markets';export type{Merchant,MerchantCreate,MerchantUpdate}from'./resources/merchants';export type{OrderAmountPromotionRule,OrderAmountPromotionRuleCreate,OrderAmountPromotionRuleUpdate}from'./resources/order_amount_promotion_rules';export type{OrderCopy,OrderCopyCreate}from'./resources/order_copies';export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate}from'./resources/order_subscriptions';export type{OrderValidationRule}from'./resources/order_validation_rules';export type{Order,OrderCreate,OrderUpdate}from'./resources/orders';export type{Organization}from'./resources/organization';export type{Package,PackageCreate,PackageUpdate}from'./resources/packages';export type{ParcelLineItem,ParcelLineItemCreate,ParcelLineItemUpdate}from'./resources/parcel_line_items';export type{Parcel,ParcelCreate,ParcelUpdate}from'./resources/parcels';export type{PaymentGateway}from'./resources/payment_gateways';export type{PaymentMethod,PaymentMethodCreate,PaymentMethodUpdate}from'./resources/payment_methods';export type{PaypalGateway,PaypalGatewayCreate,PaypalGatewayUpdate}from'./resources/paypal_gateways';export type{PaypalPayment,PaypalPaymentCreate,PaypalPaymentUpdate}from'./resources/paypal_payments';export type{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate}from'./resources/percentage_discount_promotions';export type{PriceList,PriceListCreate,PriceListUpdate}from'./resources/price_lists';export type{Price,PriceCreate,PriceUpdate}from'./resources/prices';export type{PromotionRule}from'./resources/promotion_rules';export type{Promotion}from'./resources/promotions';export type{Refund}from'./resources/refunds';export type{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate}from'./resources/return_line_items';export type{Return,ReturnCreate,ReturnUpdate}from'./resources/returns';export type{Shipment,ShipmentUpdate}from'./resources/shipments';export type{ShippingCategory,ShippingCategoryCreate,ShippingCategoryUpdate}from'./resources/shipping_categories';export type{ShippingMethod,ShippingMethodCreate,ShippingMethodUpdate}from'./resources/shipping_methods';export type{ShippingZone,ShippingZoneCreate,ShippingZoneUpdate}from'./resources/shipping_zones';export type{SkuListItem,SkuListItemCreate,SkuListItemUpdate}from'./resources/sku_list_items';export type{SkuListPromotionRule,SkuListPromotionRuleCreate,SkuListPromotionRuleUpdate}from'./resources/sku_list_promotion_rules';export type{SkuList,SkuListCreate,SkuListUpdate}from'./resources/sku_lists';export type{SkuOption,SkuOptionCreate,SkuOptionUpdate}from'./resources/sku_options';export type{Sku,SkuCreate,SkuUpdate}from'./resources/skus';export type{StockItem,StockItemCreate,StockItemUpdate}from'./resources/stock_items';export type{StockLineItem}from'./resources/stock_line_items';export type{StockLocation,StockLocationCreate,StockLocationUpdate}from'./resources/stock_locations';export type{StockTransfer,StockTransferCreate,StockTransferUpdate}from'./resources/stock_transfers';export type{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate}from'./resources/stripe_gateways';export type{StripePayment,StripePaymentCreate,StripePaymentUpdate}from'./resources/stripe_payments';export type{TaxCalculator}from'./resources/tax_calculators';export type{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate}from'./resources/tax_categories';export type{TaxRule,TaxRuleCreate,TaxRuleUpdate}from'./resources/tax_rules';export type{TaxjarAccount,TaxjarAccountCreate,TaxjarAccountUpdate}from'./resources/taxjar_accounts';export type{Transaction}from'./resources/transactions';export type{Void}from'./resources/voids';export type{Webhook,WebhookCreate,WebhookUpdate}from'./resources/webhooks';export type{WireTransfer,WireTransferCreate,WireTransferUpdate}from'./resources/wire_transfers';
@@ -1,23 +1 @@
1
- import { ResourceType } from "./resource";
2
- interface QueryParamsRetrieve {
3
- include?: string[];
4
- fields?: string[] | {
5
- [key: string]: string[];
6
- };
7
- }
8
- interface QueryParamsList extends QueryParamsRetrieve {
9
- sort?: string[] | {
10
- [key: string]: 'asc' | 'desc';
11
- };
12
- filters?: {
13
- [key: string]: string | number | boolean;
14
- };
15
- pageNumber?: number;
16
- pageSize?: number;
17
- }
18
- declare type QueryParams = QueryParamsRetrieve | QueryParamsList;
19
- export { QueryParamsRetrieve, QueryParamsList, QueryParams };
20
- declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined, res: string | ResourceType) => {
21
- [key: string]: string;
22
- };
23
- export { generateQueryStringParams };
1
+ import{ResourceType}from"./resource";interface QueryParamsRetrieve{include?:string[];fields?:string[]|{[key:string]:string[];};}interface QueryParamsList extends QueryParamsRetrieve{sort?:string[]|{[key:string]:'asc'|'desc';};filters?:{[key:string]:string|number|boolean;};pageNumber?:number;pageSize?:number;}declare type QueryParams=QueryParamsRetrieve|QueryParamsList;export{QueryParamsRetrieve,QueryParamsList,QueryParams};declare const generateQueryStringParams:(params:QueryParamsRetrieve|QueryParamsList|undefined,res:string|ResourceType)=>{[key:string]:string;};export{generateQueryStringParams};
@@ -1,76 +1 @@
1
- import { ApiClientInitConfig } from './client';
2
- import { QueryParamsRetrieve, QueryParamsList } from './query';
3
- import { ResourceTypeLock } from './api';
4
- import { InterceptorManager } from './interceptor';
5
- import { QueryParams } from '.';
6
- declare type ResourceNull = {
7
- id: null;
8
- } & ResourceType;
9
- declare type ResourceRel = ResourceId | ResourceNull;
10
- declare type Metadata = {
11
- [key: string]: any;
12
- };
13
- interface ResourceType {
14
- readonly type: ResourceTypeLock;
15
- }
16
- interface ResourceId extends ResourceType {
17
- readonly id: string;
18
- }
19
- interface Resource extends ResourceId {
20
- reference?: string;
21
- reference_origin?: string;
22
- metadata?: Metadata;
23
- readonly created_at: string;
24
- readonly updated_at: string;
25
- }
26
- interface ResourceCreate {
27
- reference?: string;
28
- reference_origin?: string;
29
- metadata?: Metadata;
30
- }
31
- interface ResourceUpdate {
32
- readonly id: string;
33
- reference?: string;
34
- reference_origin?: string;
35
- metadata?: Metadata;
36
- }
37
- declare type ListMeta = {
38
- readonly pageCount: number;
39
- readonly recordCount: number;
40
- readonly currentPage: number;
41
- readonly recordsPerPage: number;
42
- };
43
- declare class ListResponse<R> extends Array<R> {
44
- readonly meta: ListMeta;
45
- constructor(meta: ListMeta, data: Array<R>);
46
- first(): R | undefined;
47
- last(): R | undefined;
48
- get(index: number): R | undefined;
49
- }
50
- export type { Metadata, ResourceType, ResourceId, Resource, ResourceCreate, ResourceUpdate, ListResponse, ResourceRel };
51
- declare type ResourceAdapterConfig = {};
52
- declare type ResourcesInitConfig = ResourceAdapterConfig & ApiClientInitConfig;
53
- declare type ResourcesConfig = Partial<ResourcesInitConfig>;
54
- declare class ResourceAdapter {
55
- #private;
56
- constructor(config: ResourcesInitConfig);
57
- get interceptors(): InterceptorManager;
58
- private localConfig;
59
- config(config: ResourcesConfig): void;
60
- singleton<R extends Resource>(resource: ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
61
- retrieve<R extends Resource>(resource: ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
62
- list<R extends Resource>(resource: ResourceType, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<R>>;
63
- create<C extends ResourceCreate, R extends Resource>(resource: C & ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
64
- update<U extends ResourceUpdate, R extends Resource>(resource: U & ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
65
- delete(resource: ResourceId, options?: ResourcesConfig): Promise<void>;
66
- fetch<R extends Resource>(resource: string | ResourceType, path: string, params?: QueryParams, options?: ResourcesConfig): Promise<R | ListResponse<R>>;
67
- }
68
- declare abstract class ApiResource {
69
- static readonly TYPE: ResourceTypeLock;
70
- protected resources: ResourceAdapter;
71
- constructor(adapter: ResourceAdapter);
72
- abstract relationship(id: string | ResourceId | null): ResourceRel;
73
- abstract type(): string;
74
- }
75
- export default ResourceAdapter;
76
- export { ApiResource, ResourcesConfig, ResourcesInitConfig };
1
+ import{ApiClientInitConfig}from'./client';import{QueryParamsRetrieve,QueryParamsList}from'./query';import{ResourceTypeLock}from'./api';import{InterceptorManager}from'./interceptor';import{QueryParams}from'.';declare type ResourceNull={id:null;}&ResourceType;declare type ResourceRel=ResourceId|ResourceNull;declare type Metadata={[key:string]:any;};interface ResourceType{readonly type:ResourceTypeLock;}interface ResourceId extends ResourceType{readonly id:string;}interface Resource extends ResourceId{reference?:string;reference_origin?:string;metadata?:Metadata;readonly created_at:string;readonly updated_at:string;}interface ResourceCreate{reference?:string;reference_origin?:string;metadata?:Metadata;}interface ResourceUpdate{readonly id:string;reference?:string;reference_origin?:string;metadata?:Metadata;}declare type ListMeta={readonly pageCount:number;readonly recordCount:number;readonly currentPage:number;readonly recordsPerPage:number;};declare class ListResponse<R>extends Array<R>{readonly meta:ListMeta;constructor(meta:ListMeta,data:Array<R>);first():R|undefined;last():R|undefined;get(index:number):R|undefined;}export type{Metadata,ResourceType,ResourceId,Resource,ResourceCreate,ResourceUpdate,ListResponse,ResourceRel};declare type ResourceAdapterConfig={};declare type ResourcesInitConfig=ResourceAdapterConfig&ApiClientInitConfig;declare type ResourcesConfig=Partial<ResourcesInitConfig>;declare class ResourceAdapter{#private;constructor(config:ResourcesInitConfig);get interceptors():InterceptorManager;private localConfig;config(config:ResourcesConfig):void;singleton<R extends Resource>(resource:ResourceType,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<R>;retrieve<R extends Resource>(resource:ResourceId,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<R>;list<R extends Resource>(resource:ResourceType,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<R>>;create<C extends ResourceCreate,R extends Resource>(resource:C&ResourceType,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<R>;update<U extends ResourceUpdate,R extends Resource>(resource:U&ResourceId,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<R>;delete(resource:ResourceId,options?:ResourcesConfig):Promise<void>;fetch<R extends Resource>(resource:string|ResourceType,path:string,params?:QueryParams,options?:ResourcesConfig):Promise<R|ListResponse<R>>;}declare abstract class ApiResource{static readonly TYPE:ResourceTypeLock;protected resources:ResourceAdapter;constructor(adapter:ResourceAdapter);abstract relationship(id:string|ResourceId|null):ResourceRel;abstract type():string;}export default ResourceAdapter;export{ApiResource,ResourcesConfig,ResourcesInitConfig};
@@ -1,88 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- import type { Geocoder } from './geocoders';
4
- declare type AddressRel = ResourceRel & {
5
- type: typeof Addresses.TYPE;
6
- };
7
- declare type GeocoderRel = ResourceRel & {
8
- type: 'geocoders';
9
- };
10
- interface Address extends Resource {
11
- business?: boolean;
12
- first_name?: string;
13
- last_name?: string;
14
- company?: string;
15
- full_name?: string;
16
- line_1?: string;
17
- line_2?: string;
18
- city?: string;
19
- zip_code?: string;
20
- state_code?: string;
21
- country_code?: string;
22
- phone?: string;
23
- full_address?: string;
24
- name?: string;
25
- email?: string;
26
- notes?: string;
27
- lat?: number;
28
- lng?: number;
29
- is_localized?: boolean;
30
- is_geocoded?: boolean;
31
- provider_name?: string;
32
- map_url?: string;
33
- static_map_url?: string;
34
- billing_info?: string;
35
- geocoder?: Geocoder;
36
- }
37
- interface AddressCreate extends ResourceCreate {
38
- business?: boolean;
39
- first_name?: string;
40
- last_name?: string;
41
- company?: string;
42
- line_1: string;
43
- line_2?: string;
44
- city: string;
45
- zip_code?: string;
46
- state_code: string;
47
- country_code: string;
48
- phone: string;
49
- email?: string;
50
- notes?: string;
51
- lat?: number;
52
- lng?: number;
53
- billing_info?: string;
54
- geocoder?: GeocoderRel;
55
- }
56
- interface AddressUpdate extends ResourceUpdate {
57
- business?: boolean;
58
- first_name?: string;
59
- last_name?: string;
60
- company?: string;
61
- line_1?: string;
62
- line_2?: string;
63
- city?: string;
64
- zip_code?: string;
65
- state_code?: string;
66
- country_code?: string;
67
- phone?: string;
68
- email?: string;
69
- notes?: string;
70
- lat?: number;
71
- lng?: number;
72
- billing_info?: string;
73
- geocoder?: GeocoderRel;
74
- }
75
- declare class Addresses extends ApiResource {
76
- static readonly TYPE: 'addresses';
77
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
78
- create(resource: AddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
79
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
80
- update(resource: AddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
81
- delete(id: string, options?: ResourcesConfig): Promise<void>;
82
- geocoder(addressId: string | Address, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Geocoder>;
83
- isAddress(resource: any): resource is Address;
84
- relationship(id: string | ResourceId | null): AddressRel;
85
- type(): string;
86
- }
87
- export default Addresses;
88
- export { Address, AddressCreate, AddressUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Geocoder}from'./geocoders';declare type AddressRel=ResourceRel&{type:typeof Addresses.TYPE;};declare type GeocoderRel=ResourceRel&{type:'geocoders';};interface Address extends Resource{business?:boolean;first_name?:string;last_name?:string;company?:string;full_name?:string;line_1?:string;line_2?:string;city?:string;zip_code?:string;state_code?:string;country_code?:string;phone?:string;full_address?:string;name?:string;email?:string;notes?:string;lat?:number;lng?:number;is_localized?:boolean;is_geocoded?:boolean;provider_name?:string;map_url?:string;static_map_url?:string;billing_info?:string;geocoder?:Geocoder;}interface AddressCreate extends ResourceCreate{business?:boolean;first_name?:string;last_name?:string;company?:string;line_1:string;line_2?:string;city:string;zip_code?:string;state_code:string;country_code:string;phone:string;email?:string;notes?:string;lat?:number;lng?:number;billing_info?:string;geocoder?:GeocoderRel;}interface AddressUpdate extends ResourceUpdate{business?:boolean;first_name?:string;last_name?:string;company?:string;line_1?:string;line_2?:string;city?:string;zip_code?:string;state_code?:string;country_code?:string;phone?:string;email?:string;notes?:string;lat?:number;lng?:number;billing_info?:string;geocoder?:GeocoderRel;}declare class Addresses extends ApiResource{static readonly TYPE:'addresses';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;create(resource:AddressCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;update(resource:AddressUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;delete(id:string,options?:ResourcesConfig):Promise<void>;geocoder(addressId:string|Address,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Geocoder>;isAddress(resource:any):resource is Address;relationship(id:string|ResourceId|null):AddressRel;type():string;}export default Addresses;export{Address,AddressCreate,AddressUpdate};
@@ -1,35 +1 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsList, QueryParamsRetrieve } from '../query';
3
- declare type AdjustmentRel = ResourceRel & {
4
- type: typeof Adjustments.TYPE;
5
- };
6
- interface Adjustment extends Resource {
7
- name?: string;
8
- currency_code?: string;
9
- amount_cents?: number;
10
- amount_float?: number;
11
- formatted_amount?: string;
12
- }
13
- interface AdjustmentCreate extends ResourceCreate {
14
- name: string;
15
- currency_code: string;
16
- amount_cents: number;
17
- }
18
- interface AdjustmentUpdate extends ResourceUpdate {
19
- name?: string;
20
- currency_code?: string;
21
- amount_cents?: number;
22
- }
23
- declare class Adjustments extends ApiResource {
24
- static readonly TYPE: 'adjustments';
25
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Adjustment>>;
26
- create(resource: AdjustmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
27
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
28
- update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
29
- delete(id: string, options?: ResourcesConfig): Promise<void>;
30
- isAdjustment(resource: any): resource is Adjustment;
31
- relationship(id: string | ResourceId | null): AdjustmentRel;
32
- type(): string;
33
- }
34
- export default Adjustments;
35
- export { Adjustment, AdjustmentCreate, AdjustmentUpdate };
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';declare type AdjustmentRel=ResourceRel&{type:typeof Adjustments.TYPE;};interface Adjustment extends Resource{name?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;}interface AdjustmentCreate extends ResourceCreate{name:string;currency_code:string;amount_cents:number;}interface AdjustmentUpdate extends ResourceUpdate{name?:string;currency_code?:string;amount_cents?:number;}declare class Adjustments extends ApiResource{static readonly TYPE:'adjustments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Adjustment>>;create(resource:AdjustmentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Adjustment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Adjustment>;update(resource:AdjustmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Adjustment>;delete(id:string,options?:ResourcesConfig):Promise<void>;isAdjustment(resource:any):resource is Adjustment;relationship(id:string|ResourceId|null):AdjustmentRel;type():string;}export default Adjustments;export{Adjustment,AdjustmentCreate,AdjustmentUpdate};
@@ -1,47 +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 { AdyenPayment } from './adyen_payments';
5
- declare type AdyenGatewayRel = ResourceRel & {
6
- type: typeof AdyenGateways.TYPE;
7
- };
8
- declare type AdyenPaymentRel = ResourceRel & {
9
- type: 'adyen_payments';
10
- };
11
- interface AdyenGateway extends Resource {
12
- name?: string;
13
- live_url_prefix?: string;
14
- payment_methods?: PaymentMethod[];
15
- adyen_payments?: AdyenPayment[];
16
- }
17
- interface AdyenGatewayCreate extends ResourceCreate {
18
- name: string;
19
- merchant_account: string;
20
- api_key: string;
21
- public_key?: string;
22
- live_url_prefix: string;
23
- adyen_payments?: AdyenPaymentRel[];
24
- }
25
- interface AdyenGatewayUpdate extends ResourceUpdate {
26
- name?: string;
27
- merchant_account?: string;
28
- api_key?: string;
29
- public_key?: string;
30
- live_url_prefix?: string;
31
- adyen_payments?: AdyenPaymentRel[];
32
- }
33
- declare class AdyenGateways extends ApiResource {
34
- static readonly TYPE: 'adyen_gateways';
35
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenGateway>>;
36
- create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
37
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
38
- update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
39
- delete(id: string, options?: ResourcesConfig): Promise<void>;
40
- payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
41
- adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
42
- isAdyenGateway(resource: any): resource is AdyenGateway;
43
- relationship(id: string | ResourceId | null): AdyenGatewayRel;
44
- type(): string;
45
- }
46
- export default AdyenGateways;
47
- export { AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate };
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{AdyenPayment}from'./adyen_payments';declare type AdyenGatewayRel=ResourceRel&{type:typeof AdyenGateways.TYPE;};declare type AdyenPaymentRel=ResourceRel&{type:'adyen_payments';};interface AdyenGateway extends Resource{name?:string;live_url_prefix?:string;payment_methods?:PaymentMethod[];adyen_payments?:AdyenPayment[];}interface AdyenGatewayCreate extends ResourceCreate{name:string;merchant_account:string;api_key:string;public_key?:string;live_url_prefix:string;adyen_payments?:AdyenPaymentRel[];}interface AdyenGatewayUpdate extends ResourceUpdate{name?:string;merchant_account?:string;api_key?:string;public_key?:string;live_url_prefix?:string;adyen_payments?:AdyenPaymentRel[];}declare class AdyenGateways extends ApiResource{static readonly TYPE:'adyen_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<AdyenGateway>>;create(resource:AdyenGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenGateway>;update(resource:AdyenGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(adyenGatewayId:string|AdyenGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;adyen_payments(adyenGatewayId:string|AdyenGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<AdyenPayment>>;isAdyenGateway(resource:any):resource is AdyenGateway;relationship(id:string|ResourceId|null):AdyenGatewayRel;type():string;}export default AdyenGateways;export{AdyenGateway,AdyenGatewayCreate,AdyenGatewayUpdate};
@@ -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 { Order } from './orders';
4
- import type { PaymentGateway } from './payment_gateways';
5
- declare type AdyenPaymentRel = ResourceRel & {
6
- type: typeof AdyenPayments.TYPE;
7
- };
8
- declare type OrderRel = ResourceRel & {
9
- type: 'orders';
10
- };
11
- interface AdyenPayment extends Resource {
12
- public_key?: string;
13
- payment_methods?: object;
14
- payment_request_data?: object;
15
- payment_request_details?: object;
16
- payment_response?: object;
17
- order?: Order;
18
- payment_gateway?: PaymentGateway;
19
- }
20
- interface AdyenPaymentCreate extends ResourceCreate {
21
- order: OrderRel;
22
- }
23
- interface AdyenPaymentUpdate extends ResourceUpdate {
24
- payment_request_data?: object;
25
- payment_request_details?: object;
26
- payment_response?: object;
27
- _details?: boolean;
28
- order?: OrderRel;
29
- }
30
- declare class AdyenPayments extends ApiResource {
31
- static readonly TYPE: 'adyen_payments';
32
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
33
- create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
34
- retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
35
- update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
36
- delete(id: string, options?: ResourcesConfig): Promise<void>;
37
- order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
38
- payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
39
- isAdyenPayment(resource: any): resource is AdyenPayment;
40
- relationship(id: string | ResourceId | null): AdyenPaymentRel;
41
- type(): string;
42
- }
43
- export default AdyenPayments;
44
- export { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate };
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 AdyenPaymentRel=ResourceRel&{type:typeof AdyenPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface AdyenPayment extends Resource{public_key?:string;payment_methods?:object;payment_request_data?:object;payment_request_details?:object;payment_response?:object;order?:Order;payment_gateway?:PaymentGateway;}interface AdyenPaymentCreate extends ResourceCreate{order:OrderRel;}interface AdyenPaymentUpdate extends ResourceUpdate{payment_request_data?:object;payment_request_details?:object;payment_response?:object;_details?:boolean;order?:OrderRel;}declare class AdyenPayments extends ApiResource{static readonly TYPE:'adyen_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<AdyenPayment>>;create(resource:AdyenPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenPayment>;update(resource:AdyenPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AdyenPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(adyenPaymentId:string|AdyenPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(adyenPaymentId:string|AdyenPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isAdyenPayment(resource:any):resource is AdyenPayment;relationship(id:string|ResourceId|null):AdyenPaymentRel;type():string;}export default AdyenPayments;export{AdyenPayment,AdyenPaymentCreate,AdyenPaymentUpdate};
@@ -1,21 +1 @@
1
- import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel } from '../resource';
2
- import type { QueryParamsRetrieve } from '../query';
3
- declare type ApplicationRel = ResourceRel & {
4
- type: typeof Applications.TYPE;
5
- };
6
- interface Application extends Resource {
7
- name?: string;
8
- kind?: string;
9
- public_access?: string;
10
- redirect_uri?: string;
11
- scopes?: string;
12
- }
13
- declare class Applications extends ApiResource {
14
- static readonly TYPE: 'application';
15
- retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Application>;
16
- isApplication(resource: any): resource is Application;
17
- relationship(id: string | ResourceId | null): ApplicationRel;
18
- type(): string;
19
- }
20
- export default Applications;
21
- export { Application };
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel}from'../resource';import type{QueryParamsRetrieve}from'../query';declare type ApplicationRel=ResourceRel&{type:typeof Applications.TYPE;};interface Application extends Resource{name?:string;kind?:string;public_access?:string;redirect_uri?:string;scopes?:string;}declare class Applications extends ApiResource{static readonly TYPE:'application';retrieve(params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Application>;isApplication(resource:any):resource is Application;relationship(id:string|ResourceId|null):ApplicationRel;type():string;}export default Applications;export{Application};