From f6a53cf83014782315d11348e59d4669b0e85d33 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:14:26 +0000 Subject: [PATCH 1/5] Update generated code for v1334 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/issuing/authorization.rb | 20 +++++++++++++++++++ .../issuing/authorization_service.rb | 11 ++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9cb5323f..732dc4c75 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1333 \ No newline at end of file +v1334 \ No newline at end of file diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index c21088e01..f5cffe924 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -192,6 +192,26 @@ def increment(params = {}, opts = {}) ) end + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def self.respond(authorization, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts + ) + end + + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def respond(params = {}, opts = {}) + @resource.request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end + # Reverse a test-mode Authorization. def self.reverse(authorization, params = {}, opts = {}) request_stripe_object( diff --git a/lib/stripe/services/test_helpers/issuing/authorization_service.rb b/lib/stripe/services/test_helpers/issuing/authorization_service.rb index e9bbc38ea..45c620db9 100644 --- a/lib/stripe/services/test_helpers/issuing/authorization_service.rb +++ b/lib/stripe/services/test_helpers/issuing/authorization_service.rb @@ -60,6 +60,17 @@ def increment(authorization, params = {}, opts = {}) ) end + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def respond(authorization, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts, + base_address: :api + ) + end + # Reverse a test-mode Authorization. def reverse(authorization, params = {}, opts = {}) request( From 76a6c402e6feb7e130bb71b297e3ebbebe7adf66 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:07:51 +0000 Subject: [PATCH 2/5] Update generated code for v1339 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/subscription.rb | 2 +- lib/stripe/services/subscription_service.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 732dc4c75..e299bd607 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1334 \ No newline at end of file +v1339 \ No newline at end of file diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index 16002f33a..d00880253 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -127,7 +127,7 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk) # A trial starts or ends. # # - # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). # # If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). # diff --git a/lib/stripe/services/subscription_service.rb b/lib/stripe/services/subscription_service.rb index 334aa04bf..1ef8fcbb1 100644 --- a/lib/stripe/services/subscription_service.rb +++ b/lib/stripe/services/subscription_service.rb @@ -107,7 +107,7 @@ def search(params = {}, opts = {}) # A trial starts or ends. # # - # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + # In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). # # If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). # From b6c399332893d09a13e3ecdae7a3a0020c731e6f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:46:54 +0000 Subject: [PATCH 3/5] Update generated code for v1340 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/issuing/cardholder.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e299bd607..5725c0c7b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1339 \ No newline at end of file +v1340 \ No newline at end of file diff --git a/lib/stripe/resources/issuing/cardholder.rb b/lib/stripe/resources/issuing/cardholder.rb index 57f04da49..24ae14410 100644 --- a/lib/stripe/resources/issuing/cardholder.rb +++ b/lib/stripe/resources/issuing/cardholder.rb @@ -5,7 +5,7 @@ module Stripe module Issuing # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. # - # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) class Cardholder < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List From c4d0746d87b45dadf562c85f613e52886cdc0fdf Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:02:23 -0800 Subject: [PATCH 4/5] Update to use solargraph instead of ruby lsp (#1487) --- .vscode/extensions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index f70150a49..c48a5dd93 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,7 @@ { "recommendations": [ "EditorConfig.editorconfig", // default - "shopify.ruby-lsp", // intellisense-like support (if you get it working) + "castwide.solargraph", // intellisense "sorbet.sorbet-vscode-extension", // typechecking, where applicable "LoranKloeze.ruby-rubocop-revived", // linting "SarahRidge.vscode-ruby-syntax" // Semantic syntax highlighting From e98f2280b75a5e4ca683013f6eec56567d44394c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:39:18 +0000 Subject: [PATCH 5/5] Update generated code for v1345 --- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a0dbc07f..71fc9b78c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1343 \ No newline at end of file +v1345 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index f0b789d86..cb1d8b67d 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2024-10-28.acacia" + CURRENT = "2024-11-20.acacia" end end