@shopify/shopify-api 3.0.0-rc.1 → 3.0.0-rc.2
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.
- package/CHANGELOG.md +7 -4
- package/dist/base-rest-resource.d.ts.map +1 -1
- package/dist/base-rest-resource.js +38 -59
- package/dist/clients/http_client/http_client.d.ts.map +1 -1
- package/dist/clients/http_client/http_client.js +28 -6
- package/dist/error.d.ts +46 -30
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +14 -16
- package/dist/rest-resources/2021-04/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-04/access_scope.js +1 -1
- package/dist/rest-resources/2021-04/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-04/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-04/application_charge.js +6 -6
- package/dist/rest-resources/2021-04/application_credit.js +6 -6
- package/dist/rest-resources/2021-04/article.js +19 -19
- package/dist/rest-resources/2021-04/asset.js +8 -8
- package/dist/rest-resources/2021-04/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-04/balance.js +1 -1
- package/dist/rest-resources/2021-04/blog.js +11 -11
- package/dist/rest-resources/2021-04/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-04/carrier_service.js +7 -7
- package/dist/rest-resources/2021-04/checkout.d.ts +1 -4
- package/dist/rest-resources/2021-04/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/checkout.js +11 -13
- package/dist/rest-resources/2021-04/collect.js +9 -9
- package/dist/rest-resources/2021-04/collection.js +7 -7
- package/dist/rest-resources/2021-04/collection_listing.js +11 -11
- package/dist/rest-resources/2021-04/comment.js +19 -19
- package/dist/rest-resources/2021-04/country.js +11 -11
- package/dist/rest-resources/2021-04/currency.js +1 -1
- package/dist/rest-resources/2021-04/custom_collection.js +11 -11
- package/dist/rest-resources/2021-04/customer.d.ts +1 -9
- package/dist/rest-resources/2021-04/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/customer.js +17 -40
- package/dist/rest-resources/2021-04/customer_address.js +13 -13
- package/dist/rest-resources/2021-04/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-04/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-04/discount_code.js +17 -17
- package/dist/rest-resources/2021-04/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-04/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/dispute.js +5 -8
- package/dist/rest-resources/2021-04/draft_order.d.ts +1 -4
- package/dist/rest-resources/2021-04/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/draft_order.js +17 -19
- package/dist/rest-resources/2021-04/event.js +10 -10
- package/dist/rest-resources/2021-04/fulfillment.js +22 -22
- package/dist/rest-resources/2021-04/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-04/fulfillment_order.js +16 -16
- package/dist/rest-resources/2021-04/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-04/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-04/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-04/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/gift_card.js +13 -18
- package/dist/rest-resources/2021-04/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-04/image.js +13 -13
- package/dist/rest-resources/2021-04/inventory_item.js +5 -5
- package/dist/rest-resources/2021-04/inventory_level.js +10 -10
- package/dist/rest-resources/2021-04/location.d.ts +2 -8
- package/dist/rest-resources/2021-04/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/location.js +7 -12
- package/dist/rest-resources/2021-04/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-04/marketing_event.js +12 -12
- package/dist/rest-resources/2021-04/metafield.js +11 -11
- package/dist/rest-resources/2021-04/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-04/order.js +22 -22
- package/dist/rest-resources/2021-04/order_risk.js +8 -8
- package/dist/rest-resources/2021-04/page.js +12 -12
- package/dist/rest-resources/2021-04/payment.js +9 -9
- package/dist/rest-resources/2021-04/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-04/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-04/payout.d.ts +1 -4
- package/dist/rest-resources/2021-04/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/payout.js +5 -8
- package/dist/rest-resources/2021-04/policy.js +1 -1
- package/dist/rest-resources/2021-04/price_rule.js +9 -9
- package/dist/rest-resources/2021-04/product.js +13 -13
- package/dist/rest-resources/2021-04/product_listing.js +12 -12
- package/dist/rest-resources/2021-04/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-04/province.js +9 -9
- package/dist/rest-resources/2021-04/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-04/redirect.js +11 -11
- package/dist/rest-resources/2021-04/refund.js +11 -11
- package/dist/rest-resources/2021-04/report.js +9 -9
- package/dist/rest-resources/2021-04/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-04/script_tag.js +11 -11
- package/dist/rest-resources/2021-04/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-04/shop.d.ts +3 -12
- package/dist/rest-resources/2021-04/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/shop.js +3 -10
- package/dist/rest-resources/2021-04/smart_collection.js +14 -14
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-04/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-04/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-04/theme.js +9 -9
- package/dist/rest-resources/2021-04/transaction.js +9 -9
- package/dist/rest-resources/2021-04/usage_charge.js +7 -7
- package/dist/rest-resources/2021-04/user.js +5 -5
- package/dist/rest-resources/2021-04/variant.js +12 -12
- package/dist/rest-resources/2021-04/webhook.js +11 -11
- package/dist/rest-resources/2021-07/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-07/access_scope.js +1 -1
- package/dist/rest-resources/2021-07/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-07/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-07/application_charge.js +6 -6
- package/dist/rest-resources/2021-07/application_credit.js +6 -6
- package/dist/rest-resources/2021-07/article.js +19 -19
- package/dist/rest-resources/2021-07/asset.js +8 -8
- package/dist/rest-resources/2021-07/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-07/balance.js +1 -1
- package/dist/rest-resources/2021-07/blog.js +11 -11
- package/dist/rest-resources/2021-07/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-07/carrier_service.js +7 -7
- package/dist/rest-resources/2021-07/checkout.d.ts +1 -4
- package/dist/rest-resources/2021-07/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/checkout.js +11 -13
- package/dist/rest-resources/2021-07/collect.js +9 -9
- package/dist/rest-resources/2021-07/collection.js +7 -7
- package/dist/rest-resources/2021-07/collection_listing.js +11 -11
- package/dist/rest-resources/2021-07/comment.js +19 -19
- package/dist/rest-resources/2021-07/country.js +11 -11
- package/dist/rest-resources/2021-07/currency.js +1 -1
- package/dist/rest-resources/2021-07/custom_collection.js +11 -11
- package/dist/rest-resources/2021-07/customer.d.ts +1 -9
- package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer.js +17 -40
- package/dist/rest-resources/2021-07/customer_address.js +13 -13
- package/dist/rest-resources/2021-07/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-07/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-07/discount_code.js +17 -17
- package/dist/rest-resources/2021-07/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-07/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/dispute.js +5 -8
- package/dist/rest-resources/2021-07/draft_order.d.ts +1 -4
- package/dist/rest-resources/2021-07/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/draft_order.js +17 -19
- package/dist/rest-resources/2021-07/event.js +10 -10
- package/dist/rest-resources/2021-07/fulfillment.js +22 -22
- package/dist/rest-resources/2021-07/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-07/fulfillment_order.js +16 -16
- package/dist/rest-resources/2021-07/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-07/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-07/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-07/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/gift_card.js +13 -18
- package/dist/rest-resources/2021-07/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-07/image.js +13 -13
- package/dist/rest-resources/2021-07/inventory_item.js +5 -5
- package/dist/rest-resources/2021-07/inventory_level.js +10 -10
- package/dist/rest-resources/2021-07/location.d.ts +2 -8
- package/dist/rest-resources/2021-07/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/location.js +7 -12
- package/dist/rest-resources/2021-07/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-07/marketing_event.js +12 -12
- package/dist/rest-resources/2021-07/metafield.js +11 -11
- package/dist/rest-resources/2021-07/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-07/order.js +22 -22
- package/dist/rest-resources/2021-07/order_risk.js +8 -8
- package/dist/rest-resources/2021-07/page.js +12 -12
- package/dist/rest-resources/2021-07/payment.js +9 -9
- package/dist/rest-resources/2021-07/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-07/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-07/payout.d.ts +1 -4
- package/dist/rest-resources/2021-07/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/payout.js +5 -8
- package/dist/rest-resources/2021-07/policy.js +1 -1
- package/dist/rest-resources/2021-07/price_rule.js +9 -9
- package/dist/rest-resources/2021-07/product.js +13 -13
- package/dist/rest-resources/2021-07/product_listing.js +12 -12
- package/dist/rest-resources/2021-07/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-07/province.js +9 -9
- package/dist/rest-resources/2021-07/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-07/redirect.js +11 -11
- package/dist/rest-resources/2021-07/refund.js +11 -11
- package/dist/rest-resources/2021-07/report.js +9 -9
- package/dist/rest-resources/2021-07/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-07/script_tag.js +11 -11
- package/dist/rest-resources/2021-07/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-07/shop.d.ts +3 -12
- package/dist/rest-resources/2021-07/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/shop.js +3 -10
- package/dist/rest-resources/2021-07/smart_collection.js +14 -14
- package/dist/rest-resources/2021-07/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-07/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-07/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-07/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-07/theme.js +9 -9
- package/dist/rest-resources/2021-07/transaction.js +9 -9
- package/dist/rest-resources/2021-07/usage_charge.js +7 -7
- package/dist/rest-resources/2021-07/user.js +5 -5
- package/dist/rest-resources/2021-07/variant.js +12 -12
- package/dist/rest-resources/2021-07/webhook.js +11 -11
- package/dist/rest-resources/2021-10/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-10/access_scope.js +1 -1
- package/dist/rest-resources/2021-10/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-10/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-10/application_charge.js +6 -6
- package/dist/rest-resources/2021-10/application_credit.js +6 -6
- package/dist/rest-resources/2021-10/article.js +19 -19
- package/dist/rest-resources/2021-10/asset.js +8 -8
- package/dist/rest-resources/2021-10/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-10/balance.js +1 -1
- package/dist/rest-resources/2021-10/blog.js +11 -11
- package/dist/rest-resources/2021-10/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-10/carrier_service.js +7 -7
- package/dist/rest-resources/2021-10/checkout.d.ts +1 -4
- package/dist/rest-resources/2021-10/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/checkout.js +11 -13
- package/dist/rest-resources/2021-10/collect.js +9 -9
- package/dist/rest-resources/2021-10/collection.js +7 -7
- package/dist/rest-resources/2021-10/collection_listing.js +11 -11
- package/dist/rest-resources/2021-10/comment.js +19 -19
- package/dist/rest-resources/2021-10/country.js +11 -11
- package/dist/rest-resources/2021-10/currency.js +1 -1
- package/dist/rest-resources/2021-10/custom_collection.js +11 -11
- package/dist/rest-resources/2021-10/customer.d.ts +1 -9
- package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer.js +17 -40
- package/dist/rest-resources/2021-10/customer_address.js +13 -13
- package/dist/rest-resources/2021-10/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-10/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-10/discount_code.js +17 -17
- package/dist/rest-resources/2021-10/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-10/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/dispute.js +5 -8
- package/dist/rest-resources/2021-10/draft_order.d.ts +1 -4
- package/dist/rest-resources/2021-10/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/draft_order.js +17 -19
- package/dist/rest-resources/2021-10/event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment.js +22 -22
- package/dist/rest-resources/2021-10/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment_order.js +21 -21
- package/dist/rest-resources/2021-10/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-10/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-10/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-10/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/gift_card.js +13 -18
- package/dist/rest-resources/2021-10/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-10/image.js +13 -13
- package/dist/rest-resources/2021-10/inventory_item.js +5 -5
- package/dist/rest-resources/2021-10/inventory_level.js +10 -10
- package/dist/rest-resources/2021-10/location.d.ts +2 -8
- package/dist/rest-resources/2021-10/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/location.js +7 -12
- package/dist/rest-resources/2021-10/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-10/marketing_event.js +12 -12
- package/dist/rest-resources/2021-10/metafield.js +11 -11
- package/dist/rest-resources/2021-10/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-10/order.js +22 -22
- package/dist/rest-resources/2021-10/order_risk.js +8 -8
- package/dist/rest-resources/2021-10/page.js +12 -12
- package/dist/rest-resources/2021-10/payment.js +9 -9
- package/dist/rest-resources/2021-10/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-10/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-10/payout.d.ts +1 -4
- package/dist/rest-resources/2021-10/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/payout.js +5 -8
- package/dist/rest-resources/2021-10/policy.js +1 -1
- package/dist/rest-resources/2021-10/price_rule.js +9 -9
- package/dist/rest-resources/2021-10/product.js +13 -13
- package/dist/rest-resources/2021-10/product_listing.js +12 -12
- package/dist/rest-resources/2021-10/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-10/province.js +9 -9
- package/dist/rest-resources/2021-10/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-10/redirect.js +11 -11
- package/dist/rest-resources/2021-10/refund.js +11 -11
- package/dist/rest-resources/2021-10/report.js +9 -9
- package/dist/rest-resources/2021-10/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-10/script_tag.js +11 -11
- package/dist/rest-resources/2021-10/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-10/shop.d.ts +3 -12
- package/dist/rest-resources/2021-10/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/shop.js +3 -10
- package/dist/rest-resources/2021-10/smart_collection.js +14 -14
- package/dist/rest-resources/2021-10/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-10/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-10/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-10/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-10/theme.js +9 -9
- package/dist/rest-resources/2021-10/transaction.js +9 -9
- package/dist/rest-resources/2021-10/usage_charge.js +7 -7
- package/dist/rest-resources/2021-10/user.js +5 -5
- package/dist/rest-resources/2021-10/variant.js +12 -12
- package/dist/rest-resources/2021-10/webhook.js +11 -11
- package/dist/rest-resources/2022-01/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2022-01/access_scope.js +1 -1
- package/dist/rest-resources/2022-01/android_pay_key.js +5 -5
- package/dist/rest-resources/2022-01/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2022-01/application_charge.js +6 -6
- package/dist/rest-resources/2022-01/application_credit.js +6 -6
- package/dist/rest-resources/2022-01/article.js +19 -19
- package/dist/rest-resources/2022-01/asset.js +8 -8
- package/dist/rest-resources/2022-01/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2022-01/balance.js +1 -1
- package/dist/rest-resources/2022-01/blog.js +11 -11
- package/dist/rest-resources/2022-01/cancellation_request.js +7 -7
- package/dist/rest-resources/2022-01/carrier_service.js +7 -7
- package/dist/rest-resources/2022-01/checkout.d.ts +1 -4
- package/dist/rest-resources/2022-01/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/checkout.js +11 -13
- package/dist/rest-resources/2022-01/collect.js +9 -9
- package/dist/rest-resources/2022-01/collection.js +7 -7
- package/dist/rest-resources/2022-01/collection_listing.js +11 -11
- package/dist/rest-resources/2022-01/comment.js +19 -19
- package/dist/rest-resources/2022-01/country.js +11 -11
- package/dist/rest-resources/2022-01/currency.js +1 -1
- package/dist/rest-resources/2022-01/custom_collection.js +11 -11
- package/dist/rest-resources/2022-01/customer.d.ts +1 -9
- package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer.js +17 -40
- package/dist/rest-resources/2022-01/customer_address.js +13 -13
- package/dist/rest-resources/2022-01/customer_saved_search.js +14 -14
- package/dist/rest-resources/2022-01/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2022-01/discount_code.js +17 -17
- package/dist/rest-resources/2022-01/dispute.d.ts +1 -4
- package/dist/rest-resources/2022-01/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/dispute.js +5 -8
- package/dist/rest-resources/2022-01/draft_order.d.ts +1 -4
- package/dist/rest-resources/2022-01/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/draft_order.js +17 -19
- package/dist/rest-resources/2022-01/event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment.js +22 -22
- package/dist/rest-resources/2022-01/fulfillment_event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment_order.js +21 -21
- package/dist/rest-resources/2022-01/fulfillment_request.js +7 -7
- package/dist/rest-resources/2022-01/fulfillment_service.js +8 -8
- package/dist/rest-resources/2022-01/gift_card.d.ts +2 -8
- package/dist/rest-resources/2022-01/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/gift_card.js +13 -18
- package/dist/rest-resources/2022-01/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2022-01/image.js +13 -13
- package/dist/rest-resources/2022-01/inventory_item.js +5 -5
- package/dist/rest-resources/2022-01/inventory_level.js +10 -10
- package/dist/rest-resources/2022-01/location.d.ts +2 -8
- package/dist/rest-resources/2022-01/location.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/location.js +7 -12
- package/dist/rest-resources/2022-01/locations_for_move.js +2 -2
- package/dist/rest-resources/2022-01/marketing_event.js +12 -12
- package/dist/rest-resources/2022-01/metafield.js +11 -11
- package/dist/rest-resources/2022-01/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2022-01/order.js +22 -22
- package/dist/rest-resources/2022-01/order_risk.js +8 -8
- package/dist/rest-resources/2022-01/page.js +12 -12
- package/dist/rest-resources/2022-01/payment.js +9 -9
- package/dist/rest-resources/2022-01/payment_gateway.js +7 -7
- package/dist/rest-resources/2022-01/payment_transaction.js +3 -3
- package/dist/rest-resources/2022-01/payout.d.ts +1 -4
- package/dist/rest-resources/2022-01/payout.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/payout.js +5 -8
- package/dist/rest-resources/2022-01/policy.js +1 -1
- package/dist/rest-resources/2022-01/price_rule.js +9 -9
- package/dist/rest-resources/2022-01/product.js +13 -13
- package/dist/rest-resources/2022-01/product_listing.js +12 -12
- package/dist/rest-resources/2022-01/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2022-01/province.js +9 -9
- package/dist/rest-resources/2022-01/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2022-01/redirect.js +11 -11
- package/dist/rest-resources/2022-01/refund.js +11 -11
- package/dist/rest-resources/2022-01/report.js +9 -9
- package/dist/rest-resources/2022-01/resource_feedback.js +2 -2
- package/dist/rest-resources/2022-01/script_tag.js +11 -11
- package/dist/rest-resources/2022-01/shipping_zone.js +4 -4
- package/dist/rest-resources/2022-01/shop.d.ts +3 -12
- package/dist/rest-resources/2022-01/shop.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/shop.js +3 -10
- package/dist/rest-resources/2022-01/smart_collection.js +14 -14
- package/dist/rest-resources/2022-01/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2022-01/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/storefront_access_token.js +5 -8
- package/dist/rest-resources/2022-01/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2022-01/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/tender_transaction.js +3 -6
- package/dist/rest-resources/2022-01/theme.js +9 -9
- package/dist/rest-resources/2022-01/transaction.js +9 -9
- package/dist/rest-resources/2022-01/usage_charge.js +7 -7
- package/dist/rest-resources/2022-01/user.js +5 -5
- package/dist/rest-resources/2022-01/variant.js +12 -12
- package/dist/rest-resources/2022-01/webhook.js +11 -11
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, DiscountCode.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id, price_rule_id: price_rule_id },
|
|
20
|
+
urlIds: { "id": id, "price_rule_id": price_rule_id },
|
|
21
21
|
params: {},
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
@@ -37,7 +37,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
37
37
|
http_method: "delete",
|
|
38
38
|
operation: "delete",
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { id: id, price_rule_id: price_rule_id },
|
|
40
|
+
urlIds: { "id": id, "price_rule_id": price_rule_id },
|
|
41
41
|
params: {},
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
@@ -55,7 +55,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
55
55
|
switch (_d.label) {
|
|
56
56
|
case 0: return [4 /*yield*/, DiscountCode.baseFind({
|
|
57
57
|
session: session,
|
|
58
|
-
urlIds: { price_rule_id: price_rule_id, batch_id: batch_id },
|
|
58
|
+
urlIds: { "price_rule_id": price_rule_id, "batch_id": batch_id },
|
|
59
59
|
params: tslib_1.__assign({}, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
@@ -76,7 +76,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
76
76
|
operation: "lookup",
|
|
77
77
|
session: session,
|
|
78
78
|
urlIds: {},
|
|
79
|
-
params: tslib_1.__assign({ code: code }, otherArgs),
|
|
79
|
+
params: tslib_1.__assign({ "code": code }, otherArgs),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
@@ -98,7 +98,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
98
98
|
operation: "count",
|
|
99
99
|
session: session,
|
|
100
100
|
urlIds: {},
|
|
101
|
-
params: tslib_1.__assign({ times_used: times_used, times_used_min: times_used_min, times_used_max: times_used_max }, otherArgs),
|
|
101
|
+
params: tslib_1.__assign({ "times_used": times_used, "times_used_min": times_used_min, "times_used_max": times_used_max }, otherArgs),
|
|
102
102
|
body: {},
|
|
103
103
|
entity: null,
|
|
104
104
|
})];
|
|
@@ -119,7 +119,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
119
119
|
http_method: "get",
|
|
120
120
|
operation: "get_all",
|
|
121
121
|
session: session,
|
|
122
|
-
urlIds: { price_rule_id: price_rule_id, batch_id: batch_id },
|
|
122
|
+
urlIds: { "price_rule_id": price_rule_id, "batch_id": batch_id },
|
|
123
123
|
params: tslib_1.__assign({}, otherArgs),
|
|
124
124
|
body: {},
|
|
125
125
|
entity: null,
|
|
@@ -141,7 +141,7 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
141
141
|
http_method: "post",
|
|
142
142
|
operation: "batch",
|
|
143
143
|
session: this.session,
|
|
144
|
-
urlIds: { price_rule_id: this.price_rule_id },
|
|
144
|
+
urlIds: { "price_rule_id": this.price_rule_id },
|
|
145
145
|
params: tslib_1.__assign({}, otherArgs),
|
|
146
146
|
body: body,
|
|
147
147
|
entity: this,
|
|
@@ -159,16 +159,16 @@ var DiscountCode = /** @class */ (function (_super) {
|
|
|
159
159
|
DiscountCode.HAS_ONE = {};
|
|
160
160
|
DiscountCode.HAS_MANY = {};
|
|
161
161
|
DiscountCode.PATHS = [
|
|
162
|
-
{ http_method: "post", operation: "post", ids: ["price_rule_id"], path: "price_rules/<price_rule_id>/discount_codes.json" },
|
|
163
|
-
{ http_method: "get", operation: "get", ids: ["price_rule_id"], path: "price_rules/<price_rule_id>/discount_codes.json" },
|
|
164
|
-
{ http_method: "put", operation: "put", ids: ["price_rule_id", "id"], path: "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
165
|
-
{ http_method: "get", operation: "get", ids: ["price_rule_id", "id"], path: "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
166
|
-
{ http_method: "delete", operation: "delete", ids: ["price_rule_id", "id"], path: "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
167
|
-
{ http_method: "get", operation: "lookup", ids: [], path: "discount_codes/lookup.json" },
|
|
168
|
-
{ http_method: "get", operation: "count", ids: [], path: "discount_codes/count.json" },
|
|
169
|
-
{ http_method: "post", operation: "batch", ids: ["price_rule_id"], path: "price_rules/<price_rule_id>/batch.json" },
|
|
170
|
-
{ http_method: "get", operation: "get_all", ids: ["price_rule_id", "batch_id"], path: "price_rules/<price_rule_id>/batch/<batch_id>.json" },
|
|
171
|
-
{ http_method: "get", operation: "get", ids: ["price_rule_id", "batch_id"], path: "price_rules/<price_rule_id>/batch/<batch_id>/discount_codes.json" }
|
|
162
|
+
{ "http_method": "post", "operation": "post", "ids": ["price_rule_id"], "path": "price_rules/<price_rule_id>/discount_codes.json" },
|
|
163
|
+
{ "http_method": "get", "operation": "get", "ids": ["price_rule_id"], "path": "price_rules/<price_rule_id>/discount_codes.json" },
|
|
164
|
+
{ "http_method": "put", "operation": "put", "ids": ["price_rule_id", "id"], "path": "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
165
|
+
{ "http_method": "get", "operation": "get", "ids": ["price_rule_id", "id"], "path": "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
166
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["price_rule_id", "id"], "path": "price_rules/<price_rule_id>/discount_codes/<id>.json" },
|
|
167
|
+
{ "http_method": "get", "operation": "lookup", "ids": [], "path": "discount_codes/lookup.json" },
|
|
168
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "discount_codes/count.json" },
|
|
169
|
+
{ "http_method": "post", "operation": "batch", "ids": ["price_rule_id"], "path": "price_rules/<price_rule_id>/batch.json" },
|
|
170
|
+
{ "http_method": "get", "operation": "get_all", "ids": ["price_rule_id", "batch_id"], "path": "price_rules/<price_rule_id>/batch/<batch_id>.json" },
|
|
171
|
+
{ "http_method": "get", "operation": "get", "ids": ["price_rule_id", "batch_id"], "path": "price_rules/<price_rule_id>/batch/<batch_id>/discount_codes.json" }
|
|
172
172
|
];
|
|
173
173
|
return DiscountCode;
|
|
174
174
|
}(base_rest_resource_1.default));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Base, { ResourcePath } from '../../base-rest-resource';
|
|
2
2
|
import { SessionInterface } from '../../auth/session/types';
|
|
3
3
|
import { ApiVersion } from '../../base-types';
|
|
4
|
-
import { Currency } from './currency';
|
|
5
4
|
interface FindArgs {
|
|
6
5
|
session: SessionInterface;
|
|
7
6
|
id: number | string;
|
|
@@ -28,9 +27,7 @@ export declare class Dispute extends Base {
|
|
|
28
27
|
static find({ session, id }: FindArgs): Promise<Dispute | null>;
|
|
29
28
|
static all({ session, since_id, last_id, status, initiated_at, ...otherArgs }: AllArgs): Promise<Dispute[]>;
|
|
30
29
|
amount: string | null;
|
|
31
|
-
currency:
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
};
|
|
30
|
+
currency: string | null;
|
|
34
31
|
evidence_due_by: string | null;
|
|
35
32
|
evidence_sent_on: string | null;
|
|
36
33
|
finalized_on: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/dispute.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BA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OAAO,EACP,QAAe,EACf,OAAc,EACd,MAAa,EACb,YAAmB,EACnB,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,OAAO,EAAE,CAAC;IAUd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
|
|
@@ -4,7 +4,6 @@ exports.Dispute = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
|
|
6
6
|
var base_types_1 = require("../../base-types");
|
|
7
|
-
var currency_1 = require("./currency");
|
|
8
7
|
var Dispute = /** @class */ (function (_super) {
|
|
9
8
|
tslib_1.__extends(Dispute, _super);
|
|
10
9
|
function Dispute() {
|
|
@@ -18,7 +17,7 @@ var Dispute = /** @class */ (function (_super) {
|
|
|
18
17
|
switch (_b.label) {
|
|
19
18
|
case 0: return [4 /*yield*/, Dispute.baseFind({
|
|
20
19
|
session: session,
|
|
21
|
-
urlIds: { id: id },
|
|
20
|
+
urlIds: { "id": id },
|
|
22
21
|
params: {},
|
|
23
22
|
})];
|
|
24
23
|
case 1:
|
|
@@ -37,7 +36,7 @@ var Dispute = /** @class */ (function (_super) {
|
|
|
37
36
|
case 0: return [4 /*yield*/, Dispute.baseFind({
|
|
38
37
|
session: session,
|
|
39
38
|
urlIds: {},
|
|
40
|
-
params: tslib_1.__assign({ since_id: since_id, last_id: last_id, status: status, initiated_at: initiated_at }, otherArgs),
|
|
39
|
+
params: tslib_1.__assign({ "since_id": since_id, "last_id": last_id, "status": status, "initiated_at": initiated_at }, otherArgs),
|
|
41
40
|
})];
|
|
42
41
|
case 1:
|
|
43
42
|
response = _f.sent();
|
|
@@ -49,13 +48,11 @@ var Dispute = /** @class */ (function (_super) {
|
|
|
49
48
|
Dispute.API_VERSION = base_types_1.ApiVersion.October21;
|
|
50
49
|
Dispute.NAME = 'dispute';
|
|
51
50
|
Dispute.PLURAL_NAME = 'disputes';
|
|
52
|
-
Dispute.HAS_ONE = {
|
|
53
|
-
currency: currency_1.Currency
|
|
54
|
-
};
|
|
51
|
+
Dispute.HAS_ONE = {};
|
|
55
52
|
Dispute.HAS_MANY = {};
|
|
56
53
|
Dispute.PATHS = [
|
|
57
|
-
{ http_method: "get", operation: "get", ids: [], path: "shopify_payments/disputes.json" },
|
|
58
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "shopify_payments/disputes/<id>.json" }
|
|
54
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "shopify_payments/disputes.json" },
|
|
55
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "shopify_payments/disputes/<id>.json" }
|
|
59
56
|
];
|
|
60
57
|
return Dispute;
|
|
61
58
|
}(base_rest_resource_1.default));
|
|
@@ -2,7 +2,6 @@ import Base, { ResourcePath } from '../../base-rest-resource';
|
|
|
2
2
|
import { SessionInterface } from '../../auth/session/types';
|
|
3
3
|
import { ApiVersion } from '../../base-types';
|
|
4
4
|
import { Customer } from './customer';
|
|
5
|
-
import { Currency } from './currency';
|
|
6
5
|
interface FindArgs {
|
|
7
6
|
session: SessionInterface;
|
|
8
7
|
id: number | string;
|
|
@@ -69,9 +68,7 @@ export declare class DraftOrder extends Base {
|
|
|
69
68
|
} | null;
|
|
70
69
|
completed_at: string | null;
|
|
71
70
|
created_at: string | null;
|
|
72
|
-
currency:
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
};
|
|
71
|
+
currency: string | null;
|
|
75
72
|
customer: Customer | null | {
|
|
76
73
|
[key: string]: any;
|
|
77
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft_order.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/draft_order.ts"],"names":[],"mappings":"AAAA,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;
|
|
1
|
+
{"version":3,"file":"draft_order.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/draft_order.ts"],"names":[],"mappings":"AAAA,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;AAEpC,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;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,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,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(require("../../base-rest-resource"));
|
|
6
6
|
var base_types_1 = require("../../base-types");
|
|
7
7
|
var customer_1 = require("./customer");
|
|
8
|
-
var currency_1 = require("./currency");
|
|
9
8
|
var DraftOrder = /** @class */ (function (_super) {
|
|
10
9
|
tslib_1.__extends(DraftOrder, _super);
|
|
11
10
|
function DraftOrder() {
|
|
@@ -19,8 +18,8 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
19
18
|
switch (_c.label) {
|
|
20
19
|
case 0: return [4 /*yield*/, DraftOrder.baseFind({
|
|
21
20
|
session: session,
|
|
22
|
-
urlIds: { id: id },
|
|
23
|
-
params: { fields: fields },
|
|
21
|
+
urlIds: { "id": id },
|
|
22
|
+
params: { "fields": fields },
|
|
24
23
|
})];
|
|
25
24
|
case 1:
|
|
26
25
|
result = _c.sent();
|
|
@@ -39,7 +38,7 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
39
38
|
http_method: "delete",
|
|
40
39
|
operation: "delete",
|
|
41
40
|
session: session,
|
|
42
|
-
urlIds: { id: id },
|
|
41
|
+
urlIds: { "id": id },
|
|
43
42
|
params: {},
|
|
44
43
|
})];
|
|
45
44
|
case 1:
|
|
@@ -58,7 +57,7 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
58
57
|
case 0: return [4 /*yield*/, DraftOrder.baseFind({
|
|
59
58
|
session: session,
|
|
60
59
|
urlIds: {},
|
|
61
|
-
params: tslib_1.__assign({ fields: fields, limit: limit, since_id: since_id, updated_at_min: updated_at_min, updated_at_max: updated_at_max, ids: ids, status: status }, otherArgs),
|
|
60
|
+
params: tslib_1.__assign({ "fields": fields, "limit": limit, "since_id": since_id, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "ids": ids, "status": status }, otherArgs),
|
|
62
61
|
})];
|
|
63
62
|
case 1:
|
|
64
63
|
response = _j.sent();
|
|
@@ -78,7 +77,7 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
78
77
|
operation: "count",
|
|
79
78
|
session: session,
|
|
80
79
|
urlIds: {},
|
|
81
|
-
params: tslib_1.__assign({ since_id: since_id, status: status, updated_at_max: updated_at_max, updated_at_min: updated_at_min }, otherArgs),
|
|
80
|
+
params: tslib_1.__assign({ "since_id": since_id, "status": status, "updated_at_max": updated_at_max, "updated_at_min": updated_at_min }, otherArgs),
|
|
82
81
|
body: {},
|
|
83
82
|
entity: null,
|
|
84
83
|
})];
|
|
@@ -99,7 +98,7 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
99
98
|
http_method: "post",
|
|
100
99
|
operation: "send_invoice",
|
|
101
100
|
session: this.session,
|
|
102
|
-
urlIds: { id: this.id },
|
|
101
|
+
urlIds: { "id": this.id },
|
|
103
102
|
params: tslib_1.__assign({}, otherArgs),
|
|
104
103
|
body: body,
|
|
105
104
|
entity: this,
|
|
@@ -121,8 +120,8 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
121
120
|
http_method: "put",
|
|
122
121
|
operation: "complete",
|
|
123
122
|
session: this.session,
|
|
124
|
-
urlIds: { id: this.id },
|
|
125
|
-
params: tslib_1.__assign({ payment_pending: payment_pending }, otherArgs),
|
|
123
|
+
urlIds: { "id": this.id },
|
|
124
|
+
params: tslib_1.__assign({ "payment_pending": payment_pending }, otherArgs),
|
|
126
125
|
body: body,
|
|
127
126
|
entity: this,
|
|
128
127
|
})];
|
|
@@ -137,19 +136,18 @@ var DraftOrder = /** @class */ (function (_super) {
|
|
|
137
136
|
DraftOrder.NAME = 'draft_order';
|
|
138
137
|
DraftOrder.PLURAL_NAME = 'draft_orders';
|
|
139
138
|
DraftOrder.HAS_ONE = {
|
|
140
|
-
customer: customer_1.Customer
|
|
141
|
-
currency: currency_1.Currency
|
|
139
|
+
"customer": customer_1.Customer
|
|
142
140
|
};
|
|
143
141
|
DraftOrder.HAS_MANY = {};
|
|
144
142
|
DraftOrder.PATHS = [
|
|
145
|
-
{ http_method: "post", operation: "post", ids: [], path: "draft_orders.json" },
|
|
146
|
-
{ http_method: "get", operation: "get", ids: [], path: "draft_orders.json" },
|
|
147
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "draft_orders/<id>.json" },
|
|
148
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "draft_orders/<id>.json" },
|
|
149
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "draft_orders/<id>.json" },
|
|
150
|
-
{ http_method: "get", operation: "count", ids: [], path: "draft_orders/count.json" },
|
|
151
|
-
{ http_method: "post", operation: "send_invoice", ids: ["id"], path: "draft_orders/<id>/send_invoice.json" },
|
|
152
|
-
{ http_method: "put", operation: "complete", ids: ["id"], path: "draft_orders/<id>/complete.json" }
|
|
143
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "draft_orders.json" },
|
|
144
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "draft_orders.json" },
|
|
145
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "draft_orders/<id>.json" },
|
|
146
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "draft_orders/<id>.json" },
|
|
147
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "draft_orders/<id>.json" },
|
|
148
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "draft_orders/count.json" },
|
|
149
|
+
{ "http_method": "post", "operation": "send_invoice", "ids": ["id"], "path": "draft_orders/<id>/send_invoice.json" },
|
|
150
|
+
{ "http_method": "put", "operation": "complete", "ids": ["id"], "path": "draft_orders/<id>/complete.json" }
|
|
153
151
|
];
|
|
154
152
|
return DraftOrder;
|
|
155
153
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Event = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Event.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _c.sent();
|
|
@@ -35,8 +35,8 @@ var Event = /** @class */ (function (_super) {
|
|
|
35
35
|
switch (_l.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, Event.baseFind({
|
|
37
37
|
session: session,
|
|
38
|
-
urlIds: { order_id: order_id, product_id: product_id },
|
|
39
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, filter: filter, verb: verb, fields: fields }, otherArgs),
|
|
38
|
+
urlIds: { "order_id": order_id, "product_id": product_id },
|
|
39
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "filter": filter, "verb": verb, "fields": fields }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _l.sent();
|
|
@@ -56,7 +56,7 @@ var Event = /** @class */ (function (_super) {
|
|
|
56
56
|
operation: "count",
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ created_at_min: created_at_min, created_at_max: created_at_max }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "created_at_min": created_at_min, "created_at_max": created_at_max }, otherArgs),
|
|
60
60
|
body: {},
|
|
61
61
|
entity: null,
|
|
62
62
|
})];
|
|
@@ -73,11 +73,11 @@ var Event = /** @class */ (function (_super) {
|
|
|
73
73
|
Event.HAS_ONE = {};
|
|
74
74
|
Event.HAS_MANY = {};
|
|
75
75
|
Event.PATHS = [
|
|
76
|
-
{ http_method: "get", operation: "get", ids: [], path: "events.json" },
|
|
77
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "events/<id>.json" },
|
|
78
|
-
{ http_method: "get", operation: "count", ids: [], path: "events/count.json" },
|
|
79
|
-
{ http_method: "get", operation: "get", ids: ["order_id"], path: "orders/<order_id>/events.json" },
|
|
80
|
-
{ http_method: "get", operation: "get", ids: ["product_id"], path: "products/<product_id>/events.json" }
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "events.json" },
|
|
77
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "events/<id>.json" },
|
|
78
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "events/count.json" },
|
|
79
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/events.json" },
|
|
80
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id"], "path": "products/<product_id>/events.json" }
|
|
81
81
|
];
|
|
82
82
|
return Event;
|
|
83
83
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_d.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Fulfillment.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id, order_id: order_id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _d.sent();
|
|
@@ -35,8 +35,8 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
35
35
|
switch (_l.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, Fulfillment.baseFind({
|
|
37
37
|
session: session,
|
|
38
|
-
urlIds: { order_id: order_id, fulfillment_order_id: fulfillment_order_id },
|
|
39
|
-
params: tslib_1.__assign({ created_at_max: created_at_max, created_at_min: created_at_min, fields: fields, limit: limit, since_id: since_id, updated_at_max: updated_at_max, updated_at_min: updated_at_min }, otherArgs),
|
|
38
|
+
urlIds: { "order_id": order_id, "fulfillment_order_id": fulfillment_order_id },
|
|
39
|
+
params: tslib_1.__assign({ "created_at_max": created_at_max, "created_at_min": created_at_min, "fields": fields, "limit": limit, "since_id": since_id, "updated_at_max": updated_at_max, "updated_at_min": updated_at_min }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _l.sent();
|
|
@@ -55,8 +55,8 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
55
55
|
http_method: "get",
|
|
56
56
|
operation: "count",
|
|
57
57
|
session: session,
|
|
58
|
-
urlIds: { order_id: order_id },
|
|
59
|
-
params: tslib_1.__assign({ created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max }, otherArgs),
|
|
58
|
+
urlIds: { "order_id": order_id },
|
|
59
|
+
params: tslib_1.__assign({ "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max }, otherArgs),
|
|
60
60
|
body: {},
|
|
61
61
|
entity: null,
|
|
62
62
|
})];
|
|
@@ -77,7 +77,7 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
77
77
|
http_method: "post",
|
|
78
78
|
operation: "update_tracking",
|
|
79
79
|
session: this.session,
|
|
80
|
-
urlIds: { id: this.id },
|
|
80
|
+
urlIds: { "id": this.id },
|
|
81
81
|
params: tslib_1.__assign({}, otherArgs),
|
|
82
82
|
body: body,
|
|
83
83
|
entity: this,
|
|
@@ -99,7 +99,7 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
99
99
|
http_method: "post",
|
|
100
100
|
operation: "complete",
|
|
101
101
|
session: this.session,
|
|
102
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
102
|
+
urlIds: { "id": this.id, "order_id": this.order_id },
|
|
103
103
|
params: tslib_1.__assign({}, otherArgs),
|
|
104
104
|
body: body,
|
|
105
105
|
entity: this,
|
|
@@ -121,7 +121,7 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
121
121
|
http_method: "post",
|
|
122
122
|
operation: "open",
|
|
123
123
|
session: this.session,
|
|
124
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
124
|
+
urlIds: { "id": this.id, "order_id": this.order_id },
|
|
125
125
|
params: tslib_1.__assign({}, otherArgs),
|
|
126
126
|
body: body,
|
|
127
127
|
entity: this,
|
|
@@ -143,7 +143,7 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
143
143
|
http_method: "post",
|
|
144
144
|
operation: "cancel",
|
|
145
145
|
session: this.session,
|
|
146
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
146
|
+
urlIds: { "id": this.id, "order_id": this.order_id },
|
|
147
147
|
params: tslib_1.__assign({}, otherArgs),
|
|
148
148
|
body: body,
|
|
149
149
|
entity: this,
|
|
@@ -161,18 +161,18 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
161
161
|
Fulfillment.HAS_ONE = {};
|
|
162
162
|
Fulfillment.HAS_MANY = {};
|
|
163
163
|
Fulfillment.PATHS = [
|
|
164
|
-
{ http_method: "get", operation: "get", ids: ["order_id"], path: "orders/<order_id>/fulfillments.json" },
|
|
165
|
-
{ http_method: "post", operation: "post", ids: ["order_id"], path: "orders/<order_id>/fulfillments.json" },
|
|
166
|
-
{ http_method: "get", operation: "get", ids: ["fulfillment_order_id"], path: "fulfillment_orders/<fulfillment_order_id>/fulfillments.json" },
|
|
167
|
-
{ http_method: "get", operation: "count", ids: ["order_id"], path: "orders/<order_id>/fulfillments/count.json" },
|
|
168
|
-
{ http_method: "get", operation: "get", ids: ["order_id", "id"], path: "orders/<order_id>/fulfillments/<id>.json" },
|
|
169
|
-
{ http_method: "put", operation: "put", ids: ["order_id", "id"], path: "orders/<order_id>/fulfillments/<id>.json" },
|
|
170
|
-
{ http_method: "post", operation: "post", ids: [], path: "fulfillments.json" },
|
|
171
|
-
{ http_method: "post", operation: "update_tracking", ids: ["id"], path: "fulfillments/<id>/update_tracking.json" },
|
|
172
|
-
{ http_method: "post", operation: "complete", ids: ["order_id", "id"], path: "orders/<order_id>/fulfillments/<id>/complete.json" },
|
|
173
|
-
{ http_method: "post", operation: "open", ids: ["order_id", "id"], path: "orders/<order_id>/fulfillments/<id>/open.json" },
|
|
174
|
-
{ http_method: "post", operation: "cancel", ids: ["order_id", "id"], path: "orders/<order_id>/fulfillments/<id>/cancel.json" },
|
|
175
|
-
{ http_method: "post", operation: "cancel", ids: ["id"], path: "fulfillments/<id>/cancel.json" }
|
|
164
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/fulfillments.json" },
|
|
165
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id"], "path": "orders/<order_id>/fulfillments.json" },
|
|
166
|
+
{ "http_method": "get", "operation": "get", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/fulfillments.json" },
|
|
167
|
+
{ "http_method": "get", "operation": "count", "ids": ["order_id"], "path": "orders/<order_id>/fulfillments/count.json" },
|
|
168
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>.json" },
|
|
169
|
+
{ "http_method": "put", "operation": "put", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>.json" },
|
|
170
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "fulfillments.json" },
|
|
171
|
+
{ "http_method": "post", "operation": "update_tracking", "ids": ["id"], "path": "fulfillments/<id>/update_tracking.json" },
|
|
172
|
+
{ "http_method": "post", "operation": "complete", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>/complete.json" },
|
|
173
|
+
{ "http_method": "post", "operation": "open", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>/open.json" },
|
|
174
|
+
{ "http_method": "post", "operation": "cancel", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>/cancel.json" },
|
|
175
|
+
{ "http_method": "post", "operation": "cancel", "ids": ["id"], "path": "fulfillments/<id>/cancel.json" }
|
|
176
176
|
];
|
|
177
177
|
return Fulfillment;
|
|
178
178
|
}(base_rest_resource_1.default));
|
|
@@ -22,8 +22,8 @@ var FulfillmentEvent = /** @class */ (function (_super) {
|
|
|
22
22
|
switch (_e.label) {
|
|
23
23
|
case 0: return [4 /*yield*/, FulfillmentEvent.baseFind({
|
|
24
24
|
session: session,
|
|
25
|
-
urlIds: { id: id, order_id: order_id, fulfillment_id: fulfillment_id },
|
|
26
|
-
params: { event_id: event_id },
|
|
25
|
+
urlIds: { "id": id, "order_id": order_id, "fulfillment_id": fulfillment_id },
|
|
26
|
+
params: { "event_id": event_id },
|
|
27
27
|
})];
|
|
28
28
|
case 1:
|
|
29
29
|
result = _e.sent();
|
|
@@ -42,7 +42,7 @@ var FulfillmentEvent = /** @class */ (function (_super) {
|
|
|
42
42
|
http_method: "delete",
|
|
43
43
|
operation: "delete",
|
|
44
44
|
session: session,
|
|
45
|
-
urlIds: { id: id, order_id: order_id, fulfillment_id: fulfillment_id },
|
|
45
|
+
urlIds: { "id": id, "order_id": order_id, "fulfillment_id": fulfillment_id },
|
|
46
46
|
params: {},
|
|
47
47
|
})];
|
|
48
48
|
case 1:
|
|
@@ -60,7 +60,7 @@ var FulfillmentEvent = /** @class */ (function (_super) {
|
|
|
60
60
|
switch (_d.label) {
|
|
61
61
|
case 0: return [4 /*yield*/, FulfillmentEvent.baseFind({
|
|
62
62
|
session: session,
|
|
63
|
-
urlIds: { order_id: order_id, fulfillment_id: fulfillment_id },
|
|
63
|
+
urlIds: { "order_id": order_id, "fulfillment_id": fulfillment_id },
|
|
64
64
|
params: tslib_1.__assign({}, otherArgs),
|
|
65
65
|
})];
|
|
66
66
|
case 1:
|
|
@@ -74,15 +74,15 @@ var FulfillmentEvent = /** @class */ (function (_super) {
|
|
|
74
74
|
FulfillmentEvent.NAME = 'fulfillment_event';
|
|
75
75
|
FulfillmentEvent.PLURAL_NAME = 'fulfillment_events';
|
|
76
76
|
FulfillmentEvent.HAS_ONE = {
|
|
77
|
-
country: country_1.Country,
|
|
78
|
-
province: province_1.Province
|
|
77
|
+
"country": country_1.Country,
|
|
78
|
+
"province": province_1.Province
|
|
79
79
|
};
|
|
80
80
|
FulfillmentEvent.HAS_MANY = {};
|
|
81
81
|
FulfillmentEvent.PATHS = [
|
|
82
|
-
{ http_method: "get", operation: "get", ids: ["order_id", "fulfillment_id"], path: "orders/<order_id>/fulfillments/<fulfillment_id>/events.json" },
|
|
83
|
-
{ http_method: "post", operation: "post", ids: ["order_id", "fulfillment_id"], path: "orders/<order_id>/fulfillments/<fulfillment_id>/events.json" },
|
|
84
|
-
{ http_method: "get", operation: "get", ids: ["order_id", "fulfillment_id", "id"], path: "orders/<order_id>/fulfillments/<fulfillment_id>/events/<id>.json" },
|
|
85
|
-
{ http_method: "delete", operation: "delete", ids: ["order_id", "fulfillment_id", "id"], path: "orders/<order_id>/fulfillments/<fulfillment_id>/events/<id>.json" }
|
|
82
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "fulfillment_id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events.json" },
|
|
83
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id", "fulfillment_id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events.json" },
|
|
84
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "fulfillment_id", "id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events/<id>.json" },
|
|
85
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["order_id", "fulfillment_id", "id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events/<id>.json" }
|
|
86
86
|
];
|
|
87
87
|
return FulfillmentEvent;
|
|
88
88
|
}(base_rest_resource_1.default));
|