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 +4 -4
- data/CHANGELOG.md +4 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -0
- data/lib/stripe/resources/issuing/cardholder.rb +1 -1
- data/lib/stripe/resources/subscription.rb +1 -1
- data/lib/stripe/services/subscription_service.rb +1 -1
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +11 -0
- data/lib/stripe/version.rb +1 -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: b689dbf916ec68bd4ab529d3ebcf0bba03c3b176e45894ccad49f5b2411249f5
|
4
|
+
data.tar.gz: d369743845bd9ad2cfbd3e08155adbc60a570f6a2ac66db39d993a4404ded55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
1
|
+
v1345
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.2.0-beta.
|
1
|
+
13.2.0-beta.3
|
data/lib/stripe/api_version.rb
CHANGED
@@ -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(
|
data/lib/stripe/version.rb
CHANGED
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.
|
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-
|
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.
|