stripe 19.2.0.pre.alpha.1 → 19.2.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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +9 -0
  3. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  4. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  5. data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
  6. data/lib/stripe/object_types.rb +1 -0
  7. data/lib/stripe/params/account_create_params.rb +27 -1
  8. data/lib/stripe/params/account_session_create_params.rb +34 -0
  9. data/lib/stripe/params/account_update_params.rb +26 -0
  10. data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
  11. data/lib/stripe/params/billing/meter_create_params.rb +1 -1
  12. data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
  13. data/lib/stripe/params/checkout/session_create_params.rb +24 -0
  14. data/lib/stripe/params/confirmation_token_create_params.rb +9 -0
  15. data/lib/stripe/params/customer_create_params.rb +1 -1
  16. data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
  17. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +32 -0
  18. data/lib/stripe/params/identity/verification_session_create_params.rb +2 -2
  19. data/lib/stripe/params/invoice_create_params.rb +5 -0
  20. data/lib/stripe/params/invoice_create_preview_params.rb +1 -1
  21. data/lib/stripe/params/invoice_update_params.rb +5 -0
  22. data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
  23. data/lib/stripe/params/issuing/card_create_params.rb +8 -0
  24. data/lib/stripe/params/issuing/card_update_params.rb +8 -0
  25. data/lib/stripe/params/issuing/cardholder_create_params.rb +8 -0
  26. data/lib/stripe/params/issuing/cardholder_update_params.rb +8 -0
  27. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +8 -0
  28. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  29. data/lib/stripe/params/order_create_params.rb +1 -1
  30. data/lib/stripe/params/order_update_params.rb +1 -1
  31. data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
  32. data/lib/stripe/params/payment_intent_confirm_params.rb +15 -4
  33. data/lib/stripe/params/payment_intent_create_params.rb +11 -4
  34. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +2 -2
  35. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
  36. data/lib/stripe/params/payment_intent_update_params.rb +11 -4
  37. data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
  39. data/lib/stripe/params/payment_method_create_params.rb +5 -0
  40. data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
  41. data/lib/stripe/params/setup_intent_confirm_params.rb +9 -0
  42. data/lib/stripe/params/setup_intent_create_params.rb +9 -0
  43. data/lib/stripe/params/setup_intent_update_params.rb +9 -0
  44. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +70 -0
  45. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  46. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  47. data/lib/stripe/params/subscription_create_params.rb +22 -1
  48. data/lib/stripe/params/subscription_update_params.rb +22 -1
  49. data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
  50. data/lib/stripe/params/tax/registration_create_params.rb +105 -1
  51. data/lib/stripe/params/tax_id_create_params.rb +1 -1
  52. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +9 -0
  53. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
  54. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +8 -0
  55. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +8 -0
  56. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
  57. data/lib/stripe/params/v2/core/account_create_params.rb +4 -4
  58. data/lib/stripe/params/v2/core/account_token_create_params.rb +2 -2
  59. data/lib/stripe/params/v2/core/account_update_params.rb +4 -4
  60. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
  61. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +22 -1
  62. data/lib/stripe/params.rb +4 -0
  63. data/lib/stripe/resources/account.rb +4 -0
  64. data/lib/stripe/resources/account_session.rb +54 -0
  65. data/lib/stripe/resources/balance_transaction.rb +2 -2
  66. data/lib/stripe/resources/charge.rb +25 -3
  67. data/lib/stripe/resources/checkout/session.rb +2 -2
  68. data/lib/stripe/resources/confirmation_token.rb +13 -0
  69. data/lib/stripe/resources/delegated_checkout/requested_session.rb +18 -1
  70. data/lib/stripe/resources/invoice.rb +16 -3
  71. data/lib/stripe/resources/issuing/authorization.rb +2 -0
  72. data/lib/stripe/resources/issuing/card.rb +4 -0
  73. data/lib/stripe/resources/issuing/cardholder.rb +4 -0
  74. data/lib/stripe/resources/order.rb +1 -1
  75. data/lib/stripe/resources/payment_attempt_record.rb +25 -5
  76. data/lib/stripe/resources/payment_intent.rb +24 -2
  77. data/lib/stripe/resources/payment_method.rb +15 -0
  78. data/lib/stripe/resources/payment_method_configuration.rb +34 -0
  79. data/lib/stripe/resources/payment_record.rb +25 -5
  80. data/lib/stripe/resources/privacy/redaction_job.rb +2 -0
  81. data/lib/stripe/resources/product.rb +18 -0
  82. data/lib/stripe/resources/quote_preview_invoice.rb +16 -3
  83. data/lib/stripe/resources/radar/payment_evaluation.rb +2 -2
  84. data/lib/stripe/resources/radar/value_list.rb +1 -1
  85. data/lib/stripe/resources/setup_attempt.rb +2 -0
  86. data/lib/stripe/resources/shared_payment/issued_token.rb +32 -0
  87. data/lib/stripe/resources/subscription.rb +30 -2
  88. data/lib/stripe/resources/tax/calculation.rb +2 -2
  89. data/lib/stripe/resources/tax/transaction.rb +2 -2
  90. data/lib/stripe/resources/tax_id.rb +1 -1
  91. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  92. data/lib/stripe/resources/v2/core/account.rb +7 -8
  93. data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
  94. data/lib/stripe/resources/v2/money_management/financial_address.rb +38 -0
  95. data/lib/stripe/resources/v2/money_management/received_credit.rb +84 -0
  96. data/lib/stripe/resources/v2/network/business_profile.rb +3 -3
  97. data/lib/stripe/resources.rb +4 -0
  98. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  99. data/lib/stripe/services/shared_payment_service.rb +2 -1
  100. data/lib/stripe/services/subscription_service.rb +1 -1
  101. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  102. data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
  103. data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
  104. data/lib/stripe/services/v2/{datum_service.rb → data_service.rb} +3 -2
  105. data/lib/stripe/services/v2/network/business_profile_service.rb +2 -2
  106. data/lib/stripe/services/v2_services.rb +1 -1
  107. data/lib/stripe/services.rb +4 -1
  108. data/lib/stripe/version.rb +1 -1
  109. data/rbi/stripe.rbi +2093 -427
  110. metadata +14 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e91274cc08fab35484b774d1f8a2b5a07b3d81948d2bb7cf50c362979b5cb38
4
- data.tar.gz: 9bbb263e21e41fc1f2ec43a4ecfc9d890402ed049b9b1c1cb1ad50b5876cdcb8
3
+ metadata.gz: 2972dbc5bb1450dc0cb3a1799657738b017edadc861dd338feb46a87f031c237
4
+ data.tar.gz: 19fe85021de82abcd36baba74e9b192567d02370d2edc3209fe09f3d24f14b77
5
5
  SHA512:
6
- metadata.gz: 0a53db277b3c2b3072e223da2bd60086a50c9fc1e6c697521713dc7288a7b62c1aafe222896676e95a2635884ca6e9512e321312a833927558ffe3f232ef15c3
7
- data.tar.gz: 9167c6801403dc0a9952c3257e176233d23f5f21424946fb027bf5d1face54002adb45c5e18b290712a27f5a2eaeb1c0f5e7a2d8948b3c6bcf55be7680da336b
6
+ metadata.gz: 2f8894aa9596d34fae67f0a5037d01f16f1ec1f51e9f6b7d9ee8c428c1a29fbbf6fa94650d4f78e8fa611f182438da6e3d0deb543b0243bd74deb63fba1e677a
7
+ data.tar.gz: 2d45f80604e7cbc3ba24a044d31ac4621525711b14fa4026d1d29106c1b2cd6410e898eeef7bb3e581cc7cc57007cb4b4e48c6479d1842b9b29dafd7c7393a5c
@@ -390,6 +390,8 @@ module Stripe
390
390
  Events::V2CoreApprovalRequestApprovedEvent,
391
391
  Events::V2CoreApprovalRequestCanceledEvent.lookup_type =>
392
392
  Events::V2CoreApprovalRequestCanceledEvent,
393
+ Events::V2CoreApprovalRequestCreatedEvent.lookup_type => Events::V2CoreApprovalRequestCreatedEvent,
394
+ Events::V2CoreApprovalRequestExpiredEvent.lookup_type => Events::V2CoreApprovalRequestExpiredEvent,
393
395
  Events::V2CoreApprovalRequestFailedEvent.lookup_type => Events::V2CoreApprovalRequestFailedEvent,
394
396
  Events::V2CoreApprovalRequestRejectedEvent.lookup_type =>
395
397
  Events::V2CoreApprovalRequestRejectedEvent,
@@ -466,6 +468,7 @@ module Stripe
466
468
  Events::V2DataReportingQueryRunSucceededEvent,
467
469
  Events::V2DataReportingQueryRunUpdatedEvent.lookup_type =>
468
470
  Events::V2DataReportingQueryRunUpdatedEvent,
471
+ Events::V2ExtendExtensionRunFailedEvent.lookup_type => Events::V2ExtendExtensionRunFailedEvent,
469
472
  Events::V2ExtendWorkflowRunFailedEvent.lookup_type => Events::V2ExtendWorkflowRunFailedEvent,
470
473
  Events::V2ExtendWorkflowRunStartedEvent.lookup_type => Events::V2ExtendWorkflowRunStartedEvent,
471
474
  Events::V2ExtendWorkflowRunSucceededEvent.lookup_type => Events::V2ExtendWorkflowRunSucceededEvent,
@@ -1112,6 +1115,10 @@ module Stripe
1112
1115
  Events::V2CoreApprovalRequestApprovedEventNotification,
1113
1116
  Events::V2CoreApprovalRequestCanceledEventNotification.lookup_type =>
1114
1117
  Events::V2CoreApprovalRequestCanceledEventNotification,
1118
+ Events::V2CoreApprovalRequestCreatedEventNotification.lookup_type =>
1119
+ Events::V2CoreApprovalRequestCreatedEventNotification,
1120
+ Events::V2CoreApprovalRequestExpiredEventNotification.lookup_type =>
1121
+ Events::V2CoreApprovalRequestExpiredEventNotification,
1115
1122
  Events::V2CoreApprovalRequestFailedEventNotification.lookup_type =>
1116
1123
  Events::V2CoreApprovalRequestFailedEventNotification,
1117
1124
  Events::V2CoreApprovalRequestRejectedEventNotification.lookup_type =>
@@ -1202,6 +1209,8 @@ module Stripe
1202
1209
  Events::V2DataReportingQueryRunSucceededEventNotification,
1203
1210
  Events::V2DataReportingQueryRunUpdatedEventNotification.lookup_type =>
1204
1211
  Events::V2DataReportingQueryRunUpdatedEventNotification,
1212
+ Events::V2ExtendExtensionRunFailedEventNotification.lookup_type =>
1213
+ Events::V2ExtendExtensionRunFailedEventNotification,
1205
1214
  Events::V2ExtendWorkflowRunFailedEventNotification.lookup_type =>
1206
1215
  Events::V2ExtendWorkflowRunFailedEventNotification,
1207
1216
  Events::V2ExtendWorkflowRunStartedEventNotification.lookup_type =>
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an approval request is created.
7
+ class V2CoreApprovalRequestCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.core.approval_request.created"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when an approval request is created.
25
+ class V2CoreApprovalRequestCreatedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.core.approval_request.created"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ApprovalRequest related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an approval request expires without being acted upon.
7
+ class V2CoreApprovalRequestExpiredEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.core.approval_request.expired"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when an approval request expires without being acted upon.
25
+ class V2CoreApprovalRequestExpiredEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.core.approval_request.expired"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ApprovalRequest related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,75 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an extension run fails.
7
+ class V2ExtendExtensionRunFailedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.extend.extension_run.failed"
10
+ end
11
+
12
+ class V2ExtendExtensionRunFailedEventData < ::Stripe::StripeObject
13
+ class Error < ::Stripe::StripeObject
14
+ # URL to the extension run in Workbench for deeper debugging.
15
+ attr_reader :debug_url
16
+ # Detailed error message.
17
+ attr_reader :message
18
+
19
+ def self.inner_class_types
20
+ @inner_class_types = {}
21
+ end
22
+
23
+ def self.field_remappings
24
+ @field_remappings = {}
25
+ end
26
+ end
27
+
28
+ class Extension < ::Stripe::StripeObject
29
+ # The extension's unique identifier.
30
+ attr_reader :id
31
+ # The extension method called where the failure occurred.
32
+ attr_reader :method
33
+ # Human-readable name of the extension.
34
+ attr_reader :name
35
+ # Version of the extension that failed.
36
+ attr_reader :version
37
+
38
+ def self.inner_class_types
39
+ @inner_class_types = {}
40
+ end
41
+
42
+ def self.field_remappings
43
+ @field_remappings = {}
44
+ end
45
+ end
46
+ # Details about the error that occurred.
47
+ attr_reader :error
48
+ # Details about the extension that failed.
49
+ attr_reader :extension
50
+ # The ID of the extension run that failed.
51
+ attr_reader :extension_run_id
52
+
53
+ def self.inner_class_types
54
+ @inner_class_types = { error: Error, extension: Extension }
55
+ end
56
+
57
+ def self.field_remappings
58
+ @field_remappings = {}
59
+ end
60
+ end
61
+
62
+ def self.inner_class_types
63
+ @inner_class_types = { data: V2ExtendExtensionRunFailedEventData }
64
+ end
65
+ attr_reader :data
66
+ end
67
+
68
+ # Occurs when an extension run fails.
69
+ class V2ExtendExtensionRunFailedEventNotification < Stripe::V2::Core::EventNotification
70
+ def self.lookup_type
71
+ "v2.extend.extension_run.failed"
72
+ end
73
+ end
74
+ end
75
+ end
@@ -255,6 +255,7 @@ module Stripe
255
255
  V2::Core::EventDestination.object_name => V2::Core::EventDestination,
256
256
  V2::Core::Vault::GbBankAccount.object_name => V2::Core::Vault::GbBankAccount,
257
257
  V2::Core::Vault::UsBankAccount.object_name => V2::Core::Vault::UsBankAccount,
258
+ V2::Data::Analytics::MetricQueryResult.object_name => V2::Data::Analytics::MetricQueryResult,
258
259
  V2::Data::Reporting::QueryRun.object_name => V2::Data::Reporting::QueryRun,
259
260
  V2::Extend::Workflow.object_name => V2::Extend::Workflow,
260
261
  V2::Extend::WorkflowRun.object_name => V2::Extend::WorkflowRun,
@@ -200,6 +200,15 @@ module Stripe
200
200
  end
201
201
  end
202
202
 
203
+ class AppDistribution < ::Stripe::RequestParams
204
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
205
+ attr_accessor :requested
206
+
207
+ def initialize(requested: nil)
208
+ @requested = requested
209
+ end
210
+ end
211
+
203
212
  class AuBecsDebitPayments < ::Stripe::RequestParams
204
213
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
205
214
  attr_accessor :requested
@@ -713,6 +722,15 @@ module Stripe
713
722
  end
714
723
  end
715
724
 
725
+ class SunbitPayments < ::Stripe::RequestParams
726
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
727
+ attr_accessor :requested
728
+
729
+ def initialize(requested: nil)
730
+ @requested = requested
731
+ end
732
+ end
733
+
716
734
  class SwishPayments < ::Stripe::RequestParams
717
735
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
718
736
  attr_accessor :requested
@@ -839,6 +857,8 @@ module Stripe
839
857
  attr_accessor :alma_payments
840
858
  # The amazon_pay_payments capability.
841
859
  attr_accessor :amazon_pay_payments
860
+ # The app_distribution capability.
861
+ attr_accessor :app_distribution
842
862
  # The au_becs_debit_payments capability.
843
863
  attr_accessor :au_becs_debit_payments
844
864
  # The automatic_indirect_tax capability.
@@ -953,6 +973,8 @@ module Stripe
953
973
  attr_accessor :sofort_payments
954
974
  # The stripe_balance_payments capability.
955
975
  attr_accessor :stripe_balance_payments
976
+ # The sunbit_payments capability.
977
+ attr_accessor :sunbit_payments
956
978
  # The swish_payments capability.
957
979
  attr_accessor :swish_payments
958
980
  # The tax_reporting_us_1099_k capability.
@@ -986,6 +1008,7 @@ module Stripe
986
1008
  afterpay_clearpay_payments: nil,
987
1009
  alma_payments: nil,
988
1010
  amazon_pay_payments: nil,
1011
+ app_distribution: nil,
989
1012
  au_becs_debit_payments: nil,
990
1013
  automatic_indirect_tax: nil,
991
1014
  bacs_debit_payments: nil,
@@ -1043,6 +1066,7 @@ module Stripe
1043
1066
  shopeepay_payments: nil,
1044
1067
  sofort_payments: nil,
1045
1068
  stripe_balance_payments: nil,
1069
+ sunbit_payments: nil,
1046
1070
  swish_payments: nil,
1047
1071
  tax_reporting_us_1099_k: nil,
1048
1072
  tax_reporting_us_1099_misc: nil,
@@ -1062,6 +1086,7 @@ module Stripe
1062
1086
  @afterpay_clearpay_payments = afterpay_clearpay_payments
1063
1087
  @alma_payments = alma_payments
1064
1088
  @amazon_pay_payments = amazon_pay_payments
1089
+ @app_distribution = app_distribution
1065
1090
  @au_becs_debit_payments = au_becs_debit_payments
1066
1091
  @automatic_indirect_tax = automatic_indirect_tax
1067
1092
  @bacs_debit_payments = bacs_debit_payments
@@ -1119,6 +1144,7 @@ module Stripe
1119
1144
  @shopeepay_payments = shopeepay_payments
1120
1145
  @sofort_payments = sofort_payments
1121
1146
  @stripe_balance_payments = stripe_balance_payments
1147
+ @sunbit_payments = sunbit_payments
1122
1148
  @swish_payments = swish_payments
1123
1149
  @tax_reporting_us_1099_k = tax_reporting_us_1099_k
1124
1150
  @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
@@ -2507,7 +2533,7 @@ module Stripe
2507
2533
  attr_accessor :settings
2508
2534
  # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
2509
2535
  attr_accessor :tos_acceptance
2510
- # The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
2536
+ # The `type` parameter is deprecated. Use [`controller`](/api/accounts/create#create_account-controller) instead to configure dashboard access, fee payer, loss liability, and requirement collection.
2511
2537
  attr_accessor :type
2512
2538
 
2513
2539
  def initialize(
@@ -103,6 +103,19 @@ module Stripe
103
103
  end
104
104
  end
105
105
 
106
+ class BalanceReport < ::Stripe::RequestParams
107
+ class Features < ::Stripe::RequestParams; end
108
+ # Whether the embedded component is enabled.
109
+ attr_accessor :enabled
110
+ # An empty list, because this embedded component has no features.
111
+ attr_accessor :features
112
+
113
+ def initialize(enabled: nil, features: nil)
114
+ @enabled = enabled
115
+ @features = features
116
+ end
117
+ end
118
+
106
119
  class Balances < ::Stripe::RequestParams
107
120
  class Features < ::Stripe::RequestParams
108
121
  # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -576,6 +589,19 @@ module Stripe
576
589
  end
577
590
  end
578
591
 
592
+ class PayoutReconciliationReport < ::Stripe::RequestParams
593
+ class Features < ::Stripe::RequestParams; end
594
+ # Whether the embedded component is enabled.
595
+ attr_accessor :enabled
596
+ # An empty list, because this embedded component has no features.
597
+ attr_accessor :features
598
+
599
+ def initialize(enabled: nil, features: nil)
600
+ @enabled = enabled
601
+ @features = features
602
+ end
603
+ end
604
+
579
605
  class Payouts < ::Stripe::RequestParams
580
606
  class Features < ::Stripe::RequestParams
581
607
  # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -747,6 +773,8 @@ module Stripe
747
773
  attr_accessor :app_install
748
774
  # Configuration for the [app viewport](/connect/supported-embedded-components/app-viewport/) embedded component.
749
775
  attr_accessor :app_viewport
776
+ # Configuration for the [balance report](/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
777
+ attr_accessor :balance_report
750
778
  # Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
751
779
  attr_accessor :balances
752
780
  # Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
@@ -787,6 +815,8 @@ module Stripe
787
815
  attr_accessor :payments
788
816
  # Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.
789
817
  attr_accessor :payout_details
818
+ # Configuration for the [payout reconciliation report](/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
819
+ attr_accessor :payout_reconciliation_report
790
820
  # Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
791
821
  attr_accessor :payouts
792
822
  # Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
@@ -814,6 +844,7 @@ module Stripe
814
844
  agentic_commerce_settings: nil,
815
845
  app_install: nil,
816
846
  app_viewport: nil,
847
+ balance_report: nil,
817
848
  balances: nil,
818
849
  capital_financing: nil,
819
850
  capital_financing_application: nil,
@@ -834,6 +865,7 @@ module Stripe
834
865
  payment_method_settings: nil,
835
866
  payments: nil,
836
867
  payout_details: nil,
868
+ payout_reconciliation_report: nil,
837
869
  payouts: nil,
838
870
  payouts_list: nil,
839
871
  product_tax_code_selector: nil,
@@ -850,6 +882,7 @@ module Stripe
850
882
  @agentic_commerce_settings = agentic_commerce_settings
851
883
  @app_install = app_install
852
884
  @app_viewport = app_viewport
885
+ @balance_report = balance_report
853
886
  @balances = balances
854
887
  @capital_financing = capital_financing
855
888
  @capital_financing_application = capital_financing_application
@@ -870,6 +903,7 @@ module Stripe
870
903
  @payment_method_settings = payment_method_settings
871
904
  @payments = payments
872
905
  @payout_details = payout_details
906
+ @payout_reconciliation_report = payout_reconciliation_report
873
907
  @payouts = payouts
874
908
  @payouts_list = payouts_list
875
909
  @product_tax_code_selector = product_tax_code_selector
@@ -200,6 +200,15 @@ module Stripe
200
200
  end
201
201
  end
202
202
 
203
+ class AppDistribution < ::Stripe::RequestParams
204
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
205
+ attr_accessor :requested
206
+
207
+ def initialize(requested: nil)
208
+ @requested = requested
209
+ end
210
+ end
211
+
203
212
  class AuBecsDebitPayments < ::Stripe::RequestParams
204
213
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
205
214
  attr_accessor :requested
@@ -713,6 +722,15 @@ module Stripe
713
722
  end
714
723
  end
715
724
 
725
+ class SunbitPayments < ::Stripe::RequestParams
726
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
727
+ attr_accessor :requested
728
+
729
+ def initialize(requested: nil)
730
+ @requested = requested
731
+ end
732
+ end
733
+
716
734
  class SwishPayments < ::Stripe::RequestParams
717
735
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
718
736
  attr_accessor :requested
@@ -839,6 +857,8 @@ module Stripe
839
857
  attr_accessor :alma_payments
840
858
  # The amazon_pay_payments capability.
841
859
  attr_accessor :amazon_pay_payments
860
+ # The app_distribution capability.
861
+ attr_accessor :app_distribution
842
862
  # The au_becs_debit_payments capability.
843
863
  attr_accessor :au_becs_debit_payments
844
864
  # The automatic_indirect_tax capability.
@@ -953,6 +973,8 @@ module Stripe
953
973
  attr_accessor :sofort_payments
954
974
  # The stripe_balance_payments capability.
955
975
  attr_accessor :stripe_balance_payments
976
+ # The sunbit_payments capability.
977
+ attr_accessor :sunbit_payments
956
978
  # The swish_payments capability.
957
979
  attr_accessor :swish_payments
958
980
  # The tax_reporting_us_1099_k capability.
@@ -986,6 +1008,7 @@ module Stripe
986
1008
  afterpay_clearpay_payments: nil,
987
1009
  alma_payments: nil,
988
1010
  amazon_pay_payments: nil,
1011
+ app_distribution: nil,
989
1012
  au_becs_debit_payments: nil,
990
1013
  automatic_indirect_tax: nil,
991
1014
  bacs_debit_payments: nil,
@@ -1043,6 +1066,7 @@ module Stripe
1043
1066
  shopeepay_payments: nil,
1044
1067
  sofort_payments: nil,
1045
1068
  stripe_balance_payments: nil,
1069
+ sunbit_payments: nil,
1046
1070
  swish_payments: nil,
1047
1071
  tax_reporting_us_1099_k: nil,
1048
1072
  tax_reporting_us_1099_misc: nil,
@@ -1062,6 +1086,7 @@ module Stripe
1062
1086
  @afterpay_clearpay_payments = afterpay_clearpay_payments
1063
1087
  @alma_payments = alma_payments
1064
1088
  @amazon_pay_payments = amazon_pay_payments
1089
+ @app_distribution = app_distribution
1065
1090
  @au_becs_debit_payments = au_becs_debit_payments
1066
1091
  @automatic_indirect_tax = automatic_indirect_tax
1067
1092
  @bacs_debit_payments = bacs_debit_payments
@@ -1119,6 +1144,7 @@ module Stripe
1119
1144
  @shopeepay_payments = shopeepay_payments
1120
1145
  @sofort_payments = sofort_payments
1121
1146
  @stripe_balance_payments = stripe_balance_payments
1147
+ @sunbit_payments = sunbit_payments
1122
1148
  @swish_payments = swish_payments
1123
1149
  @tax_reporting_us_1099_k = tax_reporting_us_1099_k
1124
1150
  @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
@@ -36,7 +36,7 @@ module Stripe
36
36
  attr_accessor :source
37
37
  # 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.
38
38
  attr_accessor :starting_after
39
- # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
39
+ # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
40
40
  attr_accessor :type
41
41
 
42
42
  def initialize(
@@ -17,7 +17,7 @@ module Stripe
17
17
  end
18
18
 
19
19
  class DefaultAggregation < ::Stripe::RequestParams
20
- # Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window.
20
+ # Specifies how events are aggregated.
21
21
  attr_accessor :formula
22
22
 
23
23
  def initialize(formula: nil)
@@ -8,7 +8,7 @@ module Stripe
8
8
  attr_accessor :event_name
9
9
  # Specifies which fields in the response should be expanded.
10
10
  attr_accessor :expand
11
- # A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
11
+ # A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
12
12
  attr_accessor :identifier
13
13
  # The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes).
14
14
  attr_accessor :payload
@@ -1139,6 +1139,26 @@ module Stripe
1139
1139
  end
1140
1140
  end
1141
1141
 
1142
+ class Blik < ::Stripe::RequestParams
1143
+ class MandateOptions < ::Stripe::RequestParams
1144
+ # Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
1145
+ attr_accessor :expires_after
1146
+
1147
+ def initialize(expires_after: nil)
1148
+ @expires_after = expires_after
1149
+ end
1150
+ end
1151
+ # Additional fields for Mandate creation
1152
+ attr_accessor :mandate_options
1153
+ # Attribute for param field setup_future_usage
1154
+ attr_accessor :setup_future_usage
1155
+
1156
+ def initialize(mandate_options: nil, setup_future_usage: nil)
1157
+ @mandate_options = mandate_options
1158
+ @setup_future_usage = setup_future_usage
1159
+ end
1160
+ end
1161
+
1142
1162
  class Boleto < ::Stripe::RequestParams
1143
1163
  # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
1144
1164
  attr_accessor :expires_after_days
@@ -2024,6 +2044,8 @@ module Stripe
2024
2044
  attr_accessor :billie
2025
2045
  # contains details about the Bizum payment method options.
2026
2046
  attr_accessor :bizum
2047
+ # contains details about the BLIK payment method options.
2048
+ attr_accessor :blik
2027
2049
  # contains details about the Boleto payment method options.
2028
2050
  attr_accessor :boleto
2029
2051
  # contains details about the Card payment method options.
@@ -2111,6 +2133,7 @@ module Stripe
2111
2133
  bancontact: nil,
2112
2134
  billie: nil,
2113
2135
  bizum: nil,
2136
+ blik: nil,
2114
2137
  boleto: nil,
2115
2138
  card: nil,
2116
2139
  cashapp: nil,
@@ -2160,6 +2183,7 @@ module Stripe
2160
2183
  @bancontact = bancontact
2161
2184
  @billie = billie
2162
2185
  @bizum = bizum
2186
+ @blik = blik
2163
2187
  @boleto = boleto
2164
2188
  @card = card
2165
2189
  @cashapp = cashapp
@@ -335,6 +335,7 @@ module Stripe
335
335
  end
336
336
  end
337
337
 
338
+ class Sunbit < ::Stripe::RequestParams; end
338
339
  class Swish < ::Stripe::RequestParams; end
339
340
  class Twint < ::Stripe::RequestParams; end
340
341
 
@@ -499,12 +500,16 @@ module Stripe
499
500
  attr_accessor :satispay
500
501
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
501
502
  attr_accessor :sepa_debit
503
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
504
+ attr_accessor :shared_payment_granted_token
502
505
  # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
503
506
  attr_accessor :shopeepay
504
507
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
505
508
  attr_accessor :sofort
506
509
  # This hash contains details about the Stripe balance payment method.
507
510
  attr_accessor :stripe_balance
511
+ # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
512
+ attr_accessor :sunbit
508
513
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
509
514
  attr_accessor :swish
510
515
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -574,9 +579,11 @@ module Stripe
574
579
  samsung_pay: nil,
575
580
  satispay: nil,
576
581
  sepa_debit: nil,
582
+ shared_payment_granted_token: nil,
577
583
  shopeepay: nil,
578
584
  sofort: nil,
579
585
  stripe_balance: nil,
586
+ sunbit: nil,
580
587
  swish: nil,
581
588
  twint: nil,
582
589
  type: nil,
@@ -638,9 +645,11 @@ module Stripe
638
645
  @samsung_pay = samsung_pay
639
646
  @satispay = satispay
640
647
  @sepa_debit = sepa_debit
648
+ @shared_payment_granted_token = shared_payment_granted_token
641
649
  @shopeepay = shopeepay
642
650
  @sofort = sofort
643
651
  @stripe_balance = stripe_balance
652
+ @sunbit = sunbit
644
653
  @swish = swish
645
654
  @twint = twint
646
655
  @type = type
@@ -149,7 +149,7 @@ module Stripe
149
149
  end
150
150
 
151
151
  class TaxIdDatum < ::Stripe::RequestParams
152
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
152
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
153
153
  attr_accessor :type
154
154
  # Value of the tax ID.
155
155
  attr_accessor :value
@@ -5,7 +5,7 @@ module Stripe
5
5
  class CustomerTaxIdCreateParams < ::Stripe::RequestParams
6
6
  # Specifies which fields in the response should be expanded.
7
7
  attr_accessor :expand
8
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
8
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
9
9
  attr_accessor :type
10
10
  # Value of the tax ID.
11
11
  attr_accessor :value