stripe 19.1.0.pre.beta.1 → 19.1.0.pre.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/services/checkout/session_service.rb +6 -2
- data/lib/stripe/services/climate/order_service.rb +1 -1
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/invoice_item_service.rb +2 -2
- data/lib/stripe/services/invoice_line_item_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +3 -3
- data/lib/stripe/services/order_service.rb +2 -2
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/plan_service.rb +1 -1
- data/lib/stripe/services/price_service.rb +1 -1
- data/lib/stripe/services/product_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +2 -2
- data/lib/stripe/services/subscription_schedule_service.rb +6 -2
- data/lib/stripe/services/subscription_service.rb +2 -2
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +3 -3
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +2 -2
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +6 -2
- data/lib/stripe/services/v2/core/account_token_service.rb +3 -1
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +1 -1
- data/lib/stripe/util.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +22 -12
- 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: f3f097b3d782932a92b575e7f1804673b63ebdb8d63a8255db4f7e39f6c87ce4
|
|
4
|
+
data.tar.gz: ea40a7ea47acf27ec9829bec92b4c155753b2d129ebca14385cc4090132063c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cba34c82f56f7b59890a145b91d4de772fe64045868e587e12a925b3bea2c80a454f710df0842070413eafe827f81d62833f032891acbf859d1bc10641058975
|
|
7
|
+
data.tar.gz: ac1e2be5e4a4d5cab3f35a7d42fbb51781d67f15d471cb9b1d83e27f81d4f792964e29799dbf474a1f832051a2254becde5a1bb383888f015410b959fc0fb003
|
|
@@ -13,7 +13,9 @@ module Stripe
|
|
|
13
13
|
|
|
14
14
|
# Creates a Checkout Session object.
|
|
15
15
|
def create(params = {}, opts = {})
|
|
16
|
-
|
|
16
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
17
|
+
params = ::Stripe::Checkout::SessionCreateParams.coerce_params(params)
|
|
18
|
+
end
|
|
17
19
|
|
|
18
20
|
request(
|
|
19
21
|
method: :post,
|
|
@@ -63,7 +65,9 @@ module Stripe
|
|
|
63
65
|
#
|
|
64
66
|
# Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
|
|
65
67
|
def update(session, params = {}, opts = {})
|
|
66
|
-
|
|
68
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
69
|
+
params = ::Stripe::Checkout::SessionUpdateParams.coerce_params(params)
|
|
70
|
+
end
|
|
67
71
|
|
|
68
72
|
request(
|
|
69
73
|
method: :post,
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
# Creates a Climate order object for a given Climate product. The order will be processed immediately
|
|
22
22
|
# after creation and payment will be deducted your Stripe balance.
|
|
23
23
|
def create(params = {}, opts = {})
|
|
24
|
-
params = Climate::OrderCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
24
|
+
params = ::Stripe::Climate::OrderCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
25
25
|
|
|
26
26
|
request(
|
|
27
27
|
method: :post,
|
|
@@ -5,7 +5,9 @@ module Stripe
|
|
|
5
5
|
class CreditNotePreviewLinesService < StripeService
|
|
6
6
|
# When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.
|
|
7
7
|
def list(params = {}, opts = {})
|
|
8
|
-
|
|
8
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
9
|
+
params = ::Stripe::CreditNotePreviewLinesListParams.coerce_params(params)
|
|
10
|
+
end
|
|
9
11
|
|
|
10
12
|
request(
|
|
11
13
|
method: :get,
|
|
@@ -25,7 +25,7 @@ module Stripe
|
|
|
25
25
|
# You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
|
|
26
26
|
# post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
|
|
27
27
|
def create(params = {}, opts = {})
|
|
28
|
-
params = CreditNoteCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
28
|
+
params = ::Stripe::CreditNoteCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
29
29
|
|
|
30
30
|
request(
|
|
31
31
|
method: :post,
|
|
@@ -49,7 +49,7 @@ module Stripe
|
|
|
49
49
|
|
|
50
50
|
# Get a preview of a credit note without creating it.
|
|
51
51
|
def preview(params = {}, opts = {})
|
|
52
|
-
params = CreditNotePreviewParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
52
|
+
params = ::Stripe::CreditNotePreviewParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
53
53
|
|
|
54
54
|
request(
|
|
55
55
|
method: :get,
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class InvoiceItemService < StripeService
|
|
6
6
|
# Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
|
-
params = InvoiceItemCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
8
|
+
params = ::Stripe::InvoiceItemCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
9
9
|
|
|
10
10
|
request(
|
|
11
11
|
method: :post,
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
|
|
52
52
|
# Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed.
|
|
53
53
|
def update(invoiceitem, params = {}, opts = {})
|
|
54
|
-
params = InvoiceItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
54
|
+
params = ::Stripe::InvoiceItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
55
55
|
|
|
56
56
|
request(
|
|
57
57
|
method: :post,
|
|
@@ -19,7 +19,7 @@ module Stripe
|
|
|
19
19
|
# item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well.
|
|
20
20
|
# Updating an invoice's line item is only possible before the invoice is finalized.
|
|
21
21
|
def update(invoice, line_item_id, params = {}, opts = {})
|
|
22
|
-
params = InvoiceLineItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
22
|
+
params = ::Stripe::InvoiceLineItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
23
23
|
|
|
24
24
|
request(
|
|
25
25
|
method: :post,
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
|
|
13
13
|
# Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
|
|
14
14
|
def add_lines(invoice, params = {}, opts = {})
|
|
15
|
-
params = InvoiceAddLinesParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
15
|
+
params = ::Stripe::InvoiceAddLinesParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
16
16
|
|
|
17
17
|
request(
|
|
18
18
|
method: :post,
|
|
@@ -58,7 +58,7 @@ module Stripe
|
|
|
58
58
|
#
|
|
59
59
|
# Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
|
|
60
60
|
def create_preview(params = {}, opts = {})
|
|
61
|
-
params = InvoiceCreatePreviewParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
61
|
+
params = ::Stripe::InvoiceCreatePreviewParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
62
62
|
|
|
63
63
|
request(
|
|
64
64
|
method: :post,
|
|
@@ -226,7 +226,7 @@ module Stripe
|
|
|
226
226
|
|
|
227
227
|
# Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
|
|
228
228
|
def update_lines(invoice, params = {}, opts = {})
|
|
229
|
-
params = InvoiceUpdateLinesParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
229
|
+
params = ::Stripe::InvoiceUpdateLinesParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
230
230
|
|
|
231
231
|
request(
|
|
232
232
|
method: :post,
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class OrderService < StripeService
|
|
6
6
|
# Creates a new open order object.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
|
-
params = OrderCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
8
|
+
params = ::Stripe::OrderCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
9
9
|
|
|
10
10
|
request(method: :post, path: "/v1/orders", params: params, opts: opts, base_address: :api)
|
|
11
11
|
end
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
|
|
40
40
|
# Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
41
41
|
def update(id, params = {}, opts = {})
|
|
42
|
-
params = OrderUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
42
|
+
params = ::Stripe::OrderUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
43
43
|
|
|
44
44
|
request(
|
|
45
45
|
method: :post,
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
|
|
13
13
|
# Creates a payment link.
|
|
14
14
|
def create(params = {}, opts = {})
|
|
15
|
-
params = PaymentLinkCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
15
|
+
params = ::Stripe::PaymentLinkCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
16
16
|
|
|
17
17
|
request(
|
|
18
18
|
method: :post,
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class PlanService < StripeService
|
|
6
6
|
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
|
-
params = PlanCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
8
|
+
params = ::Stripe::PlanCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
9
9
|
|
|
10
10
|
request(method: :post, path: "/v1/plans", params: params, opts: opts, base_address: :api)
|
|
11
11
|
end
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class PriceService < StripeService
|
|
6
6
|
# Creates a new [Price for an existing <a href="https://docs.stripe.com/api/products">Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
|
-
params = PriceCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
8
|
+
params = ::Stripe::PriceCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
9
9
|
|
|
10
10
|
request(method: :post, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
|
11
11
|
end
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
|
|
13
13
|
# Creates a new product object.
|
|
14
14
|
def create(params = {}, opts = {})
|
|
15
|
-
params = ProductCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
15
|
+
params = ::Stripe::ProductCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
16
16
|
|
|
17
17
|
request(method: :post, path: "/v1/products", params: params, opts: opts, base_address: :api)
|
|
18
18
|
end
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
|
|
40
40
|
# A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote).
|
|
41
41
|
def create(params = {}, opts = {})
|
|
42
|
-
params = QuoteCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
42
|
+
params = ::Stripe::QuoteCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
43
43
|
|
|
44
44
|
request(method: :post, path: "/v1/quotes", params: params, opts: opts, base_address: :api)
|
|
45
45
|
end
|
|
@@ -130,7 +130,7 @@ module Stripe
|
|
|
130
130
|
|
|
131
131
|
# A quote models prices and services for a customer.
|
|
132
132
|
def update(quote, params = {}, opts = {})
|
|
133
|
-
params = QuoteUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
133
|
+
params = ::Stripe::QuoteUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
134
134
|
|
|
135
135
|
request(
|
|
136
136
|
method: :post,
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class SubscriptionItemService < StripeService
|
|
6
6
|
# Adds a new item to an existing subscription. No existing items will be changed or replaced.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
|
-
params = SubscriptionItemCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
8
|
+
params = ::Stripe::SubscriptionItemCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
9
9
|
|
|
10
10
|
request(
|
|
11
11
|
method: :post,
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
|
|
52
52
|
# Updates the plan or quantity of an item on a current subscription.
|
|
53
53
|
def update(item, params = {}, opts = {})
|
|
54
|
-
params = SubscriptionItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
54
|
+
params = ::Stripe::SubscriptionItemUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
55
55
|
|
|
56
56
|
request(
|
|
57
57
|
method: :post,
|
|
@@ -27,7 +27,9 @@ module Stripe
|
|
|
27
27
|
|
|
28
28
|
# Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.
|
|
29
29
|
def create(params = {}, opts = {})
|
|
30
|
-
|
|
30
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
31
|
+
params = ::Stripe::SubscriptionScheduleCreateParams.coerce_params(params)
|
|
32
|
+
end
|
|
31
33
|
|
|
32
34
|
request(
|
|
33
35
|
method: :post,
|
|
@@ -117,7 +119,9 @@ module Stripe
|
|
|
117
119
|
|
|
118
120
|
# Updates an existing subscription schedule.
|
|
119
121
|
def update(schedule, params = {}, opts = {})
|
|
120
|
-
|
|
122
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
123
|
+
params = ::Stripe::SubscriptionScheduleUpdateParams.coerce_params(params)
|
|
124
|
+
end
|
|
121
125
|
|
|
122
126
|
request(
|
|
123
127
|
method: :post,
|
|
@@ -26,7 +26,7 @@ module Stripe
|
|
|
26
26
|
# To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
|
|
27
27
|
# Schedules provide the flexibility to model more complex billing configurations that change over time.
|
|
28
28
|
def create(params = {}, opts = {})
|
|
29
|
-
params = SubscriptionCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
29
|
+
params = ::Stripe::SubscriptionCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
30
30
|
|
|
31
31
|
request(
|
|
32
32
|
method: :post,
|
|
@@ -158,7 +158,7 @@ module Stripe
|
|
|
158
158
|
#
|
|
159
159
|
# Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://docs.stripe.com/docs/rate-limits) instead.
|
|
160
160
|
def update(subscription_exposed_id, params = {}, opts = {})
|
|
161
|
-
params = SubscriptionUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
161
|
+
params = ::Stripe::SubscriptionUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
|
|
162
162
|
|
|
163
163
|
request(
|
|
164
164
|
method: :post,
|
|
@@ -8,7 +8,7 @@ module Stripe
|
|
|
8
8
|
# Capture a test-mode authorization.
|
|
9
9
|
def capture(authorization, params = {}, opts = {})
|
|
10
10
|
unless params.is_a?(Stripe::RequestParams)
|
|
11
|
-
params = TestHelpers::Issuing::AuthorizationCaptureParams.coerce_params(params)
|
|
11
|
+
params = ::Stripe::TestHelpers::Issuing::AuthorizationCaptureParams.coerce_params(params)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
request(
|
|
@@ -23,7 +23,7 @@ module Stripe
|
|
|
23
23
|
# Create a test-mode authorization.
|
|
24
24
|
def create(params = {}, opts = {})
|
|
25
25
|
unless params.is_a?(Stripe::RequestParams)
|
|
26
|
-
params = TestHelpers::Issuing::AuthorizationCreateParams.coerce_params(params)
|
|
26
|
+
params = ::Stripe::TestHelpers::Issuing::AuthorizationCreateParams.coerce_params(params)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
request(
|
|
@@ -49,7 +49,7 @@ module Stripe
|
|
|
49
49
|
# Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
|
|
50
50
|
def finalize_amount(authorization, params = {}, opts = {})
|
|
51
51
|
unless params.is_a?(Stripe::RequestParams)
|
|
52
|
-
params = TestHelpers::Issuing::AuthorizationFinalizeAmountParams.coerce_params(params)
|
|
52
|
+
params = ::Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams.coerce_params(params)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
request(
|
|
@@ -8,7 +8,7 @@ module Stripe
|
|
|
8
8
|
# Allows the user to capture an arbitrary amount, also known as a forced capture.
|
|
9
9
|
def create_force_capture(params = {}, opts = {})
|
|
10
10
|
unless params.is_a?(Stripe::RequestParams)
|
|
11
|
-
params = TestHelpers::Issuing::TransactionCreateForceCaptureParams.coerce_params(params)
|
|
11
|
+
params = ::Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams.coerce_params(params)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
request(
|
|
@@ -23,7 +23,7 @@ module Stripe
|
|
|
23
23
|
# Allows the user to refund an arbitrary amount, also known as a unlinked refund.
|
|
24
24
|
def create_unlinked_refund(params = {}, opts = {})
|
|
25
25
|
unless params.is_a?(Stripe::RequestParams)
|
|
26
|
-
params = TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams.coerce_params(params)
|
|
26
|
+
params = ::Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams.coerce_params(params)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
request(
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
# Create a CollectionSetting object.
|
|
16
16
|
def create(params = {}, opts = {})
|
|
17
17
|
unless params.is_a?(Stripe::RequestParams)
|
|
18
|
-
params = V2::Billing::CollectionSettingCreateParams.coerce_params(params)
|
|
18
|
+
params = ::Stripe::V2::Billing::CollectionSettingCreateParams.coerce_params(params)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
request(
|
|
@@ -52,7 +52,7 @@ module Stripe
|
|
|
52
52
|
# Update fields on an existing CollectionSetting.
|
|
53
53
|
def update(id, params = {}, opts = {})
|
|
54
54
|
unless params.is_a?(Stripe::RequestParams)
|
|
55
|
-
params = V2::Billing::CollectionSettingUpdateParams.coerce_params(params)
|
|
55
|
+
params = ::Stripe::V2::Billing::CollectionSettingUpdateParams.coerce_params(params)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
request(
|
|
@@ -30,7 +30,9 @@ module Stripe
|
|
|
30
30
|
#
|
|
31
31
|
# ** raises RateLimitError
|
|
32
32
|
def create(params = {}, opts = {})
|
|
33
|
-
|
|
33
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
34
|
+
params = ::Stripe::V2::Core::AccountCreateParams.coerce_params(params)
|
|
35
|
+
end
|
|
34
36
|
|
|
35
37
|
request(
|
|
36
38
|
method: :post,
|
|
@@ -71,7 +73,9 @@ module Stripe
|
|
|
71
73
|
#
|
|
72
74
|
# ** raises RateLimitError
|
|
73
75
|
def update(id, params = {}, opts = {})
|
|
74
|
-
|
|
76
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
77
|
+
params = ::Stripe::V2::Core::AccountUpdateParams.coerce_params(params)
|
|
78
|
+
end
|
|
75
79
|
|
|
76
80
|
request(
|
|
77
81
|
method: :post,
|
|
@@ -9,7 +9,9 @@ module Stripe
|
|
|
9
9
|
#
|
|
10
10
|
# ** raises RateLimitError
|
|
11
11
|
def create(params = {}, opts = {})
|
|
12
|
-
|
|
12
|
+
unless params.is_a?(Stripe::RequestParams)
|
|
13
|
+
params = ::Stripe::V2::Core::AccountTokenCreateParams.coerce_params(params)
|
|
14
|
+
end
|
|
13
15
|
|
|
14
16
|
request(
|
|
15
17
|
method: :post,
|
|
@@ -11,7 +11,7 @@ module Stripe
|
|
|
11
11
|
# ** raises RateLimitError
|
|
12
12
|
def create(account_id, params = {}, opts = {})
|
|
13
13
|
unless params.is_a?(Stripe::RequestParams)
|
|
14
|
-
params = V2::Core::Accounts::PersonCreateParams.coerce_params(params)
|
|
14
|
+
params = ::Stripe::V2::Core::Accounts::PersonCreateParams.coerce_params(params)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
request(
|
|
@@ -67,7 +67,7 @@ module Stripe
|
|
|
67
67
|
# ** raises RateLimitError
|
|
68
68
|
def update(account_id, id, params = {}, opts = {})
|
|
69
69
|
unless params.is_a?(Stripe::RequestParams)
|
|
70
|
-
params = V2::Core::Accounts::PersonUpdateParams.coerce_params(params)
|
|
70
|
+
params = ::Stripe::V2::Core::Accounts::PersonUpdateParams.coerce_params(params)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
request(
|
|
@@ -11,7 +11,7 @@ module Stripe
|
|
|
11
11
|
# ** raises RateLimitError
|
|
12
12
|
def create(account_id, params = {}, opts = {})
|
|
13
13
|
unless params.is_a?(Stripe::RequestParams)
|
|
14
|
-
params = V2::Core::Accounts::PersonTokenCreateParams.coerce_params(params)
|
|
14
|
+
params = ::Stripe::V2::Core::Accounts::PersonTokenCreateParams.coerce_params(params)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
request(
|
data/lib/stripe/util.rb
CHANGED
data/lib/stripe/version.rb
CHANGED
data/rbi/stripe.rbi
CHANGED
|
@@ -69566,7 +69566,9 @@ module Stripe
|
|
|
69566
69566
|
def retrieve_current(params = {}, opts = {}); end
|
|
69567
69567
|
|
|
69568
69568
|
# Serializes an Account update request into a batch job JSONL line.
|
|
69569
|
-
sig {
|
|
69569
|
+
sig {
|
|
69570
|
+
params(account: String, params: ::Stripe::AccountUpdateParams, opts: T.untyped).returns(String)
|
|
69571
|
+
}
|
|
69570
69572
|
def serialize_batch_update(account, params = {}, opts = {}); end
|
|
69571
69573
|
|
|
69572
69574
|
# Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
|
@@ -70545,7 +70547,7 @@ module Stripe
|
|
|
70545
70547
|
def retrieve(id, params = {}, opts = {}); end
|
|
70546
70548
|
|
|
70547
70549
|
# Serializes a CreditNote create request into a batch job JSONL line.
|
|
70548
|
-
sig { params(params: CreditNoteCreateParams, opts: T.untyped).returns(String) }
|
|
70550
|
+
sig { params(params: ::Stripe::CreditNoteCreateParams, opts: T.untyped).returns(String) }
|
|
70549
70551
|
def serialize_batch_create(params = {}, opts = {}); end
|
|
70550
70552
|
|
|
70551
70553
|
# Updates an existing credit note.
|
|
@@ -70631,7 +70633,9 @@ module Stripe
|
|
|
70631
70633
|
def search(params = {}, opts = {}); end
|
|
70632
70634
|
|
|
70633
70635
|
# Serializes a Customer update request into a batch job JSONL line.
|
|
70634
|
-
sig {
|
|
70636
|
+
sig {
|
|
70637
|
+
params(customer: String, params: ::Stripe::CustomerUpdateParams, opts: T.untyped).returns(String)
|
|
70638
|
+
}
|
|
70635
70639
|
def serialize_batch_update(customer, params = {}, opts = {}); end
|
|
70636
70640
|
|
|
70637
70641
|
# Updates the specified customer by setting the values of the parameters passed. Any parameters not provided are left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (such as a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled is retried. This retry doesn't count as an automatic retry, and doesn't affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer doesn't trigger this behavior.
|
|
@@ -71451,11 +71455,15 @@ module Stripe
|
|
|
71451
71455
|
def send_invoice(invoice, params = {}, opts = {}); end
|
|
71452
71456
|
|
|
71453
71457
|
# Serializes an Invoice pay request into a batch job JSONL line.
|
|
71454
|
-
sig {
|
|
71458
|
+
sig {
|
|
71459
|
+
params(invoice: String, params: ::Stripe::InvoicePayParams, opts: T.untyped).returns(String)
|
|
71460
|
+
}
|
|
71455
71461
|
def serialize_batch_pay(invoice, params = {}, opts = {}); end
|
|
71456
71462
|
|
|
71457
71463
|
# Serializes an Invoice update request into a batch job JSONL line.
|
|
71458
|
-
sig {
|
|
71464
|
+
sig {
|
|
71465
|
+
params(invoice: String, params: ::Stripe::InvoiceUpdateParams, opts: T.untyped).returns(String)
|
|
71466
|
+
}
|
|
71459
71467
|
def serialize_batch_update(invoice, params = {}, opts = {}); end
|
|
71460
71468
|
|
|
71461
71469
|
# Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
|
|
@@ -72716,12 +72724,12 @@ module Stripe
|
|
|
72716
72724
|
def retrieve(promotion_code, params = {}, opts = {}); end
|
|
72717
72725
|
|
|
72718
72726
|
# Serializes a PromotionCode create request into a batch job JSONL line.
|
|
72719
|
-
sig { params(params: PromotionCodeCreateParams, opts: T.untyped).returns(String) }
|
|
72727
|
+
sig { params(params: ::Stripe::PromotionCodeCreateParams, opts: T.untyped).returns(String) }
|
|
72720
72728
|
def serialize_batch_create(params = {}, opts = {}); end
|
|
72721
72729
|
|
|
72722
72730
|
# Serializes a PromotionCode update request into a batch job JSONL line.
|
|
72723
72731
|
sig {
|
|
72724
|
-
params(promotion_code: String, params: PromotionCodeUpdateParams, opts: T.untyped).returns(String)
|
|
72732
|
+
params(promotion_code: String, params: ::Stripe::PromotionCodeUpdateParams, opts: T.untyped).returns(String)
|
|
72725
72733
|
}
|
|
72726
72734
|
def serialize_batch_update(promotion_code, params = {}, opts = {}); end
|
|
72727
72735
|
|
|
@@ -73388,13 +73396,13 @@ module Stripe
|
|
|
73388
73396
|
|
|
73389
73397
|
# Serializes a Subscription migrate request into a batch job JSONL line.
|
|
73390
73398
|
sig {
|
|
73391
|
-
params(subscription: String, params: SubscriptionMigrateParams, opts: T.untyped).returns(String)
|
|
73399
|
+
params(subscription: String, params: ::Stripe::SubscriptionMigrateParams, opts: T.untyped).returns(String)
|
|
73392
73400
|
}
|
|
73393
73401
|
def serialize_batch_migrate(subscription, params = {}, opts = {}); end
|
|
73394
73402
|
|
|
73395
73403
|
# Serializes a Subscription update request into a batch job JSONL line.
|
|
73396
73404
|
sig {
|
|
73397
|
-
params(subscription_exposed_id: String, params: SubscriptionUpdateParams, opts: T.untyped).returns(String)
|
|
73405
|
+
params(subscription_exposed_id: String, params: ::Stripe::SubscriptionUpdateParams, opts: T.untyped).returns(String)
|
|
73398
73406
|
}
|
|
73399
73407
|
def serialize_batch_update(subscription_exposed_id, params = {}, opts = {}); end
|
|
73400
73408
|
|
|
@@ -73500,17 +73508,19 @@ module Stripe
|
|
|
73500
73508
|
|
|
73501
73509
|
# Serializes a SubscriptionSchedule cancel request into a batch job JSONL line.
|
|
73502
73510
|
sig {
|
|
73503
|
-
params(schedule: String, params: SubscriptionScheduleCancelParams, opts: T.untyped).returns(String)
|
|
73511
|
+
params(schedule: String, params: ::Stripe::SubscriptionScheduleCancelParams, opts: T.untyped).returns(String)
|
|
73504
73512
|
}
|
|
73505
73513
|
def serialize_batch_cancel(schedule, params = {}, opts = {}); end
|
|
73506
73514
|
|
|
73507
73515
|
# Serializes a SubscriptionSchedule create request into a batch job JSONL line.
|
|
73508
|
-
sig {
|
|
73516
|
+
sig {
|
|
73517
|
+
params(params: ::Stripe::SubscriptionScheduleCreateParams, opts: T.untyped).returns(String)
|
|
73518
|
+
}
|
|
73509
73519
|
def serialize_batch_create(params = {}, opts = {}); end
|
|
73510
73520
|
|
|
73511
73521
|
# Serializes a SubscriptionSchedule update request into a batch job JSONL line.
|
|
73512
73522
|
sig {
|
|
73513
|
-
params(schedule: String, params: SubscriptionScheduleUpdateParams, opts: T.untyped).returns(String)
|
|
73523
|
+
params(schedule: String, params: ::Stripe::SubscriptionScheduleUpdateParams, opts: T.untyped).returns(String)
|
|
73514
73524
|
}
|
|
73515
73525
|
def serialize_batch_update(schedule, params = {}, opts = {}); end
|
|
73516
73526
|
|
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: 19.1.0.pre.beta.
|
|
4
|
+
version: 19.1.0.pre.beta.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|