shopify_api 10.0.3 → 10.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +7 -7
- data/README.md +1 -1
- data/docs/usage/graphql.md +1 -1
- data/lib/shopify_api/admin_versions.rb +1 -1
- data/lib/shopify_api/rest/base.rb +33 -6
- data/lib/shopify_api/rest/resources/2021_07/abandoned_checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/access_scope.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/android_pay_key.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/apple_pay_certificate.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/application_credit.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/article.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/asset.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/assigned_fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/balance.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/blog.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/cancellation_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/carrier_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/collect.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/collection_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/comment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/country.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/currency.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/custom_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/customer.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/customer_address.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/customer_saved_search.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/deprecated_api_call.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/discount_code.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/dispute.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/draft_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/fulfillment.rb +75 -1
- data/lib/shopify_api/rest/resources/2021_07/fulfillment_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/fulfillment_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/fulfillment_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/gift_card.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/gift_card_adjustment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/image.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/inventory_item.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/inventory_level.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/location.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/locations_for_move.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/marketing_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/metafield.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/mobile_platform_application.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/order_risk.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/page.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/payment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/payment_gateway.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/payment_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/payout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/policy.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/price_rule.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/product.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/product_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/product_resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/province.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/recurring_application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/redirect.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/refund.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/report.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/script_tag.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/shipping_zone.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/shop.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/smart_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/storefront_access_token.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/tender_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/theme.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/usage_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/user.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/variant.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_07/webhook.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/abandoned_checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/access_scope.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/android_pay_key.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/apple_pay_certificate.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/application_credit.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/article.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/asset.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/assigned_fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/balance.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/blog.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/cancellation_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/carrier_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/collect.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/collection_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/comment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/country.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/currency.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/custom_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/customer.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/customer_address.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/customer_saved_search.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/deprecated_api_call.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/discount_code.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/dispute.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/draft_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/fulfillment.rb +75 -1
- data/lib/shopify_api/rest/resources/2021_10/fulfillment_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/fulfillment_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/fulfillment_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/gift_card.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/gift_card_adjustment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/image.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/inventory_item.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/inventory_level.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/location.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/locations_for_move.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/marketing_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/metafield.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/mobile_platform_application.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/order.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/order_risk.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/page.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/payment.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/payment_gateway.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/payment_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/payout.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/policy.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/price_rule.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/product.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/product_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/product_resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/province.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/recurring_application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/redirect.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/refund.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/report.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/script_tag.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/shipping_zone.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/shop.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/smart_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/storefront_access_token.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/tender_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/theme.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/usage_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/user.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/variant.rb +4 -0
- data/lib/shopify_api/rest/resources/2021_10/webhook.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/article.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/asset.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/balance.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/blog.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/collect.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/comment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/country.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/currency.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/customer.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/dispute.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +75 -1
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/image.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/location.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/metafield.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/page.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/payment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/payout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/policy.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/product.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/province.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/redirect.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/refund.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/report.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/shop.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/theme.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/user.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/variant.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_01/webhook.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/article.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/asset.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/balance.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/blog.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/checkout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/collect.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/comment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/country.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/currency.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/customer.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/dispute.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +75 -1
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/image.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/location.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/metafield.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/order.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/page.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/payment.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/payout.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/policy.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/product.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/province.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/redirect.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/refund.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/report.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/shop.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/theme.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/transaction.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/user.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/variant.rb +4 -0
- data/lib/shopify_api/rest/resources/2022_04/webhook.rb +4 -0
- data/lib/shopify_api/version.rb +1 -1
- data/lib/shopify_api/webhooks/registry.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc4cfe78db0e88c911424f8d3e2b3ed88b41a3bb91db59beea5a250222a784af
|
4
|
+
data.tar.gz: c2f3d45bf47d0b0e5d8da086895c59145b0c84ef4b70f04acee72188278f4b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5fdbadb1ba50cf494e3eee2e08c6e2ee29085093821d24da8965d3215c1197ddadbaf0c1b2fb979ba59a3e3fad315691a85658ba970dd8f58b0a5f4b23456ab
|
7
|
+
data.tar.gz: b71d5ec832995ae090aa52ee61c5fe3a67c05ad04d78a3e8f34cfee2fa8565f221ce5229a354f981c1de2d9eed25e2fd341919c6474695a973b7052b71db72df
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
Note: For changes to the API, see https://shopify.dev/changelog?filter=api
|
4
|
+
|
3
5
|
## Unreleased
|
4
6
|
|
7
|
+
## Version 10.1.0
|
8
|
+
|
9
|
+
- [#933](https://github.com/Shopify/shopify_api/pull/933) Fix syntax of GraphQL query in `Webhooks.get_webhook_id` method by removing extra curly brace
|
10
|
+
- [#941](https://github.com/Shopify/shopify_api/pull/941) Fix `to_hash` to return readonly attributes, unless being used for serialize the object for saving - fix issue [#930](https://github.com/Shopify/shopify_api/issues/930)
|
11
|
+
- [#959](https://github.com/Shopify/shopify_api/pull/959) Update `LATEST_SUPPORTED_ADMIN_VERSION` to `2022-04` to align it with the current value
|
12
|
+
|
5
13
|
## Version 10.0.3
|
6
14
|
|
7
15
|
### Fixed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shopify_api (10.0
|
4
|
+
shopify_api (10.1.0)
|
5
5
|
concurrent-ruby
|
6
6
|
hash_diff
|
7
7
|
httparty
|
@@ -79,16 +79,16 @@ GEM
|
|
79
79
|
rubocop (>= 0.90.0)
|
80
80
|
ruby-progressbar (1.11.0)
|
81
81
|
securerandom (0.2.0)
|
82
|
-
sorbet (0.5.
|
83
|
-
sorbet-static (= 0.5.
|
84
|
-
sorbet-runtime (0.5.
|
85
|
-
sorbet-static (0.5.
|
86
|
-
sorbet-static (0.5.
|
82
|
+
sorbet (0.5.10016)
|
83
|
+
sorbet-static (= 0.5.10016)
|
84
|
+
sorbet-runtime (0.5.10016)
|
85
|
+
sorbet-static (0.5.10016-universal-darwin-21)
|
86
|
+
sorbet-static (0.5.10016-x86_64-linux)
|
87
87
|
spoom (1.1.8)
|
88
88
|
sorbet (>= 0.5.9204)
|
89
89
|
sorbet-runtime (>= 0.5.9204)
|
90
90
|
thor (>= 0.19.2)
|
91
|
-
tapioca (0.6.
|
91
|
+
tapioca (0.6.4)
|
92
92
|
bundler (>= 1.17.3)
|
93
93
|
pry (>= 0.12.2)
|
94
94
|
rbi (~> 0.0.0, >= 0.0.9)
|
data/README.md
CHANGED
@@ -57,7 +57,7 @@ ShopifyAPI::Context.setup(
|
|
57
57
|
session_storage: ShopifyAPI::Auth::FileSessionStorage.new, # See more details below
|
58
58
|
is_embedded: true, # Set to true if you are building an embedded app
|
59
59
|
is_private: false, # Set to true if you are building a private app
|
60
|
-
api_version: "2022-01" # The
|
60
|
+
api_version: "2022-01" # The version of the API you would like to use
|
61
61
|
)
|
62
62
|
```
|
63
63
|
|
data/docs/usage/graphql.md
CHANGED
@@ -12,7 +12,7 @@ module ShopifyAPI
|
|
12
12
|
"2021-04",
|
13
13
|
], T::Array[String])
|
14
14
|
|
15
|
-
LATEST_SUPPORTED_ADMIN_VERSION = T.let("2022-
|
15
|
+
LATEST_SUPPORTED_ADMIN_VERSION = T.let("2022-04", String)
|
16
16
|
end
|
17
17
|
|
18
18
|
SUPPORTED_ADMIN_VERSIONS = ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS
|
@@ -55,6 +55,12 @@ module ShopifyAPI
|
|
55
55
|
sig { returns(T.nilable(String)) }
|
56
56
|
attr_reader :custom_prefix
|
57
57
|
|
58
|
+
sig { returns(T::Hash[Symbol, Class]) }
|
59
|
+
attr_reader :has_many
|
60
|
+
|
61
|
+
sig { returns(T::Hash[Symbol, Class]) }
|
62
|
+
attr_reader :has_one
|
63
|
+
|
58
64
|
sig do
|
59
65
|
params(
|
60
66
|
session: T.nilable(Auth::Session),
|
@@ -261,8 +267,8 @@ module ShopifyAPI
|
|
261
267
|
match.nil? ? true : super
|
262
268
|
end
|
263
269
|
|
264
|
-
sig { returns(T::Hash[String, T.untyped]) }
|
265
|
-
def to_hash
|
270
|
+
sig { params(saving: T::Boolean).returns(T::Hash[String, T.untyped]) }
|
271
|
+
def to_hash(saving = false)
|
266
272
|
hash = {}
|
267
273
|
instance_variables.each do |var|
|
268
274
|
next if [
|
@@ -273,7 +279,7 @@ module ShopifyAPI
|
|
273
279
|
:"@errors",
|
274
280
|
:"@aliased_properties",
|
275
281
|
].include?(var)
|
276
|
-
next if self.class.read_only_attributes&.include?(var)
|
282
|
+
next if saving && self.class.read_only_attributes&.include?(var)
|
277
283
|
|
278
284
|
var = var.to_s.delete("@")
|
279
285
|
attribute = if @aliased_properties.value?(var)
|
@@ -283,9 +289,16 @@ module ShopifyAPI
|
|
283
289
|
end.to_sym
|
284
290
|
|
285
291
|
if self.class.has_many?(attribute)
|
286
|
-
|
292
|
+
attribute_class = self.class.has_many[attribute]
|
293
|
+
hash[attribute.to_s] = get_property(attribute).map do |element|
|
294
|
+
get_element_hash(element, T.unsafe(attribute_class), saving)
|
295
|
+
end.to_a if get_property(attribute)
|
287
296
|
elsif self.class.has_one?(attribute)
|
288
|
-
element_hash =
|
297
|
+
element_hash = get_element_hash(
|
298
|
+
get_property(attribute),
|
299
|
+
T.unsafe(self.class.has_one[attribute]),
|
300
|
+
saving
|
301
|
+
)
|
289
302
|
hash[attribute.to_s] = element_hash if element_hash || @forced_nils[attribute.to_s]
|
290
303
|
elsif !get_property(attribute).nil? || @forced_nils[attribute.to_s]
|
291
304
|
hash[attribute.to_s] =
|
@@ -313,7 +326,7 @@ module ShopifyAPI
|
|
313
326
|
|
314
327
|
sig { params(update_object: T::Boolean).void }
|
315
328
|
def save(update_object: false)
|
316
|
-
hash = HashDiff::Comparison.new(original_state, to_hash).left_diff
|
329
|
+
hash = HashDiff::Comparison.new(original_state, to_hash(true)).left_diff
|
317
330
|
method = hash[self.class.primary_key] ? :put : :post
|
318
331
|
|
319
332
|
path = self.class.get_path(http_method: method, operation: method, entity: self)
|
@@ -355,6 +368,20 @@ module ShopifyAPI
|
|
355
368
|
|
356
369
|
instance_variable_get("@#{clean_key}")
|
357
370
|
end
|
371
|
+
|
372
|
+
sig do
|
373
|
+
params(
|
374
|
+
element: T.nilable(T.any(T::Hash[String, T.untyped], ShopifyAPI::Rest::Base)),
|
375
|
+
attribute_class: Class,
|
376
|
+
saving: T::Boolean,
|
377
|
+
).returns(T.nilable(T::Hash[String, T.untyped]))
|
378
|
+
end
|
379
|
+
def get_element_hash(element, attribute_class, saving)
|
380
|
+
return nil if element.nil?
|
381
|
+
return element.to_hash(saving) unless element.is_a?(Hash)
|
382
|
+
|
383
|
+
T.unsafe(attribute_class).create_instance(session: @session, data: element).to_hash(saving)
|
384
|
+
end
|
358
385
|
end
|
359
386
|
end
|
360
387
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class AbandonedCheckout < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class AccessScope < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class AndroidPayKey < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class ApplePayCertificate < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class ApplicationCharge < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class ApplicationCredit < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Article < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Asset < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class AssignedFulfillmentOrder < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Balance < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Blog < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CancellationRequest < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CarrierService < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Checkout < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Collect < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Collection < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CollectionListing < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Comment < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Country < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Currency < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CustomCollection < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Customer < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CustomerAddress < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class CustomerSavedSearch < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class DeprecatedApiCall < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class DiscountCode < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Dispute < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class DraftOrder < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Event < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class Fulfillment < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -37,7 +41,14 @@ module ShopifyAPI
|
|
37
41
|
{http_method: :get, operation: :get, ids: [:fulfillment_order_id], path: "fulfillment_orders/<fulfillment_order_id>/fulfillments.json"},
|
38
42
|
{http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
|
39
43
|
{http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"},
|
40
|
-
{http_method: :post, operation: :
|
44
|
+
{http_method: :post, operation: :cancel, ids: [:id], path: "fulfillments/<id>/cancel.json"},
|
45
|
+
{http_method: :post, operation: :cancel, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/cancel.json"},
|
46
|
+
{http_method: :post, operation: :complete, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/complete.json"},
|
47
|
+
{http_method: :post, operation: :open, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/open.json"},
|
48
|
+
{http_method: :post, operation: :post, ids: [], path: "fulfillments.json"},
|
49
|
+
{http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
|
50
|
+
{http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"},
|
51
|
+
{http_method: :put, operation: :put, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"}
|
41
52
|
], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
|
42
53
|
|
43
54
|
sig { returns(T.nilable(String)) }
|
@@ -166,6 +177,69 @@ module ShopifyAPI
|
|
166
177
|
|
167
178
|
end
|
168
179
|
|
180
|
+
sig do
|
181
|
+
params(
|
182
|
+
body: T.untyped,
|
183
|
+
kwargs: T.untyped
|
184
|
+
).returns(T.untyped)
|
185
|
+
end
|
186
|
+
def cancel(
|
187
|
+
body: nil,
|
188
|
+
**kwargs
|
189
|
+
)
|
190
|
+
self.class.request(
|
191
|
+
http_method: :post,
|
192
|
+
operation: :cancel,
|
193
|
+
session: @session,
|
194
|
+
ids: {id: @id, order_id: @order_id},
|
195
|
+
params: {}.merge(kwargs).compact,
|
196
|
+
body: body,
|
197
|
+
entity: self,
|
198
|
+
)
|
199
|
+
end
|
200
|
+
|
201
|
+
sig do
|
202
|
+
params(
|
203
|
+
body: T.untyped,
|
204
|
+
kwargs: T.untyped
|
205
|
+
).returns(T.untyped)
|
206
|
+
end
|
207
|
+
def complete(
|
208
|
+
body: nil,
|
209
|
+
**kwargs
|
210
|
+
)
|
211
|
+
self.class.request(
|
212
|
+
http_method: :post,
|
213
|
+
operation: :complete,
|
214
|
+
session: @session,
|
215
|
+
ids: {id: @id, order_id: @order_id},
|
216
|
+
params: {}.merge(kwargs).compact,
|
217
|
+
body: body,
|
218
|
+
entity: self,
|
219
|
+
)
|
220
|
+
end
|
221
|
+
|
222
|
+
sig do
|
223
|
+
params(
|
224
|
+
body: T.untyped,
|
225
|
+
kwargs: T.untyped
|
226
|
+
).returns(T.untyped)
|
227
|
+
end
|
228
|
+
def open(
|
229
|
+
body: nil,
|
230
|
+
**kwargs
|
231
|
+
)
|
232
|
+
self.class.request(
|
233
|
+
http_method: :post,
|
234
|
+
operation: :open,
|
235
|
+
session: @session,
|
236
|
+
ids: {id: @id, order_id: @order_id},
|
237
|
+
params: {}.merge(kwargs).compact,
|
238
|
+
body: body,
|
239
|
+
entity: self,
|
240
|
+
)
|
241
|
+
end
|
242
|
+
|
169
243
|
sig do
|
170
244
|
params(
|
171
245
|
body: T.untyped,
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class FulfillmentEvent < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
########################################################################################################################
|
5
|
+
# This file is auto-generated. If you have an issue, please create a GitHub issue. #
|
6
|
+
########################################################################################################################
|
7
|
+
|
4
8
|
module ShopifyAPI
|
5
9
|
class FulfillmentOrder < ShopifyAPI::Rest::Base
|
6
10
|
extend T::Sig
|