stripe 15.5.0.pre.beta.2 → 15.6.0.pre.alpha.1

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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +117 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +6 -4
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +20 -18
  8. data/lib/stripe/api_version.rb +1 -1
  9. data/lib/stripe/errors.rb +26 -23
  10. data/lib/stripe/event_types.rb +83 -0
  11. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
  12. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
  13. data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
  14. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
  15. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
  16. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
  17. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
  18. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
  19. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
  21. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
  29. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
  30. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
  31. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
  32. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
  33. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
  34. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
  35. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
  36. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
  41. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
  42. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
  43. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
  44. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
  45. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
  46. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
  47. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
  48. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
  49. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
  50. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
  51. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
  52. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
  53. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
  54. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
  55. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
  56. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
  57. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
  58. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
  59. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
  60. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
  61. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
  62. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
  63. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
  64. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
  65. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
  66. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
  67. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
  68. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
  69. data/lib/stripe/object_types.rb +27 -0
  70. data/lib/stripe/resources/account.rb +2 -2
  71. data/lib/stripe/resources/account_session.rb +94 -13
  72. data/lib/stripe/resources/balance.rb +2 -7
  73. data/lib/stripe/resources/balance_settings.rb +72 -65
  74. data/lib/stripe/resources/billing/alert.rb +128 -1
  75. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  76. data/lib/stripe/resources/billing/credit_balance_summary.rb +50 -0
  77. data/lib/stripe/resources/billing/credit_balance_transaction.rb +50 -0
  78. data/lib/stripe/resources/billing/credit_grant.rb +61 -2
  79. data/lib/stripe/resources/billing/meter.rb +2 -2
  80. data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
  81. data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
  82. data/lib/stripe/resources/charge.rb +36 -5
  83. data/lib/stripe/resources/checkout/session.rb +237 -6
  84. data/lib/stripe/resources/credit_note.rb +3 -3
  85. data/lib/stripe/resources/dispute.rb +1 -1
  86. data/lib/stripe/resources/file.rb +1 -1
  87. data/lib/stripe/resources/file_link.rb +1 -1
  88. data/lib/stripe/resources/invoice.rb +55 -1
  89. data/lib/stripe/resources/invoice_item.rb +48 -0
  90. data/lib/stripe/resources/invoice_line_item.rb +52 -0
  91. data/lib/stripe/resources/invoice_payment.rb +1 -1
  92. data/lib/stripe/resources/mandate.rb +65 -1
  93. data/lib/stripe/resources/payment_attempt_record.rb +86 -10
  94. data/lib/stripe/resources/payment_intent.rb +182 -4
  95. data/lib/stripe/resources/payment_link.rb +1 -1
  96. data/lib/stripe/resources/payment_method.rb +2 -0
  97. data/lib/stripe/resources/payment_record.rb +107 -14
  98. data/lib/stripe/resources/promotion_code.rb +5 -2
  99. data/lib/stripe/resources/quote_preview_invoice.rb +8 -1
  100. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
  101. data/lib/stripe/resources/setup_attempt.rb +4 -1
  102. data/lib/stripe/resources/setup_intent.rb +194 -1
  103. data/lib/stripe/resources/subscription.rb +145 -9
  104. data/lib/stripe/resources/subscription_schedule.rb +124 -2
  105. data/lib/stripe/resources/terminal/configuration.rb +82 -0
  106. data/lib/stripe/resources/terminal/reader.rb +22 -0
  107. data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
  108. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
  109. data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
  110. data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
  111. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
  112. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
  113. data/lib/stripe/resources/v2/billing/intent.rb +59 -0
  114. data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
  115. data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
  116. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
  117. data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
  118. data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
  119. data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
  120. data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
  121. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
  122. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
  123. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
  124. data/lib/stripe/resources/v2/billing/profile.rb +38 -0
  125. data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
  126. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
  127. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
  128. data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
  129. data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
  130. data/lib/stripe/resources/v2/core/account.rb +8 -0
  131. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
  132. data/lib/stripe/resources/v2/event.rb +2 -0
  133. data/lib/stripe/resources/v2/money_management/financial_account.rb +4 -2
  134. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
  135. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  136. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  137. data/lib/stripe/resources/v2/reporting/report.rb +64 -0
  138. data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
  139. data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -0
  140. data/lib/stripe/resources.rb +85 -0
  141. data/lib/stripe/services/account_session_service.rb +64 -13
  142. data/lib/stripe/services/balance_settings_service.rb +44 -41
  143. data/lib/stripe/services/billing/alert_service.rb +75 -1
  144. data/lib/stripe/services/billing/credit_balance_summary_service.rb +13 -1
  145. data/lib/stripe/services/billing/credit_grant_service.rb +29 -2
  146. data/lib/stripe/services/billing/meter_service.rb +1 -1
  147. data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
  148. data/lib/stripe/services/checkout/session_service.rb +166 -5
  149. data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
  150. data/lib/stripe/services/credit_note_service.rb +2 -2
  151. data/lib/stripe/services/customer_service.rb +4 -4
  152. data/lib/stripe/services/file_link_service.rb +1 -1
  153. data/lib/stripe/services/file_service.rb +1 -1
  154. data/lib/stripe/services/invoice_payment_service.rb +1 -1
  155. data/lib/stripe/services/invoice_service.rb +47 -0
  156. data/lib/stripe/services/mandate_service.rb +40 -0
  157. data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
  158. data/lib/stripe/services/payment_intent_service.rb +157 -3
  159. data/lib/stripe/services/payment_link_service.rb +1 -1
  160. data/lib/stripe/services/payment_record_service.rb +25 -5
  161. data/lib/stripe/services/quote_service.rb +4 -4
  162. data/lib/stripe/services/setup_intent_service.rb +153 -0
  163. data/lib/stripe/services/subscription_schedule_service.rb +100 -2
  164. data/lib/stripe/services/subscription_service.rb +134 -9
  165. data/lib/stripe/services/terminal/configuration_service.rb +64 -0
  166. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
  167. data/lib/stripe/services/v1_services.rb +5 -5
  168. data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
  169. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
  170. data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
  171. data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
  172. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
  173. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
  174. data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
  175. data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
  176. data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
  177. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
  178. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
  179. data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
  180. data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
  181. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
  182. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
  183. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
  184. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
  185. data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
  186. data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
  187. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
  188. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
  189. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
  190. data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
  191. data/lib/stripe/services/v2/billing_service.rb +19 -2
  192. data/lib/stripe/services/v2/core/account_service.rb +16 -2
  193. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
  194. data/lib/stripe/services/v2/core_service.rb +4 -3
  195. data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
  196. data/lib/stripe/services/v2/money_management_service.rb +3 -3
  197. data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
  198. data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
  199. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  200. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
  201. data/lib/stripe/services/v2/tax_service.rb +15 -0
  202. data/lib/stripe/services/v2_services.rb +3 -1
  203. data/lib/stripe/services.rb +29 -0
  204. data/lib/stripe/stripe_service.rb +3 -1
  205. data/lib/stripe/version.rb +1 -1
  206. metadata +116 -3
  207. data/rbi/stripe.rbi +0 -199145
@@ -0,0 +1,89 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Reporting
7
+ # The `ReportRun` object represents an instance of a `Report` generated with specific
8
+ # run parameters. Once the object is created, Stripe begins processing the report. When
9
+ # the report has finished running, it will give you a reference to the results.
10
+ class ReportRun < APIResource
11
+ OBJECT_NAME = "v2.reporting.report_run"
12
+ def self.object_name
13
+ "v2.reporting.report_run"
14
+ end
15
+
16
+ class ReportParameters < Stripe::StripeObject
17
+ class ArrayValue < Stripe::StripeObject
18
+ # The list of string values in the array.
19
+ attr_reader :items
20
+ end
21
+ # Parameter with an array data type.
22
+ attr_reader :array_value
23
+ # Parameter with a string data type.
24
+ attr_reader :string_value
25
+ # Parameter with a timestamp data type.
26
+ attr_reader :timestamp_value
27
+ end
28
+
29
+ class Result < Stripe::StripeObject
30
+ class File < Stripe::StripeObject
31
+ class DownloadUrl < Stripe::StripeObject
32
+ # The time that the URL expires.
33
+ attr_reader :expires_at
34
+ # The URL that can be used for accessing the file.
35
+ attr_reader :url
36
+ end
37
+ # The content type of the file.
38
+ attr_reader :content_type
39
+ # A pre-signed URL that allows secure, time-limited access to download the file.
40
+ attr_reader :download_url
41
+ # The total size of the file in bytes.
42
+ attr_reader :size
43
+ end
44
+ # Contains metadata about the file produced by the `ReportRun`, including
45
+ # its content type, size, and a URL to download its contents.
46
+ attr_reader :file
47
+ # The type of the `ReportRun` result.
48
+ attr_reader :type
49
+ end
50
+
51
+ class ResultOptions < Stripe::StripeObject
52
+ # If set, the generated report file will be compressed into a ZIP folder.
53
+ # This is useful for reducing file size and download time for large reports.
54
+ attr_reader :compress_file
55
+ end
56
+
57
+ class StatusDetails < Stripe::StripeObject
58
+ # Error code categorizing the reason the `ReportRun` failed.
59
+ attr_reader :error_code
60
+ # Error message with additional details about the failure.
61
+ attr_reader :error_message
62
+ end
63
+ # Time at which the object was created.
64
+ attr_reader :created
65
+ # The unique identifier of the `ReportRun` object.
66
+ attr_reader :id
67
+ # String representing the object's type. Objects of the same type share the same value of the object field.
68
+ attr_reader :object
69
+ # The unique identifier of the `Report` object which was run.
70
+ attr_reader :report
71
+ # The human-readable name of the `Report` which was run.
72
+ attr_reader :report_name
73
+ # The parameters used to customize the generation of the report.
74
+ attr_reader :report_parameters
75
+ # Details how to retrieve the results of a successfully completed `ReportRun`.
76
+ attr_reader :result
77
+ # The options specified for customizing the output file of the `ReportRun`.
78
+ attr_reader :result_options
79
+ # The current status of the `ReportRun`.
80
+ attr_reader :status
81
+ # Additional details about the current state of the `ReportRun`. The field is currently only populated when a `ReportRun`
82
+ # is in the `failed` state, providing more information about why the report failed to generate successfully.
83
+ attr_reader :status_details
84
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
85
+ attr_reader :livemode
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,31 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Tax
7
+ # An AutomaticRule holds automatic Tax configuration for a BillableItem.
8
+ class AutomaticRule < APIResource
9
+ OBJECT_NAME = "v2.tax.automatic_rule"
10
+ def self.object_name
11
+ "v2.tax.automatic_rule"
12
+ end
13
+
14
+ # The ID of the BillableItem.
15
+ attr_reader :billable_item
16
+ # The time at which the AutomaticRule object was created.
17
+ attr_reader :created
18
+ # The ID of the AutomaticRule object.
19
+ attr_reader :id
20
+ # String representing the object's type. Objects of the same type share the same value of the object field.
21
+ attr_reader :object
22
+ # The status of the AutomaticRule object.
23
+ attr_reader :status
24
+ # A TaxCode object that will be used for automatic tax calculations.
25
+ attr_reader :tax_code
26
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
27
+ attr_reader :livemode
28
+ end
29
+ end
30
+ end
31
+ end
@@ -165,11 +165,35 @@ require "stripe/resources/treasury/received_credit"
165
165
  require "stripe/resources/treasury/received_debit"
166
166
  require "stripe/resources/treasury/transaction"
167
167
  require "stripe/resources/treasury/transaction_entry"
168
+ require "stripe/resources/v2/billing/bill_setting"
169
+ require "stripe/resources/v2/billing/bill_setting_version"
170
+ require "stripe/resources/v2/billing/cadence"
171
+ require "stripe/resources/v2/billing/collection_setting"
172
+ require "stripe/resources/v2/billing/collection_setting_version"
173
+ require "stripe/resources/v2/billing/custom_pricing_unit"
174
+ require "stripe/resources/v2/billing/intent"
175
+ require "stripe/resources/v2/billing/intent_action"
176
+ require "stripe/resources/v2/billing/license_fee"
177
+ require "stripe/resources/v2/billing/license_fee_subscription"
178
+ require "stripe/resources/v2/billing/license_fee_version"
179
+ require "stripe/resources/v2/billing/licensed_item"
168
180
  require "stripe/resources/v2/billing/meter_event"
169
181
  require "stripe/resources/v2/billing/meter_event_adjustment"
170
182
  require "stripe/resources/v2/billing/meter_event_session"
183
+ require "stripe/resources/v2/billing/metered_item"
184
+ require "stripe/resources/v2/billing/pricing_plan"
185
+ require "stripe/resources/v2/billing/pricing_plan_component"
186
+ require "stripe/resources/v2/billing/pricing_plan_subscription"
187
+ require "stripe/resources/v2/billing/pricing_plan_version"
188
+ require "stripe/resources/v2/billing/profile"
189
+ require "stripe/resources/v2/billing/rate_card"
190
+ require "stripe/resources/v2/billing/rate_card_rate"
191
+ require "stripe/resources/v2/billing/rate_card_subscription"
192
+ require "stripe/resources/v2/billing/rate_card_version"
193
+ require "stripe/resources/v2/billing/service_action"
171
194
  require "stripe/resources/v2/core/account"
172
195
  require "stripe/resources/v2/core/account_link"
196
+ require "stripe/resources/v2/core/claimable_sandbox"
173
197
  require "stripe/resources/v2/core/person"
174
198
  require "stripe/resources/v2/core/vault/gb_bank_account"
175
199
  require "stripe/resources/v2/core/vault/us_bank_account"
@@ -192,9 +216,50 @@ require "stripe/resources/v2/money_management/received_debit"
192
216
  require "stripe/resources/v2/money_management/transaction"
193
217
  require "stripe/resources/v2/money_management/transaction_entry"
194
218
  require "stripe/resources/v2/payments/off_session_payment"
219
+ require "stripe/resources/v2/reporting/report"
220
+ require "stripe/resources/v2/reporting/report_run"
221
+ require "stripe/resources/v2/tax/automatic_rule"
195
222
  require "stripe/resources/webhook_endpoint"
196
223
  require "stripe/events/v1_billing_meter_error_report_triggered_event"
197
224
  require "stripe/events/v1_billing_meter_no_meter_found_event"
225
+ require "stripe/events/v2_billing_cadence_billed_event"
226
+ require "stripe/events/v2_billing_cadence_canceled_event"
227
+ require "stripe/events/v2_billing_cadence_created_event"
228
+ require "stripe/events/v2_billing_cadence_errored_event"
229
+ require "stripe/events/v2_billing_license_fee_created_event"
230
+ require "stripe/events/v2_billing_license_fee_updated_event"
231
+ require "stripe/events/v2_billing_license_fee_version_created_event"
232
+ require "stripe/events/v2_billing_licensed_item_created_event"
233
+ require "stripe/events/v2_billing_licensed_item_updated_event"
234
+ require "stripe/events/v2_billing_metered_item_created_event"
235
+ require "stripe/events/v2_billing_metered_item_updated_event"
236
+ require "stripe/events/v2_billing_pricing_plan_component_created_event"
237
+ require "stripe/events/v2_billing_pricing_plan_component_updated_event"
238
+ require "stripe/events/v2_billing_pricing_plan_created_event"
239
+ require "stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event"
240
+ require "stripe/events/v2_billing_pricing_plan_subscription_collection_current_event"
241
+ require "stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event"
242
+ require "stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event"
243
+ require "stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event"
244
+ require "stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event"
245
+ require "stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event"
246
+ require "stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event"
247
+ require "stripe/events/v2_billing_pricing_plan_updated_event"
248
+ require "stripe/events/v2_billing_pricing_plan_version_created_event"
249
+ require "stripe/events/v2_billing_rate_card_created_event"
250
+ require "stripe/events/v2_billing_rate_card_rate_created_event"
251
+ require "stripe/events/v2_billing_rate_card_subscription_activated_event"
252
+ require "stripe/events/v2_billing_rate_card_subscription_canceled_event"
253
+ require "stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event"
254
+ require "stripe/events/v2_billing_rate_card_subscription_collection_current_event"
255
+ require "stripe/events/v2_billing_rate_card_subscription_collection_past_due_event"
256
+ require "stripe/events/v2_billing_rate_card_subscription_collection_paused_event"
257
+ require "stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event"
258
+ require "stripe/events/v2_billing_rate_card_subscription_servicing_activated_event"
259
+ require "stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event"
260
+ require "stripe/events/v2_billing_rate_card_subscription_servicing_paused_event"
261
+ require "stripe/events/v2_billing_rate_card_updated_event"
262
+ require "stripe/events/v2_billing_rate_card_version_created_event"
198
263
  require "stripe/events/v2_core_account_closed_event"
199
264
  require "stripe/events/v2_core_account_created_event"
200
265
  require "stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event"
@@ -214,6 +279,22 @@ require "stripe/events/v2_core_account_person_deleted_event"
214
279
  require "stripe/events/v2_core_account_person_updated_event"
215
280
  require "stripe/events/v2_core_account_updated_event"
216
281
  require "stripe/events/v2_core_event_destination_ping_event"
282
+ require "stripe/events/v2_core_health_api_error_firing_event"
283
+ require "stripe/events/v2_core_health_api_error_resolved_event"
284
+ require "stripe/events/v2_core_health_api_latency_firing_event"
285
+ require "stripe/events/v2_core_health_api_latency_resolved_event"
286
+ require "stripe/events/v2_core_health_authorization_rate_drop_firing_event"
287
+ require "stripe/events/v2_core_health_authorization_rate_drop_resolved_event"
288
+ require "stripe/events/v2_core_health_event_generation_failure_resolved_event"
289
+ require "stripe/events/v2_core_health_fraud_rate_increased_event"
290
+ require "stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event"
291
+ require "stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event"
292
+ require "stripe/events/v2_core_health_payment_method_error_firing_event"
293
+ require "stripe/events/v2_core_health_payment_method_error_resolved_event"
294
+ require "stripe/events/v2_core_health_traffic_volume_drop_firing_event"
295
+ require "stripe/events/v2_core_health_traffic_volume_drop_resolved_event"
296
+ require "stripe/events/v2_core_health_webhook_latency_firing_event"
297
+ require "stripe/events/v2_core_health_webhook_latency_resolved_event"
217
298
  require "stripe/events/v2_money_management_adjustment_created_event"
218
299
  require "stripe/events/v2_money_management_financial_account_created_event"
219
300
  require "stripe/events/v2_money_management_financial_account_updated_event"
@@ -255,3 +336,7 @@ require "stripe/events/v2_payments_off_session_payment_canceled_event"
255
336
  require "stripe/events/v2_payments_off_session_payment_created_event"
256
337
  require "stripe/events/v2_payments_off_session_payment_failed_event"
257
338
  require "stripe/events/v2_payments_off_session_payment_succeeded_event"
339
+ require "stripe/events/v2_reporting_report_run_created_event"
340
+ require "stripe/events/v2_reporting_report_run_failed_event"
341
+ require "stripe/events/v2_reporting_report_run_succeeded_event"
342
+ require "stripe/events/v2_reporting_report_run_updated_event"
@@ -97,6 +97,19 @@ module Stripe
97
97
  end
98
98
  end
99
99
 
100
+ class BalanceReport < Stripe::RequestParams
101
+ class Features < Stripe::RequestParams; end
102
+ # Whether the embedded component is enabled.
103
+ attr_accessor :enabled
104
+ # An empty list, because this embedded component has no features.
105
+ attr_accessor :features
106
+
107
+ def initialize(enabled: nil, features: nil)
108
+ @enabled = enabled
109
+ @features = features
110
+ end
111
+ end
112
+
100
113
  class Balances < Stripe::RequestParams
101
114
  class Features < Stripe::RequestParams
102
115
  # 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`.
@@ -139,7 +152,7 @@ module Stripe
139
152
  class Features < Stripe::RequestParams; end
140
153
  # Whether the embedded component is enabled.
141
154
  attr_accessor :enabled
142
- # The list of features enabled in the embedded component.
155
+ # An empty list, because this embedded component has no features.
143
156
  attr_accessor :features
144
157
 
145
158
  def initialize(enabled: nil, features: nil)
@@ -152,7 +165,7 @@ module Stripe
152
165
  class Features < Stripe::RequestParams; end
153
166
  # Whether the embedded component is enabled.
154
167
  attr_accessor :enabled
155
- # The list of features enabled in the embedded component.
168
+ # An empty list, because this embedded component has no features.
156
169
  attr_accessor :features
157
170
 
158
171
  def initialize(enabled: nil, features: nil)
@@ -165,7 +178,7 @@ module Stripe
165
178
  class Features < Stripe::RequestParams; end
166
179
  # Whether the embedded component is enabled.
167
180
  attr_accessor :enabled
168
- # The list of features enabled in the embedded component.
181
+ # An empty list, because this embedded component has no features.
169
182
  attr_accessor :features
170
183
 
171
184
  def initialize(enabled: nil, features: nil)
@@ -178,7 +191,7 @@ module Stripe
178
191
  class Features < Stripe::RequestParams; end
179
192
  # Whether the embedded component is enabled.
180
193
  attr_accessor :enabled
181
- # The list of features enabled in the embedded component.
194
+ # An empty list, because this embedded component has no features.
182
195
  attr_accessor :features
183
196
 
184
197
  def initialize(enabled: nil, features: nil)
@@ -225,7 +238,7 @@ module Stripe
225
238
  class Features < Stripe::RequestParams; end
226
239
  # Whether the embedded component is enabled.
227
240
  attr_accessor :enabled
228
- # The list of features enabled in the embedded component.
241
+ # An empty list, because this embedded component has no features.
229
242
  attr_accessor :features
230
243
 
231
244
  def initialize(enabled: nil, features: nil)
@@ -238,7 +251,7 @@ module Stripe
238
251
  class Features < Stripe::RequestParams; end
239
252
  # Whether the embedded component is enabled.
240
253
  attr_accessor :enabled
241
- # The list of features enabled in the embedded component.
254
+ # An empty list, because this embedded component has no features.
242
255
  attr_accessor :features
243
256
 
244
257
  def initialize(enabled: nil, features: nil)
@@ -497,7 +510,7 @@ module Stripe
497
510
  class Features < Stripe::RequestParams; end
498
511
  # Whether the embedded component is enabled.
499
512
  attr_accessor :enabled
500
- # The list of features enabled in the embedded component.
513
+ # An empty list, because this embedded component has no features.
501
514
  attr_accessor :features
502
515
 
503
516
  def initialize(enabled: nil, features: nil)
@@ -540,6 +553,32 @@ module Stripe
540
553
  end
541
554
  end
542
555
 
556
+ class PayoutDetails < Stripe::RequestParams
557
+ class Features < Stripe::RequestParams; end
558
+ # Whether the embedded component is enabled.
559
+ attr_accessor :enabled
560
+ # An empty list, because this embedded component has no features.
561
+ attr_accessor :features
562
+
563
+ def initialize(enabled: nil, features: nil)
564
+ @enabled = enabled
565
+ @features = features
566
+ end
567
+ end
568
+
569
+ class PayoutReconciliationReport < Stripe::RequestParams
570
+ class Features < Stripe::RequestParams; end
571
+ # Whether the embedded component is enabled.
572
+ attr_accessor :enabled
573
+ # An empty list, because this embedded component has no features.
574
+ attr_accessor :features
575
+
576
+ def initialize(enabled: nil, features: nil)
577
+ @enabled = enabled
578
+ @features = features
579
+ end
580
+ end
581
+
543
582
  class Payouts < Stripe::RequestParams
544
583
  class Features < Stripe::RequestParams
545
584
  # 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`.
@@ -582,7 +621,7 @@ module Stripe
582
621
  class Features < Stripe::RequestParams; end
583
622
  # Whether the embedded component is enabled.
584
623
  attr_accessor :enabled
585
- # The list of features enabled in the embedded component.
624
+ # An empty list, because this embedded component has no features.
586
625
  attr_accessor :features
587
626
 
588
627
  def initialize(enabled: nil, features: nil)
@@ -595,7 +634,7 @@ module Stripe
595
634
  class Features < Stripe::RequestParams; end
596
635
  # Whether the embedded component is enabled.
597
636
  attr_accessor :enabled
598
- # The list of features enabled in the embedded component.
637
+ # An empty list, because this embedded component has no features.
599
638
  attr_accessor :features
600
639
 
601
640
  def initialize(enabled: nil, features: nil)
@@ -628,7 +667,7 @@ module Stripe
628
667
  class Features < Stripe::RequestParams; end
629
668
  # Whether the embedded component is enabled.
630
669
  attr_accessor :enabled
631
- # The list of features enabled in the embedded component.
670
+ # An empty list, because this embedded component has no features.
632
671
  attr_accessor :features
633
672
 
634
673
  def initialize(enabled: nil, features: nil)
@@ -641,7 +680,7 @@ module Stripe
641
680
  class Features < Stripe::RequestParams; end
642
681
  # Whether the embedded component is enabled.
643
682
  attr_accessor :enabled
644
- # The list of features enabled in the embedded component.
683
+ # An empty list, because this embedded component has no features.
645
684
  attr_accessor :features
646
685
 
647
686
  def initialize(enabled: nil, features: nil)
@@ -654,7 +693,7 @@ module Stripe
654
693
  class Features < Stripe::RequestParams; end
655
694
  # Whether the embedded component is enabled.
656
695
  attr_accessor :enabled
657
- # The list of features enabled in the embedded component.
696
+ # An empty list, because this embedded component has no features.
658
697
  attr_accessor :features
659
698
 
660
699
  def initialize(enabled: nil, features: nil)
@@ -667,7 +706,7 @@ module Stripe
667
706
  class Features < Stripe::RequestParams; end
668
707
  # Whether the embedded component is enabled.
669
708
  attr_accessor :enabled
670
- # The list of features enabled in the embedded component.
709
+ # An empty list, because this embedded component has no features.
671
710
  attr_accessor :features
672
711
 
673
712
  def initialize(enabled: nil, features: nil)
@@ -683,6 +722,8 @@ module Stripe
683
722
  attr_accessor :app_install
684
723
  # Configuration for the [app viewport](/connect/supported-embedded-components/app-viewport/) embedded component.
685
724
  attr_accessor :app_viewport
725
+ # Configuration for the [balance report](/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
726
+ attr_accessor :balance_report
686
727
  # Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
687
728
  attr_accessor :balances
688
729
  # Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
@@ -719,6 +760,10 @@ module Stripe
719
760
  attr_accessor :payment_method_settings
720
761
  # Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
721
762
  attr_accessor :payments
763
+ # Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.
764
+ attr_accessor :payout_details
765
+ # Configuration for the [payout reconciliation report](/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
766
+ attr_accessor :payout_reconciliation_report
722
767
  # Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
723
768
  attr_accessor :payouts
724
769
  # Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
@@ -741,6 +786,7 @@ module Stripe
741
786
  account_onboarding: nil,
742
787
  app_install: nil,
743
788
  app_viewport: nil,
789
+ balance_report: nil,
744
790
  balances: nil,
745
791
  capital_financing: nil,
746
792
  capital_financing_application: nil,
@@ -759,6 +805,8 @@ module Stripe
759
805
  payment_disputes: nil,
760
806
  payment_method_settings: nil,
761
807
  payments: nil,
808
+ payout_details: nil,
809
+ payout_reconciliation_report: nil,
762
810
  payouts: nil,
763
811
  payouts_list: nil,
764
812
  product_tax_code_selector: nil,
@@ -772,6 +820,7 @@ module Stripe
772
820
  @account_onboarding = account_onboarding
773
821
  @app_install = app_install
774
822
  @app_viewport = app_viewport
823
+ @balance_report = balance_report
775
824
  @balances = balances
776
825
  @capital_financing = capital_financing
777
826
  @capital_financing_application = capital_financing_application
@@ -790,6 +839,8 @@ module Stripe
790
839
  @payment_disputes = payment_disputes
791
840
  @payment_method_settings = payment_method_settings
792
841
  @payments = payments
842
+ @payout_details = payout_details
843
+ @payout_reconciliation_report = payout_reconciliation_report
793
844
  @payouts = payouts
794
845
  @payouts_list = payouts_list
795
846
  @product_tax_code_selector = product_tax_code_selector
@@ -13,59 +13,62 @@ module Stripe
13
13
  end
14
14
 
15
15
  class UpdateParams < Stripe::RequestParams
16
- class Payouts < Stripe::RequestParams
17
- class Schedule < Stripe::RequestParams
18
- # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
19
- attr_accessor :interval
20
- # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
21
- attr_accessor :monthly_payout_days
22
- # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
23
- attr_accessor :weekly_payout_days
16
+ class Payments < Stripe::RequestParams
17
+ class Payouts < Stripe::RequestParams
18
+ class Schedule < Stripe::RequestParams
19
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
20
+ attr_accessor :interval
21
+ # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
22
+ attr_accessor :monthly_payout_days
23
+ # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
24
+ attr_accessor :weekly_payout_days
24
25
 
25
- def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
26
- @interval = interval
27
- @monthly_payout_days = monthly_payout_days
28
- @weekly_payout_days = weekly_payout_days
26
+ def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
27
+ @interval = interval
28
+ @monthly_payout_days = monthly_payout_days
29
+ @weekly_payout_days = weekly_payout_days
30
+ end
29
31
  end
30
- end
31
- # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
32
- attr_accessor :schedule
33
- # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
34
- attr_accessor :statement_descriptor
32
+ # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
33
+ attr_accessor :schedule
34
+ # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
35
+ attr_accessor :statement_descriptor
35
36
 
36
- def initialize(schedule: nil, statement_descriptor: nil)
37
- @schedule = schedule
38
- @statement_descriptor = statement_descriptor
37
+ def initialize(schedule: nil, statement_descriptor: nil)
38
+ @schedule = schedule
39
+ @statement_descriptor = statement_descriptor
40
+ end
39
41
  end
40
- end
41
42
 
42
- class SettlementTiming < Stripe::RequestParams
43
- # The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
44
- attr_accessor :delay_days_override
43
+ class SettlementTiming < Stripe::RequestParams
44
+ # The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
45
+ attr_accessor :delay_days_override
45
46
 
46
- def initialize(delay_days_override: nil)
47
- @delay_days_override = delay_days_override
47
+ def initialize(delay_days_override: nil)
48
+ @delay_days_override = delay_days_override
49
+ end
50
+ end
51
+ # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
52
+ attr_accessor :debit_negative_balances
53
+ # Settings specific to the account's payouts.
54
+ attr_accessor :payouts
55
+ # Settings related to the account's balance settlement timing.
56
+ attr_accessor :settlement_timing
57
+
58
+ def initialize(debit_negative_balances: nil, payouts: nil, settlement_timing: nil)
59
+ @debit_negative_balances = debit_negative_balances
60
+ @payouts = payouts
61
+ @settlement_timing = settlement_timing
48
62
  end
49
63
  end
50
- # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
51
- attr_accessor :debit_negative_balances
52
64
  # Specifies which fields in the response should be expanded.
53
65
  attr_accessor :expand
54
- # Settings specific to the account's payouts.
55
- attr_accessor :payouts
56
- # Settings related to the account's balance settlement timing.
57
- attr_accessor :settlement_timing
66
+ # Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
67
+ attr_accessor :payments
58
68
 
59
- def initialize(
60
- debit_negative_balances: nil,
61
- expand: nil,
62
- payouts: nil,
63
- settlement_timing: nil
64
- )
65
- @debit_negative_balances = debit_negative_balances
69
+ def initialize(expand: nil, payments: nil)
66
70
  @expand = expand
67
- @payouts = payouts
68
- @settlement_timing = settlement_timing
71
+ @payments = payments
69
72
  end
70
73
  end
71
74