shopify_api 4.13.0 → 12.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/ISSUE_TEMPLATE.md +35 -0
- data/.github/dependabot.yml +20 -0
- data/.github/pull_request_template.md +20 -0
- data/.github/workflows/build.yml +42 -0
- data/.github/workflows/cla.yml +22 -0
- data/.github/workflows/close-waiting-for-response-issues.yml +20 -0
- data/.github/workflows/remove-labels-on-activity.yml +16 -0
- data/.github/workflows/stale.yml +32 -0
- data/.rubocop.yml +56 -5
- data/BREAKING_CHANGES_FOR_OLDER_VERSIONS.md +110 -0
- data/CHANGELOG.md +568 -0
- data/CONTRIBUTING.md +4 -3
- data/Gemfile +9 -2
- data/Gemfile.lock +159 -0
- data/LICENSE +2 -2
- data/README.md +86 -218
- data/RELEASING.md +19 -0
- data/Rakefile +16 -32
- data/SECURITY.md +59 -0
- data/bin/tapioca +29 -0
- data/dev.yml +32 -0
- data/docs/README.md +13 -0
- data/docs/getting_started.md +53 -0
- data/docs/issues.md +39 -0
- data/docs/usage/graphql.md +115 -0
- data/docs/usage/graphql_storefront.md +42 -0
- data/docs/usage/oauth.md +105 -0
- data/docs/usage/rest.md +137 -0
- data/docs/usage/session_storage.md +46 -0
- data/docs/usage/webhooks.md +98 -0
- data/lib/shopify_api/admin_versions.rb +19 -0
- data/lib/shopify_api/auth/associated_user.rb +36 -0
- data/lib/shopify_api/auth/auth_scopes.rb +75 -0
- data/lib/shopify_api/auth/file_session_storage.rb +72 -0
- data/lib/shopify_api/auth/jwt_payload.rb +83 -0
- data/lib/shopify_api/auth/oauth/auth_query.rb +47 -0
- data/lib/shopify_api/auth/oauth/session_cookie.rb +28 -0
- data/lib/shopify_api/auth/oauth.rb +138 -0
- data/lib/shopify_api/auth/session.rb +119 -0
- data/lib/shopify_api/auth/session_storage.rb +30 -0
- data/lib/shopify_api/auth.rb +26 -0
- data/lib/shopify_api/clients/graphql/admin.rb +15 -0
- data/lib/shopify_api/clients/graphql/client.rb +40 -0
- data/lib/shopify_api/clients/graphql/storefront.rb +35 -0
- data/lib/shopify_api/clients/http_client.rb +100 -0
- data/lib/shopify_api/clients/http_request.rb +35 -0
- data/lib/shopify_api/clients/http_response.rb +66 -0
- data/lib/shopify_api/clients/rest/admin.rb +118 -0
- data/lib/shopify_api/context.rb +166 -0
- data/lib/shopify_api/errors/context_not_setup_error.rb +9 -0
- data/lib/shopify_api/errors/cookie_not_found_error.rb +9 -0
- data/lib/shopify_api/errors/http_response_error.rb +19 -0
- data/lib/shopify_api/errors/invalid_graphql_request_error.rb +9 -0
- data/lib/shopify_api/errors/invalid_http_request_error.rb +9 -0
- data/lib/shopify_api/errors/invalid_jwt_token_error.rb +9 -0
- data/lib/shopify_api/errors/invalid_oauth_error.rb +9 -0
- data/lib/shopify_api/errors/invalid_webhook_error.rb +9 -0
- data/lib/shopify_api/errors/invalid_webhook_registration_error.rb +9 -0
- data/lib/shopify_api/errors/max_http_retries_exceeded_error.rb +9 -0
- data/lib/shopify_api/errors/missing_jwt_token_error.rb +9 -0
- data/lib/shopify_api/errors/missing_required_argument_error.rb +9 -0
- data/lib/shopify_api/errors/no_active_session_error.rb +9 -0
- data/lib/shopify_api/errors/no_session_cookie_error.rb +9 -0
- data/lib/shopify_api/errors/no_webhook_handler.rb +9 -0
- data/lib/shopify_api/errors/private_app_error.rb +9 -0
- data/lib/shopify_api/errors/request_access_token_error.rb +9 -0
- data/lib/shopify_api/errors/session_not_found_error.rb +9 -0
- data/lib/shopify_api/errors/session_storage_error.rb +9 -0
- data/lib/shopify_api/errors/unsupported_oauth_error.rb +9 -0
- data/lib/shopify_api/errors/unsupported_version_error.rb +9 -0
- data/lib/shopify_api/errors/webhook_registration_error.rb +9 -0
- data/lib/shopify_api/inflector.rb +17 -0
- data/lib/shopify_api/rest/base.rb +387 -0
- data/lib/shopify_api/rest/base_errors.rb +32 -0
- data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +77 -0
- data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_01/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2022_01/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +79 -0
- data/lib/shopify_api/rest/resources/2022_01/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2022_01/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +116 -0
- data/lib/shopify_api/rest/resources/2022_01/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_01/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2022_01/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_01/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2022_01/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2022_01/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2022_01/customer.rb +318 -0
- data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2022_01/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2022_01/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +268 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +281 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_01/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2022_01/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_01/metafield.rb +349 -0
- data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_01/order.rb +473 -0
- data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2022_01/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2022_01/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2022_01/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_01/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_01/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2022_01/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_01/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2022_01/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2022_01/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_01/shop.rb +218 -0
- data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2022_01/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2022_01/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_01/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2022_01/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2022_01/webhook.rb +168 -0
- data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +77 -0
- data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_04/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2022_04/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +79 -0
- data/lib/shopify_api/rest/resources/2022_04/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2022_04/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +116 -0
- data/lib/shopify_api/rest/resources/2022_04/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_04/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2022_04/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_04/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2022_04/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2022_04/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2022_04/customer.rb +321 -0
- data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2022_04/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2022_04/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +268 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +284 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_04/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2022_04/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_04/metafield.rb +342 -0
- data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_04/order.rb +473 -0
- data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2022_04/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2022_04/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2022_04/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_04/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_04/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2022_04/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_04/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2022_04/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2022_04/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_04/shop.rb +218 -0
- data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2022_04/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2022_04/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_04/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2022_04/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2022_04/webhook.rb +168 -0
- data/lib/shopify_api/rest/resources/2022_07/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2022_07/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2022_07/android_pay_key.rb +77 -0
- data/lib/shopify_api/rest/resources/2022_07/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2022_07/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2022_07/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_07/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2022_07/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +79 -0
- data/lib/shopify_api/rest/resources/2022_07/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2022_07/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2022_07/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_07/carrier_service.rb +113 -0
- data/lib/shopify_api/rest/resources/2022_07/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_07/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2022_07/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_07/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_07/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2022_07/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2022_07/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_07/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2022_07/customer.rb +321 -0
- data/lib/shopify_api/rest/resources/2022_07/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2022_07/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2022_07/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_07/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2022_07/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2022_07/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb +81 -0
- data/lib/shopify_api/rest/resources/2022_07/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2022_07/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +221 -0
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +310 -0
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2022_07/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2022_07/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_07/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2022_07/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2022_07/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2022_07/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_07/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2022_07/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_07/metafield.rb +342 -0
- data/lib/shopify_api/rest/resources/2022_07/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_07/order.rb +473 -0
- data/lib/shopify_api/rest/resources/2022_07/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2022_07/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2022_07/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2022_07/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2022_07/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2022_07/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_07/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2022_07/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_07/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_07/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2022_07/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2022_07/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2022_07/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_07/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2022_07/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2022_07/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2022_07/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2022_07/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_07/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_07/shop.rb +218 -0
- data/lib/shopify_api/rest/resources/2022_07/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2022_07/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_07/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2022_07/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2022_07/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2022_07/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_07/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2022_07/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2022_07/webhook.rb +168 -0
- data/lib/shopify_api/rest/resources/2022_10/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2022_10/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2022_10/android_pay_key.rb +77 -0
- data/lib/shopify_api/rest/resources/2022_10/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2022_10/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2022_10/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_10/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2022_10/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +79 -0
- data/lib/shopify_api/rest/resources/2022_10/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2022_10/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2022_10/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_10/carrier_service.rb +113 -0
- data/lib/shopify_api/rest/resources/2022_10/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_10/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2022_10/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_10/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_10/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2022_10/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2022_10/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_10/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2022_10/customer.rb +321 -0
- data/lib/shopify_api/rest/resources/2022_10/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2022_10/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2022_10/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2022_10/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2022_10/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2022_10/dispute_evidence.rb +117 -0
- data/lib/shopify_api/rest/resources/2022_10/dispute_file_upload.rb +81 -0
- data/lib/shopify_api/rest/resources/2022_10/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2022_10/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +221 -0
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +310 -0
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2022_10/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2022_10/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2022_10/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2022_10/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2022_10/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2022_10/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_10/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2022_10/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2022_10/metafield.rb +342 -0
- data/lib/shopify_api/rest/resources/2022_10/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2022_10/order.rb +476 -0
- data/lib/shopify_api/rest/resources/2022_10/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2022_10/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2022_10/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2022_10/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2022_10/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2022_10/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_10/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2022_10/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_10/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2022_10/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2022_10/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2022_10/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2022_10/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2022_10/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2022_10/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2022_10/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2022_10/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2022_10/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2022_10/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2022_10/shop.rb +221 -0
- data/lib/shopify_api/rest/resources/2022_10/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2022_10/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2022_10/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2022_10/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2022_10/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2022_10/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2022_10/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2022_10/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2022_10/webhook.rb +168 -0
- data/lib/shopify_api/utils/graphql_proxy.rb +52 -0
- data/lib/shopify_api/utils/hmac_validator.rb +44 -0
- data/lib/shopify_api/utils/http_utils.rb +17 -0
- data/lib/shopify_api/utils/session_utils.rb +135 -0
- data/lib/shopify_api/utils/verifiable_query.rb +18 -0
- data/lib/shopify_api/version.rb +4 -1
- data/lib/shopify_api/webhooks/handler.rb +15 -0
- data/lib/shopify_api/webhooks/register_result.rb +14 -0
- data/lib/shopify_api/webhooks/registration.rb +73 -0
- data/lib/shopify_api/webhooks/registrations/event_bridge.rb +61 -0
- data/lib/shopify_api/webhooks/registrations/http.rb +72 -0
- data/lib/shopify_api/webhooks/registrations/pub_sub.rb +65 -0
- data/lib/shopify_api/webhooks/registry.rb +215 -0
- data/lib/shopify_api/webhooks/request.rb +56 -0
- data/lib/shopify_api.rb +19 -26
- data/service.yml +1 -0
- data/shipit.rubygems.yml +1 -1
- data/shopify_api.gemspec +36 -19
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/activesupport@7.0.1.rbi +654 -0
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2401 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
- data/sorbet/rbi/gems/fakefs@1.4.1.rbi +571 -0
- data/sorbet/rbi/gems/hash_diff@1.0.0.rbi +47 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
- data/sorbet/rbi/gems/httparty@0.20.0.rbi +573 -0
- data/sorbet/rbi/gems/i18n@1.8.11.rbi +25 -0
- data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/mime-types-data@3.2022.0105.rbi +73 -0
- data/sorbet/rbi/gems/mime-types@3.4.1.rbi +295 -0
- data/sorbet/rbi/gems/minitest@5.15.0.rbi +541 -0
- data/sorbet/rbi/gems/mocha@1.13.0.rbi +986 -0
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
- data/sorbet/rbi/gems/oj@3.13.11.rbi +274 -0
- data/sorbet/rbi/gems/openssl@3.0.0.rbi +581 -0
- data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1741 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +157 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +814 -0
- data/sorbet/rbi/gems/rbi@0.0.11.rbi +1646 -0
- data/sorbet/rbi/gems/regexp_parser@2.2.0.rbi +1130 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
- data/sorbet/rbi/gems/rubocop-ast@1.15.1.rbi +1921 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.4.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.5.rbi +295 -0
- data/sorbet/rbi/gems/rubocop@1.25.1.rbi +13507 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/securerandom@0.1.1.rbi +10 -0
- data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
- data/sorbet/rbi/gems/tapioca@0.6.3.rbi +1238 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +858 -0
- data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
- data/sorbet/rbi/gems/unparser@0.6.3.rbi +1816 -0
- data/sorbet/rbi/gems/webmock@3.14.0.rbi +683 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
- data/sorbet/rbi/gems/yard@0.9.27.rbi +4145 -0
- data/sorbet/rbi/gems/zeitwerk@2.5.4.rbi +200 -0
- data/sorbet/rbi/shims/fakefs.rbi +1 -0
- data/sorbet/rbi/shims/openssl.rb +3 -0
- data/sorbet/rbi/todo.rbi +8 -0
- data/sorbet/tapioca/config.yml +4 -0
- data/sorbet/tapioca/require.rb +20 -0
- metadata +603 -280
- data/.document +0 -5
- data/.gitignore +0 -10
- data/.travis.yml +0 -32
- data/CHANGELOG +0 -310
- data/CONTRIBUTORS +0 -3
- data/Gemfile_ar30 +0 -6
- data/Gemfile_ar31 +0 -6
- data/Gemfile_ar32 +0 -6
- data/Gemfile_ar40 +0 -6
- data/Gemfile_ar_master +0 -6
- data/RELEASING +0 -16
- data/bin/shopify +0 -3
- data/lib/active_resource/base_ext.rb +0 -21
- data/lib/active_resource/connection_ext.rb +0 -10
- data/lib/active_resource/detailed_log_subscriber.rb +0 -19
- data/lib/active_resource/disable_prefix_check.rb +0 -36
- data/lib/active_resource/json_errors.rb +0 -31
- data/lib/active_resource/to_query.rb +0 -10
- data/lib/shopify_api/connection.rb +0 -33
- data/lib/shopify_api/countable.rb +0 -14
- data/lib/shopify_api/events.rb +0 -7
- data/lib/shopify_api/json_format.rb +0 -18
- data/lib/shopify_api/limits.rb +0 -76
- data/lib/shopify_api/metafields.rb +0 -20
- data/lib/shopify_api/resources/access_scope.rb +0 -5
- data/lib/shopify_api/resources/access_token.rb +0 -8
- data/lib/shopify_api/resources/address.rb +0 -4
- data/lib/shopify_api/resources/announcement.rb +0 -4
- data/lib/shopify_api/resources/api_permission.rb +0 -9
- data/lib/shopify_api/resources/application_charge.rb +0 -15
- data/lib/shopify_api/resources/application_credit.rb +0 -4
- data/lib/shopify_api/resources/article.rb +0 -21
- data/lib/shopify_api/resources/asset.rb +0 -96
- data/lib/shopify_api/resources/base.rb +0 -89
- data/lib/shopify_api/resources/billing_address.rb +0 -4
- data/lib/shopify_api/resources/blog.rb +0 -10
- data/lib/shopify_api/resources/carrier_service.rb +0 -4
- data/lib/shopify_api/resources/cart.rb +0 -4
- data/lib/shopify_api/resources/checkout.rb +0 -4
- data/lib/shopify_api/resources/collect.rb +0 -5
- data/lib/shopify_api/resources/collection_listing.rb +0 -9
- data/lib/shopify_api/resources/comment.rb +0 -9
- data/lib/shopify_api/resources/country.rb +0 -4
- data/lib/shopify_api/resources/custom_collection.rb +0 -19
- data/lib/shopify_api/resources/customer.rb +0 -29
- data/lib/shopify_api/resources/customer_group.rb +0 -5
- data/lib/shopify_api/resources/customer_invite.rb +0 -4
- data/lib/shopify_api/resources/customer_saved_search.rb +0 -9
- data/lib/shopify_api/resources/discount_code.rb +0 -9
- data/lib/shopify_api/resources/draft_order.rb +0 -14
- data/lib/shopify_api/resources/draft_order_invoice.rb +0 -4
- data/lib/shopify_api/resources/event.rb +0 -7
- data/lib/shopify_api/resources/fulfillment.rb +0 -13
- data/lib/shopify_api/resources/fulfillment_event.rb +0 -15
- data/lib/shopify_api/resources/fulfillment_request.rb +0 -15
- data/lib/shopify_api/resources/fulfillment_service.rb +0 -4
- data/lib/shopify_api/resources/gift_card.rb +0 -7
- data/lib/shopify_api/resources/graphql.rb +0 -22
- data/lib/shopify_api/resources/image.rb +0 -16
- data/lib/shopify_api/resources/inventory_item.rb +0 -6
- data/lib/shopify_api/resources/inventory_level.rb +0 -55
- data/lib/shopify_api/resources/line_item.rb +0 -14
- data/lib/shopify_api/resources/location.rb +0 -8
- data/lib/shopify_api/resources/marketing_event.rb +0 -8
- data/lib/shopify_api/resources/metafield.rb +0 -12
- data/lib/shopify_api/resources/note_attribute.rb +0 -4
- data/lib/shopify_api/resources/o_auth.rb +0 -17
- data/lib/shopify_api/resources/option.rb +0 -4
- data/lib/shopify_api/resources/order.rb +0 -29
- data/lib/shopify_api/resources/order_risk.rb +0 -8
- data/lib/shopify_api/resources/page.rb +0 -6
- data/lib/shopify_api/resources/payment_details.rb +0 -4
- data/lib/shopify_api/resources/ping/conversation.rb +0 -18
- data/lib/shopify_api/resources/ping/message.rb +0 -9
- data/lib/shopify_api/resources/ping.rb +0 -3
- data/lib/shopify_api/resources/policy.rb +0 -7
- data/lib/shopify_api/resources/price_rule.rb +0 -8
- data/lib/shopify_api/resources/product.rb +0 -33
- data/lib/shopify_api/resources/product_listing.rb +0 -9
- data/lib/shopify_api/resources/province.rb +0 -5
- data/lib/shopify_api/resources/receipt.rb +0 -4
- data/lib/shopify_api/resources/recurring_application_charge.rb +0 -31
- data/lib/shopify_api/resources/redirect.rb +0 -4
- data/lib/shopify_api/resources/refund.rb +0 -13
- data/lib/shopify_api/resources/report.rb +0 -4
- data/lib/shopify_api/resources/resource_feedback.rb +0 -19
- data/lib/shopify_api/resources/rule.rb +0 -4
- data/lib/shopify_api/resources/script_tag.rb +0 -4
- data/lib/shopify_api/resources/shipping_address.rb +0 -4
- data/lib/shopify_api/resources/shipping_line.rb +0 -4
- data/lib/shopify_api/resources/shipping_zone.rb +0 -4
- data/lib/shopify_api/resources/shop.rb +0 -23
- data/lib/shopify_api/resources/smart_collection.rb +0 -15
- data/lib/shopify_api/resources/storefront_access_token.rb +0 -4
- data/lib/shopify_api/resources/tax_line.rb +0 -4
- data/lib/shopify_api/resources/tax_service.rb +0 -4
- data/lib/shopify_api/resources/theme.rb +0 -4
- data/lib/shopify_api/resources/transaction.rb +0 -5
- data/lib/shopify_api/resources/usage_charge.rb +0 -5
- data/lib/shopify_api/resources/user.rb +0 -4
- data/lib/shopify_api/resources/variant.rb +0 -8
- data/lib/shopify_api/resources/webhook.rb +0 -4
- data/lib/shopify_api/resources.rb +0 -2
- data/lib/shopify_api/session.rb +0 -144
- data/test/access_token_test.rb +0 -19
- data/test/active_resource/json_errors_test.rb +0 -19
- data/test/api_permission_test.rb +0 -9
- data/test/application_charge_test.rb +0 -79
- data/test/application_credit_test.rb +0 -35
- data/test/article_test.rb +0 -73
- data/test/asset_test.rb +0 -18
- data/test/base_test.rb +0 -125
- data/test/blog_test.rb +0 -8
- data/test/carrier_service_test.rb +0 -17
- data/test/cart_test.rb +0 -13
- data/test/checkouts_test.rb +0 -9
- data/test/collect_test.rb +0 -9
- data/test/collection_listing_test.rb +0 -41
- data/test/countable_test.rb +0 -13
- data/test/custom_collection_test.rb +0 -9
- data/test/customer_saved_search_test.rb +0 -27
- data/test/customer_test.rb +0 -50
- data/test/detailed_log_subscriber_test.rb +0 -49
- data/test/discount_code_test.rb +0 -53
- data/test/draft_order_test.rb +0 -151
- data/test/fixtures/access_token_delegate.json +0 -4
- data/test/fixtures/application_charge.json +0 -16
- data/test/fixtures/application_charges.json +0 -57
- data/test/fixtures/application_credit.json +0 -12
- data/test/fixtures/application_credits.json +0 -24
- data/test/fixtures/article.json +0 -15
- data/test/fixtures/articles.json +0 -39
- data/test/fixtures/asset.json +0 -9
- data/test/fixtures/assets.json +0 -136
- data/test/fixtures/authors.json +0 -1
- data/test/fixtures/blog.json +0 -13
- data/test/fixtures/blogs.json +0 -13
- data/test/fixtures/carrier_service.json +0 -9
- data/test/fixtures/carts.json +0 -43
- data/test/fixtures/checkouts.json +0 -186
- data/test/fixtures/collect.json +0 -12
- data/test/fixtures/collection_listing.json +0 -11
- data/test/fixtures/collection_listing_product_ids.json +0 -1
- data/test/fixtures/collection_listings.json +0 -13
- data/test/fixtures/custom_collection.json +0 -17
- data/test/fixtures/customer_invite.json +0 -9
- data/test/fixtures/customer_saved_search.json +0 -9
- data/test/fixtures/customer_saved_search_customers.json +0 -60
- data/test/fixtures/customers.json +0 -59
- data/test/fixtures/customers_account_activation_url.json +0 -3
- data/test/fixtures/customers_search.json +0 -60
- data/test/fixtures/discount_code.json +0 -10
- data/test/fixtures/discount_codes.json +0 -12
- data/test/fixtures/draft_order.json +0 -159
- data/test/fixtures/draft_order_completed.json +0 -159
- data/test/fixtures/draft_order_invoice.json +0 -9
- data/test/fixtures/draft_orders.json +0 -161
- data/test/fixtures/engagement.json +0 -15
- data/test/fixtures/events.json +0 -31
- data/test/fixtures/fulfillment.json +0 -49
- data/test/fixtures/fulfillment_event.json +0 -12
- data/test/fixtures/fulfillment_request.json +0 -28
- data/test/fixtures/fulfillment_service.json +0 -10
- data/test/fixtures/gift_card.json +0 -20
- data/test/fixtures/gift_card_disabled.json +0 -20
- data/test/fixtures/image.json +0 -10
- data/test/fixtures/images.json +0 -20
- data/test/fixtures/inventory_level.json +0 -7
- data/test/fixtures/inventory_levels.json +0 -24
- data/test/fixtures/marketing_event.json +0 -28
- data/test/fixtures/marketing_events.json +0 -54
- data/test/fixtures/metafield.json +0 -12
- data/test/fixtures/metafields.json +0 -34
- data/test/fixtures/o_auth_revoke.json +0 -5
- data/test/fixtures/order.json +0 -297
- data/test/fixtures/order_risk.json +0 -14
- data/test/fixtures/order_risks.json +0 -28
- data/test/fixtures/order_with_properties.json +0 -373
- data/test/fixtures/orders.json +0 -299
- data/test/fixtures/ping/conversation.json +0 -1
- data/test/fixtures/ping/message.json +0 -1
- data/test/fixtures/policies.json +0 -8
- data/test/fixtures/price_rule.json +0 -27
- data/test/fixtures/price_rules.json +0 -28
- data/test/fixtures/product.json +0 -116
- data/test/fixtures/product_listing.json +0 -86
- data/test/fixtures/product_listing_product_ids.json +0 -1
- data/test/fixtures/product_listings.json +0 -174
- data/test/fixtures/recurring_application_charge.json +0 -22
- data/test/fixtures/recurring_application_charge_adjustment.json +0 -5
- data/test/fixtures/recurring_application_charges.json +0 -106
- data/test/fixtures/redirect.json +0 -7
- data/test/fixtures/refund.json +0 -112
- data/test/fixtures/report.json +0 -9
- data/test/fixtures/reports.json +0 -11
- data/test/fixtures/script_tag.json +0 -10
- data/test/fixtures/script_tags.json +0 -18
- data/test/fixtures/shipping_zones.json +0 -315
- data/test/fixtures/shop.json +0 -26
- data/test/fixtures/smart_collection.json +0 -21
- data/test/fixtures/storefront_access_token.json +0 -9
- data/test/fixtures/storefront_access_tokens.json +0 -18
- data/test/fixtures/tags.json +0 -1
- data/test/fixtures/tax_service.json +0 -9
- data/test/fixtures/transaction.json +0 -29
- data/test/fixtures/usage_charge.json +0 -11
- data/test/fixtures/usage_charges.json +0 -23
- data/test/fixtures/user.json +0 -21
- data/test/fixtures/users.json +0 -42
- data/test/fixtures/variant.json +0 -23
- data/test/fixtures/variants.json +0 -88
- data/test/fixtures/webhook.json +0 -10
- data/test/fixtures/webhooks.json +0 -18
- data/test/fulfillment_event_test.rb +0 -69
- data/test/fulfillment_request_test.rb +0 -33
- data/test/fulfillment_service_test.rb +0 -17
- data/test/fulfillment_test.rb +0 -61
- data/test/gift_card_test.rb +0 -22
- data/test/image_test.rb +0 -39
- data/test/inventory_level_test.rb +0 -59
- data/test/limits_test.rb +0 -38
- data/test/location_test.rb +0 -14
- data/test/marketing_event_test.rb +0 -68
- data/test/metafield_test.rb +0 -46
- data/test/o_auth_test.rb +0 -8
- data/test/order_risk_test.rb +0 -46
- data/test/order_test.rb +0 -59
- data/test/ping/conversation_test.rb +0 -39
- data/test/policy_test.rb +0 -19
- data/test/price_rule_test.rb +0 -65
- data/test/product_listing_test.rb +0 -40
- data/test/product_test.rb +0 -50
- data/test/recurring_application_charge_test.rb +0 -149
- data/test/redirect_test.rb +0 -9
- data/test/refund_test.rb +0 -32
- data/test/report_test.rb +0 -35
- data/test/resource_feedback_test.rb +0 -42
- data/test/script_tag_test.rb +0 -30
- data/test/session_test.rb +0 -250
- data/test/shipping_zone_test.rb +0 -10
- data/test/shop_test.rb +0 -68
- data/test/smart_collection_test.rb +0 -10
- data/test/storefront_access_token_test.rb +0 -32
- data/test/tax_service_test.rb +0 -8
- data/test/test_helper.rb +0 -97
- data/test/transaction_test.rb +0 -17
- data/test/usage_charge_test.rb +0 -21
- data/test/user_test.rb +0 -17
- data/test/variant_test.rb +0 -46
- data/test/webhook_test.rb +0 -21
@@ -0,0 +1,986 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `mocha` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem mocha`.
|
6
|
+
|
7
|
+
::RUBY19 = T.let(T.unsafe(nil), TrueClass)
|
8
|
+
|
9
|
+
module Mocha
|
10
|
+
class << self
|
11
|
+
def configuration; end
|
12
|
+
def configure; end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Mocha::API
|
17
|
+
include ::Mocha::ParameterMatchers
|
18
|
+
include ::Mocha::Hooks
|
19
|
+
|
20
|
+
def mock(*arguments); end
|
21
|
+
def sequence(name); end
|
22
|
+
def states(name); end
|
23
|
+
def stub(*arguments); end
|
24
|
+
def stub_everything(*arguments); end
|
25
|
+
|
26
|
+
class << self
|
27
|
+
def extended(mod); end
|
28
|
+
def included(_mod); end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class Mocha::AnyInstanceMethod < ::Mocha::StubbedMethod
|
33
|
+
private
|
34
|
+
|
35
|
+
def method_body(method); end
|
36
|
+
def mock_owner; end
|
37
|
+
def original_method_owner; end
|
38
|
+
def stubbee_method(method_name); end
|
39
|
+
end
|
40
|
+
|
41
|
+
class Mocha::AnyInstanceReceiver
|
42
|
+
def initialize(klass); end
|
43
|
+
|
44
|
+
def mocks; end
|
45
|
+
end
|
46
|
+
|
47
|
+
class Mocha::ArgumentIterator
|
48
|
+
def initialize(argument); end
|
49
|
+
|
50
|
+
def each; end
|
51
|
+
end
|
52
|
+
|
53
|
+
class Mocha::BacktraceFilter
|
54
|
+
def initialize(lib_directory = T.unsafe(nil)); end
|
55
|
+
|
56
|
+
def filtered(backtrace); end
|
57
|
+
end
|
58
|
+
|
59
|
+
Mocha::BacktraceFilter::LIB_DIRECTORY = T.let(T.unsafe(nil), String)
|
60
|
+
module Mocha::BlockMatchers; end
|
61
|
+
|
62
|
+
class Mocha::BlockMatchers::BlockGiven
|
63
|
+
def match?(actual_block); end
|
64
|
+
def mocha_inspect; end
|
65
|
+
end
|
66
|
+
|
67
|
+
class Mocha::BlockMatchers::NoBlockGiven
|
68
|
+
def match?(actual_block); end
|
69
|
+
def mocha_inspect; end
|
70
|
+
end
|
71
|
+
|
72
|
+
class Mocha::BlockMatchers::OptionalBlock
|
73
|
+
def match?(_actual_block); end
|
74
|
+
def mocha_inspect; end
|
75
|
+
end
|
76
|
+
|
77
|
+
class Mocha::Cardinality
|
78
|
+
def initialize(required = T.unsafe(nil), maximum = T.unsafe(nil)); end
|
79
|
+
|
80
|
+
def <<(invocation); end
|
81
|
+
def actual_invocations; end
|
82
|
+
def allowed_any_number_of_times?; end
|
83
|
+
def anticipated_times; end
|
84
|
+
def at_least(count); end
|
85
|
+
def at_most(count); end
|
86
|
+
def exactly(count); end
|
87
|
+
def invocations_allowed?; end
|
88
|
+
def invoked_times; end
|
89
|
+
def needs_verifying?; end
|
90
|
+
def satisfied?; end
|
91
|
+
def times(range_or_count); end
|
92
|
+
def used?; end
|
93
|
+
def verified?; end
|
94
|
+
|
95
|
+
protected
|
96
|
+
|
97
|
+
def count(number); end
|
98
|
+
def infinite?(number); end
|
99
|
+
def maximum; end
|
100
|
+
def required; end
|
101
|
+
def update(required, maximum); end
|
102
|
+
end
|
103
|
+
|
104
|
+
Mocha::Cardinality::INFINITY = T.let(T.unsafe(nil), Float)
|
105
|
+
|
106
|
+
class Mocha::Central
|
107
|
+
def initialize; end
|
108
|
+
|
109
|
+
def stub(method); end
|
110
|
+
def stubba_methods; end
|
111
|
+
def stubba_methods=(_arg0); end
|
112
|
+
def unstub(method); end
|
113
|
+
def unstub_all; end
|
114
|
+
end
|
115
|
+
|
116
|
+
class Mocha::Central::Null < ::Mocha::Central
|
117
|
+
def initialize(&block); end
|
118
|
+
|
119
|
+
def stub(*_arg0); end
|
120
|
+
def unstub(*_arg0); end
|
121
|
+
end
|
122
|
+
|
123
|
+
class Mocha::ChangeStateSideEffect
|
124
|
+
def initialize(state); end
|
125
|
+
|
126
|
+
def mocha_inspect; end
|
127
|
+
def perform; end
|
128
|
+
end
|
129
|
+
|
130
|
+
module Mocha::ClassMethods
|
131
|
+
def __method_exists__?(method, include_public_methods = T.unsafe(nil)); end
|
132
|
+
def __method_visibility__(method, include_public_methods = T.unsafe(nil)); end
|
133
|
+
def any_instance; end
|
134
|
+
end
|
135
|
+
|
136
|
+
class Mocha::ClassMethods::AnyInstance
|
137
|
+
def initialize(klass); end
|
138
|
+
|
139
|
+
def mocha(instantiate = T.unsafe(nil)); end
|
140
|
+
def respond_to?(method); end
|
141
|
+
def stubba_class; end
|
142
|
+
def stubba_method; end
|
143
|
+
def stubba_object; end
|
144
|
+
end
|
145
|
+
|
146
|
+
class Mocha::Configuration
|
147
|
+
def initialize(options = T.unsafe(nil)); end
|
148
|
+
|
149
|
+
def display_matching_invocations_on_failure=(value); end
|
150
|
+
def display_matching_invocations_on_failure?; end
|
151
|
+
def merge(other); end
|
152
|
+
def reinstate_undocumented_behaviour_from_v1_9=(value); end
|
153
|
+
def reinstate_undocumented_behaviour_from_v1_9?; end
|
154
|
+
def stubbing_method_on_nil; end
|
155
|
+
def stubbing_method_on_nil=(value); end
|
156
|
+
def stubbing_method_on_non_mock_object; end
|
157
|
+
def stubbing_method_on_non_mock_object=(value); end
|
158
|
+
def stubbing_method_unnecessarily; end
|
159
|
+
def stubbing_method_unnecessarily=(value); end
|
160
|
+
def stubbing_non_existent_method; end
|
161
|
+
def stubbing_non_existent_method=(value); end
|
162
|
+
def stubbing_non_public_method; end
|
163
|
+
def stubbing_non_public_method=(value); end
|
164
|
+
|
165
|
+
protected
|
166
|
+
|
167
|
+
def options; end
|
168
|
+
|
169
|
+
private
|
170
|
+
|
171
|
+
def initialize_copy(other); end
|
172
|
+
|
173
|
+
class << self
|
174
|
+
def allow(action, &block); end
|
175
|
+
def allow?(action); end
|
176
|
+
def configuration; end
|
177
|
+
def override(temporary_options); end
|
178
|
+
def prevent(action, &block); end
|
179
|
+
def prevent?(action); end
|
180
|
+
def reset_configuration; end
|
181
|
+
def warn_when(action, &block); end
|
182
|
+
def warn_when?(action); end
|
183
|
+
|
184
|
+
private
|
185
|
+
|
186
|
+
def change_config(action, new_value, &block); end
|
187
|
+
def temporarily_change_config(action, new_value); end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
Mocha::Configuration::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
192
|
+
|
193
|
+
module Mocha::Debug
|
194
|
+
class << self
|
195
|
+
def puts(message); end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
Mocha::Debug::OPTIONS = T.let(T.unsafe(nil), Hash)
|
200
|
+
|
201
|
+
class Mocha::DefaultName
|
202
|
+
def initialize(mock); end
|
203
|
+
|
204
|
+
def mocha_inspect; end
|
205
|
+
end
|
206
|
+
|
207
|
+
class Mocha::DefaultReceiver
|
208
|
+
def initialize(mock); end
|
209
|
+
|
210
|
+
def mocks; end
|
211
|
+
end
|
212
|
+
|
213
|
+
class Mocha::Deprecation
|
214
|
+
class << self
|
215
|
+
def messages; end
|
216
|
+
def messages=(_arg0); end
|
217
|
+
def mode; end
|
218
|
+
def mode=(_arg0); end
|
219
|
+
def warning(*messages); end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
module Mocha::Detection; end
|
224
|
+
|
225
|
+
module Mocha::Detection::MiniTest
|
226
|
+
class << self
|
227
|
+
def testcase; end
|
228
|
+
def version; end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
class Mocha::ErrorWithFilteredBacktrace < ::StandardError
|
233
|
+
def initialize(message = T.unsafe(nil), backtrace = T.unsafe(nil)); end
|
234
|
+
end
|
235
|
+
|
236
|
+
class Mocha::ExceptionRaiser
|
237
|
+
def initialize(exception, message); end
|
238
|
+
|
239
|
+
def evaluate(invocation); end
|
240
|
+
end
|
241
|
+
|
242
|
+
class Mocha::Expectation
|
243
|
+
def initialize(mock, expected_method_name, backtrace = T.unsafe(nil)); end
|
244
|
+
|
245
|
+
def add_in_sequence_ordering_constraint(sequence); end
|
246
|
+
def add_ordering_constraint(ordering_constraint); end
|
247
|
+
def add_side_effect(side_effect); end
|
248
|
+
def at_least(minimum_number_of_times); end
|
249
|
+
def at_least_once; end
|
250
|
+
def at_most(maximum_number_of_times); end
|
251
|
+
def at_most_once; end
|
252
|
+
def backtrace; end
|
253
|
+
def in_correct_order?; end
|
254
|
+
def in_sequence(sequence, *sequences); end
|
255
|
+
def inspect; end
|
256
|
+
def invocations_allowed?; end
|
257
|
+
def invoke(invocation); end
|
258
|
+
def match?(invocation); end
|
259
|
+
def matches_method?(method_name); end
|
260
|
+
def method_signature; end
|
261
|
+
def mocha_inspect; end
|
262
|
+
def multiple_yields(*parameter_groups); end
|
263
|
+
def never; end
|
264
|
+
def once; end
|
265
|
+
def perform_side_effects; end
|
266
|
+
def raises(exception = T.unsafe(nil), message = T.unsafe(nil)); end
|
267
|
+
def returns(*values); end
|
268
|
+
def satisfied?; end
|
269
|
+
def then(state = T.unsafe(nil)); end
|
270
|
+
def throws(tag, object = T.unsafe(nil)); end
|
271
|
+
def times(range); end
|
272
|
+
def twice; end
|
273
|
+
def used?; end
|
274
|
+
def verified?(assertion_counter = T.unsafe(nil)); end
|
275
|
+
def when(state_predicate); end
|
276
|
+
def with(*expected_parameters, &matching_block); end
|
277
|
+
def with_block_given; end
|
278
|
+
def with_no_block_given; end
|
279
|
+
def yields(*parameters); end
|
280
|
+
end
|
281
|
+
|
282
|
+
class Mocha::ExpectationError < ::Exception; end
|
283
|
+
|
284
|
+
class Mocha::ExpectationErrorFactory
|
285
|
+
class << self
|
286
|
+
def build(message = T.unsafe(nil), backtrace = T.unsafe(nil)); end
|
287
|
+
def exception_class; end
|
288
|
+
def exception_class=(_arg0); end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class Mocha::ExpectationList
|
293
|
+
def initialize(expectations = T.unsafe(nil)); end
|
294
|
+
|
295
|
+
def +(other); end
|
296
|
+
def add(expectation); end
|
297
|
+
def any?; end
|
298
|
+
def length; end
|
299
|
+
def match(invocation); end
|
300
|
+
def match_allowing_invocation(invocation); end
|
301
|
+
def matches_method?(method_name); end
|
302
|
+
def remove_all_matching_method(method_name); end
|
303
|
+
def to_a; end
|
304
|
+
def to_set; end
|
305
|
+
def verified?(assertion_counter = T.unsafe(nil)); end
|
306
|
+
|
307
|
+
private
|
308
|
+
|
309
|
+
def matching_expectations(invocation); end
|
310
|
+
end
|
311
|
+
|
312
|
+
module Mocha::Hooks
|
313
|
+
def mocha_setup; end
|
314
|
+
def mocha_teardown; end
|
315
|
+
def mocha_verify(assertion_counter = T.unsafe(nil)); end
|
316
|
+
end
|
317
|
+
|
318
|
+
class Mocha::ImpersonatingAnyInstanceName
|
319
|
+
def initialize(klass); end
|
320
|
+
|
321
|
+
def mocha_inspect; end
|
322
|
+
end
|
323
|
+
|
324
|
+
class Mocha::ImpersonatingName
|
325
|
+
def initialize(object); end
|
326
|
+
|
327
|
+
def mocha_inspect; end
|
328
|
+
end
|
329
|
+
|
330
|
+
class Mocha::InStateOrderingConstraint
|
331
|
+
def initialize(state_predicate); end
|
332
|
+
|
333
|
+
def allows_invocation_now?; end
|
334
|
+
def mocha_inspect; end
|
335
|
+
end
|
336
|
+
|
337
|
+
module Mocha::Inspect; end
|
338
|
+
|
339
|
+
module Mocha::Inspect::ArrayMethods
|
340
|
+
def mocha_inspect(wrapped = T.unsafe(nil)); end
|
341
|
+
end
|
342
|
+
|
343
|
+
module Mocha::Inspect::DateMethods
|
344
|
+
def mocha_inspect; end
|
345
|
+
end
|
346
|
+
|
347
|
+
module Mocha::Inspect::HashMethods
|
348
|
+
def mocha_inspect(wrapped = T.unsafe(nil)); end
|
349
|
+
end
|
350
|
+
|
351
|
+
module Mocha::Inspect::ObjectMethods
|
352
|
+
def mocha_inspect; end
|
353
|
+
end
|
354
|
+
|
355
|
+
module Mocha::Inspect::TimeMethods
|
356
|
+
def mocha_inspect; end
|
357
|
+
end
|
358
|
+
|
359
|
+
class Mocha::InstanceMethod < ::Mocha::StubbedMethod
|
360
|
+
private
|
361
|
+
|
362
|
+
def method_body(method); end
|
363
|
+
def mock_owner; end
|
364
|
+
def original_method_owner; end
|
365
|
+
def stubbee_method(method_name); end
|
366
|
+
end
|
367
|
+
|
368
|
+
module Mocha::Integration; end
|
369
|
+
|
370
|
+
class Mocha::Integration::AssertionCounter
|
371
|
+
def initialize(test_case); end
|
372
|
+
|
373
|
+
def increment; end
|
374
|
+
end
|
375
|
+
|
376
|
+
module Mocha::Integration::MiniTest
|
377
|
+
class << self
|
378
|
+
def activate; end
|
379
|
+
def translate(exception); end
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
module Mocha::Integration::MiniTest::Adapter
|
384
|
+
include ::Mocha::ParameterMatchers
|
385
|
+
include ::Mocha::Hooks
|
386
|
+
include ::Mocha::API
|
387
|
+
|
388
|
+
def after_teardown; end
|
389
|
+
def before_setup; end
|
390
|
+
def before_teardown; end
|
391
|
+
|
392
|
+
class << self
|
393
|
+
def applicable_to?(mini_test_version); end
|
394
|
+
def description; end
|
395
|
+
def included(_mod); end
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
module Mocha::Integration::MiniTest::Nothing
|
400
|
+
class << self
|
401
|
+
def applicable_to?(_test_unit_version, _ruby_version = T.unsafe(nil)); end
|
402
|
+
def description; end
|
403
|
+
def included(_mod); end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
module Mocha::Integration::MiniTest::Version13
|
408
|
+
include ::Mocha::API
|
409
|
+
|
410
|
+
class << self
|
411
|
+
def applicable_to?(mini_test_version); end
|
412
|
+
def description; end
|
413
|
+
def included(mod); end
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
module Mocha::Integration::MiniTest::Version13::RunMethodPatch
|
418
|
+
def run(runner); end
|
419
|
+
end
|
420
|
+
|
421
|
+
module Mocha::Integration::MiniTest::Version140
|
422
|
+
include ::Mocha::API
|
423
|
+
|
424
|
+
class << self
|
425
|
+
def applicable_to?(mini_test_version); end
|
426
|
+
def description; end
|
427
|
+
def included(mod); end
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
module Mocha::Integration::MiniTest::Version140::RunMethodPatch
|
432
|
+
def run(runner); end
|
433
|
+
end
|
434
|
+
|
435
|
+
module Mocha::Integration::MiniTest::Version141
|
436
|
+
include ::Mocha::API
|
437
|
+
|
438
|
+
class << self
|
439
|
+
def applicable_to?(mini_test_version); end
|
440
|
+
def description; end
|
441
|
+
def included(mod); end
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
module Mocha::Integration::MiniTest::Version141::RunMethodPatch
|
446
|
+
def run(runner); end
|
447
|
+
end
|
448
|
+
|
449
|
+
module Mocha::Integration::MiniTest::Version142To172
|
450
|
+
include ::Mocha::API
|
451
|
+
|
452
|
+
class << self
|
453
|
+
def applicable_to?(mini_test_version); end
|
454
|
+
def description; end
|
455
|
+
def included(mod); end
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
459
|
+
module Mocha::Integration::MiniTest::Version142To172::RunMethodPatch
|
460
|
+
def run(runner); end
|
461
|
+
end
|
462
|
+
|
463
|
+
module Mocha::Integration::MiniTest::Version200
|
464
|
+
include ::Mocha::API
|
465
|
+
|
466
|
+
class << self
|
467
|
+
def applicable_to?(mini_test_version); end
|
468
|
+
def description; end
|
469
|
+
def included(mod); end
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
module Mocha::Integration::MiniTest::Version200::RunMethodPatch
|
474
|
+
def run(runner); end
|
475
|
+
end
|
476
|
+
|
477
|
+
module Mocha::Integration::MiniTest::Version201To222
|
478
|
+
include ::Mocha::API
|
479
|
+
|
480
|
+
class << self
|
481
|
+
def applicable_to?(mini_test_version); end
|
482
|
+
def description; end
|
483
|
+
def included(mod); end
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
module Mocha::Integration::MiniTest::Version201To222::RunMethodPatch
|
488
|
+
def run(runner); end
|
489
|
+
end
|
490
|
+
|
491
|
+
module Mocha::Integration::MiniTest::Version2110To2111
|
492
|
+
include ::Mocha::API
|
493
|
+
|
494
|
+
class << self
|
495
|
+
def applicable_to?(mini_test_version); end
|
496
|
+
def description; end
|
497
|
+
def included(mod); end
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
module Mocha::Integration::MiniTest::Version2110To2111::RunMethodPatch
|
502
|
+
def run(runner); end
|
503
|
+
end
|
504
|
+
|
505
|
+
module Mocha::Integration::MiniTest::Version2112To320
|
506
|
+
include ::Mocha::API
|
507
|
+
|
508
|
+
class << self
|
509
|
+
def applicable_to?(mini_test_version); end
|
510
|
+
def description; end
|
511
|
+
def included(mod); end
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
module Mocha::Integration::MiniTest::Version2112To320::RunMethodPatch
|
516
|
+
def run(runner); end
|
517
|
+
end
|
518
|
+
|
519
|
+
module Mocha::Integration::MiniTest::Version230To2101
|
520
|
+
include ::Mocha::API
|
521
|
+
|
522
|
+
class << self
|
523
|
+
def applicable_to?(mini_test_version); end
|
524
|
+
def description; end
|
525
|
+
def included(mod); end
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
module Mocha::Integration::MiniTest::Version230To2101::RunMethodPatch
|
530
|
+
def run(runner); end
|
531
|
+
end
|
532
|
+
|
533
|
+
module Mocha::Integration::MonkeyPatcher
|
534
|
+
class << self
|
535
|
+
def apply(mod, run_method_patch); end
|
536
|
+
end
|
537
|
+
end
|
538
|
+
|
539
|
+
class Mocha::Invocation
|
540
|
+
def initialize(mock, method_name, *arguments, &block); end
|
541
|
+
|
542
|
+
def arguments; end
|
543
|
+
def block; end
|
544
|
+
def call(yield_parameters = T.unsafe(nil), return_values = T.unsafe(nil)); end
|
545
|
+
def call_description; end
|
546
|
+
def full_description; end
|
547
|
+
def method_name; end
|
548
|
+
def raised(exception); end
|
549
|
+
def result_description; end
|
550
|
+
def returned(value); end
|
551
|
+
def short_call_description; end
|
552
|
+
def threw(tag, value); end
|
553
|
+
end
|
554
|
+
|
555
|
+
class Mocha::Logger
|
556
|
+
def initialize(io); end
|
557
|
+
|
558
|
+
def warn(message); end
|
559
|
+
end
|
560
|
+
|
561
|
+
class Mocha::MethodMatcher
|
562
|
+
def initialize(expected_method_name); end
|
563
|
+
|
564
|
+
def expected_method_name; end
|
565
|
+
def match?(actual_method_name); end
|
566
|
+
def mocha_inspect; end
|
567
|
+
end
|
568
|
+
|
569
|
+
class Mocha::Mock
|
570
|
+
def initialize(mockery, name = T.unsafe(nil), receiver = T.unsafe(nil)); end
|
571
|
+
|
572
|
+
def __expectations__; end
|
573
|
+
def __expects__(method_name_or_hash, backtrace = T.unsafe(nil)); end
|
574
|
+
def __expire__; end
|
575
|
+
def __singleton_class__; end
|
576
|
+
def __stubs__(method_name_or_hash, backtrace = T.unsafe(nil)); end
|
577
|
+
def __verified__?(assertion_counter = T.unsafe(nil)); end
|
578
|
+
def all_expectations; end
|
579
|
+
def any_expectations?; end
|
580
|
+
def ensure_method_not_already_defined(method_name); end
|
581
|
+
def everything_stubbed; end
|
582
|
+
def expects(method_name_or_hash, backtrace = T.unsafe(nil)); end
|
583
|
+
def inspect; end
|
584
|
+
def method_missing(symbol, *arguments, &block); end
|
585
|
+
def mocha_inspect; end
|
586
|
+
def quacks_like(responder); end
|
587
|
+
def quacks_like_instance_of(responder_class); end
|
588
|
+
def responds_like(responder); end
|
589
|
+
def responds_like_instance_of(responder_class); end
|
590
|
+
def stub_everything; end
|
591
|
+
def stubs(method_name_or_hash, backtrace = T.unsafe(nil)); end
|
592
|
+
def unstub(*method_names); end
|
593
|
+
|
594
|
+
private
|
595
|
+
|
596
|
+
def check_expiry; end
|
597
|
+
def check_responder_responds_to(symbol); end
|
598
|
+
def raise_unexpected_invocation_error(invocation, matching_expectation); end
|
599
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
600
|
+
end
|
601
|
+
|
602
|
+
class Mocha::Mockery
|
603
|
+
def logger; end
|
604
|
+
def logger=(_arg0); end
|
605
|
+
def mocha_inspect; end
|
606
|
+
def mock_impersonating(object); end
|
607
|
+
def mock_impersonating_any_instance_of(klass); end
|
608
|
+
def mocks; end
|
609
|
+
def named_mock(name); end
|
610
|
+
def new_state_machine(name); end
|
611
|
+
def on_stubbing(object, method); end
|
612
|
+
def state_machines; end
|
613
|
+
def stubba; end
|
614
|
+
def teardown; end
|
615
|
+
def unnamed_mock; end
|
616
|
+
def verify(assertion_counter = T.unsafe(nil)); end
|
617
|
+
|
618
|
+
private
|
619
|
+
|
620
|
+
def add_mock(mock); end
|
621
|
+
def add_state_machine(state_machine); end
|
622
|
+
def check(action, description, signature_proc, backtrace = T.unsafe(nil)); end
|
623
|
+
def expectations; end
|
624
|
+
def reset; end
|
625
|
+
def satisfied_expectations; end
|
626
|
+
def unsatisfied_expectations; end
|
627
|
+
|
628
|
+
class << self
|
629
|
+
def instance; end
|
630
|
+
def setup; end
|
631
|
+
def teardown; end
|
632
|
+
def verify(*args); end
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
class Mocha::Mockery::Null < ::Mocha::Mockery
|
637
|
+
def add_mock(*_arg0); end
|
638
|
+
def add_state_machine(*_arg0); end
|
639
|
+
def stubba; end
|
640
|
+
|
641
|
+
private
|
642
|
+
|
643
|
+
def raise_not_initialized_error; end
|
644
|
+
end
|
645
|
+
|
646
|
+
class Mocha::Name
|
647
|
+
def initialize(name); end
|
648
|
+
|
649
|
+
def mocha_inspect; end
|
650
|
+
end
|
651
|
+
|
652
|
+
class Mocha::NotInitializedError < ::Mocha::ErrorWithFilteredBacktrace; end
|
653
|
+
|
654
|
+
module Mocha::ObjectMethods
|
655
|
+
def _method(_arg0); end
|
656
|
+
def expects(expected_methods_vs_return_values); end
|
657
|
+
def mocha(instantiate = T.unsafe(nil)); end
|
658
|
+
def reset_mocha; end
|
659
|
+
def stubba_class; end
|
660
|
+
def stubba_method; end
|
661
|
+
def stubba_object; end
|
662
|
+
def stubs(stubbed_methods_vs_return_values); end
|
663
|
+
def unstub(*method_names); end
|
664
|
+
end
|
665
|
+
|
666
|
+
class Mocha::ObjectReceiver
|
667
|
+
def initialize(object); end
|
668
|
+
|
669
|
+
def mocks; end
|
670
|
+
end
|
671
|
+
|
672
|
+
module Mocha::ParameterMatchers
|
673
|
+
def Not(matcher); end
|
674
|
+
def all_of(*matchers); end
|
675
|
+
def any_of(*matchers); end
|
676
|
+
def any_parameters; end
|
677
|
+
def anything; end
|
678
|
+
def equals(value); end
|
679
|
+
def equivalent_uri(uri); end
|
680
|
+
def has_entries(entries); end
|
681
|
+
def has_entry(*options); end
|
682
|
+
def has_key(key); end
|
683
|
+
def has_keys(*keys); end
|
684
|
+
def has_value(value); end
|
685
|
+
def includes(*items); end
|
686
|
+
def instance_of(klass); end
|
687
|
+
def is_a(klass); end
|
688
|
+
def kind_of(klass); end
|
689
|
+
def optionally(*matchers); end
|
690
|
+
def regexp_matches(regexp); end
|
691
|
+
def responds_with(message, result); end
|
692
|
+
def yaml_equivalent(object); end
|
693
|
+
|
694
|
+
private
|
695
|
+
|
696
|
+
def parse_option(option); end
|
697
|
+
end
|
698
|
+
|
699
|
+
class Mocha::ParameterMatchers::AllOf < ::Mocha::ParameterMatchers::Base
|
700
|
+
def initialize(*matchers); end
|
701
|
+
|
702
|
+
def matches?(available_parameters); end
|
703
|
+
def mocha_inspect; end
|
704
|
+
end
|
705
|
+
|
706
|
+
class Mocha::ParameterMatchers::AnyOf < ::Mocha::ParameterMatchers::Base
|
707
|
+
def initialize(*matchers); end
|
708
|
+
|
709
|
+
def matches?(available_parameters); end
|
710
|
+
def mocha_inspect; end
|
711
|
+
end
|
712
|
+
|
713
|
+
class Mocha::ParameterMatchers::AnyParameters < ::Mocha::ParameterMatchers::Base
|
714
|
+
def matches?(available_parameters); end
|
715
|
+
def mocha_inspect; end
|
716
|
+
end
|
717
|
+
|
718
|
+
class Mocha::ParameterMatchers::Anything < ::Mocha::ParameterMatchers::Base
|
719
|
+
def matches?(available_parameters); end
|
720
|
+
def mocha_inspect; end
|
721
|
+
end
|
722
|
+
|
723
|
+
class Mocha::ParameterMatchers::Base
|
724
|
+
def &(other); end
|
725
|
+
def to_matcher; end
|
726
|
+
def |(other); end
|
727
|
+
end
|
728
|
+
|
729
|
+
class Mocha::ParameterMatchers::Equals < ::Mocha::ParameterMatchers::Base
|
730
|
+
def initialize(value); end
|
731
|
+
|
732
|
+
def matches?(available_parameters); end
|
733
|
+
def mocha_inspect; end
|
734
|
+
end
|
735
|
+
|
736
|
+
class Mocha::ParameterMatchers::EquivalentUri < ::Mocha::ParameterMatchers::Base
|
737
|
+
def initialize(uri); end
|
738
|
+
|
739
|
+
def matches?(available_parameters); end
|
740
|
+
def mocha_inspect; end
|
741
|
+
|
742
|
+
private
|
743
|
+
|
744
|
+
def explode(uri); end
|
745
|
+
end
|
746
|
+
|
747
|
+
class Mocha::ParameterMatchers::HasEntries < ::Mocha::ParameterMatchers::Base
|
748
|
+
def initialize(entries); end
|
749
|
+
|
750
|
+
def matches?(available_parameters); end
|
751
|
+
def mocha_inspect; end
|
752
|
+
end
|
753
|
+
|
754
|
+
class Mocha::ParameterMatchers::HasEntry < ::Mocha::ParameterMatchers::Base
|
755
|
+
def initialize(key, value); end
|
756
|
+
|
757
|
+
def matches?(available_parameters); end
|
758
|
+
def mocha_inspect; end
|
759
|
+
end
|
760
|
+
|
761
|
+
class Mocha::ParameterMatchers::HasKey < ::Mocha::ParameterMatchers::Base
|
762
|
+
def initialize(key); end
|
763
|
+
|
764
|
+
def matches?(available_parameters); end
|
765
|
+
def mocha_inspect; end
|
766
|
+
end
|
767
|
+
|
768
|
+
class Mocha::ParameterMatchers::HasKeys < ::Mocha::ParameterMatchers::Base
|
769
|
+
def initialize(*keys); end
|
770
|
+
|
771
|
+
def matches?(available_parameters); end
|
772
|
+
def mocha_inspect; end
|
773
|
+
end
|
774
|
+
|
775
|
+
class Mocha::ParameterMatchers::HasValue < ::Mocha::ParameterMatchers::Base
|
776
|
+
def initialize(value); end
|
777
|
+
|
778
|
+
def matches?(available_parameters); end
|
779
|
+
def mocha_inspect; end
|
780
|
+
end
|
781
|
+
|
782
|
+
class Mocha::ParameterMatchers::Includes < ::Mocha::ParameterMatchers::Base
|
783
|
+
def initialize(*items); end
|
784
|
+
|
785
|
+
def matches?(available_parameters); end
|
786
|
+
def mocha_inspect; end
|
787
|
+
end
|
788
|
+
|
789
|
+
module Mocha::ParameterMatchers::InstanceMethods
|
790
|
+
def to_matcher; end
|
791
|
+
end
|
792
|
+
|
793
|
+
class Mocha::ParameterMatchers::InstanceOf < ::Mocha::ParameterMatchers::Base
|
794
|
+
def initialize(klass); end
|
795
|
+
|
796
|
+
def matches?(available_parameters); end
|
797
|
+
def mocha_inspect; end
|
798
|
+
end
|
799
|
+
|
800
|
+
class Mocha::ParameterMatchers::IsA < ::Mocha::ParameterMatchers::Base
|
801
|
+
def initialize(klass); end
|
802
|
+
|
803
|
+
def matches?(available_parameters); end
|
804
|
+
def mocha_inspect; end
|
805
|
+
end
|
806
|
+
|
807
|
+
class Mocha::ParameterMatchers::KindOf < ::Mocha::ParameterMatchers::Base
|
808
|
+
def initialize(klass); end
|
809
|
+
|
810
|
+
def matches?(available_parameters); end
|
811
|
+
def mocha_inspect; end
|
812
|
+
end
|
813
|
+
|
814
|
+
class Mocha::ParameterMatchers::Not < ::Mocha::ParameterMatchers::Base
|
815
|
+
def initialize(matcher); end
|
816
|
+
|
817
|
+
def matches?(available_parameters); end
|
818
|
+
def mocha_inspect; end
|
819
|
+
end
|
820
|
+
|
821
|
+
class Mocha::ParameterMatchers::Optionally < ::Mocha::ParameterMatchers::Base
|
822
|
+
def initialize(*parameters); end
|
823
|
+
|
824
|
+
def matches?(available_parameters); end
|
825
|
+
def mocha_inspect; end
|
826
|
+
end
|
827
|
+
|
828
|
+
class Mocha::ParameterMatchers::RegexpMatches < ::Mocha::ParameterMatchers::Base
|
829
|
+
def initialize(regexp); end
|
830
|
+
|
831
|
+
def matches?(available_parameters); end
|
832
|
+
def mocha_inspect; end
|
833
|
+
end
|
834
|
+
|
835
|
+
class Mocha::ParameterMatchers::RespondsWith < ::Mocha::ParameterMatchers::Base
|
836
|
+
def initialize(message, result); end
|
837
|
+
|
838
|
+
def matches?(available_parameters); end
|
839
|
+
def mocha_inspect; end
|
840
|
+
end
|
841
|
+
|
842
|
+
class Mocha::ParameterMatchers::YamlEquivalent < ::Mocha::ParameterMatchers::Base
|
843
|
+
def initialize(object); end
|
844
|
+
|
845
|
+
def matches?(available_parameters); end
|
846
|
+
def mocha_inspect; end
|
847
|
+
end
|
848
|
+
|
849
|
+
class Mocha::ParametersMatcher
|
850
|
+
def initialize(expected_parameters = T.unsafe(nil), &matching_block); end
|
851
|
+
|
852
|
+
def match?(actual_parameters = T.unsafe(nil)); end
|
853
|
+
def matchers; end
|
854
|
+
def mocha_inspect; end
|
855
|
+
def parameters_match?(actual_parameters); end
|
856
|
+
end
|
857
|
+
|
858
|
+
Mocha::RUBY_V2_PLUS = T.let(T.unsafe(nil), TrueClass)
|
859
|
+
|
860
|
+
class Mocha::RaisedException
|
861
|
+
def initialize(exception); end
|
862
|
+
|
863
|
+
def mocha_inspect; end
|
864
|
+
end
|
865
|
+
|
866
|
+
class Mocha::ReturnValues
|
867
|
+
def initialize(*values); end
|
868
|
+
|
869
|
+
def +(other); end
|
870
|
+
def next(invocation); end
|
871
|
+
def values; end
|
872
|
+
def values=(_arg0); end
|
873
|
+
|
874
|
+
class << self
|
875
|
+
def build(*values); end
|
876
|
+
end
|
877
|
+
end
|
878
|
+
|
879
|
+
class Mocha::Sequence
|
880
|
+
def initialize(name); end
|
881
|
+
|
882
|
+
def constrain_as_next_in_sequence(expectation); end
|
883
|
+
def mocha_inspect; end
|
884
|
+
def satisfied_to_index?(index); end
|
885
|
+
end
|
886
|
+
|
887
|
+
class Mocha::Sequence::InSequenceOrderingConstraint
|
888
|
+
def initialize(sequence, index); end
|
889
|
+
|
890
|
+
def allows_invocation_now?; end
|
891
|
+
def mocha_inspect; end
|
892
|
+
end
|
893
|
+
|
894
|
+
class Mocha::SingleReturnValue
|
895
|
+
def initialize(value); end
|
896
|
+
|
897
|
+
def evaluate(invocation); end
|
898
|
+
end
|
899
|
+
|
900
|
+
class Mocha::StateMachine
|
901
|
+
def initialize(name); end
|
902
|
+
|
903
|
+
def become(next_state_name); end
|
904
|
+
def current_state; end
|
905
|
+
def current_state=(_arg0); end
|
906
|
+
def is(state_name); end
|
907
|
+
def is_not(unexpected_state_name); end
|
908
|
+
def mocha_inspect; end
|
909
|
+
def name; end
|
910
|
+
def starts_as(initial_state_name); end
|
911
|
+
end
|
912
|
+
|
913
|
+
class Mocha::StateMachine::State < ::Mocha::StateMachine::StatePredicate
|
914
|
+
def activate; end
|
915
|
+
end
|
916
|
+
|
917
|
+
class Mocha::StateMachine::StatePredicate
|
918
|
+
def initialize(state_machine, state, description, &active_check); end
|
919
|
+
|
920
|
+
def active?; end
|
921
|
+
def mocha_inspect; end
|
922
|
+
end
|
923
|
+
|
924
|
+
class Mocha::StubbedMethod
|
925
|
+
def initialize(stubbee, method_name); end
|
926
|
+
|
927
|
+
def ==(_arg0); end
|
928
|
+
def define_new_method; end
|
929
|
+
def hide_original_method; end
|
930
|
+
def matches?(other); end
|
931
|
+
def method_name; end
|
932
|
+
def mock; end
|
933
|
+
def remove_new_method; end
|
934
|
+
def reset_mocha; end
|
935
|
+
def restore_original_method; end
|
936
|
+
def store_original_method; end
|
937
|
+
def stub; end
|
938
|
+
def stubbee; end
|
939
|
+
def to_s; end
|
940
|
+
def unstub; end
|
941
|
+
|
942
|
+
private
|
943
|
+
|
944
|
+
def remove_original_method_from_stubbee; end
|
945
|
+
def retain_original_visibility(method_owner); end
|
946
|
+
def store_original_method_visibility; end
|
947
|
+
def stub_method_overwrites_original_method?; end
|
948
|
+
def stub_method_owner; end
|
949
|
+
def use_prepended_module_for_stub_method; end
|
950
|
+
def use_prepended_module_for_stub_method?; end
|
951
|
+
end
|
952
|
+
|
953
|
+
class Mocha::StubbedMethod::PrependedModule < ::Module; end
|
954
|
+
class Mocha::StubbingError < ::Mocha::ErrorWithFilteredBacktrace; end
|
955
|
+
|
956
|
+
class Mocha::Thrower
|
957
|
+
def initialize(tag, object = T.unsafe(nil)); end
|
958
|
+
|
959
|
+
def evaluate(invocation); end
|
960
|
+
end
|
961
|
+
|
962
|
+
class Mocha::ThrownObject
|
963
|
+
def initialize(tag, value = T.unsafe(nil)); end
|
964
|
+
|
965
|
+
def mocha_inspect; end
|
966
|
+
end
|
967
|
+
|
968
|
+
Mocha::VERSION = T.let(T.unsafe(nil), String)
|
969
|
+
|
970
|
+
class Mocha::YieldParameters
|
971
|
+
def initialize; end
|
972
|
+
|
973
|
+
def add(*parameter_groups); end
|
974
|
+
def next_invocation; end
|
975
|
+
end
|
976
|
+
|
977
|
+
class Object < ::BasicObject
|
978
|
+
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
|
979
|
+
include ::Kernel
|
980
|
+
include ::JSON::Ext::Generator::GeneratorMethods::Object
|
981
|
+
include ::PP::ObjectMixin
|
982
|
+
include ::Minitest::Expectations
|
983
|
+
include ::Mocha::ParameterMatchers::InstanceMethods
|
984
|
+
include ::Mocha::Inspect::ObjectMethods
|
985
|
+
include ::Mocha::ObjectMethods
|
986
|
+
end
|