stripe 13.2.0.pre.beta.2 → 13.2.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b43d143913381971aa465695b97988b09e259efefad410002438412c50c420c
4
- data.tar.gz: f3f690d076333eeb2ff382449a7fecee5f72d7438060f947ae670a268355b6f8
3
+ metadata.gz: b689dbf916ec68bd4ab529d3ebcf0bba03c3b176e45894ccad49f5b2411249f5
4
+ data.tar.gz: d369743845bd9ad2cfbd3e08155adbc60a570f6a2ac66db39d993a4404ded55b
5
5
  SHA512:
6
- metadata.gz: f2e95f191def3646ad03f59cd0d78d3b18fd5f01a0e88510028cdbfa79f3e081ed82c23b2ce7acf2533d65a299d815844d63f3e01b0e891f05094578738c6c35
7
- data.tar.gz: b7c701585ea1733bc65801213a82b233289fb7cc755e6c5cf021310e18db576924e7644edf87c776f452574cddeaeea072de53341c976b5f195d7fa829adcfec
6
+ metadata.gz: 0d42049012e28f400affc14217b70b8a67480b6f855378ddefdfc5e6f8d6b9668fe6968329d01c53f86da9444c2496c9926e5f49297d7f5c80cebd5e1bf9e329
7
+ data.tar.gz: 4a5cc37abe24102999ba1e1ed12b4fd754d1daf4d2a394cd0dbc760af218a1c5d2b7f77b67a30334c7fa75725bb0f9feef4d9c2d6c3cd39b0b43774f6fb79e5b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.2.0-beta.3 - 2024-11-14
4
+ * [#1484](https://github.com/stripe/stripe-ruby/pull/1484) Update generated code for beta
5
+
6
+
3
7
  ## 13.2.0-beta.2 - 2024-11-07
4
8
  * [#1480](https://github.com/stripe/stripe-ruby/pull/1480) Update generated code for beta
5
9
  * Add support for new resources `Issuing.FraudLiabilityDebit`, `PaymentAttemptRecord`, and `PaymentRecord`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1333
1
+ v1345
data/VERSION CHANGED
@@ -1 +1 @@
1
- 13.2.0-beta.2
1
+ 13.2.0-beta.3
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2024-10-28.acacia"
6
+ CURRENT = "2024-11-20.acacia"
7
7
  end
8
8
  end
@@ -192,6 +192,26 @@ module Stripe
192
192
  )
193
193
  end
194
194
 
195
+ # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
196
+ def self.respond(authorization, params = {}, opts = {})
197
+ request_stripe_object(
198
+ method: :post,
199
+ path: format("/v1/test_helpers/issuing/authorizations/%<authorization>s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }),
200
+ params: params,
201
+ opts: opts
202
+ )
203
+ end
204
+
205
+ # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
206
+ def respond(params = {}, opts = {})
207
+ @resource.request_stripe_object(
208
+ method: :post,
209
+ path: format("/v1/test_helpers/issuing/authorizations/%<authorization>s/fraud_challenges/respond", { authorization: CGI.escape(@resource["id"]) }),
210
+ params: params,
211
+ opts: opts
212
+ )
213
+ end
214
+
195
215
  # Reverse a test-mode Authorization.
196
216
  def self.reverse(authorization, params = {}, opts = {})
197
217
  request_stripe_object(
@@ -5,7 +5,7 @@ module Stripe
5
5
  module Issuing
6
6
  # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
7
7
  #
8
- # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
8
+ # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
9
9
  class Cardholder < APIResource
10
10
  extend Stripe::APIOperations::Create
11
11
  extend Stripe::APIOperations::List
@@ -127,7 +127,7 @@ module Stripe
127
127
  # A trial starts or ends.
128
128
  #
129
129
  #
130
- # 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).
130
+ # 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).
131
131
  #
132
132
  # 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).
133
133
  #
@@ -107,7 +107,7 @@ module Stripe
107
107
  # A trial starts or ends.
108
108
  #
109
109
  #
110
- # 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).
110
+ # 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).
111
111
  #
112
112
  # 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).
113
113
  #
@@ -60,6 +60,17 @@ module Stripe
60
60
  )
61
61
  end
62
62
 
63
+ # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
64
+ def respond(authorization, params = {}, opts = {})
65
+ request(
66
+ method: :post,
67
+ path: format("/v1/test_helpers/issuing/authorizations/%<authorization>s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }),
68
+ params: params,
69
+ opts: opts,
70
+ base_address: :api
71
+ )
72
+ end
73
+
63
74
  # Reverse a test-mode Authorization.
64
75
  def reverse(authorization, params = {}, opts = {})
65
76
  request(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "13.2.0-beta.2"
4
+ VERSION = "13.2.0-beta.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.0.pre.beta.2
4
+ version: 13.2.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.