stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_version.rb +1 -1
  6. data/lib/stripe/object_types.rb +10 -0
  7. data/lib/stripe/resources/account.rb +230 -0
  8. data/lib/stripe/resources/account_link.rb +9 -0
  9. data/lib/stripe/resources/account_notice.rb +28 -0
  10. data/lib/stripe/resources/account_session.rb +103 -0
  11. data/lib/stripe/resources/apple_pay_domain.rb +13 -0
  12. data/lib/stripe/resources/application.rb +20 -0
  13. data/lib/stripe/resources/application_fee.rb +34 -0
  14. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  15. data/lib/stripe/resources/apps/secret.rb +22 -0
  16. data/lib/stripe/resources/balance.rb +59 -0
  17. data/lib/stripe/resources/balance_transaction.rb +34 -0
  18. data/lib/stripe/resources/bank_account.rb +60 -2
  19. data/lib/stripe/resources/billing/alert.rb +21 -0
  20. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  21. data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
  22. data/lib/stripe/resources/billing/credit_balance_transaction.rb +49 -1
  23. data/lib/stripe/resources/billing/credit_grant.rb +46 -2
  24. data/lib/stripe/resources/billing/meter.rb +49 -7
  25. data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
  26. data/lib/stripe/resources/billing/meter_event.rb +17 -3
  27. data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
  28. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  29. data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
  30. data/lib/stripe/resources/billing_portal/session.rb +61 -0
  31. data/lib/stripe/resources/capability.rb +38 -0
  32. data/lib/stripe/resources/capital/financing_offer.rb +45 -0
  33. data/lib/stripe/resources/capital/financing_summary.rb +17 -0
  34. data/lib/stripe/resources/capital/financing_transaction.rb +29 -0
  35. data/lib/stripe/resources/card.rb +76 -0
  36. data/lib/stripe/resources/cash_balance.rb +14 -0
  37. data/lib/stripe/resources/charge.rb +469 -0
  38. data/lib/stripe/resources/checkout/session.rb +496 -0
  39. data/lib/stripe/resources/climate/order.rb +55 -0
  40. data/lib/stripe/resources/climate/product.rb +24 -0
  41. data/lib/stripe/resources/climate/supplier.rb +18 -0
  42. data/lib/stripe/resources/confirmation_token.rb +297 -0
  43. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  44. data/lib/stripe/resources/country_spec.rb +27 -0
  45. data/lib/stripe/resources/coupon.rb +44 -0
  46. data/lib/stripe/resources/credit_note.rb +91 -0
  47. data/lib/stripe/resources/credit_note_line_item.rb +46 -0
  48. data/lib/stripe/resources/customer.rb +93 -0
  49. data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
  50. data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
  51. data/lib/stripe/resources/customer_session.rb +34 -0
  52. data/lib/stripe/resources/discount.rb +29 -0
  53. data/lib/stripe/resources/dispute.rb +96 -0
  54. data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  56. data/lib/stripe/resources/entitlements/feature.rb +15 -0
  57. data/lib/stripe/resources/ephemeral_key.rb +13 -0
  58. data/lib/stripe/resources/event.rb +44 -0
  59. data/lib/stripe/resources/exchange_rate.rb +7 -0
  60. data/lib/stripe/resources/file.rb +23 -0
  61. data/lib/stripe/resources/file_link.rb +19 -0
  62. data/lib/stripe/resources/financial_connections/account.rb +84 -0
  63. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/institution.rb +35 -0
  67. data/lib/stripe/resources/financial_connections/session.rb +49 -0
  68. data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
  69. data/lib/stripe/resources/forwarding/request.rb +40 -0
  70. data/lib/stripe/resources/funding_instructions.rb +82 -0
  71. data/lib/stripe/resources/gift_cards/card.rb +37 -0
  72. data/lib/stripe/resources/gift_cards/transaction.rb +39 -0
  73. data/lib/stripe/resources/identity/verification_report.rb +92 -0
  74. data/lib/stripe/resources/identity/verification_session.rb +76 -0
  75. data/lib/stripe/resources/invoice.rb +337 -0
  76. data/lib/stripe/resources/invoice_item.rb +54 -0
  77. data/lib/stripe/resources/invoice_line_item.rb +83 -0
  78. data/lib/stripe/resources/invoice_payment.rb +34 -0
  79. data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
  80. data/lib/stripe/resources/issuing/authorization.rb +129 -0
  81. data/lib/stripe/resources/issuing/card.rb +86 -0
  82. data/lib/stripe/resources/issuing/cardholder.rb +76 -0
  83. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +57 -0
  84. data/lib/stripe/resources/issuing/dispute.rb +65 -0
  85. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +23 -0
  86. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +17 -0
  87. data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
  88. data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
  89. data/lib/stripe/resources/issuing/settlement.rb +49 -0
  90. data/lib/stripe/resources/issuing/token.rb +46 -0
  91. data/lib/stripe/resources/issuing/transaction.rb +106 -0
  92. data/lib/stripe/resources/line_item.rb +50 -0
  93. data/lib/stripe/resources/login_link.rb +7 -0
  94. data/lib/stripe/resources/mandate.rb +78 -0
  95. data/lib/stripe/resources/margin.rb +19 -0
  96. data/lib/stripe/resources/order.rb +202 -0
  97. data/lib/stripe/resources/payment_attempt_record.rb +73 -0
  98. data/lib/stripe/resources/payment_intent.rb +642 -0
  99. data/lib/stripe/resources/payment_link.rb +198 -0
  100. data/lib/stripe/resources/payment_method.rb +368 -0
  101. data/lib/stripe/resources/payment_method_configuration.rb +430 -0
  102. data/lib/stripe/resources/payment_method_domain.rb +57 -0
  103. data/lib/stripe/resources/payment_record.rb +73 -0
  104. data/lib/stripe/resources/payout.rb +56 -0
  105. data/lib/stripe/resources/person.rb +128 -0
  106. data/lib/stripe/resources/plan.rb +52 -0
  107. data/lib/stripe/resources/price.rb +77 -0
  108. data/lib/stripe/resources/product.rb +60 -0
  109. data/lib/stripe/resources/product_feature.rb +12 -0
  110. data/lib/stripe/resources/promotion_code.rb +35 -0
  111. data/lib/stripe/resources/quote.rb +252 -0
  112. data/lib/stripe/resources/quote_line.rb +136 -0
  113. data/lib/stripe/resources/quote_preview_invoice.rb +331 -0
  114. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +159 -0
  115. data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
  116. data/lib/stripe/resources/radar/value_list.rb +23 -0
  117. data/lib/stripe/resources/radar/value_list_item.rb +17 -0
  118. data/lib/stripe/resources/refund.rb +130 -0
  119. data/lib/stripe/resources/reporting/report_run.rb +29 -0
  120. data/lib/stripe/resources/reporting/report_type.rb +19 -0
  121. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  122. data/lib/stripe/resources/reversal.rb +21 -0
  123. data/lib/stripe/resources/review.rb +36 -0
  124. data/lib/stripe/resources/setup_attempt.rb +101 -0
  125. data/lib/stripe/resources/setup_intent.rb +158 -0
  126. data/lib/stripe/resources/shipping_rate.rb +42 -0
  127. data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
  128. data/lib/stripe/resources/source.rb +197 -0
  129. data/lib/stripe/resources/source_mandate_notification.rb +59 -0
  130. data/lib/stripe/resources/source_transaction.rb +48 -0
  131. data/lib/stripe/resources/subscription.rb +214 -0
  132. data/lib/stripe/resources/subscription_item.rb +46 -0
  133. data/lib/stripe/resources/subscription_schedule.rb +153 -0
  134. data/lib/stripe/resources/tax/association.rb +36 -0
  135. data/lib/stripe/resources/tax/calculation.rb +72 -0
  136. data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
  137. data/lib/stripe/resources/tax/form.rb +75 -0
  138. data/lib/stripe/resources/tax/registration.rb +379 -0
  139. data/lib/stripe/resources/tax/settings.rb +33 -0
  140. data/lib/stripe/resources/tax/transaction.rb +68 -0
  141. data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
  142. data/lib/stripe/resources/tax_code.rb +9 -0
  143. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  144. data/lib/stripe/resources/tax_id.rb +30 -0
  145. data/lib/stripe/resources/tax_rate.rb +42 -0
  146. data/lib/stripe/resources/terminal/configuration.rb +107 -0
  147. data/lib/stripe/resources/terminal/connection_token.rb +7 -0
  148. data/lib/stripe/resources/terminal/location.rb +20 -0
  149. data/lib/stripe/resources/terminal/reader.rb +118 -0
  150. data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
  151. data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
  152. data/lib/stripe/resources/token.rb +29 -0
  153. data/lib/stripe/resources/topup.rb +33 -0
  154. data/lib/stripe/resources/transfer.rb +35 -0
  155. data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
  156. data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
  157. data/lib/stripe/resources/treasury/financial_account.rb +57 -0
  158. data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
  159. data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
  160. data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
  161. data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
  162. data/lib/stripe/resources/treasury/received_credit.rb +70 -0
  163. data/lib/stripe/resources/treasury/received_debit.rb +67 -0
  164. data/lib/stripe/resources/treasury/transaction.rb +42 -0
  165. data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
  166. data/lib/stripe/resources/usage_record.rb +13 -0
  167. data/lib/stripe/resources/usage_record_summary.rb +18 -0
  168. data/lib/stripe/resources/v2/amount.rb +9 -0
  169. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
  171. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  172. data/lib/stripe/resources/v2/event.rb +21 -0
  173. data/lib/stripe/resources/v2/event_destination.rb +49 -0
  174. data/lib/stripe/resources/webhook_endpoint.rb +27 -0
  175. data/lib/stripe/resources.rb +10 -0
  176. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
  177. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
  178. data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
  179. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
  180. data/lib/stripe/services/billing/meter_event_service.rb +1 -1
  181. data/lib/stripe/services/billing/meter_service.rb +5 -5
  182. data/lib/stripe/stripe_object.rb +5 -0
  183. data/lib/stripe/version.rb +1 -1
  184. data/stripe.gemspec +2 -1
  185. metadata +13 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be35a5e336dbcfa8c933bf5eb7100673faffe219227be5f950962f88523635fa
4
- data.tar.gz: 238f955bbe4d0599b8b36dd00824ba7f66fd8abf01029ae03c356133d786a10a
3
+ metadata.gz: 1bd77bdce6e39ac4734178596066a3df192ad8126b2d110c5f32e439d2e24257
4
+ data.tar.gz: 29da778d0f6206133aae7cc8775c693d874895f10b52146d90c006d82e5763af
5
5
  SHA512:
6
- metadata.gz: 3d7119c6e3d182039eb41a727ee5d06ba2cc6c213b915d8999d3c7fae98932be26b3f1f6b1de423db5abb2a5becdb34c726ecd80ea55fe66e9e07554b0d8ce72
7
- data.tar.gz: 8138bed60af0b3912f3c3cc2b70a8cf5eee3e54238bfd91716bf7e78c0ae06399c04dc0049a6c6d816811892b49926ec1ae2a2787ecb4ab19686137448a10d5f
6
+ metadata.gz: f01872ec0444a6802bf275161876b87ff92ba7653aaef99f45a565553613d007ff93f9b1ea02f953a16337d6d1ede02994ce787b8172d2c5aa0ac38588cb4a00
7
+ data.tar.gz: a9ba86ba9fe509343312600aa5dc7113dede6b7e18aca308d6519a9ba12cb953f6d2bd11f0c2f0d232db24f335d83d7bc725536961e0c59ace240fc2f44fb600
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.3.0-beta.3 - 2024-12-12
4
+ * [#1499](https://github.com/stripe/stripe-ruby/pull/1499) Update generated code for beta
5
+ * Add support for `AllowRedisplay` on `Card` and `Source`
6
+ * Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `CheckoutSessionCollectedInformationTaxIdsType` and `OrderTaxDetailsTaxIdsType`
7
+ * Add support for new value `network_fallback` on enum `IssuingAuthorizationRequestHistoryReason`
8
+ * Remove support for `AmountRefunded` on `PaymentRecord`
9
+ * Add support for `Account` on `TerminalReaderActionCollectPaymentMethod`, `TerminalReaderActionConfirmPaymentIntent`, `TerminalReaderActionProcessPaymentIntent`, and `TerminalReaderActionRefundPayment`
10
+
11
+ ## 13.3.0-beta.2 - 2024-12-05
12
+ * [#1492](https://github.com/stripe/stripe-ruby/pull/1492) Update generated code for beta
13
+
14
+ * [#1490](https://github.com/stripe/stripe-ruby/pull/1490) Add explicit attributes for fields in resources, and rbis for resources
15
+
3
16
  ## 13.3.0-beta.1 - 2024-11-21
4
17
  * [#1489](https://github.com/stripe/stripe-ruby/pull/1489) Merging code from master to get the latest bug fixes.
5
18
 
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1370
1
+ v1405
data/VERSION CHANGED
@@ -1 +1 @@
1
- 13.3.0-beta.1
1
+ 13.3.0-beta.3
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2024-11-20.acacia"
6
+ CURRENT = "2024-12-18.acacia"
7
7
  end
8
8
  end
@@ -17,6 +17,7 @@ module Stripe
17
17
  AccountNotice.object_name => AccountNotice,
18
18
  AccountSession.object_name => AccountSession,
19
19
  ApplePayDomain.object_name => ApplePayDomain,
20
+ Application.object_name => Application,
20
21
  ApplicationFee.object_name => ApplicationFee,
21
22
  ApplicationFeeRefund.object_name => ApplicationFeeRefund,
22
23
  Apps::Secret.object_name => Apps::Secret,
@@ -24,10 +25,12 @@ module Stripe
24
25
  BalanceTransaction.object_name => BalanceTransaction,
25
26
  BankAccount.object_name => BankAccount,
26
27
  Billing::Alert.object_name => Billing::Alert,
28
+ Billing::AlertTriggered.object_name => Billing::AlertTriggered,
27
29
  Billing::CreditBalanceSummary.object_name => Billing::CreditBalanceSummary,
28
30
  Billing::CreditBalanceTransaction.object_name => Billing::CreditBalanceTransaction,
29
31
  Billing::CreditGrant.object_name => Billing::CreditGrant,
30
32
  Billing::Meter.object_name => Billing::Meter,
33
+ Billing::MeterErrorReport.object_name => Billing::MeterErrorReport,
31
34
  Billing::MeterEvent.object_name => Billing::MeterEvent,
32
35
  Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,
33
36
  Billing::MeterEventSummary.object_name => Billing::MeterEventSummary,
@@ -45,6 +48,7 @@ module Stripe
45
48
  Climate::Product.object_name => Climate::Product,
46
49
  Climate::Supplier.object_name => Climate::Supplier,
47
50
  ConfirmationToken.object_name => ConfirmationToken,
51
+ ConnectCollectionTransfer.object_name => ConnectCollectionTransfer,
48
52
  CountrySpec.object_name => CountrySpec,
49
53
  Coupon.object_name => Coupon,
50
54
  CreditNote.object_name => CreditNote,
@@ -56,6 +60,7 @@ module Stripe
56
60
  Discount.object_name => Discount,
57
61
  Dispute.object_name => Dispute,
58
62
  Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
63
+ Entitlements::ActiveEntitlementSummary.object_name => Entitlements::ActiveEntitlementSummary,
59
64
  Entitlements::Feature.object_name => Entitlements::Feature,
60
65
  EphemeralKey.object_name => EphemeralKey,
61
66
  Event.object_name => Event,
@@ -90,6 +95,7 @@ module Stripe
90
95
  Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit,
91
96
  Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
92
97
  Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
98
+ Issuing::Settlement.object_name => Issuing::Settlement,
93
99
  Issuing::Token.object_name => Issuing::Token,
94
100
  Issuing::Transaction.object_name => Issuing::Transaction,
95
101
  LineItem.object_name => LineItem,
@@ -112,6 +118,7 @@ module Stripe
112
118
  ProductFeature.object_name => ProductFeature,
113
119
  PromotionCode.object_name => PromotionCode,
114
120
  Quote.object_name => Quote,
121
+ QuoteLine.object_name => QuoteLine,
115
122
  QuotePreviewInvoice.object_name => QuotePreviewInvoice,
116
123
  QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
117
124
  Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
@@ -120,6 +127,7 @@ module Stripe
120
127
  Refund.object_name => Refund,
121
128
  Reporting::ReportRun.object_name => Reporting::ReportRun,
122
129
  Reporting::ReportType.object_name => Reporting::ReportType,
130
+ ReserveTransaction.object_name => ReserveTransaction,
123
131
  Reversal.object_name => Reversal,
124
132
  Review.object_name => Review,
125
133
  SetupAttempt.object_name => SetupAttempt,
@@ -127,6 +135,7 @@ module Stripe
127
135
  ShippingRate.object_name => ShippingRate,
128
136
  Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
129
137
  Source.object_name => Source,
138
+ SourceMandateNotification.object_name => SourceMandateNotification,
130
139
  SourceTransaction.object_name => SourceTransaction,
131
140
  Subscription.object_name => Subscription,
132
141
  SubscriptionItem.object_name => SubscriptionItem,
@@ -140,6 +149,7 @@ module Stripe
140
149
  Tax::Transaction.object_name => Tax::Transaction,
141
150
  Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
142
151
  TaxCode.object_name => TaxCode,
152
+ TaxDeductedAtSource.object_name => TaxDeductedAtSource,
143
153
  TaxId.object_name => TaxId,
144
154
  TaxRate.object_name => TaxRate,
145
155
  Terminal::Configuration.object_name => Terminal::Configuration,
@@ -34,6 +34,236 @@ module Stripe
34
34
  nested_resource_class_methods :login_link, operations: %i[create]
35
35
  nested_resource_class_methods :person, operations: %i[create retrieve update delete list]
36
36
 
37
+ class BusinessProfile < Stripe::StripeObject
38
+ class AnnualRevenue < Stripe::StripeObject
39
+ attr_reader :amount, :currency, :fiscal_year_end
40
+ end
41
+
42
+ class MonthlyEstimatedRevenue < Stripe::StripeObject
43
+ attr_reader :amount, :currency
44
+ end
45
+
46
+ class SupportAddress < Stripe::StripeObject
47
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
48
+ end
49
+ attr_reader :annual_revenue, :estimated_worker_count, :mcc, :monthly_estimated_revenue, :name, :product_description, :support_address, :support_email, :support_phone, :support_url, :url
50
+ end
51
+
52
+ class Capabilities < Stripe::StripeObject
53
+ attr_reader :acss_debit_payments, :affirm_payments, :afterpay_clearpay_payments, :alma_payments, :amazon_pay_payments, :au_becs_debit_payments, :automatic_indirect_tax, :bacs_debit_payments, :bancontact_payments, :bank_transfer_payments, :blik_payments, :boleto_payments, :card_issuing, :card_payments, :cartes_bancaires_payments, :cashapp_payments, :eps_payments, :fpx_payments, :gb_bank_transfer_payments, :giropay_payments, :gopay_payments, :grabpay_payments, :id_bank_transfer_payments, :id_bank_transfer_payments_bca, :ideal_payments, :india_international_payments, :jcb_payments, :jp_bank_transfer_payments, :kakao_pay_payments, :klarna_payments, :konbini_payments, :kr_card_payments, :legacy_payments, :link_payments, :mb_way_payments, :mobilepay_payments, :multibanco_payments, :mx_bank_transfer_payments, :naver_pay_payments, :oxxo_payments, :p24_payments, :payco_payments, :paynow_payments, :paypal_payments, :payto_payments, :promptpay_payments, :qris_payments, :rechnung_payments, :revolut_pay_payments, :samsung_pay_payments, :sepa_bank_transfer_payments, :sepa_debit_payments, :shopeepay_payments, :sofort_payments, :swish_payments, :tax_reporting_us_1099_k, :tax_reporting_us_1099_misc, :transfers, :treasury, :treasury_evolve, :treasury_fifth_third, :treasury_goldman_sachs, :twint_payments, :us_bank_account_ach_payments, :us_bank_transfer_payments, :zip_payments
54
+ end
55
+
56
+ class Company < Stripe::StripeObject
57
+ class Address < Stripe::StripeObject
58
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
59
+ end
60
+
61
+ class AddressKana < Stripe::StripeObject
62
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state, :town
63
+ end
64
+
65
+ class AddressKanji < Stripe::StripeObject
66
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state, :town
67
+ end
68
+
69
+ class OwnershipDeclaration < Stripe::StripeObject
70
+ attr_reader :date, :ip, :user_agent
71
+ end
72
+
73
+ class Verification < Stripe::StripeObject
74
+ class Document < Stripe::StripeObject
75
+ attr_reader :back, :details, :details_code, :front
76
+ end
77
+ attr_reader :document
78
+ end
79
+ attr_reader :address, :address_kana, :address_kanji, :directors_provided, :executives_provided, :export_license_id, :export_purpose_code, :name, :name_kana, :name_kanji, :owners_provided, :ownership_declaration, :phone, :structure, :tax_id_provided, :tax_id_registrar, :vat_id_provided, :verification
80
+ end
81
+
82
+ class Controller < Stripe::StripeObject
83
+ class Application < Stripe::StripeObject
84
+ attr_reader :loss_liable, :onboarding_owner, :pricing_controls
85
+ end
86
+
87
+ class Dashboard < Stripe::StripeObject
88
+ attr_reader :type
89
+ end
90
+
91
+ class Fees < Stripe::StripeObject
92
+ attr_reader :payer
93
+ end
94
+
95
+ class Losses < Stripe::StripeObject
96
+ attr_reader :payments
97
+ end
98
+
99
+ class StripeDashboard < Stripe::StripeObject
100
+ attr_reader :type
101
+ end
102
+ attr_reader :application, :dashboard, :fees, :is_controller, :losses, :requirement_collection, :stripe_dashboard, :type
103
+ end
104
+
105
+ class FutureRequirements < Stripe::StripeObject
106
+ class Alternative < Stripe::StripeObject
107
+ attr_reader :alternative_fields_due, :original_fields_due
108
+ end
109
+
110
+ class Error < Stripe::StripeObject
111
+ attr_reader :code, :reason, :requirement
112
+ end
113
+ attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
114
+ end
115
+
116
+ class Groups < Stripe::StripeObject
117
+ attr_reader :payments_pricing
118
+ end
119
+
120
+ class Requirements < Stripe::StripeObject
121
+ class Alternative < Stripe::StripeObject
122
+ attr_reader :alternative_fields_due, :original_fields_due
123
+ end
124
+
125
+ class Error < Stripe::StripeObject
126
+ attr_reader :code, :reason, :requirement
127
+ end
128
+ attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
129
+ end
130
+
131
+ class RiskControls < Stripe::StripeObject
132
+ class Charges < Stripe::StripeObject
133
+ attr_reader :pause_requested
134
+ end
135
+
136
+ class Payouts < Stripe::StripeObject
137
+ attr_reader :pause_requested
138
+ end
139
+ attr_reader :charges, :payouts
140
+ end
141
+
142
+ class Settings < Stripe::StripeObject
143
+ class BacsDebitPayments < Stripe::StripeObject
144
+ attr_reader :display_name, :service_user_number
145
+ end
146
+
147
+ class BankBcaOnboarding < Stripe::StripeObject
148
+ attr_reader :account_holder_name, :business_account_number
149
+ end
150
+
151
+ class Branding < Stripe::StripeObject
152
+ attr_reader :icon, :logo, :primary_color, :secondary_color
153
+ end
154
+
155
+ class Capital < Stripe::StripeObject
156
+ attr_reader :payout_destination, :payout_destination_selector
157
+ end
158
+
159
+ class CardIssuing < Stripe::StripeObject
160
+ class TosAcceptance < Stripe::StripeObject
161
+ attr_reader :date, :ip, :user_agent
162
+ end
163
+ attr_reader :tos_acceptance
164
+ end
165
+
166
+ class CardPayments < Stripe::StripeObject
167
+ class DeclineOn < Stripe::StripeObject
168
+ attr_reader :avs_failure, :cvc_failure
169
+ end
170
+ attr_reader :decline_on, :statement_descriptor_prefix, :statement_descriptor_prefix_kana, :statement_descriptor_prefix_kanji
171
+ end
172
+
173
+ class Dashboard < Stripe::StripeObject
174
+ attr_reader :display_name, :timezone
175
+ end
176
+
177
+ class Invoices < Stripe::StripeObject
178
+ attr_reader :default_account_tax_ids
179
+ end
180
+
181
+ class Payments < Stripe::StripeObject
182
+ attr_reader :statement_descriptor, :statement_descriptor_kana, :statement_descriptor_kanji, :statement_descriptor_prefix_kana, :statement_descriptor_prefix_kanji
183
+ end
184
+
185
+ class Payouts < Stripe::StripeObject
186
+ class Schedule < Stripe::StripeObject
187
+ attr_reader :delay_days, :interval, :monthly_anchor, :weekly_anchor
188
+ end
189
+ attr_reader :debit_negative_balances, :schedule, :statement_descriptor
190
+ end
191
+
192
+ class SepaDebitPayments < Stripe::StripeObject
193
+ attr_reader :creditor_id
194
+ end
195
+
196
+ class TaxForms < Stripe::StripeObject
197
+ attr_reader :consented_to_paperless_delivery
198
+ end
199
+
200
+ class Treasury < Stripe::StripeObject
201
+ class TosAcceptance < Stripe::StripeObject
202
+ attr_reader :date, :ip, :user_agent
203
+ end
204
+ attr_reader :tos_acceptance
205
+ end
206
+ attr_reader :bacs_debit_payments, :bank_bca_onboarding, :branding, :capital, :card_issuing, :card_payments, :dashboard, :invoices, :payments, :payouts, :sepa_debit_payments, :tax_forms, :treasury
207
+ end
208
+
209
+ class TosAcceptance < Stripe::StripeObject
210
+ attr_reader :date, :ip, :service_agreement, :user_agent
211
+ end
212
+ # Business information about the account.
213
+ attr_reader :business_profile
214
+ # The business type. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
215
+ attr_reader :business_type
216
+ # Attribute for field capabilities
217
+ attr_reader :capabilities
218
+ # Whether the account can process charges.
219
+ attr_reader :charges_enabled
220
+ # Attribute for field company
221
+ attr_reader :company
222
+ # Attribute for field controller
223
+ attr_reader :controller
224
+ # The account's country.
225
+ attr_reader :country
226
+ # Time at which the account was connected. Measured in seconds since the Unix epoch.
227
+ attr_reader :created
228
+ # Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).
229
+ attr_reader :default_currency
230
+ # Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](/connect/onboarding) to finish submitting account details.
231
+ attr_reader :details_submitted
232
+ # An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.
233
+ attr_reader :email
234
+ # External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.
235
+ attr_reader :external_accounts
236
+ # Attribute for field future_requirements
237
+ attr_reader :future_requirements
238
+ # The groups associated with the account.
239
+ attr_reader :groups
240
+ # Unique identifier for the object.
241
+ attr_reader :id
242
+ # This is an object representing a person associated with a Stripe account.
243
+ #
244
+ # A platform cannot access a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
245
+ #
246
+ # See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information).
247
+ attr_reader :individual
248
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
249
+ attr_reader :metadata
250
+ # String representing the object's type. Objects of the same type share the same value.
251
+ attr_reader :object
252
+ # Whether the funds in this account can be paid out.
253
+ attr_reader :payouts_enabled
254
+ # Attribute for field requirements
255
+ attr_reader :requirements
256
+ # Attribute for field risk_controls
257
+ attr_reader :risk_controls
258
+ # Options for customizing how the account functions within Stripe.
259
+ attr_reader :settings
260
+ # Attribute for field tos_acceptance
261
+ attr_reader :tos_acceptance
262
+ # The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
263
+ attr_reader :type
264
+ # Always true for a deleted object
265
+ attr_reader :deleted
266
+
37
267
  # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
38
268
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
39
269
  #
@@ -14,6 +14,15 @@ module Stripe
14
14
  "account_link"
15
15
  end
16
16
 
17
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
18
+ attr_reader :created
19
+ # The timestamp at which this account link will expire.
20
+ attr_reader :expires_at
21
+ # String representing the object's type. Objects of the same type share the same value.
22
+ attr_reader :object
23
+ # The URL for the account link.
24
+ attr_reader :url
25
+
17
26
  # Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
18
27
  def self.create(params = {}, opts = {})
19
28
  request_stripe_object(method: :post, path: "/v1/account_links", params: params, opts: opts)
@@ -14,6 +14,34 @@ module Stripe
14
14
  "account_notice"
15
15
  end
16
16
 
17
+ class Email < Stripe::StripeObject
18
+ attr_reader :plain_text, :recipient, :subject
19
+ end
20
+
21
+ class LinkedObjects < Stripe::StripeObject
22
+ attr_reader :capability, :issuing_credit_underwriting_record, :issuing_dispute
23
+ end
24
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
25
+ attr_reader :created
26
+ # When present, the deadline for sending the notice to meet the relevant regulations.
27
+ attr_reader :deadline
28
+ # Information about the email when sent.
29
+ attr_reader :email
30
+ # Unique identifier for the object.
31
+ attr_reader :id
32
+ # Information about objects related to the notice.
33
+ attr_reader :linked_objects
34
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
35
+ attr_reader :livemode
36
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
37
+ attr_reader :metadata
38
+ # String representing the object's type. Objects of the same type share the same value.
39
+ attr_reader :object
40
+ # Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
41
+ attr_reader :reason
42
+ # Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
43
+ attr_reader :sent_at
44
+
17
45
  # Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
18
46
  def self.list(filters = {}, opts = {})
19
47
  request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
@@ -17,6 +17,109 @@ module Stripe
17
17
  "account_session"
18
18
  end
19
19
 
20
+ class Components < Stripe::StripeObject
21
+ class AccountManagement < Stripe::StripeObject
22
+ class Features < Stripe::StripeObject
23
+ attr_reader :disable_stripe_user_authentication, :external_account_collection
24
+ end
25
+ attr_reader :enabled, :features
26
+ end
27
+
28
+ class AccountOnboarding < Stripe::StripeObject
29
+ class Features < Stripe::StripeObject
30
+ attr_reader :disable_stripe_user_authentication, :external_account_collection
31
+ end
32
+ attr_reader :enabled, :features
33
+ end
34
+
35
+ class Balances < Stripe::StripeObject
36
+ class Features < Stripe::StripeObject
37
+ attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
38
+ end
39
+ attr_reader :enabled, :features
40
+ end
41
+
42
+ class CapitalFinancing < Stripe::StripeObject
43
+ class Features < Stripe::StripeObject; end
44
+ attr_reader :enabled, :features
45
+ end
46
+
47
+ class CapitalFinancingApplication < Stripe::StripeObject
48
+ class Features < Stripe::StripeObject; end
49
+ attr_reader :enabled, :features
50
+ end
51
+
52
+ class CapitalFinancingPromotion < Stripe::StripeObject
53
+ class Features < Stripe::StripeObject; end
54
+ attr_reader :enabled, :features
55
+ end
56
+
57
+ class Documents < Stripe::StripeObject
58
+ class Features < Stripe::StripeObject; end
59
+ attr_reader :enabled, :features
60
+ end
61
+
62
+ class NotificationBanner < Stripe::StripeObject
63
+ class Features < Stripe::StripeObject
64
+ attr_reader :disable_stripe_user_authentication, :external_account_collection
65
+ end
66
+ attr_reader :enabled, :features
67
+ end
68
+
69
+ class PaymentDetails < Stripe::StripeObject
70
+ class Features < Stripe::StripeObject
71
+ attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
72
+ end
73
+ attr_reader :enabled, :features
74
+ end
75
+
76
+ class Payments < Stripe::StripeObject
77
+ class Features < Stripe::StripeObject
78
+ attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
79
+ end
80
+ attr_reader :enabled, :features
81
+ end
82
+
83
+ class Payouts < Stripe::StripeObject
84
+ class Features < Stripe::StripeObject
85
+ attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
86
+ end
87
+ attr_reader :enabled, :features
88
+ end
89
+
90
+ class PayoutsList < Stripe::StripeObject
91
+ class Features < Stripe::StripeObject; end
92
+ attr_reader :enabled, :features
93
+ end
94
+
95
+ class TaxRegistrations < Stripe::StripeObject
96
+ class Features < Stripe::StripeObject; end
97
+ attr_reader :enabled, :features
98
+ end
99
+
100
+ class TaxSettings < Stripe::StripeObject
101
+ class Features < Stripe::StripeObject; end
102
+ attr_reader :enabled, :features
103
+ end
104
+ attr_reader :account_management, :account_onboarding, :balances, :capital_financing, :capital_financing_application, :capital_financing_promotion, :documents, :notification_banner, :payment_details, :payments, :payouts, :payouts_list, :tax_registrations, :tax_settings
105
+ end
106
+ # The ID of the account the AccountSession was created for
107
+ attr_reader :account
108
+ # The client secret of this AccountSession. Used on the client to set up secure access to the given `account`.
109
+ #
110
+ # The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
111
+ #
112
+ # Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
113
+ attr_reader :client_secret
114
+ # Attribute for field components
115
+ attr_reader :components
116
+ # The timestamp at which this AccountSession will expire.
117
+ attr_reader :expires_at
118
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
119
+ attr_reader :livemode
120
+ # String representing the object's type. Objects of the same type share the same value.
121
+ attr_reader :object
122
+
20
123
  # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
21
124
  def self.create(params = {}, opts = {})
22
125
  request_stripe_object(method: :post, path: "/v1/account_sessions", params: params, opts: opts)
@@ -13,6 +13,19 @@ module Stripe
13
13
  "apple_pay_domain"
14
14
  end
15
15
 
16
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
17
+ attr_reader :created
18
+ # Attribute for field domain_name
19
+ attr_reader :domain_name
20
+ # Unique identifier for the object.
21
+ attr_reader :id
22
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
23
+ attr_reader :livemode
24
+ # String representing the object's type. Objects of the same type share the same value.
25
+ attr_reader :object
26
+ # Always true for a deleted object
27
+ attr_reader :deleted
28
+
16
29
  # Create an apple pay domain.
17
30
  def self.create(params = {}, opts = {})
18
31
  request_stripe_object(
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class Application < APIResource
6
+ OBJECT_NAME = "application"
7
+ def self.object_name
8
+ "application"
9
+ end
10
+
11
+ # Unique identifier for the object.
12
+ attr_reader :id
13
+ # The name of the application.
14
+ attr_reader :name
15
+ # String representing the object's type. Objects of the same type share the same value.
16
+ attr_reader :object
17
+ # Always true for a deleted object
18
+ attr_reader :deleted
19
+ end
20
+ end
@@ -13,6 +13,40 @@ module Stripe
13
13
 
14
14
  nested_resource_class_methods :refund, operations: %i[create retrieve update list]
15
15
 
16
+ class FeeSource < Stripe::StripeObject
17
+ attr_reader :charge, :payout, :type
18
+ end
19
+ # ID of the Stripe account this fee was taken from.
20
+ attr_reader :account
21
+ # Amount earned, in cents (or local equivalent).
22
+ attr_reader :amount
23
+ # Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
24
+ attr_reader :amount_refunded
25
+ # ID of the Connect application that earned the fee.
26
+ attr_reader :application
27
+ # Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
28
+ attr_reader :balance_transaction
29
+ # ID of the charge that the application fee was taken from.
30
+ attr_reader :charge
31
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
32
+ attr_reader :created
33
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
34
+ attr_reader :currency
35
+ # Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
36
+ attr_reader :fee_source
37
+ # Unique identifier for the object.
38
+ attr_reader :id
39
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
40
+ attr_reader :livemode
41
+ # String representing the object's type. Objects of the same type share the same value.
42
+ attr_reader :object
43
+ # ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.
44
+ attr_reader :originating_transaction
45
+ # Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
46
+ attr_reader :refunded
47
+ # A list of refunds that have been applied to the fee.
48
+ attr_reader :refunds
49
+
16
50
  # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
17
51
  def self.list(filters = {}, opts = {})
18
52
  request_stripe_object(method: :get, path: "/v1/application_fees", params: filters, opts: opts)
@@ -15,6 +15,23 @@ module Stripe
15
15
  "fee_refund"
16
16
  end
17
17
 
18
+ # Amount, in cents (or local equivalent).
19
+ attr_reader :amount
20
+ # Balance transaction that describes the impact on your account balance.
21
+ attr_reader :balance_transaction
22
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
23
+ attr_reader :created
24
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
25
+ attr_reader :currency
26
+ # ID of the application fee that was refunded.
27
+ attr_reader :fee
28
+ # Unique identifier for the object.
29
+ attr_reader :id
30
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
31
+ attr_reader :metadata
32
+ # String representing the object's type. Objects of the same type share the same value.
33
+ attr_reader :object
34
+
18
35
  def resource_url
19
36
  "#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds" \
20
37
  "/#{CGI.escape(id)}"
@@ -21,6 +21,28 @@ module Stripe
21
21
  "apps.secret"
22
22
  end
23
23
 
24
+ class Scope < Stripe::StripeObject
25
+ attr_reader :type, :user
26
+ end
27
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
28
+ attr_reader :created
29
+ # If true, indicates that this secret has been deleted
30
+ attr_reader :deleted
31
+ # The Unix timestamp for the expiry time of the secret, after which the secret deletes.
32
+ attr_reader :expires_at
33
+ # Unique identifier for the object.
34
+ attr_reader :id
35
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
36
+ attr_reader :livemode
37
+ # A name for the secret that's unique within the scope.
38
+ attr_reader :name
39
+ # String representing the object's type. Objects of the same type share the same value.
40
+ attr_reader :object
41
+ # The plaintext secret value to be stored.
42
+ attr_reader :payload
43
+ # Attribute for field scope
44
+ attr_reader :scope
45
+
24
46
  # Create or replace a secret in the secret store.
25
47
  def self.create(params = {}, opts = {})
26
48
  request_stripe_object(method: :post, path: "/v1/apps/secrets", params: params, opts: opts)