stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +28 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  6. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  11. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  15. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  16. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  17. data/lib/stripe/object_types.rb +5 -0
  18. data/lib/stripe/params/account_session_create_params.rb +200 -0
  19. data/lib/stripe/params/checkout/session_create_params.rb +46 -1
  20. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  21. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  22. data/lib/stripe/params/customer_update_params.rb +55 -0
  23. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  24. data/lib/stripe/params/invoice_create_params.rb +8 -1
  25. data/lib/stripe/params/invoice_update_params.rb +8 -1
  26. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
  27. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  28. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  31. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  32. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  33. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  34. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  35. data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
  36. data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
  37. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  39. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  40. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  41. data/lib/stripe/params/quote_create_params.rb +1 -1
  42. data/lib/stripe/params/quote_update_params.rb +1 -1
  43. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
  44. data/lib/stripe/params/refund_create_params.rb +4 -0
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
  46. data/lib/stripe/params/setup_intent_create_params.rb +50 -1
  47. data/lib/stripe/params/setup_intent_update_params.rb +34 -1
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  49. data/lib/stripe/params/subscription_create_params.rb +4 -0
  50. data/lib/stripe/params/subscription_list_params.rb +5 -1
  51. data/lib/stripe/params/subscription_update_params.rb +4 -0
  52. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  53. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  54. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  55. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  56. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  57. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  58. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  59. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  60. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  61. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  62. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  65. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  66. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  67. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  68. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  69. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  70. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  71. data/lib/stripe/params.rb +27 -0
  72. data/lib/stripe/resources/account_session.rb +81 -0
  73. data/lib/stripe/resources/apps/install.rb +1 -1
  74. data/lib/stripe/resources/balance_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +373 -5
  76. data/lib/stripe/resources/checkout/session.rb +32 -0
  77. data/lib/stripe/resources/confirmation_token.rb +103 -3
  78. data/lib/stripe/resources/coupon.rb +6 -3
  79. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  80. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  81. data/lib/stripe/resources/invoice.rb +3 -0
  82. data/lib/stripe/resources/mandate.rb +16 -0
  83. data/lib/stripe/resources/payment_attempt_record.rb +151 -2
  84. data/lib/stripe/resources/payment_intent.rb +126 -2
  85. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  86. data/lib/stripe/resources/payment_method.rb +103 -3
  87. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  88. data/lib/stripe/resources/payment_record.rb +151 -2
  89. data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
  90. data/lib/stripe/resources/refund.rb +38 -0
  91. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  92. data/lib/stripe/resources/reserve/hold.rb +2 -2
  93. data/lib/stripe/resources/reserve/plan.rb +1 -1
  94. data/lib/stripe/resources/reserve/release.rb +1 -1
  95. data/lib/stripe/resources/setup_attempt.rb +21 -2
  96. data/lib/stripe/resources/setup_intent.rb +38 -2
  97. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  98. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  99. data/lib/stripe/resources/subscription.rb +3 -1
  100. data/lib/stripe/resources/tax/certificate.rb +81 -0
  101. data/lib/stripe/resources/tax/form.rb +11 -0
  102. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  103. data/lib/stripe/resources/terminal/reader.rb +18 -1
  104. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  105. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  106. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  107. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  108. data/lib/stripe/resources/v2/core/event.rb +1 -1
  109. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  110. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  111. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  112. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  113. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  114. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  116. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  117. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  118. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  119. data/lib/stripe/resources.rb +46 -0
  120. data/lib/stripe/services/apps/install_service.rb +1 -1
  121. data/lib/stripe/services/checkout/session_service.rb +2 -0
  122. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  123. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  124. data/lib/stripe/services/reserve/release_service.rb +2 -2
  125. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  126. data/lib/stripe/services/tax/form_service.rb +11 -0
  127. data/lib/stripe/services/tax_service.rb +2 -1
  128. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  129. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  130. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  131. data/lib/stripe/services/v2/extend_service.rb +2 -1
  132. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  133. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  134. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  135. data/lib/stripe/services.rb +11 -0
  136. data/lib/stripe/stripe_event_notification_handler.rb +28 -0
  137. data/lib/stripe/stripe_service.rb +13 -9
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe/webhook.rb +68 -3
  140. data/lib/stripe/workload_identity_exchange.rb +2 -2
  141. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  142. data/rbi/stripe.rbi +5856 -213
  143. metadata +32 -2
@@ -1156,6 +1156,8 @@ module Stripe
1156
1156
  attr_accessor :billing_cadence
1157
1157
  # Controls how the subscription's billing cycle anchor changes. Set `type` to `now` to reset the billing cycle anchor to the current time (in UTC), or `unchanged` to preserve it. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
1158
1158
  attr_accessor :billing_cycle_anchor
1159
+ # The Billing Group which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
1160
+ attr_accessor :billing_group
1159
1161
  # An array of billing schedules, which allow you to bill customers in advance for multiple service periods. Requires flexible billing mode and API version 2026-05-27.dahlia or later. Learn more about [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling).
1160
1162
  attr_accessor :billing_schedules
1161
1163
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
@@ -1223,6 +1225,7 @@ module Stripe
1223
1225
  automatic_tax: nil,
1224
1226
  billing_cadence: nil,
1225
1227
  billing_cycle_anchor: nil,
1228
+ billing_group: nil,
1226
1229
  billing_schedules: nil,
1227
1230
  billing_thresholds: nil,
1228
1231
  cancel_at: nil,
@@ -1259,6 +1262,7 @@ module Stripe
1259
1262
  @automatic_tax = automatic_tax
1260
1263
  @billing_cadence = billing_cadence
1261
1264
  @billing_cycle_anchor = billing_cycle_anchor
1265
+ @billing_group = billing_group
1262
1266
  @billing_schedules = billing_schedules
1263
1267
  @billing_thresholds = billing_thresholds
1264
1268
  @cancel_at = cancel_at
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class CertificateCreateParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+ # The ID of a file uploaded with purpose `tax_certificate`.
10
+ attr_accessor :file
11
+ # The ID of an existing tax exemption.
12
+ attr_accessor :tax_exemption
13
+
14
+ def initialize(expand: nil, file: nil, tax_exemption: nil)
15
+ @expand = expand
16
+ @file = file
17
+ @tax_exemption = tax_exemption
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,8 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class CertificateDeleteParams < ::Stripe::RequestParams; end
7
+ end
8
+ end
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class CertificateListParams < ::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
+ # The ID of an existing tax exemption.
16
+ attr_accessor :tax_exemption
17
+
18
+ def initialize(
19
+ ending_before: nil,
20
+ expand: nil,
21
+ limit: nil,
22
+ starting_after: nil,
23
+ tax_exemption: nil
24
+ )
25
+ @ending_before = ending_before
26
+ @expand = expand
27
+ @limit = limit
28
+ @starting_after = starting_after
29
+ @tax_exemption = tax_exemption
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class CertificateRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,504 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class FormCreateParams < ::Stripe::RequestParams
7
+ class PayeeDetails < ::Stripe::RequestParams
8
+ class Address < ::Stripe::RequestParams
9
+ # The city of the payee's address.
10
+ attr_accessor :city
11
+ # The two-letter country code of the payee's address.
12
+ attr_accessor :country
13
+ # The first line of the payee's address.
14
+ attr_accessor :line1
15
+ # The second line of the payee's address. An empty string clears this field.
16
+ attr_accessor :line2
17
+ # The postal code of the payee's address.
18
+ attr_accessor :postal_code
19
+ # The state of the payee's address.
20
+ attr_accessor :state
21
+
22
+ def initialize(
23
+ city: nil,
24
+ country: nil,
25
+ line1: nil,
26
+ line2: nil,
27
+ postal_code: nil,
28
+ state: nil
29
+ )
30
+ @city = city
31
+ @country = country
32
+ @line1 = line1
33
+ @line2 = line2
34
+ @postal_code = postal_code
35
+ @state = state
36
+ end
37
+ end
38
+ # The payee's replacement address fields. Omitted fields remain unchanged.
39
+ attr_accessor :address
40
+ # The payee's merchant category code.
41
+ attr_accessor :merchant_category_code
42
+ # The first line of the payee's name.
43
+ attr_accessor :name_line_1
44
+ # The second line of the payee's name. An empty string clears this field.
45
+ attr_accessor :name_line_2
46
+ # The payee's US taxpayer identification number.
47
+ attr_accessor :tax_id_number
48
+ # The payee's Treasury tipped occupation code, where supported by the reporting year and form type.
49
+ attr_accessor :treasury_tipped_occupation_code
50
+
51
+ def initialize(
52
+ address: nil,
53
+ merchant_category_code: nil,
54
+ name_line_1: nil,
55
+ name_line_2: nil,
56
+ tax_id_number: nil,
57
+ treasury_tipped_occupation_code: nil
58
+ )
59
+ @address = address
60
+ @merchant_category_code = merchant_category_code
61
+ @name_line_1 = name_line_1
62
+ @name_line_2 = name_line_2
63
+ @tax_id_number = tax_id_number
64
+ @treasury_tipped_occupation_code = treasury_tipped_occupation_code
65
+ end
66
+ end
67
+
68
+ class Us1099K < ::Stripe::RequestParams
69
+ class CardNotPresentTransactions < ::Stripe::RequestParams
70
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
71
+ attr_accessor :volume_decimal
72
+
73
+ def initialize(volume_decimal: nil)
74
+ @volume_decimal = volume_decimal
75
+ end
76
+ end
77
+
78
+ class CashTips < ::Stripe::RequestParams
79
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
80
+ attr_accessor :volume_decimal
81
+
82
+ def initialize(volume_decimal: nil)
83
+ @volume_decimal = volume_decimal
84
+ end
85
+ end
86
+
87
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
88
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
89
+ attr_accessor :volume_decimal
90
+
91
+ def initialize(volume_decimal: nil)
92
+ @volume_decimal = volume_decimal
93
+ end
94
+ end
95
+
96
+ class MonthlyVolume < ::Stripe::RequestParams
97
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
98
+ attr_accessor :volume_decimal
99
+
100
+ def initialize(volume_decimal: nil)
101
+ @volume_decimal = volume_decimal
102
+ end
103
+ end
104
+
105
+ class PaymentTransactionsCount < ::Stripe::RequestParams
106
+ # The replacement non-negative transaction count.
107
+ attr_accessor :count
108
+
109
+ def initialize(count: nil)
110
+ @count = count
111
+ end
112
+ end
113
+
114
+ class StateIncomeTaxWithheld < ::Stripe::RequestParams
115
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
116
+ attr_accessor :volume_decimal
117
+
118
+ def initialize(volume_decimal: nil)
119
+ @volume_decimal = volume_decimal
120
+ end
121
+ end
122
+ # Replacement card-not-present transaction amount.
123
+ attr_accessor :card_not_present_transactions
124
+ # Replacement cash tips, where supported by the reporting year.
125
+ attr_accessor :cash_tips
126
+ # Replacement federal income tax withheld.
127
+ attr_accessor :federal_income_tax_withheld
128
+ # Replacement amounts for all twelve months, from January through December.
129
+ attr_accessor :monthly_volumes
130
+ # Replacement payment transaction count.
131
+ attr_accessor :payment_transactions_count
132
+ # Replacement state income tax withheld.
133
+ attr_accessor :state_income_tax_withheld
134
+
135
+ def initialize(
136
+ card_not_present_transactions: nil,
137
+ cash_tips: nil,
138
+ federal_income_tax_withheld: nil,
139
+ monthly_volumes: nil,
140
+ payment_transactions_count: nil,
141
+ state_income_tax_withheld: nil
142
+ )
143
+ @card_not_present_transactions = card_not_present_transactions
144
+ @cash_tips = cash_tips
145
+ @federal_income_tax_withheld = federal_income_tax_withheld
146
+ @monthly_volumes = monthly_volumes
147
+ @payment_transactions_count = payment_transactions_count
148
+ @state_income_tax_withheld = state_income_tax_withheld
149
+ end
150
+ end
151
+
152
+ class Us1099Misc < ::Stripe::RequestParams
153
+ class CashTips < ::Stripe::RequestParams
154
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
155
+ attr_accessor :volume_decimal
156
+
157
+ def initialize(volume_decimal: nil)
158
+ @volume_decimal = volume_decimal
159
+ end
160
+ end
161
+
162
+ class CropInsuranceProceeds < ::Stripe::RequestParams
163
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
164
+ attr_accessor :volume_decimal
165
+
166
+ def initialize(volume_decimal: nil)
167
+ @volume_decimal = volume_decimal
168
+ end
169
+ end
170
+
171
+ class ExcessGoldenParachutePayments < ::Stripe::RequestParams
172
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
173
+ attr_accessor :volume_decimal
174
+
175
+ def initialize(volume_decimal: nil)
176
+ @volume_decimal = volume_decimal
177
+ end
178
+ end
179
+
180
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
181
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
182
+ attr_accessor :volume_decimal
183
+
184
+ def initialize(volume_decimal: nil)
185
+ @volume_decimal = volume_decimal
186
+ end
187
+ end
188
+
189
+ class FishPurchasedForResale < ::Stripe::RequestParams
190
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
191
+ attr_accessor :volume_decimal
192
+
193
+ def initialize(volume_decimal: nil)
194
+ @volume_decimal = volume_decimal
195
+ end
196
+ end
197
+
198
+ class FishingBoatProceeds < ::Stripe::RequestParams
199
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
200
+ attr_accessor :volume_decimal
201
+
202
+ def initialize(volume_decimal: nil)
203
+ @volume_decimal = volume_decimal
204
+ end
205
+ end
206
+
207
+ class GrossProceedsPaidToAnAttorney < ::Stripe::RequestParams
208
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
209
+ attr_accessor :volume_decimal
210
+
211
+ def initialize(volume_decimal: nil)
212
+ @volume_decimal = volume_decimal
213
+ end
214
+ end
215
+
216
+ class MedicalAndHealthCarePayments < ::Stripe::RequestParams
217
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
218
+ attr_accessor :volume_decimal
219
+
220
+ def initialize(volume_decimal: nil)
221
+ @volume_decimal = volume_decimal
222
+ end
223
+ end
224
+
225
+ class NonqualifiedDeferredCompensation < ::Stripe::RequestParams
226
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
227
+ attr_accessor :volume_decimal
228
+
229
+ def initialize(volume_decimal: nil)
230
+ @volume_decimal = volume_decimal
231
+ end
232
+ end
233
+
234
+ class OtherIncome < ::Stripe::RequestParams
235
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
236
+ attr_accessor :volume_decimal
237
+
238
+ def initialize(volume_decimal: nil)
239
+ @volume_decimal = volume_decimal
240
+ end
241
+ end
242
+
243
+ class OvertimeCompensation < ::Stripe::RequestParams
244
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
245
+ attr_accessor :volume_decimal
246
+
247
+ def initialize(volume_decimal: nil)
248
+ @volume_decimal = volume_decimal
249
+ end
250
+ end
251
+
252
+ class Rents < ::Stripe::RequestParams
253
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
254
+ attr_accessor :volume_decimal
255
+
256
+ def initialize(volume_decimal: nil)
257
+ @volume_decimal = volume_decimal
258
+ end
259
+ end
260
+
261
+ class Royalties < ::Stripe::RequestParams
262
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
263
+ attr_accessor :volume_decimal
264
+
265
+ def initialize(volume_decimal: nil)
266
+ @volume_decimal = volume_decimal
267
+ end
268
+ end
269
+
270
+ class Section409aDeferrals < ::Stripe::RequestParams
271
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
272
+ attr_accessor :volume_decimal
273
+
274
+ def initialize(volume_decimal: nil)
275
+ @volume_decimal = volume_decimal
276
+ end
277
+ end
278
+
279
+ class StateIncome < ::Stripe::RequestParams
280
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
281
+ attr_accessor :volume_decimal
282
+
283
+ def initialize(volume_decimal: nil)
284
+ @volume_decimal = volume_decimal
285
+ end
286
+ end
287
+
288
+ class StateTaxWithheld < ::Stripe::RequestParams
289
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
290
+ attr_accessor :volume_decimal
291
+
292
+ def initialize(volume_decimal: nil)
293
+ @volume_decimal = volume_decimal
294
+ end
295
+ end
296
+
297
+ class SubstitutePayments < ::Stripe::RequestParams
298
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
299
+ attr_accessor :volume_decimal
300
+
301
+ def initialize(volume_decimal: nil)
302
+ @volume_decimal = volume_decimal
303
+ end
304
+ end
305
+ # Replacement cash tips, where supported by the reporting year.
306
+ attr_accessor :cash_tips
307
+ # Replacement crop insurance proceeds.
308
+ attr_accessor :crop_insurance_proceeds
309
+ # Replacement direct-sales-for-resale indicator.
310
+ attr_accessor :direct_sales_for_resale
311
+ # Replacement excess golden parachute payments, where supported by the reporting year.
312
+ attr_accessor :excess_golden_parachute_payments
313
+ # Replacement FATCA filing requirement; cannot be supplied without a substantive correction.
314
+ attr_accessor :fatca_filing_required
315
+ # Replacement federal income tax withheld.
316
+ attr_accessor :federal_income_tax_withheld
317
+ # Replacement fish purchased for resale.
318
+ attr_accessor :fish_purchased_for_resale
319
+ # Replacement fishing boat proceeds.
320
+ attr_accessor :fishing_boat_proceeds
321
+ # Replacement gross proceeds paid to an attorney.
322
+ attr_accessor :gross_proceeds_paid_to_an_attorney
323
+ # Replacement medical and health care payments.
324
+ attr_accessor :medical_and_health_care_payments
325
+ # Replacement nonqualified deferred compensation.
326
+ attr_accessor :nonqualified_deferred_compensation
327
+ # Replacement other income.
328
+ attr_accessor :other_income
329
+ # Replacement overtime compensation, where supported by the reporting year.
330
+ attr_accessor :overtime_compensation
331
+ # Replacement rents.
332
+ attr_accessor :rents
333
+ # Replacement royalties.
334
+ attr_accessor :royalties
335
+ # Replacement section 409A deferrals.
336
+ attr_accessor :section_409a_deferrals
337
+ # Replacement state income.
338
+ attr_accessor :state_income
339
+ # Replacement state tax withheld.
340
+ attr_accessor :state_tax_withheld
341
+ # Replacement substitute payments.
342
+ attr_accessor :substitute_payments
343
+
344
+ def initialize(
345
+ cash_tips: nil,
346
+ crop_insurance_proceeds: nil,
347
+ direct_sales_for_resale: nil,
348
+ excess_golden_parachute_payments: nil,
349
+ fatca_filing_required: nil,
350
+ federal_income_tax_withheld: nil,
351
+ fish_purchased_for_resale: nil,
352
+ fishing_boat_proceeds: nil,
353
+ gross_proceeds_paid_to_an_attorney: nil,
354
+ medical_and_health_care_payments: nil,
355
+ nonqualified_deferred_compensation: nil,
356
+ other_income: nil,
357
+ overtime_compensation: nil,
358
+ rents: nil,
359
+ royalties: nil,
360
+ section_409a_deferrals: nil,
361
+ state_income: nil,
362
+ state_tax_withheld: nil,
363
+ substitute_payments: nil
364
+ )
365
+ @cash_tips = cash_tips
366
+ @crop_insurance_proceeds = crop_insurance_proceeds
367
+ @direct_sales_for_resale = direct_sales_for_resale
368
+ @excess_golden_parachute_payments = excess_golden_parachute_payments
369
+ @fatca_filing_required = fatca_filing_required
370
+ @federal_income_tax_withheld = federal_income_tax_withheld
371
+ @fish_purchased_for_resale = fish_purchased_for_resale
372
+ @fishing_boat_proceeds = fishing_boat_proceeds
373
+ @gross_proceeds_paid_to_an_attorney = gross_proceeds_paid_to_an_attorney
374
+ @medical_and_health_care_payments = medical_and_health_care_payments
375
+ @nonqualified_deferred_compensation = nonqualified_deferred_compensation
376
+ @other_income = other_income
377
+ @overtime_compensation = overtime_compensation
378
+ @rents = rents
379
+ @royalties = royalties
380
+ @section_409a_deferrals = section_409a_deferrals
381
+ @state_income = state_income
382
+ @state_tax_withheld = state_tax_withheld
383
+ @substitute_payments = substitute_payments
384
+ end
385
+ end
386
+
387
+ class Us1099Nec < ::Stripe::RequestParams
388
+ class CashTips < ::Stripe::RequestParams
389
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
390
+ attr_accessor :volume_decimal
391
+
392
+ def initialize(volume_decimal: nil)
393
+ @volume_decimal = volume_decimal
394
+ end
395
+ end
396
+
397
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
398
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
399
+ attr_accessor :volume_decimal
400
+
401
+ def initialize(volume_decimal: nil)
402
+ @volume_decimal = volume_decimal
403
+ end
404
+ end
405
+
406
+ class NonemployeeCompensation < ::Stripe::RequestParams
407
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
408
+ attr_accessor :volume_decimal
409
+
410
+ def initialize(volume_decimal: nil)
411
+ @volume_decimal = volume_decimal
412
+ end
413
+ end
414
+
415
+ class OvertimeCompensation < ::Stripe::RequestParams
416
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
417
+ attr_accessor :volume_decimal
418
+
419
+ def initialize(volume_decimal: nil)
420
+ @volume_decimal = volume_decimal
421
+ end
422
+ end
423
+
424
+ class StateIncome < ::Stripe::RequestParams
425
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
426
+ attr_accessor :volume_decimal
427
+
428
+ def initialize(volume_decimal: nil)
429
+ @volume_decimal = volume_decimal
430
+ end
431
+ end
432
+
433
+ class StateTaxWithheld < ::Stripe::RequestParams
434
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
435
+ attr_accessor :volume_decimal
436
+
437
+ def initialize(volume_decimal: nil)
438
+ @volume_decimal = volume_decimal
439
+ end
440
+ end
441
+ # Replacement cash tips, where supported by the reporting year.
442
+ attr_accessor :cash_tips
443
+ # Replacement direct-sales indicator.
444
+ attr_accessor :direct_sales_indicator
445
+ # Replacement federal income tax withheld.
446
+ attr_accessor :federal_income_tax_withheld
447
+ # Replacement nonemployee compensation.
448
+ attr_accessor :nonemployee_compensation
449
+ # Replacement overtime compensation, where supported by the reporting year.
450
+ attr_accessor :overtime_compensation
451
+ # Replacement state income.
452
+ attr_accessor :state_income
453
+ # Replacement state tax withheld.
454
+ attr_accessor :state_tax_withheld
455
+
456
+ def initialize(
457
+ cash_tips: nil,
458
+ direct_sales_indicator: nil,
459
+ federal_income_tax_withheld: nil,
460
+ nonemployee_compensation: nil,
461
+ overtime_compensation: nil,
462
+ state_income: nil,
463
+ state_tax_withheld: nil
464
+ )
465
+ @cash_tips = cash_tips
466
+ @direct_sales_indicator = direct_sales_indicator
467
+ @federal_income_tax_withheld = federal_income_tax_withheld
468
+ @nonemployee_compensation = nonemployee_compensation
469
+ @overtime_compensation = overtime_compensation
470
+ @state_income = state_income
471
+ @state_tax_withheld = state_tax_withheld
472
+ end
473
+ end
474
+ # Specifies which fields in the response should be expanded.
475
+ attr_accessor :expand
476
+ # Replacement payee details. Cannot be combined with numerical correction fields. Omitted fields remain unchanged.
477
+ attr_accessor :payee_details
478
+ # Whether a second TIN notice was received. Supported for K and MISC forms only; cannot be supplied without a substantive correction.
479
+ attr_accessor :second_tin_notice
480
+ # Replacement numerical values for a 1099-K. Supply only the group matching the original form. Omitted fields remain unchanged.
481
+ attr_accessor :us_1099_k
482
+ # Replacement numerical values for a 1099-MISC. Supply only the group matching the original form. Omitted fields remain unchanged.
483
+ attr_accessor :us_1099_misc
484
+ # Replacement numerical values for a 1099-NEC. Supply only the group matching the original form. Omitted fields remain unchanged.
485
+ attr_accessor :us_1099_nec
486
+
487
+ def initialize(
488
+ expand: nil,
489
+ payee_details: nil,
490
+ second_tin_notice: nil,
491
+ us_1099_k: nil,
492
+ us_1099_misc: nil,
493
+ us_1099_nec: nil
494
+ )
495
+ @expand = expand
496
+ @payee_details = payee_details
497
+ @second_tin_notice = second_tin_notice
498
+ @us_1099_k = us_1099_k
499
+ @us_1099_misc = us_1099_misc
500
+ @us_1099_nec = us_1099_nec
501
+ end
502
+ end
503
+ end
504
+ end