@shopify/shopify-api 3.0.0-rc.1 → 3.0.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.
- package/CHANGELOG.md +10 -4
- package/dist/base-rest-resource.d.ts.map +1 -1
- package/dist/base-rest-resource.js +38 -59
- package/dist/base-types.d.ts +0 -1
- package/dist/base-types.d.ts.map +1 -1
- package/dist/base-types.js +0 -1
- 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-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.d.ts +6 -9
- package/dist/rest-resources/2021-07/article.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/article.js +36 -37
- 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 +3 -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.d.ts +6 -6
- package/dist/rest-resources/2021-07/comment.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/comment.js +27 -27
- 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 +12 -19
- package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer.js +38 -61
- package/dist/rest-resources/2021-07/customer_address.d.ts +5 -5
- package/dist/rest-resources/2021-07/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer_address.js +26 -26
- 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.d.ts +6 -6
- package/dist/rest-resources/2021-07/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/discount_code.js +37 -37
- 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 +2 -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.d.ts +2 -23
- package/dist/rest-resources/2021-07/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/fulfillment.js +13 -86
- 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.d.ts +54 -5
- package/dist/rest-resources/2021-07/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/metafield.js +89 -29
- package/dist/rest-resources/2021-07/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-07/order.d.ts +12 -10
- package/dist/rest-resources/2021-07/order.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/order.js +37 -37
- 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.d.ts +4 -4
- package/dist/rest-resources/2021-07/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/product_listing.js +25 -25
- 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 +4 -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.d.ts +6 -9
- package/dist/rest-resources/2021-10/article.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/article.js +36 -37
- 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 +3 -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.d.ts +6 -6
- package/dist/rest-resources/2021-10/comment.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/comment.js +27 -27
- 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 +12 -19
- package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer.js +38 -61
- package/dist/rest-resources/2021-10/customer_address.d.ts +5 -5
- package/dist/rest-resources/2021-10/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer_address.js +26 -26
- 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.d.ts +6 -6
- package/dist/rest-resources/2021-10/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/discount_code.js +37 -37
- 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 +2 -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.d.ts +2 -23
- package/dist/rest-resources/2021-10/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/fulfillment.js +13 -86
- package/dist/rest-resources/2021-10/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment_order.d.ts +11 -11
- package/dist/rest-resources/2021-10/fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/fulfillment_order.js +44 -44
- 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.d.ts +54 -5
- package/dist/rest-resources/2021-10/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/metafield.js +89 -29
- package/dist/rest-resources/2021-10/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-10/order.d.ts +12 -10
- package/dist/rest-resources/2021-10/order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/order.js +37 -37
- 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.d.ts +4 -4
- package/dist/rest-resources/2021-10/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/product_listing.js +25 -25
- 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 +4 -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.d.ts +6 -9
- package/dist/rest-resources/2022-01/article.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/article.js +36 -37
- 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 +3 -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.d.ts +6 -6
- package/dist/rest-resources/2022-01/comment.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/comment.js +27 -27
- 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 +12 -19
- package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer.js +38 -61
- package/dist/rest-resources/2022-01/customer_address.d.ts +5 -5
- package/dist/rest-resources/2022-01/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer_address.js +26 -26
- 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.d.ts +6 -6
- package/dist/rest-resources/2022-01/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/discount_code.js +37 -37
- 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 +2 -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.d.ts +2 -23
- package/dist/rest-resources/2022-01/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/fulfillment.js +13 -86
- package/dist/rest-resources/2022-01/fulfillment_event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment_order.d.ts +11 -11
- package/dist/rest-resources/2022-01/fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/fulfillment_order.js +44 -44
- 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.d.ts +54 -5
- package/dist/rest-resources/2022-01/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/metafield.js +89 -29
- package/dist/rest-resources/2022-01/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2022-01/order.d.ts +12 -10
- package/dist/rest-resources/2022-01/order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/order.js +37 -37
- 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.d.ts +4 -4
- package/dist/rest-resources/2022-01/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/product_listing.js +25 -25
- 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 +4 -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/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/article.d.ts +6 -9
- package/dist/rest-resources/2022-04/article.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/article.js +37 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/checkout.d.ts +3 -4
- package/dist/rest-resources/2022-04/checkout.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/checkout.js +12 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.js +28 -28
- package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/country.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/customer.d.ts +18 -19
- package/dist/rest-resources/2022-04/customer.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/customer.js +39 -62
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts +5 -5
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.js +27 -27
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.js +15 -15
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.js +38 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/dispute.d.ts +1 -4
- package/dist/rest-resources/2022-04/dispute.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/dispute.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.d.ts +5 -4
- package/dist/rest-resources/2022-04/draft_order.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.js +18 -20
- package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/event.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment.d.ts +5 -23
- package/dist/rest-resources/2022-04/fulfillment.d.ts.map +1 -0
- package/dist/rest-resources/2022-04/fulfillment.js +106 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.d.ts +23 -0
- package/dist/rest-resources/2022-04/fulfillment_order.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.js +63 -17
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.d.ts +2 -8
- package/dist/rest-resources/2022-04/gift_card.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.js +14 -19
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/image.js +14 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/index.js +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/location.d.ts +2 -8
- package/dist/rest-resources/2022-04/location.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/location.js +8 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.js +13 -13
- package/dist/rest-resources/2022-04/metafield.d.ts +112 -0
- package/dist/rest-resources/2022-04/metafield.d.ts.map +1 -0
- package/dist/rest-resources/2022-04/metafield.js +166 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts +16 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/order.js +38 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/page.js +13 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.js +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/payout.d.ts +1 -4
- package/dist/rest-resources/2022-04/payout.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payout.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product.js +14 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.js +26 -26
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.js +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/province.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/report.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.js +5 -5
- package/dist/rest-resources/{2021-04 → 2022-04}/shop.d.ts +4 -12
- package/dist/rest-resources/2022-04/shop.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/shop.js +4 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.js +15 -15
- package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2022-04/storefront_access_token.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2022-04/tender_transaction.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.js +4 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts +3 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/user.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.js +13 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.js +12 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/webhooks/registry.d.ts.map +1 -1
- package/dist/webhooks/registry.js +3 -13
- package/package.json +1 -1
- package/dist/rest-resources/2021-04/article.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/checkout.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/customer.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/dispute.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/draft_order.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/fulfillment.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/fulfillment.js +0 -179
- package/dist/rest-resources/2021-04/fulfillment_order.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/gift_card.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/location.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/metafield.d.ts +0 -61
- package/dist/rest-resources/2021-04/metafield.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/metafield.js +0 -106
- package/dist/rest-resources/2021-04/payout.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/shop.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/tender_transaction.d.ts.map +0 -1
|
@@ -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();
|
|
@@ -28,15 +28,15 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Fulfillment.all = function (_a) {
|
|
31
|
-
var session = _a.session, _b = _a.
|
|
31
|
+
var session = _a.session, _b = _a.fulfillment_order_id, fulfillment_order_id = _b === void 0 ? null : _b, _c = _a.order_id, order_id = _c === void 0 ? null : _c, _d = _a.created_at_max, created_at_max = _d === void 0 ? null : _d, _e = _a.created_at_min, created_at_min = _e === void 0 ? null : _e, _f = _a.fields, fields = _f === void 0 ? null : _f, _g = _a.limit, limit = _g === void 0 ? null : _g, _h = _a.since_id, since_id = _h === void 0 ? null : _h, _j = _a.updated_at_max, updated_at_max = _j === void 0 ? null : _j, _k = _a.updated_at_min, updated_at_min = _k === void 0 ? null : _k, otherArgs = tslib_1.__rest(_a, ["session", "fulfillment_order_id", "order_id", "created_at_max", "created_at_min", "fields", "limit", "since_id", "updated_at_max", "updated_at_min"]);
|
|
32
32
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
33
33
|
var response;
|
|
34
34
|
return tslib_1.__generator(this, function (_l) {
|
|
35
35
|
switch (_l.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, Fulfillment.baseFind({
|
|
37
37
|
session: session,
|
|
38
|
-
urlIds: {
|
|
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: { "fulfillment_order_id": fulfillment_order_id, "order_id": 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,73 +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 },
|
|
81
|
-
params: tslib_1.__assign({}, otherArgs),
|
|
82
|
-
body: body,
|
|
83
|
-
entity: this,
|
|
84
|
-
})];
|
|
85
|
-
case 1:
|
|
86
|
-
response = _c.sent();
|
|
87
|
-
return [2 /*return*/, response ? response.body : null];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
Fulfillment.prototype.complete = function (_a) {
|
|
93
|
-
var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
|
|
94
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
95
|
-
var response;
|
|
96
|
-
return tslib_1.__generator(this, function (_c) {
|
|
97
|
-
switch (_c.label) {
|
|
98
|
-
case 0: return [4 /*yield*/, Fulfillment.request({
|
|
99
|
-
http_method: "post",
|
|
100
|
-
operation: "complete",
|
|
101
|
-
session: this.session,
|
|
102
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
103
|
-
params: tslib_1.__assign({}, otherArgs),
|
|
104
|
-
body: body,
|
|
105
|
-
entity: this,
|
|
106
|
-
})];
|
|
107
|
-
case 1:
|
|
108
|
-
response = _c.sent();
|
|
109
|
-
return [2 /*return*/, response ? response.body : null];
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
Fulfillment.prototype.open = function (_a) {
|
|
115
|
-
var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
|
|
116
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
117
|
-
var response;
|
|
118
|
-
return tslib_1.__generator(this, function (_c) {
|
|
119
|
-
switch (_c.label) {
|
|
120
|
-
case 0: return [4 /*yield*/, Fulfillment.request({
|
|
121
|
-
http_method: "post",
|
|
122
|
-
operation: "open",
|
|
123
|
-
session: this.session,
|
|
124
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
125
|
-
params: tslib_1.__assign({}, otherArgs),
|
|
126
|
-
body: body,
|
|
127
|
-
entity: this,
|
|
128
|
-
})];
|
|
129
|
-
case 1:
|
|
130
|
-
response = _c.sent();
|
|
131
|
-
return [2 /*return*/, response ? response.body : null];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
Fulfillment.prototype.cancel = function (_a) {
|
|
137
|
-
var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
|
|
138
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
139
|
-
var response;
|
|
140
|
-
return tslib_1.__generator(this, function (_c) {
|
|
141
|
-
switch (_c.label) {
|
|
142
|
-
case 0: return [4 /*yield*/, Fulfillment.request({
|
|
143
|
-
http_method: "post",
|
|
144
|
-
operation: "cancel",
|
|
145
|
-
session: this.session,
|
|
146
|
-
urlIds: { id: this.id, order_id: this.order_id },
|
|
80
|
+
urlIds: { "id": this.id },
|
|
147
81
|
params: tslib_1.__assign({}, otherArgs),
|
|
148
82
|
body: body,
|
|
149
83
|
entity: this,
|
|
@@ -161,18 +95,11 @@ var Fulfillment = /** @class */ (function (_super) {
|
|
|
161
95
|
Fulfillment.HAS_ONE = {};
|
|
162
96
|
Fulfillment.HAS_MANY = {};
|
|
163
97
|
Fulfillment.PATHS = [
|
|
164
|
-
{ http_method: "get", operation: "
|
|
165
|
-
{ http_method: "
|
|
166
|
-
{ http_method: "get", operation: "get", ids: ["
|
|
167
|
-
{ http_method: "get", operation: "
|
|
168
|
-
{ http_method: "
|
|
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" }
|
|
98
|
+
{ "http_method": "get", "operation": "count", "ids": ["order_id"], "path": "orders/<order_id>/fulfillments/count.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/fulfillments.json" },
|
|
100
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/fulfillments.json" },
|
|
101
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/fulfillments/<id>.json" },
|
|
102
|
+
{ "http_method": "post", "operation": "update_tracking", "ids": ["id"], "path": "fulfillments/<id>/update_tracking.json" }
|
|
176
103
|
];
|
|
177
104
|
return Fulfillment;
|
|
178
105
|
}(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: "
|
|
83
|
-
{ http_method: "
|
|
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: "
|
|
82
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["order_id", "fulfillment_id", "id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events/<id>.json" },
|
|
83
|
+
{ "http_method": "get", "operation": "get", "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": "post", "operation": "post", "ids": ["order_id", "fulfillment_id"], "path": "orders/<order_id>/fulfillments/<fulfillment_id>/events.json" }
|
|
86
86
|
];
|
|
87
87
|
return FulfillmentEvent;
|
|
88
88
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, FulfillmentOrder.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
21
|
params: {},
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
@@ -35,7 +35,7 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, FulfillmentOrder.baseFind({
|
|
37
37
|
session: session,
|
|
38
|
-
urlIds: { order_id: order_id },
|
|
38
|
+
urlIds: { "order_id": order_id },
|
|
39
39
|
params: tslib_1.__assign({}, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
@@ -55,7 +55,7 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
55
55
|
http_method: "post",
|
|
56
56
|
operation: "cancel",
|
|
57
57
|
session: this.session,
|
|
58
|
-
urlIds: { id: this.id },
|
|
58
|
+
urlIds: { "id": this.id },
|
|
59
59
|
params: tslib_1.__assign({}, otherArgs),
|
|
60
60
|
body: body,
|
|
61
61
|
entity: this,
|
|
@@ -77,8 +77,8 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
77
77
|
http_method: "post",
|
|
78
78
|
operation: "close",
|
|
79
79
|
session: this.session,
|
|
80
|
-
urlIds: { id: this.id },
|
|
81
|
-
params: tslib_1.__assign({ message: message }, otherArgs),
|
|
80
|
+
urlIds: { "id": this.id },
|
|
81
|
+
params: tslib_1.__assign({ "message": message }, otherArgs),
|
|
82
82
|
body: body,
|
|
83
83
|
entity: this,
|
|
84
84
|
})];
|
|
@@ -99,8 +99,8 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
99
99
|
http_method: "post",
|
|
100
100
|
operation: "move",
|
|
101
101
|
session: this.session,
|
|
102
|
-
urlIds: { id: this.id },
|
|
103
|
-
params: tslib_1.__assign({ new_location_id: new_location_id }, otherArgs),
|
|
102
|
+
urlIds: { "id": this.id },
|
|
103
|
+
params: tslib_1.__assign({ "new_location_id": new_location_id }, otherArgs),
|
|
104
104
|
body: body,
|
|
105
105
|
entity: this,
|
|
106
106
|
})];
|
|
@@ -121,7 +121,7 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
121
121
|
http_method: "post",
|
|
122
122
|
operation: "open",
|
|
123
123
|
session: this.session,
|
|
124
|
-
urlIds: { id: this.id },
|
|
124
|
+
urlIds: { "id": this.id },
|
|
125
125
|
params: tslib_1.__assign({}, otherArgs),
|
|
126
126
|
body: body,
|
|
127
127
|
entity: this,
|
|
@@ -143,7 +143,7 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
143
143
|
http_method: "post",
|
|
144
144
|
operation: "reschedule",
|
|
145
145
|
session: this.session,
|
|
146
|
-
urlIds: { id: this.id },
|
|
146
|
+
urlIds: { "id": this.id },
|
|
147
147
|
params: tslib_1.__assign({}, otherArgs),
|
|
148
148
|
body: body,
|
|
149
149
|
entity: this,
|
|
@@ -161,13 +161,13 @@ var FulfillmentOrder = /** @class */ (function (_super) {
|
|
|
161
161
|
FulfillmentOrder.HAS_ONE = {};
|
|
162
162
|
FulfillmentOrder.HAS_MANY = {};
|
|
163
163
|
FulfillmentOrder.PATHS = [
|
|
164
|
-
{ http_method: "get", operation: "get", ids: ["
|
|
165
|
-
{ http_method: "get", operation: "get", ids: ["
|
|
166
|
-
{ http_method: "post", operation: "cancel", ids: ["id"], path: "fulfillment_orders/<id>/cancel.json" },
|
|
167
|
-
{ http_method: "post", operation: "close", ids: ["id"], path: "fulfillment_orders/<id>/close.json" },
|
|
168
|
-
{ http_method: "post", operation: "move", ids: ["id"], path: "fulfillment_orders/<id>/move.json" },
|
|
169
|
-
{ http_method: "post", operation: "open", ids: ["id"], path: "fulfillment_orders/<id>/open.json" },
|
|
170
|
-
{ http_method: "post", operation: "reschedule", ids: ["id"], path: "fulfillment_orders/<id>/reschedule.json" }
|
|
164
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "fulfillment_orders/<id>.json" },
|
|
165
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/fulfillment_orders.json" },
|
|
166
|
+
{ "http_method": "post", "operation": "cancel", "ids": ["id"], "path": "fulfillment_orders/<id>/cancel.json" },
|
|
167
|
+
{ "http_method": "post", "operation": "close", "ids": ["id"], "path": "fulfillment_orders/<id>/close.json" },
|
|
168
|
+
{ "http_method": "post", "operation": "move", "ids": ["id"], "path": "fulfillment_orders/<id>/move.json" },
|
|
169
|
+
{ "http_method": "post", "operation": "open", "ids": ["id"], "path": "fulfillment_orders/<id>/open.json" },
|
|
170
|
+
{ "http_method": "post", "operation": "reschedule", "ids": ["id"], "path": "fulfillment_orders/<id>/reschedule.json" }
|
|
171
171
|
];
|
|
172
172
|
return FulfillmentOrder;
|
|
173
173
|
}(base_rest_resource_1.default));
|
|
@@ -19,8 +19,8 @@ var FulfillmentRequest = /** @class */ (function (_super) {
|
|
|
19
19
|
http_method: "post",
|
|
20
20
|
operation: "accept",
|
|
21
21
|
session: this.session,
|
|
22
|
-
urlIds: { fulfillment_order_id: this.fulfillment_order_id },
|
|
23
|
-
params: tslib_1.__assign({ message: message }, otherArgs),
|
|
22
|
+
urlIds: { "fulfillment_order_id": this.fulfillment_order_id },
|
|
23
|
+
params: tslib_1.__assign({ "message": message }, otherArgs),
|
|
24
24
|
body: body,
|
|
25
25
|
entity: this,
|
|
26
26
|
})];
|
|
@@ -41,8 +41,8 @@ var FulfillmentRequest = /** @class */ (function (_super) {
|
|
|
41
41
|
http_method: "post",
|
|
42
42
|
operation: "reject",
|
|
43
43
|
session: this.session,
|
|
44
|
-
urlIds: { fulfillment_order_id: this.fulfillment_order_id },
|
|
45
|
-
params: tslib_1.__assign({ message: message }, otherArgs),
|
|
44
|
+
urlIds: { "fulfillment_order_id": this.fulfillment_order_id },
|
|
45
|
+
params: tslib_1.__assign({ "message": message }, otherArgs),
|
|
46
46
|
body: body,
|
|
47
47
|
entity: this,
|
|
48
48
|
})];
|
|
@@ -59,9 +59,9 @@ var FulfillmentRequest = /** @class */ (function (_super) {
|
|
|
59
59
|
FulfillmentRequest.HAS_ONE = {};
|
|
60
60
|
FulfillmentRequest.HAS_MANY = {};
|
|
61
61
|
FulfillmentRequest.PATHS = [
|
|
62
|
-
{ http_method: "post", operation: "
|
|
63
|
-
{ http_method: "post", operation: "
|
|
64
|
-
{ http_method: "post", operation: "reject", ids: ["fulfillment_order_id"], path: "fulfillment_orders/<fulfillment_order_id>/fulfillment_request/reject.json" }
|
|
62
|
+
{ "http_method": "post", "operation": "accept", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/fulfillment_request/accept.json" },
|
|
63
|
+
{ "http_method": "post", "operation": "post", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/fulfillment_request.json" },
|
|
64
|
+
{ "http_method": "post", "operation": "reject", "ids": ["fulfillment_order_id"], "path": "fulfillment_orders/<fulfillment_order_id>/fulfillment_request/reject.json" }
|
|
65
65
|
];
|
|
66
66
|
return FulfillmentRequest;
|
|
67
67
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var FulfillmentService = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, FulfillmentService.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
21
|
params: {},
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
@@ -37,7 +37,7 @@ var FulfillmentService = /** @class */ (function (_super) {
|
|
|
37
37
|
http_method: "delete",
|
|
38
38
|
operation: "delete",
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { id: id },
|
|
40
|
+
urlIds: { "id": id },
|
|
41
41
|
params: {},
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
@@ -56,7 +56,7 @@ var FulfillmentService = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, FulfillmentService.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ scope: scope }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "scope": scope }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _c.sent();
|
|
@@ -71,11 +71,11 @@ var FulfillmentService = /** @class */ (function (_super) {
|
|
|
71
71
|
FulfillmentService.HAS_ONE = {};
|
|
72
72
|
FulfillmentService.HAS_MANY = {};
|
|
73
73
|
FulfillmentService.PATHS = [
|
|
74
|
-
{ http_method: "
|
|
75
|
-
{ http_method: "
|
|
76
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "fulfillment_services/<id>.json" },
|
|
77
|
-
{ http_method: "
|
|
78
|
-
{ http_method: "
|
|
74
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "fulfillment_services/<id>.json" },
|
|
75
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "fulfillment_services.json" },
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "fulfillment_services/<id>.json" },
|
|
77
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "fulfillment_services.json" },
|
|
78
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "fulfillment_services/<id>.json" }
|
|
79
79
|
];
|
|
80
80
|
return FulfillmentService;
|
|
81
81
|
}(base_rest_resource_1.default));
|
|
@@ -1,8 +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 { Balance } from './balance';
|
|
5
|
-
import { Currency } from './currency';
|
|
6
4
|
interface FindArgs {
|
|
7
5
|
session: SessionInterface;
|
|
8
6
|
id: number | string;
|
|
@@ -51,14 +49,10 @@ export declare class GiftCard extends Base {
|
|
|
51
49
|
static search({ session, order, query, limit, fields, ...otherArgs }: SearchArgs): Promise<unknown>;
|
|
52
50
|
disable({ body, ...otherArgs }: DisableArgs): Promise<unknown>;
|
|
53
51
|
api_client_id: number | null;
|
|
54
|
-
balance:
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
};
|
|
52
|
+
balance: number | null;
|
|
57
53
|
code: string | null;
|
|
58
54
|
created_at: string | null;
|
|
59
|
-
currency:
|
|
60
|
-
[key: string]: any;
|
|
61
|
-
};
|
|
55
|
+
currency: string | null;
|
|
62
56
|
customer_id: number | null;
|
|
63
57
|
disabled_at: string | null;
|
|
64
58
|
expires_on: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gift_card.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-07/gift_card.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,
|
|
1
|
+
{"version":3,"file":"gift_card.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-07/gift_card.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,UAAU,QAAQ;IAChB,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,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,SAAS;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,UAAU;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,WAAW;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;CACxC;AAED,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAc,WAAW,aAAqB;IAE9C,SAAS,CAAC,MAAM,CAAC,IAAI,SAAe;IACpC,SAAS,CAAC,MAAM,CAAC,WAAW,SAAgB;IAC5C,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,CAQpC;WAEkB,IAAI,CACtB,EACE,OAAO,EACP,EAAE,EACH,EAAE,QAAQ,GACV,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;WASP,GAAG,CACrB,EACE,OAAO,EACP,MAAa,EACb,KAAY,EACZ,QAAe,EACf,MAAa,EACb,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,QAAQ,EAAE,CAAC;WAUF,KAAK,CACvB,EACE,OAAO,EACP,MAAa,EACb,GAAG,SAAS,EACb,EAAE,SAAS,GACX,OAAO,CAAC,OAAO,CAAC;WAcC,MAAM,CACxB,EACE,OAAO,EACP,KAAY,EACZ,KAAY,EACZ,KAAY,EACZ,MAAa,EACb,GAAG,SAAS,EACb,EAAE,UAAU,GACZ,OAAO,CAAC,OAAO,CAAC;IAcN,OAAO,CAClB,EACE,IAAW,EACX,GAAG,SAAS,EACb,EAAE,WAAW,GACb,OAAO,CAAC,OAAO,CAAC;IAcZ,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -4,8 +4,6 @@ exports.GiftCard = 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 balance_1 = require("./balance");
|
|
8
|
-
var currency_1 = require("./currency");
|
|
9
7
|
var GiftCard = /** @class */ (function (_super) {
|
|
10
8
|
tslib_1.__extends(GiftCard, _super);
|
|
11
9
|
function GiftCard() {
|
|
@@ -19,7 +17,7 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
19
17
|
switch (_b.label) {
|
|
20
18
|
case 0: return [4 /*yield*/, GiftCard.baseFind({
|
|
21
19
|
session: session,
|
|
22
|
-
urlIds: { id: id },
|
|
20
|
+
urlIds: { "id": id },
|
|
23
21
|
params: {},
|
|
24
22
|
})];
|
|
25
23
|
case 1:
|
|
@@ -38,7 +36,7 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
38
36
|
case 0: return [4 /*yield*/, GiftCard.baseFind({
|
|
39
37
|
session: session,
|
|
40
38
|
urlIds: {},
|
|
41
|
-
params: tslib_1.__assign({ status: status, limit: limit, since_id: since_id, fields: fields }, otherArgs),
|
|
39
|
+
params: tslib_1.__assign({ "status": status, "limit": limit, "since_id": since_id, "fields": fields }, otherArgs),
|
|
42
40
|
})];
|
|
43
41
|
case 1:
|
|
44
42
|
response = _f.sent();
|
|
@@ -58,7 +56,7 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
58
56
|
operation: "count",
|
|
59
57
|
session: session,
|
|
60
58
|
urlIds: {},
|
|
61
|
-
params: tslib_1.__assign({ status: status }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "status": status }, otherArgs),
|
|
62
60
|
body: {},
|
|
63
61
|
entity: null,
|
|
64
62
|
})];
|
|
@@ -80,7 +78,7 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
80
78
|
operation: "search",
|
|
81
79
|
session: session,
|
|
82
80
|
urlIds: {},
|
|
83
|
-
params: tslib_1.__assign({ order: order, query: query, limit: limit, fields: fields }, otherArgs),
|
|
81
|
+
params: tslib_1.__assign({ "order": order, "query": query, "limit": limit, "fields": fields }, otherArgs),
|
|
84
82
|
body: {},
|
|
85
83
|
entity: null,
|
|
86
84
|
})];
|
|
@@ -101,7 +99,7 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
101
99
|
http_method: "post",
|
|
102
100
|
operation: "disable",
|
|
103
101
|
session: this.session,
|
|
104
|
-
urlIds: { id: this.id },
|
|
102
|
+
urlIds: { "id": this.id },
|
|
105
103
|
params: tslib_1.__assign({}, otherArgs),
|
|
106
104
|
body: body,
|
|
107
105
|
entity: this,
|
|
@@ -116,19 +114,16 @@ var GiftCard = /** @class */ (function (_super) {
|
|
|
116
114
|
GiftCard.API_VERSION = base_types_1.ApiVersion.July21;
|
|
117
115
|
GiftCard.NAME = 'gift_card';
|
|
118
116
|
GiftCard.PLURAL_NAME = 'gift_cards';
|
|
119
|
-
GiftCard.HAS_ONE = {
|
|
120
|
-
balance: balance_1.Balance,
|
|
121
|
-
currency: currency_1.Currency
|
|
122
|
-
};
|
|
117
|
+
GiftCard.HAS_ONE = {};
|
|
123
118
|
GiftCard.HAS_MANY = {};
|
|
124
119
|
GiftCard.PATHS = [
|
|
125
|
-
{ http_method: "get", operation: "
|
|
126
|
-
{ http_method: "
|
|
127
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "gift_cards/<id>.json" },
|
|
128
|
-
{ http_method: "
|
|
129
|
-
{ http_method: "
|
|
130
|
-
{ http_method: "post", operation: "
|
|
131
|
-
{ http_method: "
|
|
120
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "gift_cards/count.json" },
|
|
121
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "gift_cards.json" },
|
|
122
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "gift_cards/<id>.json" },
|
|
123
|
+
{ "http_method": "get", "operation": "search", "ids": [], "path": "gift_cards/search.json" },
|
|
124
|
+
{ "http_method": "post", "operation": "disable", "ids": ["id"], "path": "gift_cards/<id>/disable.json" },
|
|
125
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "gift_cards.json" },
|
|
126
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "gift_cards/<id>.json" }
|
|
132
127
|
];
|
|
133
128
|
return GiftCard;
|
|
134
129
|
}(base_rest_resource_1.default));
|
|
@@ -20,7 +20,7 @@ var GiftCardAdjustment = /** @class */ (function (_super) {
|
|
|
20
20
|
switch (_c.label) {
|
|
21
21
|
case 0: return [4 /*yield*/, GiftCardAdjustment.baseFind({
|
|
22
22
|
session: session,
|
|
23
|
-
urlIds: { id: id, gift_card_id: gift_card_id },
|
|
23
|
+
urlIds: { "id": id, "gift_card_id": gift_card_id },
|
|
24
24
|
params: {},
|
|
25
25
|
})];
|
|
26
26
|
case 1:
|
|
@@ -38,7 +38,7 @@ var GiftCardAdjustment = /** @class */ (function (_super) {
|
|
|
38
38
|
switch (_c.label) {
|
|
39
39
|
case 0: return [4 /*yield*/, GiftCardAdjustment.baseFind({
|
|
40
40
|
session: session,
|
|
41
|
-
urlIds: { gift_card_id: gift_card_id },
|
|
41
|
+
urlIds: { "gift_card_id": gift_card_id },
|
|
42
42
|
params: tslib_1.__assign({}, otherArgs),
|
|
43
43
|
})];
|
|
44
44
|
case 1:
|
|
@@ -54,9 +54,9 @@ var GiftCardAdjustment = /** @class */ (function (_super) {
|
|
|
54
54
|
GiftCardAdjustment.HAS_ONE = {};
|
|
55
55
|
GiftCardAdjustment.HAS_MANY = {};
|
|
56
56
|
GiftCardAdjustment.PATHS = [
|
|
57
|
-
{ http_method: "get", operation: "get", ids: ["gift_card_id"], path: "gift_cards/<gift_card_id>/adjustments.json" },
|
|
58
|
-
{ http_method: "
|
|
59
|
-
{ http_method: "
|
|
57
|
+
{ "http_method": "get", "operation": "get", "ids": ["gift_card_id"], "path": "gift_cards/<gift_card_id>/adjustments.json" },
|
|
58
|
+
{ "http_method": "get", "operation": "get", "ids": ["gift_card_id", "id"], "path": "gift_cards/<gift_card_id>/adjustments/2.json" },
|
|
59
|
+
{ "http_method": "post", "operation": "post", "ids": ["gift_card_id"], "path": "gift_cards/<gift_card_id>/adjustments.json" }
|
|
60
60
|
];
|
|
61
61
|
return GiftCardAdjustment;
|
|
62
62
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Image = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_d.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Image.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id, product_id: product_id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id, "product_id": product_id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _d.sent();
|
|
@@ -37,7 +37,7 @@ var Image = /** @class */ (function (_super) {
|
|
|
37
37
|
http_method: "delete",
|
|
38
38
|
operation: "delete",
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { id: id, product_id: product_id },
|
|
40
|
+
urlIds: { "id": id, "product_id": product_id },
|
|
41
41
|
params: {},
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
@@ -55,8 +55,8 @@ var Image = /** @class */ (function (_super) {
|
|
|
55
55
|
switch (_e.label) {
|
|
56
56
|
case 0: return [4 /*yield*/, Image.baseFind({
|
|
57
57
|
session: session,
|
|
58
|
-
urlIds: { product_id: product_id },
|
|
59
|
-
params: tslib_1.__assign({ since_id: since_id, fields: fields }, otherArgs),
|
|
58
|
+
urlIds: { "product_id": product_id },
|
|
59
|
+
params: tslib_1.__assign({ "since_id": since_id, "fields": fields }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _e.sent();
|
|
@@ -75,8 +75,8 @@ var Image = /** @class */ (function (_super) {
|
|
|
75
75
|
http_method: "get",
|
|
76
76
|
operation: "count",
|
|
77
77
|
session: session,
|
|
78
|
-
urlIds: { product_id: product_id },
|
|
79
|
-
params: tslib_1.__assign({ since_id: since_id }, otherArgs),
|
|
78
|
+
urlIds: { "product_id": product_id },
|
|
79
|
+
params: tslib_1.__assign({ "since_id": since_id }, otherArgs),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
@@ -93,12 +93,12 @@ var Image = /** @class */ (function (_super) {
|
|
|
93
93
|
Image.HAS_ONE = {};
|
|
94
94
|
Image.HAS_MANY = {};
|
|
95
95
|
Image.PATHS = [
|
|
96
|
-
{ http_method: "
|
|
97
|
-
{ http_method: "
|
|
98
|
-
{ http_method: "get", operation: "
|
|
99
|
-
{ http_method: "get", operation: "get", ids: ["product_id", "id"], path: "products/<product_id>/images/<id>.json" },
|
|
100
|
-
{ http_method: "
|
|
101
|
-
{ http_method: "
|
|
96
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["product_id", "id"], "path": "products/<product_id>/images/<id>.json" },
|
|
97
|
+
{ "http_method": "get", "operation": "count", "ids": ["product_id"], "path": "products/<product_id>/images/count.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id"], "path": "products/<product_id>/images.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id", "id"], "path": "products/<product_id>/images/<id>.json" },
|
|
100
|
+
{ "http_method": "post", "operation": "post", "ids": ["product_id"], "path": "products/<product_id>/images.json" },
|
|
101
|
+
{ "http_method": "put", "operation": "put", "ids": ["product_id", "id"], "path": "products/<product_id>/images/<id>.json" }
|
|
102
102
|
];
|
|
103
103
|
return Image;
|
|
104
104
|
}(base_rest_resource_1.default));
|