stripe 15.1.0.pre.beta.1 → 15.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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +1 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  7. data/lib/stripe/api_requestor.rb +1 -1
  8. data/lib/stripe/connection_manager.rb +1 -3
  9. data/lib/stripe/oauth.rb +1 -1
  10. data/lib/stripe/object_types.rb +2 -0
  11. data/lib/stripe/resources/account.rb +51 -2
  12. data/lib/stripe/resources/balance_settings.rb +5 -1
  13. data/lib/stripe/resources/capital/financing_offer.rb +4 -4
  14. data/lib/stripe/resources/capital/financing_summary.rb +6 -6
  15. data/lib/stripe/resources/charge.rb +18 -0
  16. data/lib/stripe/resources/checkout/session.rb +74 -3
  17. data/lib/stripe/resources/confirmation_token.rb +6 -1
  18. data/lib/stripe/resources/coupon.rb +30 -1
  19. data/lib/stripe/resources/funding_instructions.rb +1 -1
  20. data/lib/stripe/resources/fx_quote.rb +184 -0
  21. data/lib/stripe/resources/invoice.rb +0 -52
  22. data/lib/stripe/resources/payment_intent.rb +87 -3
  23. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +65 -0
  24. data/lib/stripe/resources/payment_method.rb +10 -2
  25. data/lib/stripe/resources/payment_method_configuration.rb +59 -0
  26. data/lib/stripe/resources/person.rb +25 -1
  27. data/lib/stripe/resources/privacy/redaction_job.rb +3 -0
  28. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -29
  29. data/lib/stripe/resources/refund.rb +2 -0
  30. data/lib/stripe/resources/setup_intent.rb +12 -3
  31. data/lib/stripe/resources/source.rb +1 -1
  32. data/lib/stripe/resources/tax/registration.rb +160 -0
  33. data/lib/stripe/resources/token.rb +61 -0
  34. data/lib/stripe/resources/transfer.rb +6 -0
  35. data/lib/stripe/resources/treasury/outbound_payment.rb +4 -1
  36. data/lib/stripe/resources.rb +2 -0
  37. data/lib/stripe/services/account_person_service.rb +84 -0
  38. data/lib/stripe/services/account_service.rb +39 -1
  39. data/lib/stripe/services/application_fee_service.rb +1 -1
  40. data/lib/stripe/services/apps_service.rb +1 -1
  41. data/lib/stripe/services/billing/meter_service.rb +1 -1
  42. data/lib/stripe/services/billing_portal_service.rb +1 -1
  43. data/lib/stripe/services/billing_service.rb +1 -1
  44. data/lib/stripe/services/capital_service.rb +1 -1
  45. data/lib/stripe/services/charge_service.rb +16 -0
  46. data/lib/stripe/services/checkout/session_service.rb +75 -4
  47. data/lib/stripe/services/checkout_service.rb +1 -1
  48. data/lib/stripe/services/climate_service.rb +1 -1
  49. data/lib/stripe/services/coupon_service.rb +17 -1
  50. data/lib/stripe/services/credit_note_service.rb +1 -1
  51. data/lib/stripe/services/customer_service.rb +1 -1
  52. data/lib/stripe/services/entitlements_service.rb +1 -1
  53. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  54. data/lib/stripe/services/financial_connections_service.rb +1 -1
  55. data/lib/stripe/services/forwarding_service.rb +1 -1
  56. data/lib/stripe/services/fx_quote_service.rb +123 -0
  57. data/lib/stripe/services/gift_cards_service.rb +1 -1
  58. data/lib/stripe/services/identity_service.rb +1 -1
  59. data/lib/stripe/services/invoice_service.rb +2 -37
  60. data/lib/stripe/services/issuing_service.rb +1 -1
  61. data/lib/stripe/services/order_service.rb +1 -1
  62. data/lib/stripe/services/{invoice_payment_service.rb → payment_intent_amount_details_line_item_service.rb} +4 -24
  63. data/lib/stripe/services/payment_intent_service.rb +63 -3
  64. data/lib/stripe/services/payment_link_service.rb +1 -1
  65. data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
  66. data/lib/stripe/services/payment_method_service.rb +8 -2
  67. data/lib/stripe/services/privacy/redaction_job_service.rb +1 -1
  68. data/lib/stripe/services/privacy_service.rb +1 -1
  69. data/lib/stripe/services/product_service.rb +1 -1
  70. data/lib/stripe/services/quote_service.rb +1 -1
  71. data/lib/stripe/services/radar_service.rb +1 -1
  72. data/lib/stripe/services/reporting_service.rb +1 -1
  73. data/lib/stripe/services/setup_intent_service.rb +12 -3
  74. data/lib/stripe/services/sigma_service.rb +1 -1
  75. data/lib/stripe/services/source_service.rb +1 -1
  76. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  77. data/lib/stripe/services/tax/registration_service.rb +104 -0
  78. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  79. data/lib/stripe/services/tax_service.rb +1 -1
  80. data/lib/stripe/services/terminal_service.rb +1 -1
  81. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +4 -1
  82. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  83. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  84. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  85. data/lib/stripe/services/test_helpers_service.rb +1 -1
  86. data/lib/stripe/services/token_service.rb +61 -0
  87. data/lib/stripe/services/transfer_service.rb +5 -1
  88. data/lib/stripe/services/treasury/financial_account_service.rb +1 -1
  89. data/lib/stripe/services/treasury/outbound_payment_service.rb +4 -1
  90. data/lib/stripe/services/treasury_service.rb +1 -1
  91. data/lib/stripe/services/v1_services.rb +3 -2
  92. data/lib/stripe/services/v2/billing_service.rb +1 -1
  93. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  94. data/lib/stripe/services/v2/core/vault_service.rb +1 -1
  95. data/lib/stripe/services/v2/core_service.rb +1 -1
  96. data/lib/stripe/services/v2/money_management_service.rb +1 -1
  97. data/lib/stripe/services/v2/test_helper_service.rb +1 -1
  98. data/lib/stripe/services/v2_services.rb +1 -1
  99. data/lib/stripe/services.rb +2 -1
  100. data/lib/stripe/version.rb +1 -1
  101. data/lib/stripe.rb +0 -2
  102. data/rbi/stripe.rbi +1675 -239
  103. metadata +6 -4
  104. data/lib/stripe/request_signing_authenticator.rb +0 -79
@@ -0,0 +1,123 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class FxQuoteService < StripeService
6
+ class ListParams < Stripe::RequestParams
7
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+
24
+ class CreateParams < Stripe::RequestParams
25
+ class Usage < Stripe::RequestParams
26
+ class Payment < Stripe::RequestParams
27
+ # The Stripe account ID that the funds will be transferred to.
28
+ #
29
+ # This field should match the account ID that would be used in the PaymentIntent’s transfer_data[destination] field.
30
+ attr_accessor :destination
31
+ # The Stripe account ID that these funds are intended for.
32
+ #
33
+ # This field should match the account ID that would be used in the PaymentIntent’s on_behalf_of field.
34
+ attr_accessor :on_behalf_of
35
+
36
+ def initialize(destination: nil, on_behalf_of: nil)
37
+ @destination = destination
38
+ @on_behalf_of = on_behalf_of
39
+ end
40
+ end
41
+
42
+ class Transfer < Stripe::RequestParams
43
+ # The Stripe account ID that the funds will be transferred to.
44
+ #
45
+ # This field should match the account ID that would be used in the Transfer’s destination field.
46
+ attr_accessor :destination
47
+
48
+ def initialize(destination: nil)
49
+ @destination = destination
50
+ end
51
+ end
52
+ # The payment transaction details that are intended for the FX Quote.
53
+ attr_accessor :payment
54
+ # The transfer transaction details that are intended for the FX Quote.
55
+ attr_accessor :transfer
56
+ # Which transaction the FX Quote will be used for
57
+ #
58
+ # Can be “payment” | “transfer”
59
+ attr_accessor :type
60
+
61
+ def initialize(payment: nil, transfer: nil, type: nil)
62
+ @payment = payment
63
+ @transfer = transfer
64
+ @type = type
65
+ end
66
+ end
67
+ # Specifies which fields in the response should be expanded.
68
+ attr_accessor :expand
69
+ # A list of three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be [supported currencies](https://stripe.com/docs/currencies).
70
+ attr_accessor :from_currencies
71
+ # The duration that you wish the quote to be locked for. The quote will be usable for the duration specified. The default is `none`. The maximum is 1 day.
72
+ attr_accessor :lock_duration
73
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
74
+ attr_accessor :to_currency
75
+ # The usage specific information for the quote.
76
+ attr_accessor :usage
77
+
78
+ def initialize(
79
+ expand: nil,
80
+ from_currencies: nil,
81
+ lock_duration: nil,
82
+ to_currency: nil,
83
+ usage: nil
84
+ )
85
+ @expand = expand
86
+ @from_currencies = from_currencies
87
+ @lock_duration = lock_duration
88
+ @to_currency = to_currency
89
+ @usage = usage
90
+ end
91
+ end
92
+
93
+ class RetrieveParams < Stripe::RequestParams
94
+ # Specifies which fields in the response should be expanded.
95
+ attr_accessor :expand
96
+
97
+ def initialize(expand: nil)
98
+ @expand = expand
99
+ end
100
+ end
101
+
102
+ # Creates an FX Quote object
103
+ def create(params = {}, opts = {})
104
+ request(method: :post, path: "/v1/fx_quotes", params: params, opts: opts, base_address: :api)
105
+ end
106
+
107
+ # Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
108
+ def list(params = {}, opts = {})
109
+ request(method: :get, path: "/v1/fx_quotes", params: params, opts: opts, base_address: :api)
110
+ end
111
+
112
+ # Retrieve an FX Quote object
113
+ def retrieve(id, params = {}, opts = {})
114
+ request(
115
+ method: :get,
116
+ path: format("/v1/fx_quotes/%<id>s", { id: CGI.escape(id) }),
117
+ params: params,
118
+ opts: opts,
119
+ base_address: :api
120
+ )
121
+ end
122
+ end
123
+ end
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :cards, :transactions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @cards = Stripe::GiftCards::CardService.new(@requestor)
11
11
  @transactions = Stripe::GiftCards::TransactionService.new(@requestor)
12
12
  end
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :verification_reports, :verification_sessions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @verification_reports = Stripe::Identity::VerificationReportService.new(@requestor)
11
11
  @verification_sessions = Stripe::Identity::VerificationSessionService.new(@requestor)
12
12
  end
@@ -3,11 +3,10 @@
3
3
 
4
4
  module Stripe
5
5
  class InvoiceService < StripeService
6
- attr_reader :payments, :line_items
6
+ attr_reader :line_items
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
10
- @payments = Stripe::InvoicePaymentService.new(@requestor)
9
+ super
11
10
  @line_items = Stripe::InvoiceLineItemService.new(@requestor)
12
11
  end
13
12
 
@@ -1714,21 +1713,6 @@ module Stripe
1714
1713
  end
1715
1714
  end
1716
1715
 
1717
- class AttachPaymentIntentParams < Stripe::RequestParams
1718
- # The portion of the PaymentIntent’s `amount` that should be applied to thisinvoice. Defaults to the entire amount.
1719
- attr_accessor :amount_requested
1720
- # Specifies which fields in the response should be expanded.
1721
- attr_accessor :expand
1722
- # The ID of the PaymentIntent to attach to the invoice.
1723
- attr_accessor :payment_intent
1724
-
1725
- def initialize(amount_requested: nil, expand: nil, payment_intent: nil)
1726
- @amount_requested = amount_requested
1727
- @expand = expand
1728
- @payment_intent = payment_intent
1729
- end
1730
- end
1731
-
1732
1716
  class FinalizeInvoiceParams < Stripe::RequestParams
1733
1717
  # Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
1734
1718
  attr_accessor :auto_advance
@@ -3720,25 +3704,6 @@ module Stripe
3720
3704
  )
3721
3705
  end
3722
3706
 
3723
- # Attaches a PaymentIntent to the invoice, adding it to the list of payments.
3724
- # When the PaymentIntent's status changes to succeeded, the payment is credited
3725
- # to the invoice, increasing its amount_paid. When the invoice is fully paid, the
3726
- # invoice's status becomes paid.
3727
- #
3728
- # If the PaymentIntent's status is already succeeded when it is attached, it is
3729
- # credited to the invoice immediately.
3730
- #
3731
- # Related guide: [Create an invoice payment](https://stripe.com/docs/invoicing/payments/create)
3732
- def attach_payment_intent(invoice, params = {}, opts = {})
3733
- request(
3734
- method: :post,
3735
- path: format("/v1/invoices/%<invoice>s/attach_payment_intent", { invoice: CGI.escape(invoice) }),
3736
- params: params,
3737
- opts: opts,
3738
- base_address: :api
3739
- )
3740
- end
3741
-
3742
3707
  # This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
3743
3708
  def create(params = {}, opts = {})
3744
3709
  request(method: :post, path: "/v1/invoices", params: params, opts: opts, base_address: :api)
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :authorizations, :cards, :cardholders, :credit_underwriting_records, :disputes, :dispute_settlement_details, :fraud_liability_debits, :personalization_designs, :physical_bundles, :tokens, :transactions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @authorizations = Stripe::Issuing::AuthorizationService.new(@requestor)
11
11
  @cards = Stripe::Issuing::CardService.new(@requestor)
12
12
  @cardholders = Stripe::Issuing::CardholderService.new(@requestor)
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :line_items
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @line_items = Stripe::OrderLineItemService.new(@requestor)
11
11
  end
12
12
 
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- class InvoicePaymentService < StripeService
5
+ class PaymentIntentAmountDetailsLineItemService < StripeService
6
6
  class ListParams < Stripe::RequestParams
7
7
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
8
  attr_accessor :ending_before
@@ -21,31 +21,11 @@ module Stripe
21
21
  end
22
22
  end
23
23
 
24
- class RetrieveParams < Stripe::RequestParams
25
- # Specifies which fields in the response should be expanded.
26
- attr_accessor :expand
27
-
28
- def initialize(expand: nil)
29
- @expand = expand
30
- end
31
- end
32
-
33
- # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments.
34
- def list(invoice, params = {}, opts = {})
35
- request(
36
- method: :get,
37
- path: format("/v1/invoices/%<invoice>s/payments", { invoice: CGI.escape(invoice) }),
38
- params: params,
39
- opts: opts,
40
- base_address: :api
41
- )
42
- end
43
-
44
- # Retrieves the invoice payment with the given ID.
45
- def retrieve(invoice, invoice_payment, params = {}, opts = {})
24
+ # Lists all LineItems of a given PaymentIntent.
25
+ def list(intent, params = {}, opts = {})
46
26
  request(
47
27
  method: :get,
48
- path: format("/v1/invoices/%<invoice>s/payments/%<invoice_payment>s", { invoice: CGI.escape(invoice), invoice_payment: CGI.escape(invoice_payment) }),
28
+ path: format("/v1/payment_intents/%<intent>s/amount_details_line_items", { intent: CGI.escape(intent) }),
49
29
  params: params,
50
30
  opts: opts,
51
31
  base_address: :api
@@ -3,6 +3,13 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentService < StripeService
6
+ attr_reader :amount_details_line_items
7
+
8
+ def initialize(requestor)
9
+ super
10
+ @amount_details_line_items = Stripe::PaymentIntentAmountDetailsLineItemService.new(@requestor)
11
+ end
12
+
6
13
  class ListParams < Stripe::RequestParams
7
14
  class Created < Stripe::RequestParams
8
15
  # Minimum value to filter by (exclusive)
@@ -774,26 +781,34 @@ module Stripe
774
781
  end
775
782
  # Car rental details for this PaymentIntent.
776
783
  attr_accessor :car_rental
784
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
785
+ attr_accessor :customer_reference
777
786
  # Event details for this PaymentIntent
778
787
  attr_accessor :event_details
779
788
  # Flight reservation details for this PaymentIntent
780
789
  attr_accessor :flight
781
790
  # Lodging reservation details for this PaymentIntent
782
791
  attr_accessor :lodging
792
+ # A unique value assigned by the business to identify the transaction.
793
+ attr_accessor :order_reference
783
794
  # Subscription details for this PaymentIntent
784
795
  attr_accessor :subscription
785
796
 
786
797
  def initialize(
787
798
  car_rental: nil,
799
+ customer_reference: nil,
788
800
  event_details: nil,
789
801
  flight: nil,
790
802
  lodging: nil,
803
+ order_reference: nil,
791
804
  subscription: nil
792
805
  )
793
806
  @car_rental = car_rental
807
+ @customer_reference = customer_reference
794
808
  @event_details = event_details
795
809
  @flight = flight
796
810
  @lodging = lodging
811
+ @order_reference = order_reference
797
812
  @subscription = subscription
798
813
  end
799
814
  end
@@ -898,12 +913,15 @@ module Stripe
898
913
  attr_accessor :name
899
914
  # Billing phone number (including extension).
900
915
  attr_accessor :phone
916
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
917
+ attr_accessor :tax_id
901
918
 
902
- def initialize(address: nil, email: nil, name: nil, phone: nil)
919
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
903
920
  @address = address
904
921
  @email = email
905
922
  @name = name
906
923
  @phone = phone
924
+ @tax_id = tax_id
907
925
  end
908
926
  end
909
927
 
@@ -3431,6 +3449,8 @@ module Stripe
3431
3449
  attr_accessor :error_on_requires_action
3432
3450
  # Specifies which fields in the response should be expanded.
3433
3451
  attr_accessor :expand
3452
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3453
+ attr_accessor :fx_quote
3434
3454
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
3435
3455
  attr_accessor :mandate
3436
3456
  # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -3504,6 +3524,7 @@ module Stripe
3504
3524
  description: nil,
3505
3525
  error_on_requires_action: nil,
3506
3526
  expand: nil,
3527
+ fx_quote: nil,
3507
3528
  mandate: nil,
3508
3529
  mandate_data: nil,
3509
3530
  metadata: nil,
@@ -3541,6 +3562,7 @@ module Stripe
3541
3562
  @description = description
3542
3563
  @error_on_requires_action = error_on_requires_action
3543
3564
  @expand = expand
3565
+ @fx_quote = fx_quote
3544
3566
  @mandate = mandate
3545
3567
  @mandate_data = mandate_data
3546
3568
  @metadata = metadata
@@ -4274,26 +4296,34 @@ module Stripe
4274
4296
  end
4275
4297
  # Car rental details for this PaymentIntent.
4276
4298
  attr_accessor :car_rental
4299
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
4300
+ attr_accessor :customer_reference
4277
4301
  # Event details for this PaymentIntent
4278
4302
  attr_accessor :event_details
4279
4303
  # Flight reservation details for this PaymentIntent
4280
4304
  attr_accessor :flight
4281
4305
  # Lodging reservation details for this PaymentIntent
4282
4306
  attr_accessor :lodging
4307
+ # A unique value assigned by the business to identify the transaction.
4308
+ attr_accessor :order_reference
4283
4309
  # Subscription details for this PaymentIntent
4284
4310
  attr_accessor :subscription
4285
4311
 
4286
4312
  def initialize(
4287
4313
  car_rental: nil,
4314
+ customer_reference: nil,
4288
4315
  event_details: nil,
4289
4316
  flight: nil,
4290
4317
  lodging: nil,
4318
+ order_reference: nil,
4291
4319
  subscription: nil
4292
4320
  )
4293
4321
  @car_rental = car_rental
4322
+ @customer_reference = customer_reference
4294
4323
  @event_details = event_details
4295
4324
  @flight = flight
4296
4325
  @lodging = lodging
4326
+ @order_reference = order_reference
4297
4327
  @subscription = subscription
4298
4328
  end
4299
4329
  end
@@ -4398,12 +4428,15 @@ module Stripe
4398
4428
  attr_accessor :name
4399
4429
  # Billing phone number (including extension).
4400
4430
  attr_accessor :phone
4431
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
4432
+ attr_accessor :tax_id
4401
4433
 
4402
- def initialize(address: nil, email: nil, name: nil, phone: nil)
4434
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
4403
4435
  @address = address
4404
4436
  @email = email
4405
4437
  @name = name
4406
4438
  @phone = phone
4439
+ @tax_id = tax_id
4407
4440
  end
4408
4441
  end
4409
4442
 
@@ -6898,6 +6931,8 @@ module Stripe
6898
6931
  attr_accessor :description
6899
6932
  # Specifies which fields in the response should be expanded.
6900
6933
  attr_accessor :expand
6934
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
6935
+ attr_accessor :fx_quote
6901
6936
  # This hash contains details about the Mandate to create.
6902
6937
  attr_accessor :mandate_data
6903
6938
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -6951,6 +6986,7 @@ module Stripe
6951
6986
  customer_account: nil,
6952
6987
  description: nil,
6953
6988
  expand: nil,
6989
+ fx_quote: nil,
6954
6990
  mandate_data: nil,
6955
6991
  metadata: nil,
6956
6992
  payment_details: nil,
@@ -6976,6 +7012,7 @@ module Stripe
6976
7012
  @customer_account = customer_account
6977
7013
  @description = description
6978
7014
  @expand = expand
7015
+ @fx_quote = fx_quote
6979
7016
  @mandate_data = mandate_data
6980
7017
  @metadata = metadata
6981
7018
  @payment_details = payment_details
@@ -7708,26 +7745,34 @@ module Stripe
7708
7745
  end
7709
7746
  # Car rental details for this PaymentIntent.
7710
7747
  attr_accessor :car_rental
7748
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
7749
+ attr_accessor :customer_reference
7711
7750
  # Event details for this PaymentIntent
7712
7751
  attr_accessor :event_details
7713
7752
  # Flight reservation details for this PaymentIntent
7714
7753
  attr_accessor :flight
7715
7754
  # Lodging reservation details for this PaymentIntent
7716
7755
  attr_accessor :lodging
7756
+ # A unique value assigned by the business to identify the transaction.
7757
+ attr_accessor :order_reference
7717
7758
  # Subscription details for this PaymentIntent
7718
7759
  attr_accessor :subscription
7719
7760
 
7720
7761
  def initialize(
7721
7762
  car_rental: nil,
7763
+ customer_reference: nil,
7722
7764
  event_details: nil,
7723
7765
  flight: nil,
7724
7766
  lodging: nil,
7767
+ order_reference: nil,
7725
7768
  subscription: nil
7726
7769
  )
7727
7770
  @car_rental = car_rental
7771
+ @customer_reference = customer_reference
7728
7772
  @event_details = event_details
7729
7773
  @flight = flight
7730
7774
  @lodging = lodging
7775
+ @order_reference = order_reference
7731
7776
  @subscription = subscription
7732
7777
  end
7733
7778
  end
@@ -8494,26 +8539,34 @@ module Stripe
8494
8539
  end
8495
8540
  # Car rental details for this PaymentIntent.
8496
8541
  attr_accessor :car_rental
8542
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
8543
+ attr_accessor :customer_reference
8497
8544
  # Event details for this PaymentIntent
8498
8545
  attr_accessor :event_details
8499
8546
  # Flight reservation details for this PaymentIntent
8500
8547
  attr_accessor :flight
8501
8548
  # Lodging reservation details for this PaymentIntent
8502
8549
  attr_accessor :lodging
8550
+ # A unique value assigned by the business to identify the transaction.
8551
+ attr_accessor :order_reference
8503
8552
  # Subscription details for this PaymentIntent
8504
8553
  attr_accessor :subscription
8505
8554
 
8506
8555
  def initialize(
8507
8556
  car_rental: nil,
8557
+ customer_reference: nil,
8508
8558
  event_details: nil,
8509
8559
  flight: nil,
8510
8560
  lodging: nil,
8561
+ order_reference: nil,
8511
8562
  subscription: nil
8512
8563
  )
8513
8564
  @car_rental = car_rental
8565
+ @customer_reference = customer_reference
8514
8566
  @event_details = event_details
8515
8567
  @flight = flight
8516
8568
  @lodging = lodging
8569
+ @order_reference = order_reference
8517
8570
  @subscription = subscription
8518
8571
  end
8519
8572
  end
@@ -8618,12 +8671,15 @@ module Stripe
8618
8671
  attr_accessor :name
8619
8672
  # Billing phone number (including extension).
8620
8673
  attr_accessor :phone
8674
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
8675
+ attr_accessor :tax_id
8621
8676
 
8622
- def initialize(address: nil, email: nil, name: nil, phone: nil)
8677
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
8623
8678
  @address = address
8624
8679
  @email = email
8625
8680
  @name = name
8626
8681
  @phone = phone
8682
+ @tax_id = tax_id
8627
8683
  end
8628
8684
  end
8629
8685
 
@@ -11106,6 +11162,8 @@ module Stripe
11106
11162
  attr_accessor :error_on_requires_action
11107
11163
  # Specifies which fields in the response should be expanded.
11108
11164
  attr_accessor :expand
11165
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
11166
+ attr_accessor :fx_quote
11109
11167
  # ID of the mandate that's used for this payment.
11110
11168
  attr_accessor :mandate
11111
11169
  # Attribute for param field mandate_data
@@ -11154,6 +11212,7 @@ module Stripe
11154
11212
  confirmation_token: nil,
11155
11213
  error_on_requires_action: nil,
11156
11214
  expand: nil,
11215
+ fx_quote: nil,
11157
11216
  mandate: nil,
11158
11217
  mandate_data: nil,
11159
11218
  off_session: nil,
@@ -11175,6 +11234,7 @@ module Stripe
11175
11234
  @confirmation_token = confirmation_token
11176
11235
  @error_on_requires_action = error_on_requires_action
11177
11236
  @expand = expand
11237
+ @fx_quote = fx_quote
11178
11238
  @mandate = mandate
11179
11239
  @mandate_data = mandate_data
11180
11240
  @off_session = off_session
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :line_items
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @line_items = Stripe::PaymentLinkLineItemService.new(@requestor)
11
11
  end
12
12
 
@@ -694,6 +694,23 @@ module Stripe
694
694
  end
695
695
  end
696
696
 
697
+ class Pix < Stripe::RequestParams
698
+ class DisplayPreference < Stripe::RequestParams
699
+ # The account's preference for whether or not to display this payment method.
700
+ attr_accessor :preference
701
+
702
+ def initialize(preference: nil)
703
+ @preference = preference
704
+ end
705
+ end
706
+ # Whether or not the payment method should be displayed.
707
+ attr_accessor :display_preference
708
+
709
+ def initialize(display_preference: nil)
710
+ @display_preference = display_preference
711
+ end
712
+ end
713
+
697
714
  class Promptpay < Stripe::RequestParams
698
715
  class DisplayPreference < Stripe::RequestParams
699
716
  # The account's preference for whether or not to display this payment method.
@@ -981,6 +998,8 @@ module Stripe
981
998
  attr_accessor :paypal
982
999
  # PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
983
1000
  attr_accessor :payto
1001
+ # Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
1002
+ attr_accessor :pix
984
1003
  # PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
985
1004
  attr_accessor :promptpay
986
1005
  # QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
@@ -1049,6 +1068,7 @@ module Stripe
1049
1068
  paynow: nil,
1050
1069
  paypal: nil,
1051
1070
  payto: nil,
1071
+ pix: nil,
1052
1072
  promptpay: nil,
1053
1073
  qris: nil,
1054
1074
  revolut_pay: nil,
@@ -1104,6 +1124,7 @@ module Stripe
1104
1124
  @paynow = paynow
1105
1125
  @paypal = paypal
1106
1126
  @payto = payto
1127
+ @pix = pix
1107
1128
  @promptpay = promptpay
1108
1129
  @qris = qris
1109
1130
  @revolut_pay = revolut_pay
@@ -1792,6 +1813,23 @@ module Stripe
1792
1813
  end
1793
1814
  end
1794
1815
 
1816
+ class Pix < Stripe::RequestParams
1817
+ class DisplayPreference < Stripe::RequestParams
1818
+ # The account's preference for whether or not to display this payment method.
1819
+ attr_accessor :preference
1820
+
1821
+ def initialize(preference: nil)
1822
+ @preference = preference
1823
+ end
1824
+ end
1825
+ # Whether or not the payment method should be displayed.
1826
+ attr_accessor :display_preference
1827
+
1828
+ def initialize(display_preference: nil)
1829
+ @display_preference = display_preference
1830
+ end
1831
+ end
1832
+
1795
1833
  class Promptpay < Stripe::RequestParams
1796
1834
  class DisplayPreference < Stripe::RequestParams
1797
1835
  # The account's preference for whether or not to display this payment method.
@@ -2079,6 +2117,8 @@ module Stripe
2079
2117
  attr_accessor :paypal
2080
2118
  # PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
2081
2119
  attr_accessor :payto
2120
+ # Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
2121
+ attr_accessor :pix
2082
2122
  # PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details.
2083
2123
  attr_accessor :promptpay
2084
2124
  # QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
@@ -2147,6 +2187,7 @@ module Stripe
2147
2187
  paynow: nil,
2148
2188
  paypal: nil,
2149
2189
  payto: nil,
2190
+ pix: nil,
2150
2191
  promptpay: nil,
2151
2192
  qris: nil,
2152
2193
  revolut_pay: nil,
@@ -2202,6 +2243,7 @@ module Stripe
2202
2243
  @paynow = paynow
2203
2244
  @paypal = paypal
2204
2245
  @payto = payto
2246
+ @pix = pix
2205
2247
  @promptpay = promptpay
2206
2248
  @qris = qris
2207
2249
  @revolut_pay = revolut_pay