@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,8 +17,8 @@ var Metafield = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Metafield.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();
|
|
@@ -37,7 +37,7 @@ var Metafield = /** @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 Metafield = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, Metafield.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, namespace: namespace, key: key, value_type: value_type, fields: fields, metafield: metafield }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "namespace": namespace, "key": key, "value_type": value_type, "fields": fields, "metafield": metafield }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _o.sent();
|
|
@@ -93,13 +93,13 @@ var Metafield = /** @class */ (function (_super) {
|
|
|
93
93
|
Metafield.HAS_ONE = {};
|
|
94
94
|
Metafield.HAS_MANY = {};
|
|
95
95
|
Metafield.PATHS = [
|
|
96
|
-
{ http_method: "get", operation: "get", ids: [], path: "metafields.json" },
|
|
97
|
-
{ http_method: "post", operation: "post", ids: [], path: "metafields.json" },
|
|
98
|
-
{ http_method: "get", operation: "get", ids: [], path: "metafields.json" },
|
|
99
|
-
{ http_method: "get", operation: "count", ids: [], path: "metafields/count.json" },
|
|
100
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "metafields/<id>.json" },
|
|
101
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "metafields/<id>.json" },
|
|
102
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "metafields/<id>.json" }
|
|
96
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
|
|
97
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "metafields.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "metafields/count.json" },
|
|
100
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "metafields/<id>.json" },
|
|
101
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "metafields/<id>.json" },
|
|
102
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "metafields/<id>.json" }
|
|
103
103
|
];
|
|
104
104
|
return Metafield;
|
|
105
105
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var MobilePlatformApplication = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, MobilePlatformApplication.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 MobilePlatformApplication = /** @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:
|
|
@@ -71,11 +71,11 @@ var MobilePlatformApplication = /** @class */ (function (_super) {
|
|
|
71
71
|
MobilePlatformApplication.HAS_ONE = {};
|
|
72
72
|
MobilePlatformApplication.HAS_MANY = {};
|
|
73
73
|
MobilePlatformApplication.PATHS = [
|
|
74
|
-
{ http_method: "get", operation: "get", ids: [], path: "mobile_platform_applications.json" },
|
|
75
|
-
{ http_method: "post", operation: "post", ids: [], path: "mobile_platform_applications.json" },
|
|
76
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "mobile_platform_applications/<id>.json" },
|
|
77
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "mobile_platform_applications/<id>.json" },
|
|
78
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "mobile_platform_applications/<id>.json" }
|
|
74
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "mobile_platform_applications.json" },
|
|
75
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "mobile_platform_applications.json" },
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" },
|
|
77
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" },
|
|
78
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" }
|
|
79
79
|
];
|
|
80
80
|
return MobilePlatformApplication;
|
|
81
81
|
}(base_rest_resource_1.default));
|
|
@@ -21,8 +21,8 @@ var Order = /** @class */ (function (_super) {
|
|
|
21
21
|
switch (_c.label) {
|
|
22
22
|
case 0: return [4 /*yield*/, Order.baseFind({
|
|
23
23
|
session: session,
|
|
24
|
-
urlIds: { id: id },
|
|
25
|
-
params: { fields: fields },
|
|
24
|
+
urlIds: { "id": id },
|
|
25
|
+
params: { "fields": fields },
|
|
26
26
|
})];
|
|
27
27
|
case 1:
|
|
28
28
|
result = _c.sent();
|
|
@@ -41,7 +41,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
41
41
|
http_method: "delete",
|
|
42
42
|
operation: "delete",
|
|
43
43
|
session: session,
|
|
44
|
-
urlIds: { id: id },
|
|
44
|
+
urlIds: { "id": id },
|
|
45
45
|
params: {},
|
|
46
46
|
})];
|
|
47
47
|
case 1:
|
|
@@ -60,7 +60,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
60
60
|
case 0: return [4 /*yield*/, Order.baseFind({
|
|
61
61
|
session: session,
|
|
62
62
|
urlIds: {},
|
|
63
|
-
params: tslib_1.__assign({ ids: ids, limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, processed_at_min: processed_at_min, processed_at_max: processed_at_max, attribution_app_id: attribution_app_id, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status, fields: fields }, otherArgs),
|
|
63
|
+
params: tslib_1.__assign({ "ids": ids, "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "processed_at_min": processed_at_min, "processed_at_max": processed_at_max, "attribution_app_id": attribution_app_id, "status": status, "financial_status": financial_status, "fulfillment_status": fulfillment_status, "fields": fields }, otherArgs),
|
|
64
64
|
})];
|
|
65
65
|
case 1:
|
|
66
66
|
response = _r.sent();
|
|
@@ -80,7 +80,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
80
80
|
operation: "count",
|
|
81
81
|
session: session,
|
|
82
82
|
urlIds: {},
|
|
83
|
-
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, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status }, otherArgs),
|
|
83
|
+
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, "status": status, "financial_status": financial_status, "fulfillment_status": fulfillment_status }, otherArgs),
|
|
84
84
|
body: {},
|
|
85
85
|
entity: null,
|
|
86
86
|
})];
|
|
@@ -101,7 +101,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
101
101
|
http_method: "post",
|
|
102
102
|
operation: "close",
|
|
103
103
|
session: this.session,
|
|
104
|
-
urlIds: { id: this.id },
|
|
104
|
+
urlIds: { "id": this.id },
|
|
105
105
|
params: tslib_1.__assign({}, otherArgs),
|
|
106
106
|
body: body,
|
|
107
107
|
entity: this,
|
|
@@ -123,7 +123,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
123
123
|
http_method: "post",
|
|
124
124
|
operation: "open",
|
|
125
125
|
session: this.session,
|
|
126
|
-
urlIds: { id: this.id },
|
|
126
|
+
urlIds: { "id": this.id },
|
|
127
127
|
params: tslib_1.__assign({}, otherArgs),
|
|
128
128
|
body: body,
|
|
129
129
|
entity: this,
|
|
@@ -145,8 +145,8 @@ var Order = /** @class */ (function (_super) {
|
|
|
145
145
|
http_method: "post",
|
|
146
146
|
operation: "cancel",
|
|
147
147
|
session: this.session,
|
|
148
|
-
urlIds: { id: this.id },
|
|
149
|
-
params: tslib_1.__assign({ amount: amount, currency: currency, restock: restock, reason: reason, email: email, refund: refund }, otherArgs),
|
|
148
|
+
urlIds: { "id": this.id },
|
|
149
|
+
params: tslib_1.__assign({ "amount": amount, "currency": currency, "restock": restock, "reason": reason, "email": email, "refund": refund }, otherArgs),
|
|
150
150
|
body: body,
|
|
151
151
|
entity: this,
|
|
152
152
|
})];
|
|
@@ -161,23 +161,23 @@ var Order = /** @class */ (function (_super) {
|
|
|
161
161
|
Order.NAME = 'order';
|
|
162
162
|
Order.PLURAL_NAME = 'orders';
|
|
163
163
|
Order.HAS_ONE = {
|
|
164
|
-
customer: customer_1.Customer
|
|
164
|
+
"customer": customer_1.Customer
|
|
165
165
|
};
|
|
166
166
|
Order.HAS_MANY = {
|
|
167
|
-
discount_codes: discount_code_1.DiscountCode,
|
|
168
|
-
fulfillments: fulfillment_1.Fulfillment,
|
|
169
|
-
refunds: refund_1.Refund
|
|
167
|
+
"discount_codes": discount_code_1.DiscountCode,
|
|
168
|
+
"fulfillments": fulfillment_1.Fulfillment,
|
|
169
|
+
"refunds": refund_1.Refund
|
|
170
170
|
};
|
|
171
171
|
Order.PATHS = [
|
|
172
|
-
{ http_method: "get", operation: "get", ids: [], path: "orders.json" },
|
|
173
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "orders/<id>.json" },
|
|
174
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "orders/<id>.json" },
|
|
175
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "orders/<id>.json" },
|
|
176
|
-
{ http_method: "get", operation: "count", ids: [], path: "orders/count.json" },
|
|
177
|
-
{ http_method: "post", operation: "close", ids: ["id"], path: "orders/<id>/close.json" },
|
|
178
|
-
{ http_method: "post", operation: "open", ids: ["id"], path: "orders/<id>/open.json" },
|
|
179
|
-
{ http_method: "post", operation: "cancel", ids: ["id"], path: "orders/<id>/cancel.json" },
|
|
180
|
-
{ http_method: "post", operation: "post", ids: [], path: "orders.json" }
|
|
172
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "orders.json" },
|
|
173
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "orders/<id>.json" },
|
|
174
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "orders/<id>.json" },
|
|
175
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "orders/<id>.json" },
|
|
176
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "orders/count.json" },
|
|
177
|
+
{ "http_method": "post", "operation": "close", "ids": ["id"], "path": "orders/<id>/close.json" },
|
|
178
|
+
{ "http_method": "post", "operation": "open", "ids": ["id"], "path": "orders/<id>/open.json" },
|
|
179
|
+
{ "http_method": "post", "operation": "cancel", "ids": ["id"], "path": "orders/<id>/cancel.json" },
|
|
180
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "orders.json" }
|
|
181
181
|
];
|
|
182
182
|
return Order;
|
|
183
183
|
}(base_rest_resource_1.default));
|
|
@@ -20,7 +20,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
20
20
|
switch (_c.label) {
|
|
21
21
|
case 0: return [4 /*yield*/, OrderRisk.baseFind({
|
|
22
22
|
session: session,
|
|
23
|
-
urlIds: { id: id, order_id: order_id },
|
|
23
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
24
24
|
params: {},
|
|
25
25
|
})];
|
|
26
26
|
case 1:
|
|
@@ -40,7 +40,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
40
40
|
http_method: "delete",
|
|
41
41
|
operation: "delete",
|
|
42
42
|
session: session,
|
|
43
|
-
urlIds: { id: id, order_id: order_id },
|
|
43
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
44
44
|
params: {},
|
|
45
45
|
})];
|
|
46
46
|
case 1:
|
|
@@ -58,7 +58,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
58
58
|
switch (_c.label) {
|
|
59
59
|
case 0: return [4 /*yield*/, OrderRisk.baseFind({
|
|
60
60
|
session: session,
|
|
61
|
-
urlIds: { order_id: order_id },
|
|
61
|
+
urlIds: { "order_id": order_id },
|
|
62
62
|
params: tslib_1.__assign({}, otherArgs),
|
|
63
63
|
})];
|
|
64
64
|
case 1:
|
|
@@ -74,11 +74,11 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
74
74
|
OrderRisk.HAS_ONE = {};
|
|
75
75
|
OrderRisk.HAS_MANY = {};
|
|
76
76
|
OrderRisk.PATHS = [
|
|
77
|
-
{ http_method: "post", operation: "post", ids: ["order_id"], path: "orders/<order_id>/risks.json" },
|
|
78
|
-
{ http_method: "get", operation: "get", ids: ["order_id"], path: "orders/<order_id>/risks.json" },
|
|
79
|
-
{ http_method: "get", operation: "get", ids: ["order_id", "id"], path: "orders/<order_id>/risks/<id>.json" },
|
|
80
|
-
{ http_method: "put", operation: "put", ids: ["order_id", "id"], path: "orders/<order_id>/risks/<id>.json" },
|
|
81
|
-
{ http_method: "delete", operation: "delete", ids: ["order_id", "id"], path: "orders/<order_id>/risks/<id>.json" }
|
|
77
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id"], "path": "orders/<order_id>/risks.json" },
|
|
78
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/risks.json" },
|
|
79
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" },
|
|
80
|
+
{ "http_method": "put", "operation": "put", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" },
|
|
81
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" }
|
|
82
82
|
];
|
|
83
83
|
return OrderRisk;
|
|
84
84
|
}(base_rest_resource_1.default));
|
|
@@ -18,8 +18,8 @@ var Page = /** @class */ (function (_super) {
|
|
|
18
18
|
switch (_c.label) {
|
|
19
19
|
case 0: return [4 /*yield*/, Page.baseFind({
|
|
20
20
|
session: session,
|
|
21
|
-
urlIds: { id: id },
|
|
22
|
-
params: { fields: fields },
|
|
21
|
+
urlIds: { "id": id },
|
|
22
|
+
params: { "fields": fields },
|
|
23
23
|
})];
|
|
24
24
|
case 1:
|
|
25
25
|
result = _c.sent();
|
|
@@ -38,7 +38,7 @@ var Page = /** @class */ (function (_super) {
|
|
|
38
38
|
http_method: "delete",
|
|
39
39
|
operation: "delete",
|
|
40
40
|
session: session,
|
|
41
|
-
urlIds: { id: id },
|
|
41
|
+
urlIds: { "id": id },
|
|
42
42
|
params: {},
|
|
43
43
|
})];
|
|
44
44
|
case 1:
|
|
@@ -57,7 +57,7 @@ var Page = /** @class */ (function (_super) {
|
|
|
57
57
|
case 0: return [4 /*yield*/, Page.baseFind({
|
|
58
58
|
session: session,
|
|
59
59
|
urlIds: {},
|
|
60
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, title: title, handle: handle, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, published_at_min: published_at_min, published_at_max: published_at_max, fields: fields, published_status: published_status }, otherArgs),
|
|
60
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "title": title, "handle": handle, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "published_at_min": published_at_min, "published_at_max": published_at_max, "fields": fields, "published_status": published_status }, otherArgs),
|
|
61
61
|
})];
|
|
62
62
|
case 1:
|
|
63
63
|
response = _p.sent();
|
|
@@ -77,7 +77,7 @@ var Page = /** @class */ (function (_super) {
|
|
|
77
77
|
operation: "count",
|
|
78
78
|
session: session,
|
|
79
79
|
urlIds: {},
|
|
80
|
-
params: tslib_1.__assign({ title: title, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status }, otherArgs),
|
|
80
|
+
params: tslib_1.__assign({ "title": title, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status }, otherArgs),
|
|
81
81
|
body: {},
|
|
82
82
|
entity: null,
|
|
83
83
|
})];
|
|
@@ -92,16 +92,16 @@ var Page = /** @class */ (function (_super) {
|
|
|
92
92
|
Page.NAME = 'page';
|
|
93
93
|
Page.PLURAL_NAME = 'pages';
|
|
94
94
|
Page.HAS_ONE = {
|
|
95
|
-
metafield: metafield_1.Metafield
|
|
95
|
+
"metafield": metafield_1.Metafield
|
|
96
96
|
};
|
|
97
97
|
Page.HAS_MANY = {};
|
|
98
98
|
Page.PATHS = [
|
|
99
|
-
{ http_method: "get", operation: "get", ids: [], path: "pages.json" },
|
|
100
|
-
{ http_method: "post", operation: "post", ids: [], path: "pages.json" },
|
|
101
|
-
{ http_method: "get", operation: "count", ids: [], path: "pages/count.json" },
|
|
102
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "pages/<id>.json" },
|
|
103
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "pages/<id>.json" },
|
|
104
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "pages/<id>.json" }
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "pages.json" },
|
|
100
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "pages.json" },
|
|
101
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "pages/count.json" },
|
|
102
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "pages/<id>.json" },
|
|
103
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "pages/<id>.json" },
|
|
104
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "pages/<id>.json" }
|
|
105
105
|
];
|
|
106
106
|
return Page;
|
|
107
107
|
}(base_rest_resource_1.default));
|
|
@@ -19,7 +19,7 @@ var Payment = /** @class */ (function (_super) {
|
|
|
19
19
|
switch (_c.label) {
|
|
20
20
|
case 0: return [4 /*yield*/, Payment.baseFind({
|
|
21
21
|
session: session,
|
|
22
|
-
urlIds: { id: id, checkout_id: checkout_id },
|
|
22
|
+
urlIds: { "id": id, "checkout_id": checkout_id },
|
|
23
23
|
params: {},
|
|
24
24
|
})];
|
|
25
25
|
case 1:
|
|
@@ -37,7 +37,7 @@ var Payment = /** @class */ (function (_super) {
|
|
|
37
37
|
switch (_c.label) {
|
|
38
38
|
case 0: return [4 /*yield*/, Payment.baseFind({
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { checkout_id: checkout_id },
|
|
40
|
+
urlIds: { "checkout_id": checkout_id },
|
|
41
41
|
params: tslib_1.__assign({}, otherArgs),
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
@@ -57,7 +57,7 @@ var Payment = /** @class */ (function (_super) {
|
|
|
57
57
|
http_method: "get",
|
|
58
58
|
operation: "count",
|
|
59
59
|
session: session,
|
|
60
|
-
urlIds: { checkout_id: checkout_id },
|
|
60
|
+
urlIds: { "checkout_id": checkout_id },
|
|
61
61
|
params: tslib_1.__assign({}, otherArgs),
|
|
62
62
|
body: {},
|
|
63
63
|
entity: null,
|
|
@@ -73,15 +73,15 @@ var Payment = /** @class */ (function (_super) {
|
|
|
73
73
|
Payment.NAME = 'payment';
|
|
74
74
|
Payment.PLURAL_NAME = 'payments';
|
|
75
75
|
Payment.HAS_ONE = {
|
|
76
|
-
transaction: transaction_1.Transaction,
|
|
77
|
-
checkout: checkout_1.Checkout
|
|
76
|
+
"transaction": transaction_1.Transaction,
|
|
77
|
+
"checkout": checkout_1.Checkout
|
|
78
78
|
};
|
|
79
79
|
Payment.HAS_MANY = {};
|
|
80
80
|
Payment.PATHS = [
|
|
81
|
-
{ http_method: "post", operation: "post", ids: ["checkout_id"], path: "checkouts/<checkout_id>/payments.json" },
|
|
82
|
-
{ http_method: "get", operation: "get", ids: ["checkout_id"], path: "checkouts/<checkout_id>/payments.json" },
|
|
83
|
-
{ http_method: "get", operation: "get", ids: ["checkout_id", "id"], path: "checkouts/<checkout_id>/payments/<id>.json" },
|
|
84
|
-
{ http_method: "get", operation: "count", ids: ["checkout_id"], path: "checkouts/<checkout_id>/payments/count.json" }
|
|
81
|
+
{ "http_method": "post", "operation": "post", "ids": ["checkout_id"], "path": "checkouts/<checkout_id>/payments.json" },
|
|
82
|
+
{ "http_method": "get", "operation": "get", "ids": ["checkout_id"], "path": "checkouts/<checkout_id>/payments.json" },
|
|
83
|
+
{ "http_method": "get", "operation": "get", "ids": ["checkout_id", "id"], "path": "checkouts/<checkout_id>/payments/<id>.json" },
|
|
84
|
+
{ "http_method": "get", "operation": "count", "ids": ["checkout_id"], "path": "checkouts/<checkout_id>/payments/count.json" }
|
|
85
85
|
];
|
|
86
86
|
return Payment;
|
|
87
87
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var PaymentGateway = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, PaymentGateway.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 PaymentGateway = /** @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:
|
|
@@ -71,11 +71,11 @@ var PaymentGateway = /** @class */ (function (_super) {
|
|
|
71
71
|
PaymentGateway.HAS_ONE = {};
|
|
72
72
|
PaymentGateway.HAS_MANY = {};
|
|
73
73
|
PaymentGateway.PATHS = [
|
|
74
|
-
{ http_method: "get", operation: "get", ids: [], path: "payment_gateways.json" },
|
|
75
|
-
{ http_method: "post", operation: "post", ids: [], path: "payment_gateways.json" },
|
|
76
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "payment_gateways/<id>.json" },
|
|
77
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "payment_gateways/<id>.json" },
|
|
78
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "payment_gateways/<id>.json" }
|
|
74
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "payment_gateways.json" },
|
|
75
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "payment_gateways.json" },
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "payment_gateways/<id>.json" },
|
|
77
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "payment_gateways/<id>.json" },
|
|
78
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "payment_gateways/<id>.json" }
|
|
79
79
|
];
|
|
80
80
|
return PaymentGateway;
|
|
81
81
|
}(base_rest_resource_1.default));
|
|
@@ -21,7 +21,7 @@ var PaymentTransaction = /** @class */ (function (_super) {
|
|
|
21
21
|
operation: "transactions",
|
|
22
22
|
session: session,
|
|
23
23
|
urlIds: {},
|
|
24
|
-
params: tslib_1.__assign({ since_id: since_id, last_id: last_id, test: test, payout_id: payout_id, payout_status: payout_status }, otherArgs),
|
|
24
|
+
params: tslib_1.__assign({ "since_id": since_id, "last_id": last_id, "test": test, "payout_id": payout_id, "payout_status": payout_status }, otherArgs),
|
|
25
25
|
body: {},
|
|
26
26
|
entity: null,
|
|
27
27
|
})];
|
|
@@ -36,11 +36,11 @@ var PaymentTransaction = /** @class */ (function (_super) {
|
|
|
36
36
|
PaymentTransaction.NAME = 'payment_transaction';
|
|
37
37
|
PaymentTransaction.PLURAL_NAME = 'payment_transactions';
|
|
38
38
|
PaymentTransaction.HAS_ONE = {
|
|
39
|
-
currency: currency_1.Currency
|
|
39
|
+
"currency": currency_1.Currency
|
|
40
40
|
};
|
|
41
41
|
PaymentTransaction.HAS_MANY = {};
|
|
42
42
|
PaymentTransaction.PATHS = [
|
|
43
|
-
{ http_method: "get", operation: "transactions", ids: [], path: "shopify_payments/balance/transactions.json" }
|
|
43
|
+
{ "http_method": "get", "operation": "transactions", "ids": [], "path": "shopify_payments/balance/transactions.json" }
|
|
44
44
|
];
|
|
45
45
|
return PaymentTransaction;
|
|
46
46
|
}(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;
|
|
@@ -30,9 +29,7 @@ export declare class Payout extends Base {
|
|
|
30
29
|
static find({ session, id }: FindArgs): Promise<Payout | null>;
|
|
31
30
|
static all({ session, since_id, last_id, date_min, date_max, date, status, ...otherArgs }: AllArgs): Promise<Payout[]>;
|
|
32
31
|
amount: string | null;
|
|
33
|
-
currency:
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
};
|
|
32
|
+
currency: string | null;
|
|
36
33
|
date: string | null;
|
|
37
34
|
id: number | null;
|
|
38
35
|
status: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-04/payout.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":"payout.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-04/payout.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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,MAAO,SAAQ,IAAI;IAC9B,OAAc,WAAW,aAAsB;IAE/C,SAAS,CAAC,MAAM,CAAC,IAAI,SAAY;IACjC,SAAS,CAAC,MAAM,CAAC,WAAW,SAAa;IACzC,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,CAGpC;WAEkB,IAAI,CACtB,EACE,OAAO,EACP,EAAE,EACH,EAAE,QAAQ,GACV,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;WASL,GAAG,CACrB,EACE,OAAO,EACP,QAAe,EACf,OAAc,EACd,QAAe,EACf,QAAe,EACf,IAAW,EACX,MAAa,EACb,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,MAAM,EAAE,CAAC;IAUb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -4,7 +4,6 @@ exports.Payout = 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 Payout = /** @class */ (function (_super) {
|
|
9
8
|
tslib_1.__extends(Payout, _super);
|
|
10
9
|
function Payout() {
|
|
@@ -18,7 +17,7 @@ var Payout = /** @class */ (function (_super) {
|
|
|
18
17
|
switch (_b.label) {
|
|
19
18
|
case 0: return [4 /*yield*/, Payout.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 Payout = /** @class */ (function (_super) {
|
|
|
37
36
|
case 0: return [4 /*yield*/, Payout.baseFind({
|
|
38
37
|
session: session,
|
|
39
38
|
urlIds: {},
|
|
40
|
-
params: tslib_1.__assign({ since_id: since_id, last_id: last_id, date_min: date_min, date_max: date_max, date: date, status: status }, otherArgs),
|
|
39
|
+
params: tslib_1.__assign({ "since_id": since_id, "last_id": last_id, "date_min": date_min, "date_max": date_max, "date": date, "status": status }, otherArgs),
|
|
41
40
|
})];
|
|
42
41
|
case 1:
|
|
43
42
|
response = _h.sent();
|
|
@@ -49,13 +48,11 @@ var Payout = /** @class */ (function (_super) {
|
|
|
49
48
|
Payout.API_VERSION = base_types_1.ApiVersion.April21;
|
|
50
49
|
Payout.NAME = 'payout';
|
|
51
50
|
Payout.PLURAL_NAME = 'payouts';
|
|
52
|
-
Payout.HAS_ONE = {
|
|
53
|
-
currency: currency_1.Currency
|
|
54
|
-
};
|
|
51
|
+
Payout.HAS_ONE = {};
|
|
55
52
|
Payout.HAS_MANY = {};
|
|
56
53
|
Payout.PATHS = [
|
|
57
|
-
{ http_method: "get", operation: "get", ids: [], path: "shopify_payments/payouts.json" },
|
|
58
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "shopify_payments/payouts/<id>.json" }
|
|
54
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "shopify_payments/payouts.json" },
|
|
55
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "shopify_payments/payouts/<id>.json" }
|
|
59
56
|
];
|
|
60
57
|
return Payout;
|
|
61
58
|
}(base_rest_resource_1.default));
|
|
@@ -33,7 +33,7 @@ var Policy = /** @class */ (function (_super) {
|
|
|
33
33
|
Policy.HAS_ONE = {};
|
|
34
34
|
Policy.HAS_MANY = {};
|
|
35
35
|
Policy.PATHS = [
|
|
36
|
-
{ http_method: "get", operation: "get", ids: [], path: "policies.json" }
|
|
36
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "policies.json" }
|
|
37
37
|
];
|
|
38
38
|
return Policy;
|
|
39
39
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var PriceRule = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, PriceRule.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 PriceRule = /** @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 PriceRule = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, PriceRule.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, starts_at_min: starts_at_min, starts_at_max: starts_at_max, ends_at_min: ends_at_min, ends_at_max: ends_at_max, times_used: times_used }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "starts_at_min": starts_at_min, "starts_at_max": starts_at_max, "ends_at_min": ends_at_min, "ends_at_max": ends_at_max, "times_used": times_used }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _o.sent();
|
|
@@ -93,12 +93,12 @@ var PriceRule = /** @class */ (function (_super) {
|
|
|
93
93
|
PriceRule.HAS_ONE = {};
|
|
94
94
|
PriceRule.HAS_MANY = {};
|
|
95
95
|
PriceRule.PATHS = [
|
|
96
|
-
{ http_method: "post", operation: "post", ids: [], path: "price_rules.json" },
|
|
97
|
-
{ http_method: "get", operation: "get", ids: [], path: "price_rules.json" },
|
|
98
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "price_rules/<id>.json" },
|
|
99
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "price_rules/<id>.json" },
|
|
100
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "price_rules/<id>.json" },
|
|
101
|
-
{ http_method: "get", operation: "count", ids: [], path: "price_rules/count.json" }
|
|
96
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "price_rules.json" },
|
|
97
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "price_rules.json" },
|
|
98
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "price_rules/<id>.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "price_rules/<id>.json" },
|
|
100
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "price_rules/<id>.json" },
|
|
101
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "price_rules/count.json" }
|
|
102
102
|
];
|
|
103
103
|
return PriceRule;
|
|
104
104
|
}(base_rest_resource_1.default));
|