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,65 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class PaymentIntentAmountDetailsLineItem < APIResource
6
+ OBJECT_NAME = "payment_intent_amount_details_line_item"
7
+ def self.object_name
8
+ "payment_intent_amount_details_line_item"
9
+ end
10
+
11
+ class PaymentMethodOptions < Stripe::StripeObject
12
+ class Card < Stripe::StripeObject
13
+ # Attribute for field commodity_code
14
+ attr_reader :commodity_code
15
+ end
16
+
17
+ class Klarna < Stripe::StripeObject
18
+ # Attribute for field image_url
19
+ attr_reader :image_url
20
+ # Attribute for field product_url
21
+ attr_reader :product_url
22
+ end
23
+
24
+ class Paypal < Stripe::StripeObject
25
+ # Type of the line item.
26
+ attr_reader :category
27
+ # Description of the line item.
28
+ attr_reader :description
29
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
30
+ attr_reader :sold_by
31
+ end
32
+ # Attribute for field card
33
+ attr_reader :card
34
+ # Attribute for field klarna
35
+ attr_reader :klarna
36
+ # Attribute for field paypal
37
+ attr_reader :paypal
38
+ end
39
+
40
+ class Tax < Stripe::StripeObject
41
+ # Total portion of the amount that is for tax.
42
+ attr_reader :total_tax_amount
43
+ end
44
+ # The amount an item was discounted for. Positive integer.
45
+ attr_reader :discount_amount
46
+ # Unique identifier for the object.
47
+ attr_reader :id
48
+ # String representing the object's type. Objects of the same type share the same value.
49
+ attr_reader :object
50
+ # Payment method-specific information for line items.
51
+ attr_reader :payment_method_options
52
+ # Unique identifier of the product. At most 12 characters long.
53
+ attr_reader :product_code
54
+ # Name of the product. At most 100 characters long.
55
+ attr_reader :product_name
56
+ # Number of items of the product. Positive integer.
57
+ attr_reader :quantity
58
+ # Contains information about the tax on the item.
59
+ attr_reader :tax
60
+ # Cost of the product. Non-negative integer.
61
+ attr_reader :unit_cost
62
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
63
+ attr_reader :unit_of_measure
64
+ end
65
+ end
@@ -80,6 +80,8 @@ module Stripe
80
80
  attr_reader :name
81
81
  # Billing phone number (including extension).
82
82
  attr_reader :phone
83
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
84
+ attr_reader :tax_id
83
85
  end
84
86
 
85
87
  class Blik < Stripe::StripeObject; end
@@ -825,12 +827,15 @@ module Stripe
825
827
  attr_accessor :name
826
828
  # Billing phone number (including extension).
827
829
  attr_accessor :phone
830
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
831
+ attr_accessor :tax_id
828
832
 
829
- def initialize(address: nil, email: nil, name: nil, phone: nil)
833
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
830
834
  @address = address
831
835
  @email = email
832
836
  @name = name
833
837
  @phone = phone
838
+ @tax_id = tax_id
834
839
  end
835
840
  end
836
841
 
@@ -1488,12 +1493,15 @@ module Stripe
1488
1493
  attr_accessor :name
1489
1494
  # Billing phone number (including extension).
1490
1495
  attr_accessor :phone
1496
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1497
+ attr_accessor :tax_id
1491
1498
 
1492
- def initialize(address: nil, email: nil, name: nil, phone: nil)
1499
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
1493
1500
  @address = address
1494
1501
  @email = email
1495
1502
  @name = name
1496
1503
  @phone = phone
1504
+ @tax_id = tax_id
1497
1505
  end
1498
1506
  end
1499
1507
 
@@ -596,6 +596,21 @@ module Stripe
596
596
  attr_reader :display_preference
597
597
  end
598
598
 
599
+ class Pix < Stripe::StripeObject
600
+ class DisplayPreference < Stripe::StripeObject
601
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
602
+ attr_reader :overridable
603
+ # The account's display preference.
604
+ attr_reader :preference
605
+ # The effective display preference value.
606
+ attr_reader :value
607
+ end
608
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
609
+ attr_reader :available
610
+ # Attribute for field display_preference
611
+ attr_reader :display_preference
612
+ end
613
+
599
614
  class Promptpay < Stripe::StripeObject
600
615
  class DisplayPreference < Stripe::StripeObject
601
616
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -1467,6 +1482,23 @@ module Stripe
1467
1482
  end
1468
1483
  end
1469
1484
 
1485
+ class Pix < Stripe::RequestParams
1486
+ class DisplayPreference < Stripe::RequestParams
1487
+ # The account's preference for whether or not to display this payment method.
1488
+ attr_accessor :preference
1489
+
1490
+ def initialize(preference: nil)
1491
+ @preference = preference
1492
+ end
1493
+ end
1494
+ # Whether or not the payment method should be displayed.
1495
+ attr_accessor :display_preference
1496
+
1497
+ def initialize(display_preference: nil)
1498
+ @display_preference = display_preference
1499
+ end
1500
+ end
1501
+
1470
1502
  class Promptpay < Stripe::RequestParams
1471
1503
  class DisplayPreference < Stripe::RequestParams
1472
1504
  # The account's preference for whether or not to display this payment method.
@@ -1754,6 +1786,8 @@ module Stripe
1754
1786
  attr_accessor :paypal
1755
1787
  # 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.
1756
1788
  attr_accessor :payto
1789
+ # 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.
1790
+ attr_accessor :pix
1757
1791
  # 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.
1758
1792
  attr_accessor :promptpay
1759
1793
  # 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.
@@ -1822,6 +1856,7 @@ module Stripe
1822
1856
  paynow: nil,
1823
1857
  paypal: nil,
1824
1858
  payto: nil,
1859
+ pix: nil,
1825
1860
  promptpay: nil,
1826
1861
  qris: nil,
1827
1862
  revolut_pay: nil,
@@ -1877,6 +1912,7 @@ module Stripe
1877
1912
  @paynow = paynow
1878
1913
  @paypal = paypal
1879
1914
  @payto = payto
1915
+ @pix = pix
1880
1916
  @promptpay = promptpay
1881
1917
  @qris = qris
1882
1918
  @revolut_pay = revolut_pay
@@ -2556,6 +2592,23 @@ module Stripe
2556
2592
  end
2557
2593
  end
2558
2594
 
2595
+ class Pix < Stripe::RequestParams
2596
+ class DisplayPreference < Stripe::RequestParams
2597
+ # The account's preference for whether or not to display this payment method.
2598
+ attr_accessor :preference
2599
+
2600
+ def initialize(preference: nil)
2601
+ @preference = preference
2602
+ end
2603
+ end
2604
+ # Whether or not the payment method should be displayed.
2605
+ attr_accessor :display_preference
2606
+
2607
+ def initialize(display_preference: nil)
2608
+ @display_preference = display_preference
2609
+ end
2610
+ end
2611
+
2559
2612
  class Promptpay < Stripe::RequestParams
2560
2613
  class DisplayPreference < Stripe::RequestParams
2561
2614
  # The account's preference for whether or not to display this payment method.
@@ -2843,6 +2896,8 @@ module Stripe
2843
2896
  attr_accessor :paypal
2844
2897
  # 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.
2845
2898
  attr_accessor :payto
2899
+ # 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.
2900
+ attr_accessor :pix
2846
2901
  # 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.
2847
2902
  attr_accessor :promptpay
2848
2903
  # 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.
@@ -2911,6 +2966,7 @@ module Stripe
2911
2966
  paynow: nil,
2912
2967
  paypal: nil,
2913
2968
  payto: nil,
2969
+ pix: nil,
2914
2970
  promptpay: nil,
2915
2971
  qris: nil,
2916
2972
  revolut_pay: nil,
@@ -2966,6 +3022,7 @@ module Stripe
2966
3022
  @paynow = paynow
2967
3023
  @paypal = paypal
2968
3024
  @payto = payto
3025
+ @pix = pix
2969
3026
  @promptpay = promptpay
2970
3027
  @qris = qris
2971
3028
  @revolut_pay = revolut_pay
@@ -3072,6 +3129,8 @@ module Stripe
3072
3129
  attr_reader :paypal
3073
3130
  # Attribute for field payto
3074
3131
  attr_reader :payto
3132
+ # Attribute for field pix
3133
+ attr_reader :pix
3075
3134
  # Attribute for field promptpay
3076
3135
  attr_reader :promptpay
3077
3136
  # Attribute for field qris
@@ -180,6 +180,28 @@ module Stripe
180
180
  attr_reader :pending_verification
181
181
  end
182
182
 
183
+ class UsCfpbData < Stripe::StripeObject
184
+ class EthnicityDetails < Stripe::StripeObject
185
+ # The persons ethnicity
186
+ attr_reader :ethnicity
187
+ # Please specify your origin, when other is selected.
188
+ attr_reader :ethnicity_other
189
+ end
190
+
191
+ class RaceDetails < Stripe::StripeObject
192
+ # The persons race.
193
+ attr_reader :race
194
+ # Please specify your race, when other is selected.
195
+ attr_reader :race_other
196
+ end
197
+ # The persons ethnicity details
198
+ attr_reader :ethnicity_details
199
+ # The persons race details
200
+ attr_reader :race_details
201
+ # The persons self-identified gender
202
+ attr_reader :self_identified_gender
203
+ end
204
+
183
205
  class Verification < Stripe::StripeObject
184
206
  class AdditionalDocument < Stripe::StripeObject
185
207
  # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
@@ -210,7 +232,7 @@ module Stripe
210
232
  attr_reader :details_code
211
233
  # Attribute for field document
212
234
  attr_reader :document
213
- # The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`.
235
+ # The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`. Please refer [guide](https://stripe.com/docs/connect/handling-api-verification) to handle verification updates.
214
236
  attr_reader :status
215
237
  end
216
238
  # The account the person is associated with.
@@ -273,6 +295,8 @@ module Stripe
273
295
  attr_reader :requirements
274
296
  # Whether the last four digits of the person's Social Security number have been provided (U.S. only).
275
297
  attr_reader :ssn_last_4_provided
298
+ # Demographic data related to the person.
299
+ attr_reader :us_cfpb_data
276
300
  # Attribute for field verification
277
301
  attr_reader :verification
278
302
  # Always true for a deleted object
@@ -8,6 +8,7 @@ module Stripe
8
8
  class RedactionJob < APIResource
9
9
  extend Stripe::APIOperations::Create
10
10
  extend Stripe::APIOperations::List
11
+ extend Stripe::APIOperations::NestedResource
11
12
  include Stripe::APIOperations::Save
12
13
 
13
14
  OBJECT_NAME = "privacy.redaction_job"
@@ -15,6 +16,8 @@ module Stripe
15
16
  "privacy.redaction_job"
16
17
  end
17
18
 
19
+ nested_resource_class_methods :validation_error, operations: %i[retrieve list]
20
+
18
21
  class ListParams < Stripe::RequestParams
19
22
  # 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.
20
23
  attr_accessor :ending_before
@@ -5,30 +5,11 @@ module Stripe
5
5
  module Privacy
6
6
  # Validation errors
7
7
  class RedactionJobValidationError < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
8
  OBJECT_NAME = "privacy.redaction_job_validation_error"
11
9
  def self.object_name
12
10
  "privacy.redaction_job_validation_error"
13
11
  end
14
12
 
15
- class ListParams < Stripe::RequestParams
16
- # 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.
17
- attr_accessor :ending_before
18
- # Specifies which fields in the response should be expanded.
19
- attr_accessor :expand
20
- # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
21
- attr_accessor :limit
22
- # 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.
23
- attr_accessor :starting_after
24
-
25
- def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
26
- @ending_before = ending_before
27
- @expand = expand
28
- @limit = limit
29
- @starting_after = starting_after
30
- end
31
- end
32
13
  # Attribute for field code
33
14
  attr_reader :code
34
15
  # Attribute for field erroring_object
@@ -39,16 +20,6 @@ module Stripe
39
20
  attr_reader :message
40
21
  # String representing the object's type. Objects of the same type share the same value.
41
22
  attr_reader :object
42
-
43
- # List validation errors method
44
- def self.list(job, params = {}, opts = {})
45
- request_stripe_object(
46
- method: :get,
47
- path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors", { job: CGI.escape(job) }),
48
- params: params,
49
- opts: opts
50
- )
51
- end
52
23
  end
53
24
  end
54
25
  end
@@ -405,6 +405,8 @@ module Stripe
405
405
  attr_reader :object
406
406
  # ID of the PaymentIntent that's refunded.
407
407
  attr_reader :payment_intent
408
+ # Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`.
409
+ attr_reader :pending_reason
408
410
  # Attribute for field presentment_details
409
411
  attr_reader :presentment_details
410
412
  # Reason for the refund, which is either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`).
@@ -548,12 +548,15 @@ module Stripe
548
548
  attr_accessor :name
549
549
  # Billing phone number (including extension).
550
550
  attr_accessor :phone
551
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
552
+ attr_accessor :tax_id
551
553
 
552
- def initialize(address: nil, email: nil, name: nil, phone: nil)
554
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
553
555
  @address = address
554
556
  @email = email
555
557
  @name = name
556
558
  @phone = phone
559
+ @tax_id = tax_id
557
560
  end
558
561
  end
559
562
 
@@ -1761,12 +1764,15 @@ module Stripe
1761
1764
  attr_accessor :name
1762
1765
  # Billing phone number (including extension).
1763
1766
  attr_accessor :phone
1767
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1768
+ attr_accessor :tax_id
1764
1769
 
1765
- def initialize(address: nil, email: nil, name: nil, phone: nil)
1770
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
1766
1771
  @address = address
1767
1772
  @email = email
1768
1773
  @name = name
1769
1774
  @phone = phone
1775
+ @tax_id = tax_id
1770
1776
  end
1771
1777
  end
1772
1778
 
@@ -2974,12 +2980,15 @@ module Stripe
2974
2980
  attr_accessor :name
2975
2981
  # Billing phone number (including extension).
2976
2982
  attr_accessor :phone
2983
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
2984
+ attr_accessor :tax_id
2977
2985
 
2978
- def initialize(address: nil, email: nil, name: nil, phone: nil)
2986
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
2979
2987
  @address = address
2980
2988
  @email = email
2981
2989
  @name = name
2982
2990
  @phone = phone
2991
+ @tax_id = tax_id
2983
2992
  end
2984
2993
  end
2985
2994
 
@@ -1299,7 +1299,7 @@ module Stripe
1299
1299
  "/#{CGI.escape(id)}"
1300
1300
  opts = Util.normalize_opts(opts)
1301
1301
  APIRequestor.active_requestor.execute_request_initialize_from(:delete, url, :api, self,
1302
- params: params, opts: opts)
1302
+ params: params, opts: RequestOptions.extract_opts_from_hash(opts))
1303
1303
  end
1304
1304
 
1305
1305
  def source_transactions(params = {}, opts = {})