stripe 19.1.0.pre.alpha.1 → 19.1.0.pre.alpha.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/services/billing/alert_service.rb +1 -1
  3. data/lib/stripe/services/billing/credit_grant_service.rb +3 -1
  4. data/lib/stripe/services/checkout/session_service.rb +6 -2
  5. data/lib/stripe/services/climate/order_service.rb +1 -1
  6. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -1
  7. data/lib/stripe/services/credit_note_service.rb +2 -2
  8. data/lib/stripe/services/invoice_item_service.rb +2 -2
  9. data/lib/stripe/services/invoice_line_item_service.rb +1 -1
  10. data/lib/stripe/services/invoice_service.rb +3 -3
  11. data/lib/stripe/services/order_service.rb +2 -2
  12. data/lib/stripe/services/payment_link_service.rb +1 -1
  13. data/lib/stripe/services/plan_service.rb +1 -1
  14. data/lib/stripe/services/price_service.rb +1 -1
  15. data/lib/stripe/services/product_service.rb +1 -1
  16. data/lib/stripe/services/quote_service.rb +2 -2
  17. data/lib/stripe/services/subscription_item_service.rb +2 -2
  18. data/lib/stripe/services/subscription_schedule_service.rb +6 -2
  19. data/lib/stripe/services/subscription_service.rb +2 -2
  20. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +3 -3
  21. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +2 -2
  22. data/lib/stripe/services/v2/billing/collection_setting_service.rb +2 -2
  23. data/lib/stripe/services/v2/billing/intent_service.rb +3 -1
  24. data/lib/stripe/services/v2/billing/license_fee_service.rb +6 -2
  25. data/lib/stripe/services/v2/billing/rate_card_service.rb +1 -1
  26. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +1 -1
  27. data/lib/stripe/services/v2/billing/service_action_service.rb +1 -1
  28. data/lib/stripe/services/v2/core/account_service.rb +6 -2
  29. data/lib/stripe/services/v2/core/account_token_service.rb +3 -1
  30. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
  31. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +1 -1
  32. data/lib/stripe/services/v2/tax/manual_rule_service.rb +6 -2
  33. data/lib/stripe/util.rb +1 -1
  34. data/lib/stripe/version.rb +1 -1
  35. data/rbi/stripe.rbi +22 -12
  36. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f7692258e7499c11244b2340467e97c7571f2e5f8a61a894eb5e495e4c23443
4
- data.tar.gz: 414e70f9cabb30c1d7f213b6ab91e25a62650df8aa40d38d26bfd122422e4a65
3
+ metadata.gz: 1a1a6465468147eeaf712e9bf5656e5b51da2fafd05a3c77728b7e875fd582c9
4
+ data.tar.gz: 7f90a20144fd46c18a1cf931af73e9e41ea783d34e325183f43872fa303fdf85
5
5
  SHA512:
6
- metadata.gz: 11598380c3eda7ebf90e1c5319b38431a6e097955de8225907f42e08766de425fa8cebe377114d43d88ce51eff6ed03ef41a97207cc620b9e757e2d48e33052f
7
- data.tar.gz: bcc26d422800afc8154246c45964b816059840fb0ec3f07a6233bd494f870ae5498475854cbe0ac0e69299b0fcc91a35f29e8b660735036811aefca799b278cd
6
+ metadata.gz: 52c83c90725f5f044c2486cc9fec5c11e38bde094c2ef01878937fe5b4f81de893091d06b16b5222f94b0f8823f549066ae1195415a41c7df20dcf3f7e6781f3
7
+ data.tar.gz: deb4a7c227b1b542d80affb22ccf9793526b4806f604466e1279e37100545e7c850803a40152d01c99323230cdd09bb9a8e980fc6b048d709453d4733fbcc218
@@ -28,7 +28,7 @@ module Stripe
28
28
 
29
29
  # Creates a billing alert
30
30
  def create(params = {}, opts = {})
31
- params = Billing::AlertCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
31
+ params = ::Stripe::Billing::AlertCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
32
32
 
33
33
  request(
34
34
  method: :post,
@@ -6,7 +6,9 @@ module Stripe
6
6
  class CreditGrantService < StripeService
7
7
  # Creates a credit grant.
8
8
  def create(params = {}, opts = {})
9
- params = Billing::CreditGrantCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
9
+ unless params.is_a?(Stripe::RequestParams)
10
+ params = ::Stripe::Billing::CreditGrantCreateParams.coerce_params(params)
11
+ end
10
12
 
11
13
  request(
12
14
  method: :post,
@@ -24,7 +24,9 @@ module Stripe
24
24
 
25
25
  # Creates a Checkout Session object.
26
26
  def create(params = {}, opts = {})
27
- params = Checkout::SessionCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
27
+ unless params.is_a?(Stripe::RequestParams)
28
+ params = ::Stripe::Checkout::SessionCreateParams.coerce_params(params)
29
+ end
28
30
 
29
31
  request(
30
32
  method: :post,
@@ -74,7 +76,9 @@ module Stripe
74
76
  #
75
77
  # Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
76
78
  def update(session, params = {}, opts = {})
77
- params = Checkout::SessionUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
79
+ unless params.is_a?(Stripe::RequestParams)
80
+ params = ::Stripe::Checkout::SessionUpdateParams.coerce_params(params)
81
+ end
78
82
 
79
83
  request(
80
84
  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
- params = CreditNotePreviewLinesListParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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
- params = SubscriptionScheduleCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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
- params = SubscriptionScheduleUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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,
@@ -37,7 +37,7 @@ module Stripe
37
37
  # 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.
38
38
  # Schedules provide the flexibility to model more complex billing configurations that change over time.
39
39
  def create(params = {}, opts = {})
40
- params = SubscriptionCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
40
+ params = ::Stripe::SubscriptionCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
41
41
 
42
42
  request(
43
43
  method: :post,
@@ -180,7 +180,7 @@ module Stripe
180
180
  #
181
181
  # 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.
182
182
  def update(subscription_exposed_id, params = {}, opts = {})
183
- params = SubscriptionUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
183
+ params = ::Stripe::SubscriptionUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
184
184
 
185
185
  request(
186
186
  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(
@@ -36,7 +36,9 @@ module Stripe
36
36
 
37
37
  # Create a Billing Intent.
38
38
  def create(params = {}, opts = {})
39
- params = V2::Billing::IntentCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
39
+ unless params.is_a?(Stripe::RequestParams)
40
+ params = ::Stripe::V2::Billing::IntentCreateParams.coerce_params(params)
41
+ end
40
42
 
41
43
  request(
42
44
  method: :post,
@@ -14,7 +14,9 @@ module Stripe
14
14
 
15
15
  # Create a License Fee object.
16
16
  def create(params = {}, opts = {})
17
- params = V2::Billing::LicenseFeeCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
17
+ unless params.is_a?(Stripe::RequestParams)
18
+ params = ::Stripe::V2::Billing::LicenseFeeCreateParams.coerce_params(params)
19
+ end
18
20
 
19
21
  request(
20
22
  method: :post,
@@ -49,7 +51,9 @@ module Stripe
49
51
 
50
52
  # Update a License Fee object.
51
53
  def update(id, params = {}, opts = {})
52
- params = V2::Billing::LicenseFeeUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
54
+ unless params.is_a?(Stripe::RequestParams)
55
+ params = ::Stripe::V2::Billing::LicenseFeeUpdateParams.coerce_params(params)
56
+ end
53
57
 
54
58
  request(
55
59
  method: :post,
@@ -40,7 +40,7 @@ module Stripe
40
40
  # Creates, updates, and/or deletes multiple Rates on a Rate Card atomically.
41
41
  def modify_rates(id, params = {}, opts = {})
42
42
  unless params.is_a?(Stripe::RequestParams)
43
- params = V2::Billing::RateCardModifyRatesParams.coerce_params(params)
43
+ params = ::Stripe::V2::Billing::RateCardModifyRatesParams.coerce_params(params)
44
44
  end
45
45
 
46
46
  request(
@@ -10,7 +10,7 @@ module Stripe
10
10
  # if the Metered Item already has a rate on the Rate Card.
11
11
  def create(rate_card_id, params = {}, opts = {})
12
12
  unless params.is_a?(Stripe::RequestParams)
13
- params = V2::Billing::RateCards::RateCreateParams.coerce_params(params)
13
+ params = ::Stripe::V2::Billing::RateCards::RateCreateParams.coerce_params(params)
14
14
  end
15
15
 
16
16
  request(
@@ -8,7 +8,7 @@ module Stripe
8
8
  # Create a Service Action object.
9
9
  def create(params = {}, opts = {})
10
10
  unless params.is_a?(Stripe::RequestParams)
11
- params = V2::Billing::ServiceActionCreateParams.coerce_params(params)
11
+ params = ::Stripe::V2::Billing::ServiceActionCreateParams.coerce_params(params)
12
12
  end
13
13
 
14
14
  request(
@@ -30,7 +30,9 @@ module Stripe
30
30
  #
31
31
  # ** raises RateLimitError
32
32
  def create(params = {}, opts = {})
33
- params = V2::Core::AccountCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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
- params = V2::Core::AccountUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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
- params = V2::Core::AccountTokenCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
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(
@@ -7,7 +7,9 @@ module Stripe
7
7
  class ManualRuleService < StripeService
8
8
  # Creates a ManualRule object.
9
9
  def create(params = {}, opts = {})
10
- params = V2::Tax::ManualRuleCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
10
+ unless params.is_a?(Stripe::RequestParams)
11
+ params = ::Stripe::V2::Tax::ManualRuleCreateParams.coerce_params(params)
12
+ end
11
13
 
12
14
  request(
13
15
  method: :post,
@@ -53,7 +55,9 @@ module Stripe
53
55
 
54
56
  # Updates the Tax configuration for a ManualRule object.
55
57
  def update(id, params = {}, opts = {})
56
- params = V2::Tax::ManualRuleUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams)
58
+ unless params.is_a?(Stripe::RequestParams)
59
+ params = ::Stripe::V2::Tax::ManualRuleUpdateParams.coerce_params(params)
60
+ end
57
61
 
58
62
  request(
59
63
  method: :post,
data/lib/stripe/util.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "cgi"
3
+ require "cgi/escape"
4
4
 
5
5
  module Stripe
6
6
  module Util
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "19.1.0-alpha.1"
4
+ VERSION = "19.1.0-alpha.2"
5
5
  end
data/rbi/stripe.rbi CHANGED
@@ -81798,7 +81798,9 @@ module Stripe
81798
81798
  def retrieve_current(params = {}, opts = {}); end
81799
81799
 
81800
81800
  # Serializes an Account update request into a batch job JSONL line.
81801
- sig { params(account: String, params: AccountUpdateParams, opts: T.untyped).returns(String) }
81801
+ sig {
81802
+ params(account: String, params: ::Stripe::AccountUpdateParams, opts: T.untyped).returns(String)
81803
+ }
81802
81804
  def serialize_batch_update(account, params = {}, opts = {}); end
81803
81805
 
81804
81806
  # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
@@ -82803,7 +82805,7 @@ module Stripe
82803
82805
  def retrieve(id, params = {}, opts = {}); end
82804
82806
 
82805
82807
  # Serializes a CreditNote create request into a batch job JSONL line.
82806
- sig { params(params: CreditNoteCreateParams, opts: T.untyped).returns(String) }
82808
+ sig { params(params: ::Stripe::CreditNoteCreateParams, opts: T.untyped).returns(String) }
82807
82809
  def serialize_batch_create(params = {}, opts = {}); end
82808
82810
 
82809
82811
  # Updates an existing credit note.
@@ -82889,7 +82891,9 @@ module Stripe
82889
82891
  def search(params = {}, opts = {}); end
82890
82892
 
82891
82893
  # Serializes a Customer update request into a batch job JSONL line.
82892
- sig { params(customer: String, params: CustomerUpdateParams, opts: T.untyped).returns(String) }
82894
+ sig {
82895
+ params(customer: String, params: ::Stripe::CustomerUpdateParams, opts: T.untyped).returns(String)
82896
+ }
82893
82897
  def serialize_batch_update(customer, params = {}, opts = {}); end
82894
82898
 
82895
82899
  # 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.
@@ -83836,11 +83840,15 @@ module Stripe
83836
83840
  def send_invoice(invoice, params = {}, opts = {}); end
83837
83841
 
83838
83842
  # Serializes an Invoice pay request into a batch job JSONL line.
83839
- sig { params(invoice: String, params: InvoicePayParams, opts: T.untyped).returns(String) }
83843
+ sig {
83844
+ params(invoice: String, params: ::Stripe::InvoicePayParams, opts: T.untyped).returns(String)
83845
+ }
83840
83846
  def serialize_batch_pay(invoice, params = {}, opts = {}); end
83841
83847
 
83842
83848
  # Serializes an Invoice update request into a batch job JSONL line.
83843
- sig { params(invoice: String, params: InvoiceUpdateParams, opts: T.untyped).returns(String) }
83849
+ sig {
83850
+ params(invoice: String, params: ::Stripe::InvoiceUpdateParams, opts: T.untyped).returns(String)
83851
+ }
83844
83852
  def serialize_batch_update(invoice, params = {}, opts = {}); end
83845
83853
 
83846
83854
  # Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
@@ -85205,12 +85213,12 @@ module Stripe
85205
85213
  def retrieve(promotion_code, params = {}, opts = {}); end
85206
85214
 
85207
85215
  # Serializes a PromotionCode create request into a batch job JSONL line.
85208
- sig { params(params: PromotionCodeCreateParams, opts: T.untyped).returns(String) }
85216
+ sig { params(params: ::Stripe::PromotionCodeCreateParams, opts: T.untyped).returns(String) }
85209
85217
  def serialize_batch_create(params = {}, opts = {}); end
85210
85218
 
85211
85219
  # Serializes a PromotionCode update request into a batch job JSONL line.
85212
85220
  sig {
85213
- params(promotion_code: String, params: PromotionCodeUpdateParams, opts: T.untyped).returns(String)
85221
+ params(promotion_code: String, params: ::Stripe::PromotionCodeUpdateParams, opts: T.untyped).returns(String)
85214
85222
  }
85215
85223
  def serialize_batch_update(promotion_code, params = {}, opts = {}); end
85216
85224
 
@@ -85964,13 +85972,13 @@ module Stripe
85964
85972
 
85965
85973
  # Serializes a Subscription migrate request into a batch job JSONL line.
85966
85974
  sig {
85967
- params(subscription: String, params: SubscriptionMigrateParams, opts: T.untyped).returns(String)
85975
+ params(subscription: String, params: ::Stripe::SubscriptionMigrateParams, opts: T.untyped).returns(String)
85968
85976
  }
85969
85977
  def serialize_batch_migrate(subscription, params = {}, opts = {}); end
85970
85978
 
85971
85979
  # Serializes a Subscription update request into a batch job JSONL line.
85972
85980
  sig {
85973
- params(subscription_exposed_id: String, params: SubscriptionUpdateParams, opts: T.untyped).returns(String)
85981
+ params(subscription_exposed_id: String, params: ::Stripe::SubscriptionUpdateParams, opts: T.untyped).returns(String)
85974
85982
  }
85975
85983
  def serialize_batch_update(subscription_exposed_id, params = {}, opts = {}); end
85976
85984
 
@@ -86076,17 +86084,19 @@ module Stripe
86076
86084
 
86077
86085
  # Serializes a SubscriptionSchedule cancel request into a batch job JSONL line.
86078
86086
  sig {
86079
- params(schedule: String, params: SubscriptionScheduleCancelParams, opts: T.untyped).returns(String)
86087
+ params(schedule: String, params: ::Stripe::SubscriptionScheduleCancelParams, opts: T.untyped).returns(String)
86080
86088
  }
86081
86089
  def serialize_batch_cancel(schedule, params = {}, opts = {}); end
86082
86090
 
86083
86091
  # Serializes a SubscriptionSchedule create request into a batch job JSONL line.
86084
- sig { params(params: SubscriptionScheduleCreateParams, opts: T.untyped).returns(String) }
86092
+ sig {
86093
+ params(params: ::Stripe::SubscriptionScheduleCreateParams, opts: T.untyped).returns(String)
86094
+ }
86085
86095
  def serialize_batch_create(params = {}, opts = {}); end
86086
86096
 
86087
86097
  # Serializes a SubscriptionSchedule update request into a batch job JSONL line.
86088
86098
  sig {
86089
- params(schedule: String, params: SubscriptionScheduleUpdateParams, opts: T.untyped).returns(String)
86099
+ params(schedule: String, params: ::Stripe::SubscriptionScheduleUpdateParams, opts: T.untyped).returns(String)
86090
86100
  }
86091
86101
  def serialize_batch_update(schedule, params = {}, opts = {}); end
86092
86102
 
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.alpha.1
4
+ version: 19.1.0.pre.alpha.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-26 00:00:00.000000000 Z
11
+ date: 2026-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal