@shopify/shopify-api 5.0.1 → 5.2.0

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 (750) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -0
  3. package/dist/auth/oauth/oauth.d.ts +2 -0
  4. package/dist/auth/oauth/oauth.d.ts.map +1 -1
  5. package/dist/auth/oauth/oauth.js +120 -95
  6. package/dist/auth/session/storage/redis.d.ts +1 -0
  7. package/dist/auth/session/storage/redis.d.ts.map +1 -1
  8. package/dist/auth/session/storage/redis.js +3 -0
  9. package/dist/base-types.d.ts +4 -1
  10. package/dist/base-types.d.ts.map +1 -1
  11. package/dist/base-types.js +2 -1
  12. package/dist/billing/check.d.ts +12 -0
  13. package/dist/billing/check.d.ts.map +1 -0
  14. package/dist/billing/check.js +34 -0
  15. package/dist/billing/has_active_payment.d.ts +3 -0
  16. package/dist/billing/has_active_payment.d.ts.map +1 -0
  17. package/dist/billing/has_active_payment.js +91 -0
  18. package/dist/billing/index.d.ts +7 -0
  19. package/dist/billing/index.d.ts.map +1 -0
  20. package/dist/billing/index.js +9 -0
  21. package/dist/billing/is_recurring.d.ts +2 -0
  22. package/dist/billing/is_recurring.d.ts.map +1 -0
  23. package/dist/billing/is_recurring.js +20 -0
  24. package/dist/billing/request_payment.d.ts +3 -0
  25. package/dist/billing/request_payment.d.ts.map +1 -0
  26. package/dist/billing/request_payment.js +134 -0
  27. package/dist/billing/types.d.ts +57 -0
  28. package/dist/billing/types.d.ts.map +1 -0
  29. package/dist/billing/types.js +9 -0
  30. package/dist/clients/graphql/graphql_client.d.ts +1 -1
  31. package/dist/clients/graphql/graphql_client.d.ts.map +1 -1
  32. package/dist/clients/http_client/http_client.d.ts +5 -5
  33. package/dist/clients/http_client/http_client.d.ts.map +1 -1
  34. package/dist/clients/http_client/types.d.ts +2 -2
  35. package/dist/clients/http_client/types.d.ts.map +1 -1
  36. package/dist/clients/rest/rest_client.d.ts +1 -1
  37. package/dist/clients/rest/rest_client.d.ts.map +1 -1
  38. package/dist/clients/rest/rest_client.js +1 -1
  39. package/dist/clients/rest/types.d.ts +1 -1
  40. package/dist/clients/rest/types.d.ts.map +1 -1
  41. package/dist/context.d.ts.map +1 -1
  42. package/dist/context.js +3 -0
  43. package/dist/error.d.ts +7 -0
  44. package/dist/error.d.ts.map +1 -1
  45. package/dist/error.js +13 -1
  46. package/dist/index.d.ts +4 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -0
  49. package/dist/rest-resources/2022-01/abandoned_checkout.d.ts +5 -2
  50. package/dist/rest-resources/2022-01/abandoned_checkout.d.ts.map +1 -1
  51. package/dist/rest-resources/2022-01/abandoned_checkout.js +6 -2
  52. package/dist/rest-resources/2022-01/access_scope.d.ts +3 -0
  53. package/dist/rest-resources/2022-01/access_scope.d.ts.map +1 -1
  54. package/dist/rest-resources/2022-01/access_scope.js +3 -0
  55. package/dist/rest-resources/2022-01/android_pay_key.d.ts +3 -0
  56. package/dist/rest-resources/2022-01/android_pay_key.d.ts.map +1 -1
  57. package/dist/rest-resources/2022-01/android_pay_key.js +3 -0
  58. package/dist/rest-resources/2022-01/apple_pay_certificate.d.ts +3 -0
  59. package/dist/rest-resources/2022-01/apple_pay_certificate.d.ts.map +1 -1
  60. package/dist/rest-resources/2022-01/apple_pay_certificate.js +3 -0
  61. package/dist/rest-resources/2022-01/application_charge.d.ts +3 -0
  62. package/dist/rest-resources/2022-01/application_charge.d.ts.map +1 -1
  63. package/dist/rest-resources/2022-01/application_charge.js +3 -0
  64. package/dist/rest-resources/2022-01/application_credit.d.ts +3 -0
  65. package/dist/rest-resources/2022-01/application_credit.d.ts.map +1 -1
  66. package/dist/rest-resources/2022-01/application_credit.js +3 -0
  67. package/dist/rest-resources/2022-01/article.d.ts +3 -0
  68. package/dist/rest-resources/2022-01/article.d.ts.map +1 -1
  69. package/dist/rest-resources/2022-01/article.js +3 -0
  70. package/dist/rest-resources/2022-01/asset.d.ts +3 -0
  71. package/dist/rest-resources/2022-01/asset.d.ts.map +1 -1
  72. package/dist/rest-resources/2022-01/asset.js +3 -0
  73. package/dist/rest-resources/2022-01/assigned_fulfillment_order.d.ts +3 -0
  74. package/dist/rest-resources/2022-01/assigned_fulfillment_order.d.ts.map +1 -1
  75. package/dist/rest-resources/2022-01/assigned_fulfillment_order.js +3 -0
  76. package/dist/rest-resources/2022-01/balance.d.ts +3 -0
  77. package/dist/rest-resources/2022-01/balance.d.ts.map +1 -1
  78. package/dist/rest-resources/2022-01/balance.js +3 -0
  79. package/dist/rest-resources/2022-01/blog.d.ts +3 -0
  80. package/dist/rest-resources/2022-01/blog.d.ts.map +1 -1
  81. package/dist/rest-resources/2022-01/blog.js +3 -0
  82. package/dist/rest-resources/2022-01/cancellation_request.d.ts +3 -0
  83. package/dist/rest-resources/2022-01/cancellation_request.d.ts.map +1 -1
  84. package/dist/rest-resources/2022-01/cancellation_request.js +3 -0
  85. package/dist/rest-resources/2022-01/carrier_service.d.ts +3 -0
  86. package/dist/rest-resources/2022-01/carrier_service.d.ts.map +1 -1
  87. package/dist/rest-resources/2022-01/carrier_service.js +3 -0
  88. package/dist/rest-resources/2022-01/checkout.d.ts +3 -0
  89. package/dist/rest-resources/2022-01/checkout.d.ts.map +1 -1
  90. package/dist/rest-resources/2022-01/checkout.js +3 -0
  91. package/dist/rest-resources/2022-01/collect.d.ts +3 -0
  92. package/dist/rest-resources/2022-01/collect.d.ts.map +1 -1
  93. package/dist/rest-resources/2022-01/collect.js +3 -0
  94. package/dist/rest-resources/2022-01/collection.d.ts +3 -0
  95. package/dist/rest-resources/2022-01/collection.d.ts.map +1 -1
  96. package/dist/rest-resources/2022-01/collection.js +3 -0
  97. package/dist/rest-resources/2022-01/collection_listing.d.ts +3 -0
  98. package/dist/rest-resources/2022-01/collection_listing.d.ts.map +1 -1
  99. package/dist/rest-resources/2022-01/collection_listing.js +3 -0
  100. package/dist/rest-resources/2022-01/comment.d.ts +3 -0
  101. package/dist/rest-resources/2022-01/comment.d.ts.map +1 -1
  102. package/dist/rest-resources/2022-01/comment.js +3 -0
  103. package/dist/rest-resources/2022-01/country.d.ts +3 -0
  104. package/dist/rest-resources/2022-01/country.d.ts.map +1 -1
  105. package/dist/rest-resources/2022-01/country.js +3 -0
  106. package/dist/rest-resources/2022-01/currency.d.ts +3 -0
  107. package/dist/rest-resources/2022-01/currency.d.ts.map +1 -1
  108. package/dist/rest-resources/2022-01/currency.js +3 -0
  109. package/dist/rest-resources/2022-01/custom_collection.d.ts +3 -0
  110. package/dist/rest-resources/2022-01/custom_collection.d.ts.map +1 -1
  111. package/dist/rest-resources/2022-01/custom_collection.js +3 -0
  112. package/dist/rest-resources/2022-01/customer.d.ts +10 -0
  113. package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
  114. package/dist/rest-resources/2022-01/customer.js +24 -0
  115. package/dist/rest-resources/2022-01/customer_address.d.ts +3 -0
  116. package/dist/rest-resources/2022-01/customer_address.d.ts.map +1 -1
  117. package/dist/rest-resources/2022-01/customer_address.js +3 -0
  118. package/dist/rest-resources/2022-01/customer_saved_search.d.ts +3 -0
  119. package/dist/rest-resources/2022-01/customer_saved_search.d.ts.map +1 -1
  120. package/dist/rest-resources/2022-01/customer_saved_search.js +3 -0
  121. package/dist/rest-resources/2022-01/deprecated_api_call.d.ts +3 -0
  122. package/dist/rest-resources/2022-01/deprecated_api_call.d.ts.map +1 -1
  123. package/dist/rest-resources/2022-01/deprecated_api_call.js +3 -0
  124. package/dist/rest-resources/2022-01/discount_code.d.ts +3 -0
  125. package/dist/rest-resources/2022-01/discount_code.d.ts.map +1 -1
  126. package/dist/rest-resources/2022-01/discount_code.js +3 -0
  127. package/dist/rest-resources/2022-01/dispute.d.ts +3 -0
  128. package/dist/rest-resources/2022-01/dispute.d.ts.map +1 -1
  129. package/dist/rest-resources/2022-01/dispute.js +3 -0
  130. package/dist/rest-resources/2022-01/draft_order.d.ts +5 -1
  131. package/dist/rest-resources/2022-01/draft_order.d.ts.map +1 -1
  132. package/dist/rest-resources/2022-01/draft_order.js +8 -5
  133. package/dist/rest-resources/2022-01/event.d.ts +3 -0
  134. package/dist/rest-resources/2022-01/event.d.ts.map +1 -1
  135. package/dist/rest-resources/2022-01/event.js +3 -0
  136. package/dist/rest-resources/2022-01/fulfillment.d.ts +24 -0
  137. package/dist/rest-resources/2022-01/fulfillment.d.ts.map +1 -1
  138. package/dist/rest-resources/2022-01/fulfillment.js +77 -1
  139. package/dist/rest-resources/2022-01/fulfillment_event.d.ts +3 -0
  140. package/dist/rest-resources/2022-01/fulfillment_event.d.ts.map +1 -1
  141. package/dist/rest-resources/2022-01/fulfillment_event.js +3 -0
  142. package/dist/rest-resources/2022-01/fulfillment_order.d.ts +3 -0
  143. package/dist/rest-resources/2022-01/fulfillment_order.d.ts.map +1 -1
  144. package/dist/rest-resources/2022-01/fulfillment_order.js +3 -0
  145. package/dist/rest-resources/2022-01/fulfillment_request.d.ts +6 -1
  146. package/dist/rest-resources/2022-01/fulfillment_request.d.ts.map +1 -1
  147. package/dist/rest-resources/2022-01/fulfillment_request.js +8 -5
  148. package/dist/rest-resources/2022-01/fulfillment_service.d.ts +3 -0
  149. package/dist/rest-resources/2022-01/fulfillment_service.d.ts.map +1 -1
  150. package/dist/rest-resources/2022-01/fulfillment_service.js +3 -0
  151. package/dist/rest-resources/2022-01/gift_card.d.ts +8 -1
  152. package/dist/rest-resources/2022-01/gift_card.d.ts.map +1 -1
  153. package/dist/rest-resources/2022-01/gift_card.js +8 -5
  154. package/dist/rest-resources/2022-01/gift_card_adjustment.d.ts +3 -0
  155. package/dist/rest-resources/2022-01/gift_card_adjustment.d.ts.map +1 -1
  156. package/dist/rest-resources/2022-01/gift_card_adjustment.js +3 -0
  157. package/dist/rest-resources/2022-01/image.d.ts +3 -0
  158. package/dist/rest-resources/2022-01/image.d.ts.map +1 -1
  159. package/dist/rest-resources/2022-01/image.js +3 -0
  160. package/dist/rest-resources/2022-01/inventory_item.d.ts +3 -0
  161. package/dist/rest-resources/2022-01/inventory_item.d.ts.map +1 -1
  162. package/dist/rest-resources/2022-01/inventory_item.js +3 -0
  163. package/dist/rest-resources/2022-01/inventory_level.d.ts +3 -0
  164. package/dist/rest-resources/2022-01/inventory_level.d.ts.map +1 -1
  165. package/dist/rest-resources/2022-01/inventory_level.js +3 -0
  166. package/dist/rest-resources/2022-01/location.d.ts +3 -0
  167. package/dist/rest-resources/2022-01/location.d.ts.map +1 -1
  168. package/dist/rest-resources/2022-01/location.js +3 -0
  169. package/dist/rest-resources/2022-01/locations_for_move.d.ts +3 -0
  170. package/dist/rest-resources/2022-01/locations_for_move.d.ts.map +1 -1
  171. package/dist/rest-resources/2022-01/locations_for_move.js +3 -0
  172. package/dist/rest-resources/2022-01/marketing_event.d.ts +3 -0
  173. package/dist/rest-resources/2022-01/marketing_event.d.ts.map +1 -1
  174. package/dist/rest-resources/2022-01/marketing_event.js +3 -0
  175. package/dist/rest-resources/2022-01/metafield.d.ts +7 -3
  176. package/dist/rest-resources/2022-01/metafield.d.ts.map +1 -1
  177. package/dist/rest-resources/2022-01/metafield.js +16 -8
  178. package/dist/rest-resources/2022-01/mobile_platform_application.d.ts +3 -0
  179. package/dist/rest-resources/2022-01/mobile_platform_application.d.ts.map +1 -1
  180. package/dist/rest-resources/2022-01/mobile_platform_application.js +3 -0
  181. package/dist/rest-resources/2022-01/order.d.ts +3 -0
  182. package/dist/rest-resources/2022-01/order.d.ts.map +1 -1
  183. package/dist/rest-resources/2022-01/order.js +3 -0
  184. package/dist/rest-resources/2022-01/order_risk.d.ts +3 -0
  185. package/dist/rest-resources/2022-01/order_risk.d.ts.map +1 -1
  186. package/dist/rest-resources/2022-01/order_risk.js +3 -0
  187. package/dist/rest-resources/2022-01/page.d.ts +3 -0
  188. package/dist/rest-resources/2022-01/page.d.ts.map +1 -1
  189. package/dist/rest-resources/2022-01/page.js +3 -0
  190. package/dist/rest-resources/2022-01/payment.d.ts +3 -0
  191. package/dist/rest-resources/2022-01/payment.d.ts.map +1 -1
  192. package/dist/rest-resources/2022-01/payment.js +3 -0
  193. package/dist/rest-resources/2022-01/payment_gateway.d.ts +3 -0
  194. package/dist/rest-resources/2022-01/payment_gateway.d.ts.map +1 -1
  195. package/dist/rest-resources/2022-01/payment_gateway.js +3 -0
  196. package/dist/rest-resources/2022-01/payment_transaction.d.ts +3 -0
  197. package/dist/rest-resources/2022-01/payment_transaction.d.ts.map +1 -1
  198. package/dist/rest-resources/2022-01/payment_transaction.js +3 -0
  199. package/dist/rest-resources/2022-01/payout.d.ts +3 -0
  200. package/dist/rest-resources/2022-01/payout.d.ts.map +1 -1
  201. package/dist/rest-resources/2022-01/payout.js +3 -0
  202. package/dist/rest-resources/2022-01/policy.d.ts +3 -0
  203. package/dist/rest-resources/2022-01/policy.d.ts.map +1 -1
  204. package/dist/rest-resources/2022-01/policy.js +3 -0
  205. package/dist/rest-resources/2022-01/price_rule.d.ts +3 -0
  206. package/dist/rest-resources/2022-01/price_rule.d.ts.map +1 -1
  207. package/dist/rest-resources/2022-01/price_rule.js +3 -0
  208. package/dist/rest-resources/2022-01/product.d.ts +3 -0
  209. package/dist/rest-resources/2022-01/product.d.ts.map +1 -1
  210. package/dist/rest-resources/2022-01/product.js +3 -0
  211. package/dist/rest-resources/2022-01/product_listing.d.ts +3 -0
  212. package/dist/rest-resources/2022-01/product_listing.d.ts.map +1 -1
  213. package/dist/rest-resources/2022-01/product_listing.js +3 -0
  214. package/dist/rest-resources/2022-01/product_resource_feedback.d.ts +3 -0
  215. package/dist/rest-resources/2022-01/product_resource_feedback.d.ts.map +1 -1
  216. package/dist/rest-resources/2022-01/product_resource_feedback.js +3 -0
  217. package/dist/rest-resources/2022-01/province.d.ts +3 -0
  218. package/dist/rest-resources/2022-01/province.d.ts.map +1 -1
  219. package/dist/rest-resources/2022-01/province.js +3 -0
  220. package/dist/rest-resources/2022-01/recurring_application_charge.d.ts +3 -0
  221. package/dist/rest-resources/2022-01/recurring_application_charge.d.ts.map +1 -1
  222. package/dist/rest-resources/2022-01/recurring_application_charge.js +3 -0
  223. package/dist/rest-resources/2022-01/redirect.d.ts +3 -0
  224. package/dist/rest-resources/2022-01/redirect.d.ts.map +1 -1
  225. package/dist/rest-resources/2022-01/redirect.js +3 -0
  226. package/dist/rest-resources/2022-01/refund.d.ts +3 -0
  227. package/dist/rest-resources/2022-01/refund.d.ts.map +1 -1
  228. package/dist/rest-resources/2022-01/refund.js +3 -0
  229. package/dist/rest-resources/2022-01/report.d.ts +3 -0
  230. package/dist/rest-resources/2022-01/report.d.ts.map +1 -1
  231. package/dist/rest-resources/2022-01/report.js +3 -0
  232. package/dist/rest-resources/2022-01/resource_feedback.d.ts +3 -0
  233. package/dist/rest-resources/2022-01/resource_feedback.d.ts.map +1 -1
  234. package/dist/rest-resources/2022-01/resource_feedback.js +3 -0
  235. package/dist/rest-resources/2022-01/script_tag.d.ts +3 -0
  236. package/dist/rest-resources/2022-01/script_tag.d.ts.map +1 -1
  237. package/dist/rest-resources/2022-01/script_tag.js +3 -0
  238. package/dist/rest-resources/2022-01/shipping_zone.d.ts +3 -0
  239. package/dist/rest-resources/2022-01/shipping_zone.d.ts.map +1 -1
  240. package/dist/rest-resources/2022-01/shipping_zone.js +3 -0
  241. package/dist/rest-resources/2022-01/shop.d.ts +3 -0
  242. package/dist/rest-resources/2022-01/shop.d.ts.map +1 -1
  243. package/dist/rest-resources/2022-01/shop.js +3 -0
  244. package/dist/rest-resources/2022-01/smart_collection.d.ts +3 -0
  245. package/dist/rest-resources/2022-01/smart_collection.d.ts.map +1 -1
  246. package/dist/rest-resources/2022-01/smart_collection.js +3 -0
  247. package/dist/rest-resources/2022-01/storefront_access_token.d.ts +3 -0
  248. package/dist/rest-resources/2022-01/storefront_access_token.d.ts.map +1 -1
  249. package/dist/rest-resources/2022-01/storefront_access_token.js +3 -0
  250. package/dist/rest-resources/2022-01/tender_transaction.d.ts +3 -0
  251. package/dist/rest-resources/2022-01/tender_transaction.d.ts.map +1 -1
  252. package/dist/rest-resources/2022-01/tender_transaction.js +3 -0
  253. package/dist/rest-resources/2022-01/theme.d.ts +3 -0
  254. package/dist/rest-resources/2022-01/theme.d.ts.map +1 -1
  255. package/dist/rest-resources/2022-01/theme.js +3 -0
  256. package/dist/rest-resources/2022-01/transaction.d.ts +3 -0
  257. package/dist/rest-resources/2022-01/transaction.d.ts.map +1 -1
  258. package/dist/rest-resources/2022-01/transaction.js +3 -0
  259. package/dist/rest-resources/2022-01/usage_charge.d.ts +3 -0
  260. package/dist/rest-resources/2022-01/usage_charge.d.ts.map +1 -1
  261. package/dist/rest-resources/2022-01/usage_charge.js +3 -0
  262. package/dist/rest-resources/2022-01/user.d.ts +3 -0
  263. package/dist/rest-resources/2022-01/user.d.ts.map +1 -1
  264. package/dist/rest-resources/2022-01/user.js +3 -0
  265. package/dist/rest-resources/2022-01/variant.d.ts +3 -0
  266. package/dist/rest-resources/2022-01/variant.d.ts.map +1 -1
  267. package/dist/rest-resources/2022-01/variant.js +3 -0
  268. package/dist/rest-resources/2022-01/webhook.d.ts +3 -0
  269. package/dist/rest-resources/2022-01/webhook.d.ts.map +1 -1
  270. package/dist/rest-resources/2022-01/webhook.js +3 -0
  271. package/dist/rest-resources/2022-04/abandoned_checkout.d.ts +5 -2
  272. package/dist/rest-resources/2022-04/abandoned_checkout.d.ts.map +1 -1
  273. package/dist/rest-resources/2022-04/abandoned_checkout.js +6 -2
  274. package/dist/rest-resources/2022-04/access_scope.d.ts +3 -0
  275. package/dist/rest-resources/2022-04/access_scope.d.ts.map +1 -1
  276. package/dist/rest-resources/2022-04/access_scope.js +3 -0
  277. package/dist/rest-resources/2022-04/android_pay_key.d.ts +3 -0
  278. package/dist/rest-resources/2022-04/android_pay_key.d.ts.map +1 -1
  279. package/dist/rest-resources/2022-04/android_pay_key.js +3 -0
  280. package/dist/rest-resources/2022-04/apple_pay_certificate.d.ts +3 -0
  281. package/dist/rest-resources/2022-04/apple_pay_certificate.d.ts.map +1 -1
  282. package/dist/rest-resources/2022-04/apple_pay_certificate.js +3 -0
  283. package/dist/rest-resources/2022-04/application_charge.d.ts +3 -0
  284. package/dist/rest-resources/2022-04/application_charge.d.ts.map +1 -1
  285. package/dist/rest-resources/2022-04/application_charge.js +3 -0
  286. package/dist/rest-resources/2022-04/application_credit.d.ts +3 -0
  287. package/dist/rest-resources/2022-04/application_credit.d.ts.map +1 -1
  288. package/dist/rest-resources/2022-04/application_credit.js +3 -0
  289. package/dist/rest-resources/2022-04/article.d.ts +3 -0
  290. package/dist/rest-resources/2022-04/article.d.ts.map +1 -1
  291. package/dist/rest-resources/2022-04/article.js +3 -0
  292. package/dist/rest-resources/2022-04/asset.d.ts +3 -0
  293. package/dist/rest-resources/2022-04/asset.d.ts.map +1 -1
  294. package/dist/rest-resources/2022-04/asset.js +3 -0
  295. package/dist/rest-resources/2022-04/assigned_fulfillment_order.d.ts +3 -0
  296. package/dist/rest-resources/2022-04/assigned_fulfillment_order.d.ts.map +1 -1
  297. package/dist/rest-resources/2022-04/assigned_fulfillment_order.js +3 -0
  298. package/dist/rest-resources/2022-04/balance.d.ts +3 -0
  299. package/dist/rest-resources/2022-04/balance.d.ts.map +1 -1
  300. package/dist/rest-resources/2022-04/balance.js +3 -0
  301. package/dist/rest-resources/2022-04/blog.d.ts +3 -0
  302. package/dist/rest-resources/2022-04/blog.d.ts.map +1 -1
  303. package/dist/rest-resources/2022-04/blog.js +3 -0
  304. package/dist/rest-resources/2022-04/cancellation_request.d.ts +3 -0
  305. package/dist/rest-resources/2022-04/cancellation_request.d.ts.map +1 -1
  306. package/dist/rest-resources/2022-04/cancellation_request.js +3 -0
  307. package/dist/rest-resources/2022-04/carrier_service.d.ts +3 -0
  308. package/dist/rest-resources/2022-04/carrier_service.d.ts.map +1 -1
  309. package/dist/rest-resources/2022-04/carrier_service.js +3 -0
  310. package/dist/rest-resources/2022-04/checkout.d.ts +3 -0
  311. package/dist/rest-resources/2022-04/checkout.d.ts.map +1 -1
  312. package/dist/rest-resources/2022-04/checkout.js +3 -0
  313. package/dist/rest-resources/2022-04/collect.d.ts +3 -0
  314. package/dist/rest-resources/2022-04/collect.d.ts.map +1 -1
  315. package/dist/rest-resources/2022-04/collect.js +3 -0
  316. package/dist/rest-resources/2022-04/collection.d.ts +3 -0
  317. package/dist/rest-resources/2022-04/collection.d.ts.map +1 -1
  318. package/dist/rest-resources/2022-04/collection.js +3 -0
  319. package/dist/rest-resources/2022-04/collection_listing.d.ts +3 -0
  320. package/dist/rest-resources/2022-04/collection_listing.d.ts.map +1 -1
  321. package/dist/rest-resources/2022-04/collection_listing.js +3 -0
  322. package/dist/rest-resources/2022-04/comment.d.ts +3 -0
  323. package/dist/rest-resources/2022-04/comment.d.ts.map +1 -1
  324. package/dist/rest-resources/2022-04/comment.js +3 -0
  325. package/dist/rest-resources/2022-04/country.d.ts +3 -0
  326. package/dist/rest-resources/2022-04/country.d.ts.map +1 -1
  327. package/dist/rest-resources/2022-04/country.js +3 -0
  328. package/dist/rest-resources/2022-04/currency.d.ts +3 -0
  329. package/dist/rest-resources/2022-04/currency.d.ts.map +1 -1
  330. package/dist/rest-resources/2022-04/currency.js +3 -0
  331. package/dist/rest-resources/2022-04/custom_collection.d.ts +3 -0
  332. package/dist/rest-resources/2022-04/custom_collection.d.ts.map +1 -1
  333. package/dist/rest-resources/2022-04/custom_collection.js +3 -0
  334. package/dist/rest-resources/2022-04/customer.d.ts +10 -0
  335. package/dist/rest-resources/2022-04/customer.d.ts.map +1 -1
  336. package/dist/rest-resources/2022-04/customer.js +24 -0
  337. package/dist/rest-resources/2022-04/customer_address.d.ts +3 -0
  338. package/dist/rest-resources/2022-04/customer_address.d.ts.map +1 -1
  339. package/dist/rest-resources/2022-04/customer_address.js +3 -0
  340. package/dist/rest-resources/2022-04/customer_saved_search.d.ts +3 -0
  341. package/dist/rest-resources/2022-04/customer_saved_search.d.ts.map +1 -1
  342. package/dist/rest-resources/2022-04/customer_saved_search.js +3 -0
  343. package/dist/rest-resources/2022-04/deprecated_api_call.d.ts +3 -0
  344. package/dist/rest-resources/2022-04/deprecated_api_call.d.ts.map +1 -1
  345. package/dist/rest-resources/2022-04/deprecated_api_call.js +3 -0
  346. package/dist/rest-resources/2022-04/discount_code.d.ts +3 -0
  347. package/dist/rest-resources/2022-04/discount_code.d.ts.map +1 -1
  348. package/dist/rest-resources/2022-04/discount_code.js +3 -0
  349. package/dist/rest-resources/2022-04/dispute.d.ts +3 -0
  350. package/dist/rest-resources/2022-04/dispute.d.ts.map +1 -1
  351. package/dist/rest-resources/2022-04/dispute.js +3 -0
  352. package/dist/rest-resources/2022-04/draft_order.d.ts +5 -1
  353. package/dist/rest-resources/2022-04/draft_order.d.ts.map +1 -1
  354. package/dist/rest-resources/2022-04/draft_order.js +8 -5
  355. package/dist/rest-resources/2022-04/event.d.ts +3 -0
  356. package/dist/rest-resources/2022-04/event.d.ts.map +1 -1
  357. package/dist/rest-resources/2022-04/event.js +3 -0
  358. package/dist/rest-resources/2022-04/fulfillment.d.ts +24 -0
  359. package/dist/rest-resources/2022-04/fulfillment.d.ts.map +1 -1
  360. package/dist/rest-resources/2022-04/fulfillment.js +77 -1
  361. package/dist/rest-resources/2022-04/fulfillment_event.d.ts +3 -0
  362. package/dist/rest-resources/2022-04/fulfillment_event.d.ts.map +1 -1
  363. package/dist/rest-resources/2022-04/fulfillment_event.js +3 -0
  364. package/dist/rest-resources/2022-04/fulfillment_order.d.ts +4 -0
  365. package/dist/rest-resources/2022-04/fulfillment_order.d.ts.map +1 -1
  366. package/dist/rest-resources/2022-04/fulfillment_order.js +3 -0
  367. package/dist/rest-resources/2022-04/fulfillment_request.d.ts +6 -1
  368. package/dist/rest-resources/2022-04/fulfillment_request.d.ts.map +1 -1
  369. package/dist/rest-resources/2022-04/fulfillment_request.js +8 -5
  370. package/dist/rest-resources/2022-04/fulfillment_service.d.ts +3 -0
  371. package/dist/rest-resources/2022-04/fulfillment_service.d.ts.map +1 -1
  372. package/dist/rest-resources/2022-04/fulfillment_service.js +3 -0
  373. package/dist/rest-resources/2022-04/gift_card.d.ts +8 -1
  374. package/dist/rest-resources/2022-04/gift_card.d.ts.map +1 -1
  375. package/dist/rest-resources/2022-04/gift_card.js +8 -5
  376. package/dist/rest-resources/2022-04/gift_card_adjustment.d.ts +3 -0
  377. package/dist/rest-resources/2022-04/gift_card_adjustment.d.ts.map +1 -1
  378. package/dist/rest-resources/2022-04/gift_card_adjustment.js +3 -0
  379. package/dist/rest-resources/2022-04/image.d.ts +3 -0
  380. package/dist/rest-resources/2022-04/image.d.ts.map +1 -1
  381. package/dist/rest-resources/2022-04/image.js +3 -0
  382. package/dist/rest-resources/2022-04/inventory_item.d.ts +3 -0
  383. package/dist/rest-resources/2022-04/inventory_item.d.ts.map +1 -1
  384. package/dist/rest-resources/2022-04/inventory_item.js +3 -0
  385. package/dist/rest-resources/2022-04/inventory_level.d.ts +3 -0
  386. package/dist/rest-resources/2022-04/inventory_level.d.ts.map +1 -1
  387. package/dist/rest-resources/2022-04/inventory_level.js +3 -0
  388. package/dist/rest-resources/2022-04/location.d.ts +3 -0
  389. package/dist/rest-resources/2022-04/location.d.ts.map +1 -1
  390. package/dist/rest-resources/2022-04/location.js +3 -0
  391. package/dist/rest-resources/2022-04/locations_for_move.d.ts +3 -0
  392. package/dist/rest-resources/2022-04/locations_for_move.d.ts.map +1 -1
  393. package/dist/rest-resources/2022-04/locations_for_move.js +3 -0
  394. package/dist/rest-resources/2022-04/marketing_event.d.ts +3 -0
  395. package/dist/rest-resources/2022-04/marketing_event.d.ts.map +1 -1
  396. package/dist/rest-resources/2022-04/marketing_event.js +3 -0
  397. package/dist/rest-resources/2022-04/metafield.d.ts +6 -4
  398. package/dist/rest-resources/2022-04/metafield.d.ts.map +1 -1
  399. package/dist/rest-resources/2022-04/metafield.js +17 -11
  400. package/dist/rest-resources/2022-04/mobile_platform_application.d.ts +3 -0
  401. package/dist/rest-resources/2022-04/mobile_platform_application.d.ts.map +1 -1
  402. package/dist/rest-resources/2022-04/mobile_platform_application.js +3 -0
  403. package/dist/rest-resources/2022-04/order.d.ts +3 -0
  404. package/dist/rest-resources/2022-04/order.d.ts.map +1 -1
  405. package/dist/rest-resources/2022-04/order.js +3 -0
  406. package/dist/rest-resources/2022-04/order_risk.d.ts +3 -0
  407. package/dist/rest-resources/2022-04/order_risk.d.ts.map +1 -1
  408. package/dist/rest-resources/2022-04/order_risk.js +3 -0
  409. package/dist/rest-resources/2022-04/page.d.ts +3 -0
  410. package/dist/rest-resources/2022-04/page.d.ts.map +1 -1
  411. package/dist/rest-resources/2022-04/page.js +3 -0
  412. package/dist/rest-resources/2022-04/payment.d.ts +3 -0
  413. package/dist/rest-resources/2022-04/payment.d.ts.map +1 -1
  414. package/dist/rest-resources/2022-04/payment.js +3 -0
  415. package/dist/rest-resources/2022-04/payment_gateway.d.ts +3 -0
  416. package/dist/rest-resources/2022-04/payment_gateway.d.ts.map +1 -1
  417. package/dist/rest-resources/2022-04/payment_gateway.js +3 -0
  418. package/dist/rest-resources/2022-04/payment_transaction.d.ts +3 -0
  419. package/dist/rest-resources/2022-04/payment_transaction.d.ts.map +1 -1
  420. package/dist/rest-resources/2022-04/payment_transaction.js +3 -0
  421. package/dist/rest-resources/2022-04/payout.d.ts +3 -0
  422. package/dist/rest-resources/2022-04/payout.d.ts.map +1 -1
  423. package/dist/rest-resources/2022-04/payout.js +3 -0
  424. package/dist/rest-resources/2022-04/policy.d.ts +3 -0
  425. package/dist/rest-resources/2022-04/policy.d.ts.map +1 -1
  426. package/dist/rest-resources/2022-04/policy.js +3 -0
  427. package/dist/rest-resources/2022-04/price_rule.d.ts +3 -0
  428. package/dist/rest-resources/2022-04/price_rule.d.ts.map +1 -1
  429. package/dist/rest-resources/2022-04/price_rule.js +3 -0
  430. package/dist/rest-resources/2022-04/product.d.ts +3 -0
  431. package/dist/rest-resources/2022-04/product.d.ts.map +1 -1
  432. package/dist/rest-resources/2022-04/product.js +3 -0
  433. package/dist/rest-resources/2022-04/product_listing.d.ts +3 -0
  434. package/dist/rest-resources/2022-04/product_listing.d.ts.map +1 -1
  435. package/dist/rest-resources/2022-04/product_listing.js +3 -0
  436. package/dist/rest-resources/2022-04/product_resource_feedback.d.ts +3 -0
  437. package/dist/rest-resources/2022-04/product_resource_feedback.d.ts.map +1 -1
  438. package/dist/rest-resources/2022-04/product_resource_feedback.js +3 -0
  439. package/dist/rest-resources/2022-04/province.d.ts +3 -0
  440. package/dist/rest-resources/2022-04/province.d.ts.map +1 -1
  441. package/dist/rest-resources/2022-04/province.js +3 -0
  442. package/dist/rest-resources/2022-04/recurring_application_charge.d.ts +3 -0
  443. package/dist/rest-resources/2022-04/recurring_application_charge.d.ts.map +1 -1
  444. package/dist/rest-resources/2022-04/recurring_application_charge.js +3 -0
  445. package/dist/rest-resources/2022-04/redirect.d.ts +3 -0
  446. package/dist/rest-resources/2022-04/redirect.d.ts.map +1 -1
  447. package/dist/rest-resources/2022-04/redirect.js +3 -0
  448. package/dist/rest-resources/2022-04/refund.d.ts +3 -0
  449. package/dist/rest-resources/2022-04/refund.d.ts.map +1 -1
  450. package/dist/rest-resources/2022-04/refund.js +3 -0
  451. package/dist/rest-resources/2022-04/report.d.ts +3 -0
  452. package/dist/rest-resources/2022-04/report.d.ts.map +1 -1
  453. package/dist/rest-resources/2022-04/report.js +3 -0
  454. package/dist/rest-resources/2022-04/resource_feedback.d.ts +3 -0
  455. package/dist/rest-resources/2022-04/resource_feedback.d.ts.map +1 -1
  456. package/dist/rest-resources/2022-04/resource_feedback.js +3 -0
  457. package/dist/rest-resources/2022-04/script_tag.d.ts +3 -0
  458. package/dist/rest-resources/2022-04/script_tag.d.ts.map +1 -1
  459. package/dist/rest-resources/2022-04/script_tag.js +3 -0
  460. package/dist/rest-resources/2022-04/shipping_zone.d.ts +3 -0
  461. package/dist/rest-resources/2022-04/shipping_zone.d.ts.map +1 -1
  462. package/dist/rest-resources/2022-04/shipping_zone.js +3 -0
  463. package/dist/rest-resources/2022-04/shop.d.ts +3 -0
  464. package/dist/rest-resources/2022-04/shop.d.ts.map +1 -1
  465. package/dist/rest-resources/2022-04/shop.js +3 -0
  466. package/dist/rest-resources/2022-04/smart_collection.d.ts +3 -0
  467. package/dist/rest-resources/2022-04/smart_collection.d.ts.map +1 -1
  468. package/dist/rest-resources/2022-04/smart_collection.js +3 -0
  469. package/dist/rest-resources/2022-04/storefront_access_token.d.ts +3 -0
  470. package/dist/rest-resources/2022-04/storefront_access_token.d.ts.map +1 -1
  471. package/dist/rest-resources/2022-04/storefront_access_token.js +3 -0
  472. package/dist/rest-resources/2022-04/tender_transaction.d.ts +3 -0
  473. package/dist/rest-resources/2022-04/tender_transaction.d.ts.map +1 -1
  474. package/dist/rest-resources/2022-04/tender_transaction.js +3 -0
  475. package/dist/rest-resources/2022-04/theme.d.ts +3 -0
  476. package/dist/rest-resources/2022-04/theme.d.ts.map +1 -1
  477. package/dist/rest-resources/2022-04/theme.js +3 -0
  478. package/dist/rest-resources/2022-04/transaction.d.ts +3 -0
  479. package/dist/rest-resources/2022-04/transaction.d.ts.map +1 -1
  480. package/dist/rest-resources/2022-04/transaction.js +3 -0
  481. package/dist/rest-resources/2022-04/usage_charge.d.ts +3 -0
  482. package/dist/rest-resources/2022-04/usage_charge.d.ts.map +1 -1
  483. package/dist/rest-resources/2022-04/usage_charge.js +3 -0
  484. package/dist/rest-resources/2022-04/user.d.ts +3 -0
  485. package/dist/rest-resources/2022-04/user.d.ts.map +1 -1
  486. package/dist/rest-resources/2022-04/user.js +3 -0
  487. package/dist/rest-resources/2022-04/variant.d.ts +3 -0
  488. package/dist/rest-resources/2022-04/variant.d.ts.map +1 -1
  489. package/dist/rest-resources/2022-04/variant.js +3 -0
  490. package/dist/rest-resources/2022-04/webhook.d.ts +3 -0
  491. package/dist/rest-resources/2022-04/webhook.d.ts.map +1 -1
  492. package/dist/rest-resources/2022-04/webhook.js +3 -0
  493. package/dist/rest-resources/2022-07/abandoned_checkout.d.ts +2 -2
  494. package/dist/rest-resources/2022-07/abandoned_checkout.d.ts.map +1 -1
  495. package/dist/rest-resources/2022-07/abandoned_checkout.js +3 -2
  496. package/dist/rest-resources/2022-07/customer.d.ts +5 -0
  497. package/dist/rest-resources/2022-07/customer.d.ts.map +1 -1
  498. package/dist/rest-resources/2022-07/customer.js +21 -0
  499. package/dist/rest-resources/2022-07/dispute_evidence.d.ts +1 -1
  500. package/dist/rest-resources/2022-07/dispute_evidence.d.ts.map +1 -1
  501. package/dist/rest-resources/2022-07/gift_card.d.ts +5 -1
  502. package/dist/rest-resources/2022-07/gift_card.d.ts.map +1 -1
  503. package/dist/rest-resources/2022-07/gift_card.js +5 -5
  504. package/dist/rest-resources/2022-07/metafield.d.ts +3 -4
  505. package/dist/rest-resources/2022-07/metafield.d.ts.map +1 -1
  506. package/dist/rest-resources/2022-07/metafield.js +14 -11
  507. package/dist/rest-resources/2022-10/abandoned_checkout.d.ts +90 -0
  508. package/dist/rest-resources/2022-10/abandoned_checkout.d.ts.map +1 -0
  509. package/dist/rest-resources/2022-10/abandoned_checkout.js +56 -0
  510. package/dist/rest-resources/2022-10/access_scope.d.ts +30 -0
  511. package/dist/rest-resources/2022-10/access_scope.d.ts.map +1 -0
  512. package/dist/rest-resources/2022-10/access_scope.js +44 -0
  513. package/dist/rest-resources/2022-10/android_pay_key.d.ts +32 -0
  514. package/dist/rest-resources/2022-10/android_pay_key.d.ts.map +1 -0
  515. package/dist/rest-resources/2022-10/android_pay_key.js +65 -0
  516. package/dist/rest-resources/2022-10/apple_pay_certificate.d.ts +39 -0
  517. package/dist/rest-resources/2022-10/apple_pay_certificate.d.ts.map +1 -0
  518. package/dist/rest-resources/2022-10/apple_pay_certificate.js +89 -0
  519. package/dist/rest-resources/2022-10/application_charge.d.ts +42 -0
  520. package/dist/rest-resources/2022-10/application_charge.d.ts.map +1 -0
  521. package/dist/rest-resources/2022-10/application_charge.js +63 -0
  522. package/dist/rest-resources/2022-10/application_credit.d.ts +36 -0
  523. package/dist/rest-resources/2022-10/application_credit.d.ts.map +1 -0
  524. package/dist/rest-resources/2022-10/application_credit.js +63 -0
  525. package/dist/rest-resources/2022-10/article.d.ts +99 -0
  526. package/dist/rest-resources/2022-10/article.d.ts.map +1 -0
  527. package/dist/rest-resources/2022-10/article.js +158 -0
  528. package/dist/rest-resources/2022-10/asset.d.ts +49 -0
  529. package/dist/rest-resources/2022-10/asset.d.ts.map +1 -0
  530. package/dist/rest-resources/2022-10/asset.js +67 -0
  531. package/dist/rest-resources/2022-10/assigned_fulfillment_order.d.ts +39 -0
  532. package/dist/rest-resources/2022-10/assigned_fulfillment_order.d.ts.map +1 -0
  533. package/dist/rest-resources/2022-10/assigned_fulfillment_order.js +43 -0
  534. package/dist/rest-resources/2022-10/balance.d.ts +25 -0
  535. package/dist/rest-resources/2022-10/balance.d.ts.map +1 -0
  536. package/dist/rest-resources/2022-10/balance.js +43 -0
  537. package/dist/rest-resources/2022-10/blog.d.ts +60 -0
  538. package/dist/rest-resources/2022-10/blog.d.ts.map +1 -0
  539. package/dist/rest-resources/2022-10/blog.js +111 -0
  540. package/dist/rest-resources/2022-10/cancellation_request.d.ts +36 -0
  541. package/dist/rest-resources/2022-10/cancellation_request.d.ts.map +1 -0
  542. package/dist/rest-resources/2022-10/cancellation_request.js +71 -0
  543. package/dist/rest-resources/2022-10/carrier_service.d.ts +42 -0
  544. package/dist/rest-resources/2022-10/carrier_service.d.ts.map +1 -0
  545. package/dist/rest-resources/2022-10/carrier_service.js +85 -0
  546. package/dist/rest-resources/2022-10/checkout.d.ts +95 -0
  547. package/dist/rest-resources/2022-10/checkout.d.ts.map +1 -0
  548. package/dist/rest-resources/2022-10/checkout.js +100 -0
  549. package/dist/rest-resources/2022-10/collect.d.ts +51 -0
  550. package/dist/rest-resources/2022-10/collect.d.ts.map +1 -0
  551. package/dist/rest-resources/2022-10/collect.js +107 -0
  552. package/dist/rest-resources/2022-10/collection.d.ts +46 -0
  553. package/dist/rest-resources/2022-10/collection.d.ts.map +1 -0
  554. package/dist/rest-resources/2022-10/collection.js +69 -0
  555. package/dist/rest-resources/2022-10/collection_listing.d.ts +58 -0
  556. package/dist/rest-resources/2022-10/collection_listing.d.ts.map +1 -0
  557. package/dist/rest-resources/2022-10/collection_listing.js +111 -0
  558. package/dist/rest-resources/2022-10/comment.d.ts +103 -0
  559. package/dist/rest-resources/2022-10/comment.d.ts.map +1 -0
  560. package/dist/rest-resources/2022-10/comment.js +202 -0
  561. package/dist/rest-resources/2022-10/country.d.ts +51 -0
  562. package/dist/rest-resources/2022-10/country.d.ts.map +1 -0
  563. package/dist/rest-resources/2022-10/country.js +111 -0
  564. package/dist/rest-resources/2022-10/currency.d.ts +27 -0
  565. package/dist/rest-resources/2022-10/currency.d.ts.map +1 -0
  566. package/dist/rest-resources/2022-10/currency.js +43 -0
  567. package/dist/rest-resources/2022-10/custom_collection.d.ts +73 -0
  568. package/dist/rest-resources/2022-10/custom_collection.d.ts.map +1 -0
  569. package/dist/rest-resources/2022-10/custom_collection.js +108 -0
  570. package/dist/rest-resources/2022-10/customer.d.ts +119 -0
  571. package/dist/rest-resources/2022-10/customer.d.ts.map +1 -0
  572. package/dist/rest-resources/2022-10/customer.js +203 -0
  573. package/dist/rest-resources/2022-10/customer_address.d.ts +71 -0
  574. package/dist/rest-resources/2022-10/customer_address.d.ts.map +1 -0
  575. package/dist/rest-resources/2022-10/customer_address.js +134 -0
  576. package/dist/rest-resources/2022-10/customer_saved_search.d.ts +59 -0
  577. package/dist/rest-resources/2022-10/customer_saved_search.d.ts.map +1 -0
  578. package/dist/rest-resources/2022-10/customer_saved_search.js +131 -0
  579. package/dist/rest-resources/2022-10/deprecated_api_call.d.ts +29 -0
  580. package/dist/rest-resources/2022-10/deprecated_api_call.d.ts.map +1 -0
  581. package/dist/rest-resources/2022-10/deprecated_api_call.js +43 -0
  582. package/dist/rest-resources/2022-10/discount_code.d.ts +73 -0
  583. package/dist/rest-resources/2022-10/discount_code.d.ts.map +1 -0
  584. package/dist/rest-resources/2022-10/discount_code.js +178 -0
  585. package/dist/rest-resources/2022-10/dispute.d.ts +45 -0
  586. package/dist/rest-resources/2022-10/dispute.d.ts.map +1 -0
  587. package/dist/rest-resources/2022-10/dispute.js +62 -0
  588. package/dist/rest-resources/2022-10/dispute_evidence.d.ts +56 -0
  589. package/dist/rest-resources/2022-10/dispute_evidence.d.ts.map +1 -0
  590. package/dist/rest-resources/2022-10/dispute_evidence.js +48 -0
  591. package/dist/rest-resources/2022-10/dispute_file_upload.d.ts +35 -0
  592. package/dist/rest-resources/2022-10/dispute_file_upload.d.ts.map +1 -0
  593. package/dist/rest-resources/2022-10/dispute_file_upload.js +46 -0
  594. package/dist/rest-resources/2022-10/draft_order.d.ts +116 -0
  595. package/dist/rest-resources/2022-10/draft_order.d.ts.map +1 -0
  596. package/dist/rest-resources/2022-10/draft_order.js +157 -0
  597. package/dist/rest-resources/2022-10/event.d.ts +57 -0
  598. package/dist/rest-resources/2022-10/event.d.ts.map +1 -0
  599. package/dist/rest-resources/2022-10/event.js +87 -0
  600. package/dist/rest-resources/2022-10/fulfillment.d.ts +88 -0
  601. package/dist/rest-resources/2022-10/fulfillment.d.ts.map +1 -0
  602. package/dist/rest-resources/2022-10/fulfillment.js +133 -0
  603. package/dist/rest-resources/2022-10/fulfillment_event.d.ts +66 -0
  604. package/dist/rest-resources/2022-10/fulfillment_event.d.ts.map +1 -0
  605. package/dist/rest-resources/2022-10/fulfillment_event.js +92 -0
  606. package/dist/rest-resources/2022-10/fulfillment_order.d.ts +124 -0
  607. package/dist/rest-resources/2022-10/fulfillment_order.d.ts.map +1 -0
  608. package/dist/rest-resources/2022-10/fulfillment_order.js +246 -0
  609. package/dist/rest-resources/2022-10/fulfillment_request.d.ts +38 -0
  610. package/dist/rest-resources/2022-10/fulfillment_request.d.ts.map +1 -0
  611. package/dist/rest-resources/2022-10/fulfillment_request.js +71 -0
  612. package/dist/rest-resources/2022-10/fulfillment_service.d.ts +48 -0
  613. package/dist/rest-resources/2022-10/fulfillment_service.d.ts.map +1 -0
  614. package/dist/rest-resources/2022-10/fulfillment_service.js +85 -0
  615. package/dist/rest-resources/2022-10/gift_card.d.ts +77 -0
  616. package/dist/rest-resources/2022-10/gift_card.d.ts.map +1 -0
  617. package/dist/rest-resources/2022-10/gift_card.js +133 -0
  618. package/dist/rest-resources/2022-10/gift_card_adjustment.d.ts +45 -0
  619. package/dist/rest-resources/2022-10/gift_card_adjustment.d.ts.map +1 -0
  620. package/dist/rest-resources/2022-10/gift_card_adjustment.js +66 -0
  621. package/dist/rest-resources/2022-10/image.d.ts +57 -0
  622. package/dist/rest-resources/2022-10/image.d.ts.map +1 -0
  623. package/dist/rest-resources/2022-10/image.js +108 -0
  624. package/dist/rest-resources/2022-10/index.d.ts +77 -0
  625. package/dist/rest-resources/2022-10/index.d.ts.map +1 -0
  626. package/dist/rest-resources/2022-10/index.js +156 -0
  627. package/dist/rest-resources/2022-10/inventory_item.d.ts +45 -0
  628. package/dist/rest-resources/2022-10/inventory_item.d.ts.map +1 -0
  629. package/dist/rest-resources/2022-10/inventory_item.js +63 -0
  630. package/dist/rest-resources/2022-10/inventory_level.d.ts +70 -0
  631. package/dist/rest-resources/2022-10/inventory_level.d.ts.map +1 -0
  632. package/dist/rest-resources/2022-10/inventory_level.js +133 -0
  633. package/dist/rest-resources/2022-10/location.d.ts +58 -0
  634. package/dist/rest-resources/2022-10/location.d.ts.map +1 -0
  635. package/dist/rest-resources/2022-10/location.js +108 -0
  636. package/dist/rest-resources/2022-10/locations_for_move.d.ts +29 -0
  637. package/dist/rest-resources/2022-10/locations_for_move.d.ts.map +1 -0
  638. package/dist/rest-resources/2022-10/locations_for_move.js +43 -0
  639. package/dist/rest-resources/2022-10/marketing_event.d.ts +79 -0
  640. package/dist/rest-resources/2022-10/marketing_event.d.ts.map +1 -0
  641. package/dist/rest-resources/2022-10/marketing_event.js +131 -0
  642. package/dist/rest-resources/2022-10/metafield.d.ts +114 -0
  643. package/dist/rest-resources/2022-10/metafield.d.ts.map +1 -0
  644. package/dist/rest-resources/2022-10/metafield.js +172 -0
  645. package/dist/rest-resources/2022-10/mobile_platform_application.d.ts +41 -0
  646. package/dist/rest-resources/2022-10/mobile_platform_application.d.ts.map +1 -0
  647. package/dist/rest-resources/2022-10/mobile_platform_application.js +85 -0
  648. package/dist/rest-resources/2022-10/order.d.ts +223 -0
  649. package/dist/rest-resources/2022-10/order.d.ts.map +1 -0
  650. package/dist/rest-resources/2022-10/order.js +187 -0
  651. package/dist/rest-resources/2022-10/order_risk.d.ts +49 -0
  652. package/dist/rest-resources/2022-10/order_risk.d.ts.map +1 -0
  653. package/dist/rest-resources/2022-10/order_risk.js +88 -0
  654. package/dist/rest-resources/2022-10/page.d.ts +76 -0
  655. package/dist/rest-resources/2022-10/page.d.ts.map +1 -0
  656. package/dist/rest-resources/2022-10/page.js +111 -0
  657. package/dist/rest-resources/2022-10/payment.d.ts +55 -0
  658. package/dist/rest-resources/2022-10/payment.d.ts.map +1 -0
  659. package/dist/rest-resources/2022-10/payment.js +91 -0
  660. package/dist/rest-resources/2022-10/payment_gateway.d.ts +52 -0
  661. package/dist/rest-resources/2022-10/payment_gateway.d.ts.map +1 -0
  662. package/dist/rest-resources/2022-10/payment_gateway.js +85 -0
  663. package/dist/rest-resources/2022-10/payment_transaction.d.ts +47 -0
  664. package/dist/rest-resources/2022-10/payment_transaction.d.ts.map +1 -0
  665. package/dist/rest-resources/2022-10/payment_transaction.js +50 -0
  666. package/dist/rest-resources/2022-10/payout.d.ts +41 -0
  667. package/dist/rest-resources/2022-10/payout.d.ts.map +1 -0
  668. package/dist/rest-resources/2022-10/payout.js +62 -0
  669. package/dist/rest-resources/2022-10/policy.d.ts +31 -0
  670. package/dist/rest-resources/2022-10/policy.d.ts.map +1 -0
  671. package/dist/rest-resources/2022-10/policy.js +43 -0
  672. package/dist/rest-resources/2022-10/price_rule.d.ts +90 -0
  673. package/dist/rest-resources/2022-10/price_rule.d.ts.map +1 -0
  674. package/dist/rest-resources/2022-10/price_rule.js +108 -0
  675. package/dist/rest-resources/2022-10/product.d.ts +95 -0
  676. package/dist/rest-resources/2022-10/product.d.ts.map +1 -0
  677. package/dist/rest-resources/2022-10/product.js +113 -0
  678. package/dist/rest-resources/2022-10/product_listing.d.ts +73 -0
  679. package/dist/rest-resources/2022-10/product_listing.d.ts.map +1 -0
  680. package/dist/rest-resources/2022-10/product_listing.js +136 -0
  681. package/dist/rest-resources/2022-10/product_resource_feedback.d.ts +36 -0
  682. package/dist/rest-resources/2022-10/product_resource_feedback.d.ts.map +1 -0
  683. package/dist/rest-resources/2022-10/product_resource_feedback.js +47 -0
  684. package/dist/rest-resources/2022-10/province.d.ts +50 -0
  685. package/dist/rest-resources/2022-10/province.d.ts.map +1 -0
  686. package/dist/rest-resources/2022-10/province.js +86 -0
  687. package/dist/rest-resources/2022-10/recurring_application_charge.d.ts +61 -0
  688. package/dist/rest-resources/2022-10/recurring_application_charge.d.ts.map +1 -0
  689. package/dist/rest-resources/2022-10/recurring_application_charge.js +107 -0
  690. package/dist/rest-resources/2022-10/redirect.d.ts +51 -0
  691. package/dist/rest-resources/2022-10/redirect.d.ts.map +1 -0
  692. package/dist/rest-resources/2022-10/redirect.js +108 -0
  693. package/dist/rest-resources/2022-10/refund.d.ts +70 -0
  694. package/dist/rest-resources/2022-10/refund.d.ts.map +1 -0
  695. package/dist/rest-resources/2022-10/refund.js +89 -0
  696. package/dist/rest-resources/2022-10/report.d.ts +47 -0
  697. package/dist/rest-resources/2022-10/report.d.ts.map +1 -0
  698. package/dist/rest-resources/2022-10/report.js +85 -0
  699. package/dist/rest-resources/2022-10/resource_feedback.d.ts +32 -0
  700. package/dist/rest-resources/2022-10/resource_feedback.d.ts.map +1 -0
  701. package/dist/rest-resources/2022-10/resource_feedback.js +44 -0
  702. package/dist/rest-resources/2022-10/script_tag.d.ts +57 -0
  703. package/dist/rest-resources/2022-10/script_tag.d.ts.map +1 -0
  704. package/dist/rest-resources/2022-10/script_tag.js +108 -0
  705. package/dist/rest-resources/2022-10/shipping_zone.d.ts +45 -0
  706. package/dist/rest-resources/2022-10/shipping_zone.d.ts.map +1 -0
  707. package/dist/rest-resources/2022-10/shipping_zone.js +48 -0
  708. package/dist/rest-resources/2022-10/shop.d.ts +82 -0
  709. package/dist/rest-resources/2022-10/shop.d.ts.map +1 -0
  710. package/dist/rest-resources/2022-10/shop.js +43 -0
  711. package/dist/rest-resources/2022-10/smart_collection.d.ts +87 -0
  712. package/dist/rest-resources/2022-10/smart_collection.d.ts.map +1 -0
  713. package/dist/rest-resources/2022-10/smart_collection.js +131 -0
  714. package/dist/rest-resources/2022-10/storefront_access_token.d.ts +35 -0
  715. package/dist/rest-resources/2022-10/storefront_access_token.d.ts.map +1 -0
  716. package/dist/rest-resources/2022-10/storefront_access_token.js +65 -0
  717. package/dist/rest-resources/2022-10/tender_transaction.d.ts +43 -0
  718. package/dist/rest-resources/2022-10/tender_transaction.d.ts.map +1 -0
  719. package/dist/rest-resources/2022-10/tender_transaction.js +43 -0
  720. package/dist/rest-resources/2022-10/theme.d.ts +45 -0
  721. package/dist/rest-resources/2022-10/theme.d.ts.map +1 -0
  722. package/dist/rest-resources/2022-10/theme.js +85 -0
  723. package/dist/rest-resources/2022-10/transaction.d.ts +77 -0
  724. package/dist/rest-resources/2022-10/transaction.d.ts.map +1 -0
  725. package/dist/rest-resources/2022-10/transaction.js +86 -0
  726. package/dist/rest-resources/2022-10/usage_charge.d.ts +40 -0
  727. package/dist/rest-resources/2022-10/usage_charge.d.ts.map +1 -0
  728. package/dist/rest-resources/2022-10/usage_charge.js +63 -0
  729. package/dist/rest-resources/2022-10/user.d.ts +51 -0
  730. package/dist/rest-resources/2022-10/user.d.ts.map +1 -0
  731. package/dist/rest-resources/2022-10/user.js +85 -0
  732. package/dist/rest-resources/2022-10/variant.d.ts +79 -0
  733. package/dist/rest-resources/2022-10/variant.d.ts.map +1 -0
  734. package/dist/rest-resources/2022-10/variant.js +112 -0
  735. package/dist/rest-resources/2022-10/webhook.d.ts +62 -0
  736. package/dist/rest-resources/2022-10/webhook.d.ts.map +1 -0
  737. package/dist/rest-resources/2022-10/webhook.js +108 -0
  738. package/dist/types.d.ts +1 -0
  739. package/dist/types.d.ts.map +1 -1
  740. package/dist/types.js +1 -0
  741. package/dist/utils/decode-session-token.js +1 -1
  742. package/dist/utils/get-embedded-app-url.d.ts +1 -0
  743. package/dist/utils/get-embedded-app-url.d.ts.map +1 -1
  744. package/dist/utils/get-embedded-app-url.js +8 -2
  745. package/dist/utils/setup-jest.d.ts.map +1 -1
  746. package/dist/utils/setup-jest.js +10 -1
  747. package/dist/version.d.ts +1 -1
  748. package/dist/version.js +1 -1
  749. package/dist/webhooks/registry.js +1 -1
  750. package/package.json +2 -2
@@ -13,18 +13,18 @@ var Metafield = /** @class */ (function (_super) {
13
13
  return _super !== null && _super.apply(this, arguments) || this;
14
14
  }
15
15
  Metafield.find = function (_a) {
16
- var session = _a.session, id = _a.id, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l;
16
+ var session = _a.session, id = _a.id, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l, _m = _a.fields, fields = _m === void 0 ? null : _m;
17
17
  return tslib_1.__awaiter(this, void 0, void 0, function () {
18
18
  var result;
19
- return tslib_1.__generator(this, function (_m) {
20
- switch (_m.label) {
19
+ return tslib_1.__generator(this, function (_o) {
20
+ switch (_o.label) {
21
21
  case 0: return [4 /*yield*/, Metafield.baseFind({
22
22
  session: session,
23
23
  urlIds: { "id": id, "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
24
- params: {},
24
+ params: { "fields": fields },
25
25
  })];
26
26
  case 1:
27
- result = _m.sent();
27
+ result = _o.sent();
28
28
  return [2 /*return*/, result ? result[0] : null];
29
29
  }
30
30
  });
@@ -51,18 +51,18 @@ var Metafield = /** @class */ (function (_super) {
51
51
  });
52
52
  };
53
53
  Metafield.all = function (_a) {
54
- var session = _a.session, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l, _m = _a.limit, limit = _m === void 0 ? null : _m, _o = _a.since_id, since_id = _o === void 0 ? null : _o, _p = _a.created_at_min, created_at_min = _p === void 0 ? null : _p, _q = _a.created_at_max, created_at_max = _q === void 0 ? null : _q, _r = _a.updated_at_min, updated_at_min = _r === void 0 ? null : _r, _s = _a.updated_at_max, updated_at_max = _s === void 0 ? null : _s, _t = _a.namespace, namespace = _t === void 0 ? null : _t, _u = _a.key, key = _u === void 0 ? null : _u, _v = _a.type, type = _v === void 0 ? null : _v, _w = _a.value_type, value_type = _w === void 0 ? null : _w, _x = _a.fields, fields = _x === void 0 ? null : _x, _y = _a.metafield, metafield = _y === void 0 ? null : _y, otherArgs = tslib_1.__rest(_a, ["session", "article_id", "blog_id", "collection_id", "customer_id", "draft_order_id", "order_id", "page_id", "product_image_id", "product_id", "variant_id", "limit", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "namespace", "key", "type", "value_type", "fields", "metafield"]);
54
+ var session = _a.session, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l, _m = _a.limit, limit = _m === void 0 ? null : _m, _o = _a.since_id, since_id = _o === void 0 ? null : _o, _p = _a.created_at_min, created_at_min = _p === void 0 ? null : _p, _q = _a.created_at_max, created_at_max = _q === void 0 ? null : _q, _r = _a.updated_at_min, updated_at_min = _r === void 0 ? null : _r, _s = _a.updated_at_max, updated_at_max = _s === void 0 ? null : _s, _t = _a.namespace, namespace = _t === void 0 ? null : _t, _u = _a.key, key = _u === void 0 ? null : _u, _v = _a.type, type = _v === void 0 ? null : _v, _w = _a.fields, fields = _w === void 0 ? null : _w, _x = _a.metafield, metafield = _x === void 0 ? null : _x, otherArgs = tslib_1.__rest(_a, ["session", "article_id", "blog_id", "collection_id", "customer_id", "draft_order_id", "order_id", "page_id", "product_image_id", "product_id", "variant_id", "limit", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "namespace", "key", "type", "fields", "metafield"]);
55
55
  return tslib_1.__awaiter(this, void 0, void 0, function () {
56
56
  var response;
57
- return tslib_1.__generator(this, function (_z) {
58
- switch (_z.label) {
57
+ return tslib_1.__generator(this, function (_y) {
58
+ switch (_y.label) {
59
59
  case 0: return [4 /*yield*/, Metafield.baseFind({
60
60
  session: session,
61
61
  urlIds: { "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
62
- params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "namespace": namespace, "key": key, "type": type, "value_type": value_type, "fields": fields, "metafield": metafield }, otherArgs),
62
+ params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "namespace": namespace, "key": key, "type": type, "fields": fields, "metafield": metafield }, otherArgs),
63
63
  })];
64
64
  case 1:
65
- response = _z.sent();
65
+ response = _y.sent();
66
66
  return [2 /*return*/, response];
67
67
  }
68
68
  });
@@ -105,6 +105,7 @@ var Metafield = /** @class */ (function (_super) {
105
105
  { "http_method": "delete", "operation": "delete", "ids": ["order_id", "id"], "path": "orders/<order_id>/metafields/<id>.json" },
106
106
  { "http_method": "delete", "operation": "delete", "ids": ["page_id", "id"], "path": "pages/<page_id>/metafields/<id>.json" },
107
107
  { "http_method": "delete", "operation": "delete", "ids": ["product_image_id", "id"], "path": "product_images/<product_image_id>/metafields/<id>.json" },
108
+ { "http_method": "delete", "operation": "delete", "ids": ["product_image_id", "id"], "path": "product_images/<product_image_id>/metafields/<id>.json" },
108
109
  { "http_method": "delete", "operation": "delete", "ids": ["product_id", "id"], "path": "products/<product_id>/metafields/<id>.json" },
109
110
  { "http_method": "delete", "operation": "delete", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" },
110
111
  { "http_method": "get", "operation": "count", "ids": ["article_id"], "path": "articles/<article_id>/metafields/count.json" },
@@ -115,12 +116,14 @@ var Metafield = /** @class */ (function (_super) {
115
116
  { "http_method": "get", "operation": "count", "ids": [], "path": "metafields/count.json" },
116
117
  { "http_method": "get", "operation": "count", "ids": ["order_id"], "path": "orders/<order_id>/metafields/count.json" },
117
118
  { "http_method": "get", "operation": "count", "ids": ["page_id"], "path": "pages/<page_id>/metafields/count.json" },
119
+ { "http_method": "get", "operation": "count", "ids": ["page_id"], "path": "pages/<page_id>/metafields/count.json" },
118
120
  { "http_method": "get", "operation": "count", "ids": ["product_image_id"], "path": "product_images/<product_image_id>/metafields/count.json" },
119
121
  { "http_method": "get", "operation": "count", "ids": ["product_id"], "path": "products/<product_id>/metafields/count.json" },
120
122
  { "http_method": "get", "operation": "count", "ids": ["variant_id"], "path": "variants/<variant_id>/metafields/count.json" },
121
123
  { "http_method": "get", "operation": "get", "ids": ["article_id"], "path": "articles/<article_id>/metafields.json" },
122
124
  { "http_method": "get", "operation": "get", "ids": ["article_id", "id"], "path": "articles/<article_id>/metafields/<id>.json" },
123
125
  { "http_method": "get", "operation": "get", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields.json" },
126
+ { "http_method": "get", "operation": "get", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields.json" },
124
127
  { "http_method": "get", "operation": "get", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/metafields/<id>.json" },
125
128
  { "http_method": "get", "operation": "get", "ids": ["collection_id"], "path": "collections/<collection_id>/metafields.json" },
126
129
  { "http_method": "get", "operation": "get", "ids": ["collection_id", "id"], "path": "collections/<collection_id>/metafields/<id>.json" },
@@ -129,7 +132,6 @@ var Metafield = /** @class */ (function (_super) {
129
132
  { "http_method": "get", "operation": "get", "ids": ["draft_order_id"], "path": "draft_orders/<draft_order_id>/metafields.json" },
130
133
  { "http_method": "get", "operation": "get", "ids": ["draft_order_id", "id"], "path": "draft_orders/<draft_order_id>/metafields/<id>.json" },
131
134
  { "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
132
- { "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
133
135
  { "http_method": "get", "operation": "get", "ids": ["id"], "path": "metafields/<id>.json" },
134
136
  { "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/metafields.json" },
135
137
  { "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/metafields/<id>.json" },
@@ -141,6 +143,7 @@ var Metafield = /** @class */ (function (_super) {
141
143
  { "http_method": "get", "operation": "get", "ids": ["product_id", "id"], "path": "products/<product_id>/metafields/<id>.json" },
142
144
  { "http_method": "get", "operation": "get", "ids": ["variant_id"], "path": "variants/<variant_id>/metafields.json" },
143
145
  { "http_method": "get", "operation": "get", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" },
146
+ { "http_method": "get", "operation": "get", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" },
144
147
  { "http_method": "post", "operation": "post", "ids": ["article_id"], "path": "articles/<article_id>/metafields.json" },
145
148
  { "http_method": "post", "operation": "post", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields.json" },
146
149
  { "http_method": "post", "operation": "post", "ids": ["collection_id"], "path": "collections/<collection_id>/metafields.json" },
@@ -0,0 +1,90 @@
1
+ /***********************************************************************************************************************
2
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
3
+ ***********************************************************************************************************************/
4
+ import Base, { ResourcePath } from '../../base-rest-resource';
5
+ import { SessionInterface } from '../../auth/session/types';
6
+ import { ApiVersion } from '../../base-types';
7
+ import { Currency } from './currency';
8
+ import { Customer } from './customer';
9
+ import { DiscountCode } from './discount_code';
10
+ interface CheckoutsArgs {
11
+ [key: string]: unknown;
12
+ session: SessionInterface;
13
+ since_id?: unknown;
14
+ created_at_min?: unknown;
15
+ created_at_max?: unknown;
16
+ updated_at_min?: unknown;
17
+ updated_at_max?: unknown;
18
+ status?: unknown;
19
+ limit?: unknown;
20
+ }
21
+ export declare class AbandonedCheckout extends Base {
22
+ static API_VERSION: ApiVersion;
23
+ protected static NAME: string;
24
+ protected static PLURAL_NAME: string;
25
+ protected static HAS_ONE: {
26
+ [key: string]: typeof Base;
27
+ };
28
+ protected static HAS_MANY: {
29
+ [key: string]: typeof Base;
30
+ };
31
+ protected static PATHS: ResourcePath[];
32
+ static checkouts({ session, since_id, created_at_min, created_at_max, updated_at_min, updated_at_max, status, limit, ...otherArgs }: CheckoutsArgs): Promise<unknown>;
33
+ abandoned_checkout_url: string | null;
34
+ billing_address: {
35
+ [key: string]: unknown;
36
+ } | null;
37
+ buyer_accepts_marketing: boolean | null;
38
+ buyer_accepts_sms_marketing: boolean | null;
39
+ cart_token: string | null;
40
+ closed_at: string | null;
41
+ completed_at: string | null;
42
+ created_at: string | null;
43
+ currency: Currency | null | {
44
+ [key: string]: any;
45
+ };
46
+ customer: Customer | null | {
47
+ [key: string]: any;
48
+ };
49
+ customer_locale: string | null;
50
+ device_id: number | null;
51
+ discount_codes: DiscountCode[] | null | {
52
+ [key: string]: any;
53
+ };
54
+ email: string | null;
55
+ gateway: string | null;
56
+ id: number | null;
57
+ landing_site: string | null;
58
+ line_items: {
59
+ [key: string]: unknown;
60
+ } | null;
61
+ location_id: number | null;
62
+ note: string | null;
63
+ phone: string | null;
64
+ presentment_currency: string | null;
65
+ referring_site: string | null;
66
+ shipping_address: {
67
+ [key: string]: unknown;
68
+ } | null;
69
+ shipping_lines: {
70
+ [key: string]: unknown;
71
+ } | null;
72
+ sms_marketing_phone: string | null;
73
+ source_name: string | null;
74
+ subtotal_price: string | null;
75
+ tax_lines: {
76
+ [key: string]: unknown;
77
+ } | null;
78
+ taxes_included: boolean | null;
79
+ token: string | null;
80
+ total_discounts: string | null;
81
+ total_duties: string | null;
82
+ total_line_items_price: string | null;
83
+ total_price: string | null;
84
+ total_tax: string | null;
85
+ total_weight: number | null;
86
+ updated_at: string | null;
87
+ user_id: number | null;
88
+ }
89
+ export {};
90
+ //# sourceMappingURL=abandoned_checkout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abandoned_checkout.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-10/abandoned_checkout.ts"],"names":[],"mappings":"AAAA;;wHAEwH;AAExH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,UAAU,aAAa;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,iBAAkB,SAAQ,IAAI;IACzC,OAAc,WAAW,aAAwB;IAEjD,SAAS,CAAC,MAAM,CAAC,IAAI,SAAwB;IAC7C,SAAS,CAAC,MAAM,CAAC,WAAW,SAAyB;IACrD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAGpD;IACF,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAErD;IACF,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAGpC;WAEkB,SAAS,CAC3B,EACE,OAAO,EACP,QAAe,EACf,cAAqB,EACrB,cAAqB,EACrB,cAAqB,EACrB,cAAqB,EACrB,MAAa,EACb,KAAY,EACZ,GAAG,SAAS,EACb,EAAE,aAAa,GACf,OAAO,CAAC,OAAO,CAAC;IAcZ,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IACjD,uBAAuB,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IACjD,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IACjD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,YAAY,EAAE,GAAG,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC7D,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IAClD,cAAc,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IAChD,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /***********************************************************************************************************************
3
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
4
+ ***********************************************************************************************************************/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AbandonedCheckout = void 0;
7
+ var tslib_1 = require("tslib");
8
+ var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
9
+ var base_types_1 = require("../../base-types");
10
+ var currency_1 = require("./currency");
11
+ var customer_1 = require("./customer");
12
+ var discount_code_1 = require("./discount_code");
13
+ var AbandonedCheckout = /** @class */ (function (_super) {
14
+ tslib_1.__extends(AbandonedCheckout, _super);
15
+ function AbandonedCheckout() {
16
+ return _super !== null && _super.apply(this, arguments) || this;
17
+ }
18
+ AbandonedCheckout.checkouts = function (_a) {
19
+ var session = _a.session, _b = _a.since_id, since_id = _b === void 0 ? null : _b, _c = _a.created_at_min, created_at_min = _c === void 0 ? null : _c, _d = _a.created_at_max, created_at_max = _d === void 0 ? null : _d, _e = _a.updated_at_min, updated_at_min = _e === void 0 ? null : _e, _f = _a.updated_at_max, updated_at_max = _f === void 0 ? null : _f, _g = _a.status, status = _g === void 0 ? null : _g, _h = _a.limit, limit = _h === void 0 ? null : _h, otherArgs = tslib_1.__rest(_a, ["session", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "status", "limit"]);
20
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
21
+ var response;
22
+ return tslib_1.__generator(this, function (_j) {
23
+ switch (_j.label) {
24
+ case 0: return [4 /*yield*/, AbandonedCheckout.request({
25
+ http_method: "get",
26
+ operation: "checkouts",
27
+ session: session,
28
+ urlIds: {},
29
+ params: tslib_1.__assign({ "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "status": status, "limit": limit }, otherArgs),
30
+ body: {},
31
+ entity: null,
32
+ })];
33
+ case 1:
34
+ response = _j.sent();
35
+ return [2 /*return*/, response ? response.body : null];
36
+ }
37
+ });
38
+ });
39
+ };
40
+ AbandonedCheckout.API_VERSION = base_types_1.ApiVersion.October22;
41
+ AbandonedCheckout.NAME = 'abandoned_checkout';
42
+ AbandonedCheckout.PLURAL_NAME = 'abandoned_checkouts';
43
+ AbandonedCheckout.HAS_ONE = {
44
+ "currency": currency_1.Currency,
45
+ "customer": customer_1.Customer
46
+ };
47
+ AbandonedCheckout.HAS_MANY = {
48
+ "discount_codes": discount_code_1.DiscountCode
49
+ };
50
+ AbandonedCheckout.PATHS = [
51
+ { "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" },
52
+ { "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" }
53
+ ];
54
+ return AbandonedCheckout;
55
+ }(base_rest_resource_1.default));
56
+ exports.AbandonedCheckout = AbandonedCheckout;
@@ -0,0 +1,30 @@
1
+ /***********************************************************************************************************************
2
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
3
+ ***********************************************************************************************************************/
4
+ import Base, { ResourcePath } from '../../base-rest-resource';
5
+ import { SessionInterface } from '../../auth/session/types';
6
+ import { ApiVersion } from '../../base-types';
7
+ interface AllArgs {
8
+ [key: string]: unknown;
9
+ session: SessionInterface;
10
+ }
11
+ export declare class AccessScope extends Base {
12
+ static API_VERSION: ApiVersion;
13
+ protected static NAME: string;
14
+ protected static PLURAL_NAME: string;
15
+ protected static HAS_ONE: {
16
+ [key: string]: typeof Base;
17
+ };
18
+ protected static HAS_MANY: {
19
+ [key: string]: typeof Base;
20
+ };
21
+ protected static CUSTOM_PREFIX: string | null;
22
+ protected static PATHS: ResourcePath[];
23
+ static all({ session, ...otherArgs }: AllArgs): Promise<AccessScope[]>;
24
+ handle: string | null;
25
+ access_scopes: {
26
+ [key: string]: unknown;
27
+ }[] | null;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=access_scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access_scope.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-10/access_scope.ts"],"names":[],"mappings":"AAAA;;wHAEwH;AAExH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,qBAAa,WAAY,SAAQ,IAAI;IACnC,OAAc,WAAW,aAAwB;IAEjD,SAAS,CAAC,MAAM,CAAC,IAAI,SAAkB;IACvC,SAAS,CAAC,MAAM,CAAC,WAAW,SAAmB;IAC/C,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC7D,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAkB;IAC/D,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAEpC;WAEkB,GAAG,CACrB,EACE,OAAO,EACP,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,WAAW,EAAE,CAAC;IAUlB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,EAAE,GAAG,IAAI,CAAC;CACzD"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /***********************************************************************************************************************
3
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
4
+ ***********************************************************************************************************************/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccessScope = void 0;
7
+ var tslib_1 = require("tslib");
8
+ var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
9
+ var base_types_1 = require("../../base-types");
10
+ var AccessScope = /** @class */ (function (_super) {
11
+ tslib_1.__extends(AccessScope, _super);
12
+ function AccessScope() {
13
+ return _super !== null && _super.apply(this, arguments) || this;
14
+ }
15
+ AccessScope.all = function (_a) {
16
+ var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
17
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
18
+ var response;
19
+ return tslib_1.__generator(this, function (_b) {
20
+ switch (_b.label) {
21
+ case 0: return [4 /*yield*/, AccessScope.baseFind({
22
+ session: session,
23
+ urlIds: {},
24
+ params: tslib_1.__assign({}, otherArgs),
25
+ })];
26
+ case 1:
27
+ response = _b.sent();
28
+ return [2 /*return*/, response];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ AccessScope.API_VERSION = base_types_1.ApiVersion.October22;
34
+ AccessScope.NAME = 'access_scope';
35
+ AccessScope.PLURAL_NAME = 'access_scopes';
36
+ AccessScope.HAS_ONE = {};
37
+ AccessScope.HAS_MANY = {};
38
+ AccessScope.CUSTOM_PREFIX = "/admin/oauth";
39
+ AccessScope.PATHS = [
40
+ { "http_method": "get", "operation": "get", "ids": [], "path": "access_scopes.json" }
41
+ ];
42
+ return AccessScope;
43
+ }(base_rest_resource_1.default));
44
+ exports.AccessScope = AccessScope;
@@ -0,0 +1,32 @@
1
+ /***********************************************************************************************************************
2
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
3
+ ***********************************************************************************************************************/
4
+ import Base, { ResourcePath } from '../../base-rest-resource';
5
+ import { SessionInterface } from '../../auth/session/types';
6
+ import { ApiVersion } from '../../base-types';
7
+ interface FindArgs {
8
+ session: SessionInterface;
9
+ id: number | string;
10
+ }
11
+ interface DeleteArgs {
12
+ session: SessionInterface;
13
+ id: number | string;
14
+ }
15
+ export declare class AndroidPayKey extends Base {
16
+ static API_VERSION: ApiVersion;
17
+ protected static NAME: string;
18
+ protected static PLURAL_NAME: string;
19
+ protected static HAS_ONE: {
20
+ [key: string]: typeof Base;
21
+ };
22
+ protected static HAS_MANY: {
23
+ [key: string]: typeof Base;
24
+ };
25
+ protected static PATHS: ResourcePath[];
26
+ static find({ session, id }: FindArgs): Promise<AndroidPayKey | null>;
27
+ static delete({ session, id }: DeleteArgs): Promise<unknown>;
28
+ id: number | null;
29
+ public_key: string | null;
30
+ }
31
+ export {};
32
+ //# sourceMappingURL=android_pay_key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android_pay_key.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-10/android_pay_key.ts"],"names":[],"mappings":"AAAA;;wHAEwH;AAExH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,qBAAa,aAAc,SAAQ,IAAI;IACrC,OAAc,WAAW,aAAwB;IAEjD,SAAS,CAAC,MAAM,CAAC,IAAI,SAAqB;IAC1C,SAAS,CAAC,MAAM,CAAC,WAAW,SAAsB;IAClD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC7D,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAIpC;WAEkB,IAAI,CACtB,EACE,OAAO,EACP,EAAE,EACH,EAAE,QAAQ,GACV,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;WASZ,MAAM,CACxB,EACE,OAAO,EACP,EAAE,EACH,EAAE,UAAU,GACZ,OAAO,CAAC,OAAO,CAAC;IAYZ,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /***********************************************************************************************************************
3
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
4
+ ***********************************************************************************************************************/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AndroidPayKey = void 0;
7
+ var tslib_1 = require("tslib");
8
+ var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
9
+ var base_types_1 = require("../../base-types");
10
+ var AndroidPayKey = /** @class */ (function (_super) {
11
+ tslib_1.__extends(AndroidPayKey, _super);
12
+ function AndroidPayKey() {
13
+ return _super !== null && _super.apply(this, arguments) || this;
14
+ }
15
+ AndroidPayKey.find = function (_a) {
16
+ var session = _a.session, id = _a.id;
17
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
18
+ var result;
19
+ return tslib_1.__generator(this, function (_b) {
20
+ switch (_b.label) {
21
+ case 0: return [4 /*yield*/, AndroidPayKey.baseFind({
22
+ session: session,
23
+ urlIds: { "id": id },
24
+ params: {},
25
+ })];
26
+ case 1:
27
+ result = _b.sent();
28
+ return [2 /*return*/, result ? result[0] : null];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ AndroidPayKey.delete = function (_a) {
34
+ var session = _a.session, id = _a.id;
35
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
36
+ var response;
37
+ return tslib_1.__generator(this, function (_b) {
38
+ switch (_b.label) {
39
+ case 0: return [4 /*yield*/, AndroidPayKey.request({
40
+ http_method: "delete",
41
+ operation: "delete",
42
+ session: session,
43
+ urlIds: { "id": id },
44
+ params: {},
45
+ })];
46
+ case 1:
47
+ response = _b.sent();
48
+ return [2 /*return*/, response ? response.body : null];
49
+ }
50
+ });
51
+ });
52
+ };
53
+ AndroidPayKey.API_VERSION = base_types_1.ApiVersion.October22;
54
+ AndroidPayKey.NAME = 'android_pay_key';
55
+ AndroidPayKey.PLURAL_NAME = 'android_pay_keys';
56
+ AndroidPayKey.HAS_ONE = {};
57
+ AndroidPayKey.HAS_MANY = {};
58
+ AndroidPayKey.PATHS = [
59
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "android_pay_keys/<id>.json" },
60
+ { "http_method": "get", "operation": "get", "ids": ["id"], "path": "android_pay_keys/<id>.json" },
61
+ { "http_method": "post", "operation": "post", "ids": [], "path": "android_pay_keys.json" }
62
+ ];
63
+ return AndroidPayKey;
64
+ }(base_rest_resource_1.default));
65
+ exports.AndroidPayKey = AndroidPayKey;
@@ -0,0 +1,39 @@
1
+ /***********************************************************************************************************************
2
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
3
+ ***********************************************************************************************************************/
4
+ import Base, { ResourcePath } from '../../base-rest-resource';
5
+ import { SessionInterface } from '../../auth/session/types';
6
+ import { ApiVersion } from '../../base-types';
7
+ interface FindArgs {
8
+ session: SessionInterface;
9
+ id: number | string;
10
+ }
11
+ interface DeleteArgs {
12
+ session: SessionInterface;
13
+ id: number | string;
14
+ }
15
+ interface CsrArgs {
16
+ [key: string]: unknown;
17
+ session: SessionInterface;
18
+ id: number | string;
19
+ }
20
+ export declare class ApplePayCertificate extends Base {
21
+ static API_VERSION: ApiVersion;
22
+ protected static NAME: string;
23
+ protected static PLURAL_NAME: string;
24
+ protected static HAS_ONE: {
25
+ [key: string]: typeof Base;
26
+ };
27
+ protected static HAS_MANY: {
28
+ [key: string]: typeof Base;
29
+ };
30
+ protected static PATHS: ResourcePath[];
31
+ static find({ session, id }: FindArgs): Promise<ApplePayCertificate | null>;
32
+ static delete({ session, id }: DeleteArgs): Promise<unknown>;
33
+ static csr({ session, id, ...otherArgs }: CsrArgs): Promise<unknown>;
34
+ id: number | null;
35
+ merchant_id: string | null;
36
+ status: string | null;
37
+ }
38
+ export {};
39
+ //# sourceMappingURL=apple_pay_certificate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple_pay_certificate.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-10/apple_pay_certificate.ts"],"names":[],"mappings":"AAAA;;wHAEwH;AAExH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,qBAAa,mBAAoB,SAAQ,IAAI;IAC3C,OAAc,WAAW,aAAwB;IAEjD,SAAS,CAAC,MAAM,CAAC,IAAI,SAA2B;IAChD,SAAS,CAAC,MAAM,CAAC,WAAW,SAA4B;IACxD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC7D,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAMpC;WAEkB,IAAI,CACtB,EACE,OAAO,EACP,EAAE,EACH,EAAE,QAAQ,GACV,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;WASlB,MAAM,CACxB,EACE,OAAO,EACP,EAAE,EACH,EAAE,UAAU,GACZ,OAAO,CAAC,OAAO,CAAC;WAYC,GAAG,CACrB,EACE,OAAO,EACP,EAAE,EACF,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,OAAO,CAAC;IAcZ,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ /***********************************************************************************************************************
3
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
4
+ ***********************************************************************************************************************/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ApplePayCertificate = void 0;
7
+ var tslib_1 = require("tslib");
8
+ var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
9
+ var base_types_1 = require("../../base-types");
10
+ var ApplePayCertificate = /** @class */ (function (_super) {
11
+ tslib_1.__extends(ApplePayCertificate, _super);
12
+ function ApplePayCertificate() {
13
+ return _super !== null && _super.apply(this, arguments) || this;
14
+ }
15
+ ApplePayCertificate.find = function (_a) {
16
+ var session = _a.session, id = _a.id;
17
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
18
+ var result;
19
+ return tslib_1.__generator(this, function (_b) {
20
+ switch (_b.label) {
21
+ case 0: return [4 /*yield*/, ApplePayCertificate.baseFind({
22
+ session: session,
23
+ urlIds: { "id": id },
24
+ params: {},
25
+ })];
26
+ case 1:
27
+ result = _b.sent();
28
+ return [2 /*return*/, result ? result[0] : null];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ ApplePayCertificate.delete = function (_a) {
34
+ var session = _a.session, id = _a.id;
35
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
36
+ var response;
37
+ return tslib_1.__generator(this, function (_b) {
38
+ switch (_b.label) {
39
+ case 0: return [4 /*yield*/, ApplePayCertificate.request({
40
+ http_method: "delete",
41
+ operation: "delete",
42
+ session: session,
43
+ urlIds: { "id": id },
44
+ params: {},
45
+ })];
46
+ case 1:
47
+ response = _b.sent();
48
+ return [2 /*return*/, response ? response.body : null];
49
+ }
50
+ });
51
+ });
52
+ };
53
+ ApplePayCertificate.csr = function (_a) {
54
+ var session = _a.session, id = _a.id, otherArgs = tslib_1.__rest(_a, ["session", "id"]);
55
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
56
+ var response;
57
+ return tslib_1.__generator(this, function (_b) {
58
+ switch (_b.label) {
59
+ case 0: return [4 /*yield*/, ApplePayCertificate.request({
60
+ http_method: "get",
61
+ operation: "csr",
62
+ session: session,
63
+ urlIds: { "id": id },
64
+ params: tslib_1.__assign({}, otherArgs),
65
+ body: {},
66
+ entity: null,
67
+ })];
68
+ case 1:
69
+ response = _b.sent();
70
+ return [2 /*return*/, response ? response.body : null];
71
+ }
72
+ });
73
+ });
74
+ };
75
+ ApplePayCertificate.API_VERSION = base_types_1.ApiVersion.October22;
76
+ ApplePayCertificate.NAME = 'apple_pay_certificate';
77
+ ApplePayCertificate.PLURAL_NAME = 'apple_pay_certificates';
78
+ ApplePayCertificate.HAS_ONE = {};
79
+ ApplePayCertificate.HAS_MANY = {};
80
+ ApplePayCertificate.PATHS = [
81
+ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" },
82
+ { "http_method": "get", "operation": "csr", "ids": ["id"], "path": "apple_pay_certificates/<id>/csr.json" },
83
+ { "http_method": "get", "operation": "get", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" },
84
+ { "http_method": "post", "operation": "post", "ids": [], "path": "apple_pay_certificates.json" },
85
+ { "http_method": "put", "operation": "put", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" }
86
+ ];
87
+ return ApplePayCertificate;
88
+ }(base_rest_resource_1.default));
89
+ exports.ApplePayCertificate = ApplePayCertificate;
@@ -0,0 +1,42 @@
1
+ /***********************************************************************************************************************
2
+ * This file is auto-generated. If you have an issue, please create a GitHub issue. *
3
+ ***********************************************************************************************************************/
4
+ import Base, { ResourcePath } from '../../base-rest-resource';
5
+ import { SessionInterface } from '../../auth/session/types';
6
+ import { ApiVersion } from '../../base-types';
7
+ interface FindArgs {
8
+ session: SessionInterface;
9
+ id: number | string;
10
+ fields?: unknown;
11
+ }
12
+ interface AllArgs {
13
+ [key: string]: unknown;
14
+ session: SessionInterface;
15
+ since_id?: unknown;
16
+ fields?: unknown;
17
+ }
18
+ export declare class ApplicationCharge extends Base {
19
+ static API_VERSION: ApiVersion;
20
+ protected static NAME: string;
21
+ protected static PLURAL_NAME: string;
22
+ protected static HAS_ONE: {
23
+ [key: string]: typeof Base;
24
+ };
25
+ protected static HAS_MANY: {
26
+ [key: string]: typeof Base;
27
+ };
28
+ protected static PATHS: ResourcePath[];
29
+ static find({ session, id, fields }: FindArgs): Promise<ApplicationCharge | null>;
30
+ static all({ session, since_id, fields, ...otherArgs }: AllArgs): Promise<ApplicationCharge[]>;
31
+ confirmation_url: string | null;
32
+ created_at: string | null;
33
+ id: number | null;
34
+ name: string | null;
35
+ price: string | number | null;
36
+ return_url: string | null;
37
+ status: string | null;
38
+ test: boolean | null;
39
+ updated_at: string | null;
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=application_charge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application_charge.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-10/application_charge.ts"],"names":[],"mappings":"AAAA;;wHAEwH;AAExH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,iBAAkB,SAAQ,IAAI;IACzC,OAAc,WAAW,aAAwB;IAEjD,SAAS,CAAC,MAAM,CAAC,IAAI,SAAwB;IAC7C,SAAS,CAAC,MAAM,CAAC,WAAW,SAAyB;IACrD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC7D,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAIpC;WAEkB,IAAI,CACtB,EACE,OAAO,EACP,EAAE,EACF,MAAa,EACd,EAAE,QAAQ,GACV,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;WAShB,GAAG,CACrB,EACE,OAAO,EACP,QAAe,EACf,MAAa,EACb,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAUxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}