stripe 15.2.0.pre.beta.1 → 15.3.0.pre.beta.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 (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +92 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +9 -0
  9. data/lib/stripe/events/v2_core_account_link_completed_event.rb +1 -1
  10. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +1 -1
  11. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +1 -1
  12. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +1 -1
  13. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +1 -1
  14. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +1 -1
  15. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +1 -1
  16. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +1 -1
  17. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +1 -1
  18. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +1 -1
  19. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  21. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  22. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  23. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  24. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  26. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  27. data/lib/stripe/object_types.rb +1 -3
  28. data/lib/stripe/resources/account.rb +47 -20
  29. data/lib/stripe/resources/account_session.rb +85 -24
  30. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  31. data/lib/stripe/resources/balance.rb +42 -0
  32. data/lib/stripe/resources/balance_transaction.rb +2 -0
  33. data/lib/stripe/resources/bank_account.rb +2 -2
  34. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  35. data/lib/stripe/resources/capability.rb +1 -1
  36. data/lib/stripe/resources/charge.rb +85 -9
  37. data/lib/stripe/resources/checkout/session.rb +22 -6
  38. data/lib/stripe/resources/confirmation_token.rb +37 -97
  39. data/lib/stripe/resources/country_spec.rb +1 -1
  40. data/lib/stripe/resources/coupon.rb +1 -2
  41. data/lib/stripe/resources/credit_note.rb +10 -11
  42. data/lib/stripe/resources/customer.rb +2 -4
  43. data/lib/stripe/resources/customer_session.rb +3 -3
  44. data/lib/stripe/resources/dispute.rb +2 -2
  45. data/lib/stripe/resources/event.rb +1 -1
  46. data/lib/stripe/resources/file.rb +1 -1
  47. data/lib/stripe/resources/financial_connections/account.rb +2 -0
  48. data/lib/stripe/resources/financial_connections/institution.rb +2 -0
  49. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  50. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  51. data/lib/stripe/resources/invoice.rb +70 -43
  52. data/lib/stripe/resources/invoice_item.rb +2 -3
  53. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  54. data/lib/stripe/resources/invoice_payment.rb +9 -2
  55. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  56. data/lib/stripe/resources/issuing/card.rb +1 -1
  57. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  58. data/lib/stripe/resources/order.rb +2 -55
  59. data/lib/stripe/resources/payment_attempt_record.rb +8 -0
  60. data/lib/stripe/resources/payment_intent.rb +439 -411
  61. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -0
  62. data/lib/stripe/resources/payment_method.rb +50 -113
  63. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  64. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  65. data/lib/stripe/resources/payment_record.rb +8 -0
  66. data/lib/stripe/resources/payout.rb +4 -4
  67. data/lib/stripe/resources/person.rb +2 -2
  68. data/lib/stripe/resources/plan.rb +2 -3
  69. data/lib/stripe/resources/price.rb +1 -1
  70. data/lib/stripe/resources/privacy/redaction_job.rb +52 -29
  71. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +12 -4
  72. data/lib/stripe/resources/product.rb +1 -61
  73. data/lib/stripe/resources/quote.rb +1 -1
  74. data/lib/stripe/resources/quote_preview_invoice.rb +2 -2
  75. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +26 -1
  76. data/lib/stripe/resources/radar/value_list.rb +1 -2
  77. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  78. data/lib/stripe/resources/refund.rb +6 -1
  79. data/lib/stripe/resources/reversal.rb +1 -1
  80. data/lib/stripe/resources/review.rb +1 -1
  81. data/lib/stripe/resources/setup_intent.rb +123 -311
  82. data/lib/stripe/resources/source.rb +1 -1
  83. data/lib/stripe/resources/subscription.rb +132 -37
  84. data/lib/stripe/resources/subscription_item.rb +33 -0
  85. data/lib/stripe/resources/subscription_schedule.rb +120 -5
  86. data/lib/stripe/resources/tax/association.rb +8 -31
  87. data/lib/stripe/resources/tax/calculation.rb +4 -0
  88. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  89. data/lib/stripe/resources/tax/registration.rb +1 -1
  90. data/lib/stripe/resources/tax_id.rb +1 -2
  91. data/lib/stripe/resources/tax_rate.rb +2 -2
  92. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  93. data/lib/stripe/resources/terminal/location.rb +2 -3
  94. data/lib/stripe/resources/terminal/reader.rb +26 -4
  95. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  96. data/lib/stripe/resources/token.rb +2 -2
  97. data/lib/stripe/resources/transfer.rb +1 -1
  98. data/lib/stripe/resources/v2/core/account.rb +5 -5
  99. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -20
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -24
  101. data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
  102. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  103. data/lib/stripe/resources.rb +8 -3
  104. data/lib/stripe/services/account_external_account_service.rb +2 -3
  105. data/lib/stripe/services/account_login_link_service.rb +1 -1
  106. data/lib/stripe/services/account_person_service.rb +1 -2
  107. data/lib/stripe/services/account_service.rb +38 -13
  108. data/lib/stripe/services/account_session_service.rb +49 -24
  109. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  110. data/lib/stripe/services/balance_service.rb +1 -1
  111. data/lib/stripe/services/balance_settings_service.rb +2 -2
  112. data/lib/stripe/services/charge_service.rb +76 -8
  113. data/lib/stripe/services/checkout/session_service.rb +14 -6
  114. data/lib/stripe/services/coupon_service.rb +1 -2
  115. data/lib/stripe/services/credit_note_service.rb +7 -8
  116. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  117. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  118. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  119. data/lib/stripe/services/customer_service.rb +3 -5
  120. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  121. data/lib/stripe/services/dispute_service.rb +1 -1
  122. data/lib/stripe/services/external_account_service.rb +2 -3
  123. data/lib/stripe/services/file_service.rb +1 -1
  124. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +65 -35
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/order_service.rb +1 -33
  131. data/lib/stripe/services/payment_intent_service.rb +385 -386
  132. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  133. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  134. data/lib/stripe/services/payment_method_service.rb +47 -110
  135. data/lib/stripe/services/payout_service.rb +2 -2
  136. data/lib/stripe/services/plan_service.rb +2 -3
  137. data/lib/stripe/services/price_service.rb +2 -2
  138. data/lib/stripe/services/privacy/redaction_job_service.rb +22 -13
  139. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +1 -1
  140. data/lib/stripe/services/product_feature_service.rb +1 -2
  141. data/lib/stripe/services/product_service.rb +2 -41
  142. data/lib/stripe/services/promotion_code_service.rb +1 -1
  143. data/lib/stripe/services/quote_service.rb +1 -1
  144. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  145. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  146. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  147. data/lib/stripe/services/setup_intent_service.rb +122 -310
  148. data/lib/stripe/services/source_service.rb +1 -1
  149. data/lib/stripe/services/subscription_item_service.rb +26 -0
  150. data/lib/stripe/services/subscription_schedule_service.rb +94 -4
  151. data/lib/stripe/services/subscription_service.rb +103 -33
  152. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  153. data/lib/stripe/services/tax/registration_service.rb +1 -1
  154. data/lib/stripe/services/tax_id_service.rb +1 -2
  155. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  156. data/lib/stripe/services/terminal/location_service.rb +2 -3
  157. data/lib/stripe/services/terminal/reader_service.rb +17 -3
  158. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +37 -97
  159. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  160. data/lib/stripe/services/token_service.rb +1 -1
  161. data/lib/stripe/services/transfer_service.rb +1 -1
  162. data/lib/stripe/services/v1_services.rb +1 -2
  163. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  164. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -4
  165. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  166. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  167. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +3 -7
  168. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -4
  169. data/lib/stripe/services/v2/money_management/adjustment_service.rb +1 -2
  170. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -2
  171. data/lib/stripe/services/v2/money_management/financial_address_service.rb +1 -1
  172. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +1 -2
  173. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +1 -2
  174. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +2 -4
  175. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -4
  176. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +2 -4
  177. data/lib/stripe/services/v2/money_management/payout_method_service.rb +3 -7
  178. data/lib/stripe/services/v2/money_management/received_credit_service.rb +1 -2
  179. data/lib/stripe/services/v2/money_management/received_debit_service.rb +1 -2
  180. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +1 -2
  181. data/lib/stripe/services/v2/money_management/transaction_service.rb +1 -2
  182. data/lib/stripe/services/v2/payment_service.rb +15 -0
  183. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
  184. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +1 -2
  185. data/lib/stripe/services/v2_services.rb +2 -1
  186. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  187. data/lib/stripe/services.rb +2 -3
  188. data/lib/stripe/version.rb +1 -1
  189. data/rbi/stripe.rbi +3903 -4131
  190. metadata +13 -8
  191. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  192. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  193. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  194. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  195. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  196. data/lib/stripe/services/gift_cards_service.rb +0 -14
@@ -19,7 +19,7 @@ module Stripe
19
19
  #
20
20
  # You can't store or use tokens more than once. To store card or bank account
21
21
  # information for later use, create [Customer](https://stripe.com/docs/api#customers)
22
- # objects or [External accounts](https://stripe.com/api#external_accounts).
22
+ # objects or [External accounts](https://docs.stripe.com/api#external_accounts).
23
23
  # [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
24
24
  # performs best with integrations that use client-side tokenization.
25
25
  class Token < APIResource
@@ -1251,7 +1251,7 @@ module Stripe
1251
1251
  attr_reader :used
1252
1252
 
1253
1253
  # Creates a single-use token that represents a bank account's details.
1254
- # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
1254
+ # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
1255
1255
  def self.create(params = {}, opts = {})
1256
1256
  request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
1257
1257
  end
@@ -175,7 +175,7 @@ module Stripe
175
175
  # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
176
176
  attr_reader :transfer_group
177
177
 
178
- # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/docs/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
178
+ # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
179
179
  def self.create(params = {}, opts = {})
180
180
  request_stripe_object(method: :post, path: "/v1/transfers", params: params, opts: opts)
181
181
  end
@@ -15,18 +15,18 @@ module Stripe
15
15
  class Customer < Stripe::StripeObject
16
16
  class AutomaticIndirectTax < Stripe::StripeObject
17
17
  class Location < Stripe::StripeObject
18
- # The customer's country as identified by Stripe Tax.
18
+ # The identified tax country of the customer.
19
19
  attr_reader :country
20
- # The customer's state, county, province, or region as identified by Stripe Tax.
20
+ # The identified tax state, county, province, or region of the customer.
21
21
  attr_reader :state
22
22
  end
23
23
  # Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
24
24
  attr_reader :exempt
25
25
  # A recent IP address of the customer used for tax reporting and tax location inference.
26
26
  attr_reader :ip_address
27
- # The customer’s location as identified by Stripe Tax - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`.
27
+ # The customer’s identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`.
28
28
  attr_reader :location
29
- # The data source used by Stripe Tax to identify the customer's location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
29
+ # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
30
30
  attr_reader :location_source
31
31
  end
32
32
 
@@ -893,7 +893,7 @@ module Stripe
893
893
  attr_reader :sepa_bank_transfer_payments
894
894
  # Allow the merchant to process SEPA Direct Debit payments.
895
895
  attr_reader :sepa_debit_payments
896
- # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
896
+ # Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance).
897
897
  attr_reader :stripe_balance
898
898
  # Allow the merchant to process Swish payments.
899
899
  attr_reader :swish_payments
@@ -81,24 +81,6 @@ module Stripe
81
81
  # Hash containing the transaction bank details. Present if `payment_method_type` field value is `us_bank_account`.
82
82
  attr_reader :us_bank_account
83
83
  end
84
-
85
- class CardSpend < Stripe::StripeObject
86
- class Dispute < Stripe::StripeObject
87
- # The reference to the v1 issuing dispute ID.
88
- attr_reader :issuing_dispute_v1
89
- end
90
-
91
- class Refund < Stripe::StripeObject
92
- # The reference to the v1 issuing transaction ID.
93
- attr_reader :issuing_transaction_v1
94
- end
95
- # The reference to the issuing card object.
96
- attr_reader :card_v1_id
97
- # Hash containing information about the Dispute that triggered this credit.
98
- attr_reader :dispute
99
- # Hash containing information about the Refund that triggered this credit.
100
- attr_reader :refund
101
- end
102
84
  # The amount and currency of the ReceivedCredit.
103
85
  attr_reader :amount
104
86
  # Time at which the ReceivedCredit was created.
@@ -128,8 +110,6 @@ module Stripe
128
110
  attr_reader :balance_transfer
129
111
  # This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `external_credit`.
130
112
  attr_reader :bank_transfer
131
- # This object stores details about the originating issuing card spend that resulted in the ReceivedCredit. Present if `type` field value is `card_spend`.
132
- attr_reader :card_spend
133
113
  end
134
114
  end
135
115
  end
@@ -51,28 +51,6 @@ module Stripe
51
51
  # The payment method used to originate the debit.
52
52
  attr_reader :us_bank_account
53
53
  end
54
-
55
- class CardSpend < Stripe::StripeObject
56
- class Authorization < Stripe::StripeObject
57
- # Amount associated with this issuing authorization.
58
- attr_reader :amount
59
- # The reference to the v1 issuing authorization ID.
60
- attr_reader :issuing_authorization_v1
61
- end
62
-
63
- class CardTransaction < Stripe::StripeObject
64
- # Amount associated with this issuing transaction.
65
- attr_reader :amount
66
- # The reference to the v1 issuing transaction ID.
67
- attr_reader :issuing_transaction_v1
68
- end
69
- # The Issuing Authorization for this card_spend. Contains the reference id and the amount.
70
- attr_reader :authorization
71
- # The list of card spend transactions. These contain the transaction reference ID and the amount.
72
- attr_reader :card_transactions
73
- # The reference to the card object that resulted in the debit.
74
- attr_reader :card_v1_id
75
- end
76
54
  # Amount and currency of the ReceivedDebit.
77
55
  attr_reader :amount
78
56
  # The time at which the ReceivedDebit was created.
@@ -100,8 +78,6 @@ module Stripe
100
78
  attr_reader :livemode
101
79
  # This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
102
80
  attr_reader :bank_transfer
103
- # This object stores details about the issuing transactions that resulted in the ReceivedDebit. Present if `type` field value is `card_spend`.
104
- attr_reader :card_spend
105
81
  end
106
82
  end
107
83
  end
@@ -0,0 +1,74 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Payments
7
+ # Off-session payment resource.
8
+ class OffSessionPayment < APIResource
9
+ OBJECT_NAME = "v2.payments.off_session_payment"
10
+ def self.object_name
11
+ "v2.payments.off_session_payment"
12
+ end
13
+
14
+ class RetryDetails < Stripe::StripeObject
15
+ # Number of authorization attempts so far.
16
+ attr_reader :attempts
17
+ # How you want Stripe to retry the payment.
18
+ attr_reader :retry_strategy
19
+ end
20
+
21
+ class TransferData < Stripe::StripeObject
22
+ # Amount in minor units that you want to transfer.
23
+ attr_reader :amount
24
+ # ID of the connected account where you want money to go.
25
+ attr_reader :destination
26
+ end
27
+ # The amount you requested to be collected on the OSP upon creation.
28
+ attr_reader :amount_requested
29
+ # Number of authorization attempts.
30
+ attr_reader :attempts
31
+ # The frequency of the underlying payment that this OSP represents.
32
+ attr_reader :cadence
33
+ # ID of owning compartment.
34
+ attr_reader :compartment_id
35
+ # Timestamp of creation.
36
+ attr_reader :created
37
+ # Customer owning the supplied payment method.
38
+ attr_reader :customer
39
+ # Reason why the OSP failed.
40
+ attr_reader :failure_reason
41
+ # ID of the OSP.
42
+ attr_reader :id
43
+ # Last error returned by the financial partner for a failed authorization.
44
+ attr_reader :last_authorization_attempt_error
45
+ # Payment attempt record for the latest attempt, if one exists.
46
+ attr_reader :latest_payment_attempt_record
47
+ # True if the txn is livemode, false otherwise.
48
+ attr_reader :livemode
49
+ # Metadata you provided.
50
+ attr_reader :metadata
51
+ # String representing the object's type. Objects of the same type share the same value of the object field.
52
+ attr_reader :object
53
+ # OBO, same as on the PI.
54
+ attr_reader :on_behalf_of
55
+ # ID of payment method.
56
+ attr_reader :payment_method
57
+ # Payment record associated with the OSP. consistent across attempts.
58
+ attr_reader :payment_record
59
+ # Details about the OSP retries.
60
+ attr_reader :retry_details
61
+ # Statement descriptor you provided.
62
+ attr_reader :statement_descriptor
63
+ # Statement descriptor suffix you provided, similar to that on the PI.
64
+ attr_reader :statement_descriptor_suffix
65
+ # Status of the OSP.
66
+ attr_reader :status
67
+ # Test clock to be used to advance the retry attempts.
68
+ attr_reader :test_clock
69
+ # Instructions for the transfer to be made with this OSP after successful money movement.
70
+ attr_reader :transfer_data
71
+ end
72
+ end
73
+ end
74
+ end
@@ -20,8 +20,7 @@ module Stripe
20
20
  "webhook_endpoint"
21
21
  end
22
22
 
23
- class DeleteParams < Stripe::RequestParams
24
- end
23
+ class DeleteParams < Stripe::RequestParams; end
25
24
 
26
25
  class UpdateParams < Stripe::RequestParams
27
26
  # An optional description of what the webhook is used for.
@@ -20,7 +20,6 @@ require "stripe/resources/billing/credit_balance_summary"
20
20
  require "stripe/resources/billing/credit_balance_transaction"
21
21
  require "stripe/resources/billing/credit_grant"
22
22
  require "stripe/resources/billing/meter"
23
- require "stripe/resources/billing/meter_error_report"
24
23
  require "stripe/resources/billing/meter_event"
25
24
  require "stripe/resources/billing/meter_event_adjustment"
26
25
  require "stripe/resources/billing/meter_event_summary"
@@ -67,8 +66,6 @@ require "stripe/resources/financial_connections/transaction"
67
66
  require "stripe/resources/forwarding/request"
68
67
  require "stripe/resources/funding_instructions"
69
68
  require "stripe/resources/fx_quote"
70
- require "stripe/resources/gift_cards/card"
71
- require "stripe/resources/gift_cards/transaction"
72
69
  require "stripe/resources/identity/verification_report"
73
70
  require "stripe/resources/identity/verification_session"
74
71
  require "stripe/resources/invoice"
@@ -191,6 +188,7 @@ require "stripe/resources/v2/money_management/received_credit"
191
188
  require "stripe/resources/v2/money_management/received_debit"
192
189
  require "stripe/resources/v2/money_management/transaction"
193
190
  require "stripe/resources/v2/money_management/transaction_entry"
191
+ require "stripe/resources/v2/payments/off_session_payment"
194
192
  require "stripe/resources/webhook_endpoint"
195
193
  require "stripe/events/v1_billing_meter_error_report_triggered_event"
196
194
  require "stripe/events/v1_billing_meter_no_meter_found_event"
@@ -245,3 +243,10 @@ require "stripe/events/v2_money_management_received_debit_succeeded_event"
245
243
  require "stripe/events/v2_money_management_received_debit_updated_event"
246
244
  require "stripe/events/v2_money_management_transaction_created_event"
247
245
  require "stripe/events/v2_money_management_transaction_updated_event"
246
+ require "stripe/events/v2_off_session_payment_requires_capture_event"
247
+ require "stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event"
248
+ require "stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event"
249
+ require "stripe/events/v2_payments_off_session_payment_canceled_event"
250
+ require "stripe/events/v2_payments_off_session_payment_created_event"
251
+ require "stripe/events/v2_payments_off_session_payment_failed_event"
252
+ require "stripe/events/v2_payments_off_session_payment_succeeded_event"
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class AccountExternalAccountService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -301,7 +300,7 @@ module Stripe
301
300
  # a connected account and optionally sets it as the default for its currency. Other bank account
302
301
  # details are not editable by design.
303
302
  #
304
- # You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
303
+ # You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
305
304
  #
306
305
  # You can re-enable a disabled bank account by performing an update call without providing any
307
306
  # arguments or changes.
@@ -14,7 +14,7 @@ module Stripe
14
14
 
15
15
  # Creates a login link for a connected account to access the Express Dashboard.
16
16
  #
17
- # You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
17
+ # You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
18
18
  def create(account, params = {}, opts = {})
19
19
  request(
20
20
  method: :post,
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class AccountPersonService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -13,8 +13,7 @@ module Stripe
13
13
  @persons = Stripe::AccountPersonService.new(@requestor)
14
14
  end
15
15
 
16
- class DeleteParams < Stripe::RequestParams
17
- end
16
+ class DeleteParams < Stripe::RequestParams; end
18
17
 
19
18
  class RetrieveParams < Stripe::RequestParams
20
19
  # Specifies which fields in the response should be expanded.
@@ -606,6 +605,15 @@ module Stripe
606
605
  end
607
606
  end
608
607
 
608
+ class PixPayments < Stripe::RequestParams
609
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
610
+ attr_accessor :requested
611
+
612
+ def initialize(requested: nil)
613
+ @requested = requested
614
+ end
615
+ end
616
+
609
617
  class PromptpayPayments < Stripe::RequestParams
610
618
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
611
619
  attr_accessor :requested
@@ -908,6 +916,8 @@ module Stripe
908
916
  attr_accessor :paypal_payments
909
917
  # The payto_payments capability.
910
918
  attr_accessor :payto_payments
919
+ # The pix_payments capability.
920
+ attr_accessor :pix_payments
911
921
  # The promptpay_payments capability.
912
922
  attr_accessor :promptpay_payments
913
923
  # The qris_payments capability.
@@ -1004,6 +1014,7 @@ module Stripe
1004
1014
  paynow_payments: nil,
1005
1015
  paypal_payments: nil,
1006
1016
  payto_payments: nil,
1017
+ pix_payments: nil,
1007
1018
  promptpay_payments: nil,
1008
1019
  qris_payments: nil,
1009
1020
  rechnung_payments: nil,
@@ -1076,6 +1087,7 @@ module Stripe
1076
1087
  @paynow_payments = paynow_payments
1077
1088
  @paypal_payments = paypal_payments
1078
1089
  @payto_payments = payto_payments
1090
+ @pix_payments = pix_payments
1079
1091
  @promptpay_payments = promptpay_payments
1080
1092
  @qris_payments = qris_payments
1081
1093
  @rechnung_payments = rechnung_payments
@@ -2876,6 +2888,15 @@ module Stripe
2876
2888
  end
2877
2889
  end
2878
2890
 
2891
+ class PixPayments < Stripe::RequestParams
2892
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2893
+ attr_accessor :requested
2894
+
2895
+ def initialize(requested: nil)
2896
+ @requested = requested
2897
+ end
2898
+ end
2899
+
2879
2900
  class PromptpayPayments < Stripe::RequestParams
2880
2901
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2881
2902
  attr_accessor :requested
@@ -3178,6 +3199,8 @@ module Stripe
3178
3199
  attr_accessor :paypal_payments
3179
3200
  # The payto_payments capability.
3180
3201
  attr_accessor :payto_payments
3202
+ # The pix_payments capability.
3203
+ attr_accessor :pix_payments
3181
3204
  # The promptpay_payments capability.
3182
3205
  attr_accessor :promptpay_payments
3183
3206
  # The qris_payments capability.
@@ -3274,6 +3297,7 @@ module Stripe
3274
3297
  paynow_payments: nil,
3275
3298
  paypal_payments: nil,
3276
3299
  payto_payments: nil,
3300
+ pix_payments: nil,
3277
3301
  promptpay_payments: nil,
3278
3302
  qris_payments: nil,
3279
3303
  rechnung_payments: nil,
@@ -3346,6 +3370,7 @@ module Stripe
3346
3370
  @paynow_payments = paynow_payments
3347
3371
  @paypal_payments = paypal_payments
3348
3372
  @payto_payments = payto_payments
3373
+ @pix_payments = pix_payments
3349
3374
  @promptpay_payments = promptpay_payments
3350
3375
  @qris_payments = qris_payments
3351
3376
  @rechnung_payments = rechnung_payments
@@ -4620,21 +4645,21 @@ module Stripe
4620
4645
  end
4621
4646
  end
4622
4647
 
4623
- # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
4648
+ # With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
4624
4649
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
4625
4650
  #
4626
- # If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
4651
+ # If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
4627
4652
  # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
4628
4653
  # You can prefill any information on the account.
4629
4654
  def create(params = {}, opts = {})
4630
4655
  request(method: :post, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4631
4656
  end
4632
4657
 
4633
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
4658
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
4634
4659
  #
4635
4660
  # Test-mode accounts can be deleted at any time.
4636
4661
  #
4637
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
4662
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
4638
4663
  #
4639
4664
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4640
4665
  def delete(account, params = {}, opts = {})
@@ -4647,12 +4672,12 @@ module Stripe
4647
4672
  )
4648
4673
  end
4649
4674
 
4650
- # Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
4675
+ # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
4651
4676
  def list(params = {}, opts = {})
4652
4677
  request(method: :get, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4653
4678
  end
4654
4679
 
4655
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4680
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4656
4681
  #
4657
4682
  # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
4658
4683
  def reject(account, params = {}, opts = {})
@@ -4681,19 +4706,19 @@ module Stripe
4681
4706
  request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
4682
4707
  end
4683
4708
 
4684
- # Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4709
+ # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4685
4710
  # left unchanged.
4686
4711
  #
4687
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4712
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4688
4713
  # is application, which includes Custom accounts, you can update any information on the account.
4689
4714
  #
4690
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4715
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4691
4716
  # is stripe, which includes Standard and Express accounts, you can update all information until you create
4692
- # an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
4717
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
4693
4718
  # after which some properties can no longer be updated.
4694
4719
  #
4695
4720
  # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
4696
- # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4721
+ # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4697
4722
  def update(account, params = {}, opts = {})
4698
4723
  request(
4699
4724
  method: :post,
@@ -136,8 +136,7 @@ module Stripe
136
136
  end
137
137
 
138
138
  class CapitalFinancing < Stripe::RequestParams
139
- class Features < Stripe::RequestParams
140
- end
139
+ class Features < Stripe::RequestParams; end
141
140
  # Whether the embedded component is enabled.
142
141
  attr_accessor :enabled
143
142
  # The list of features enabled in the embedded component.
@@ -150,8 +149,7 @@ module Stripe
150
149
  end
151
150
 
152
151
  class CapitalFinancingApplication < Stripe::RequestParams
153
- class Features < Stripe::RequestParams
154
- end
152
+ class Features < Stripe::RequestParams; end
155
153
  # Whether the embedded component is enabled.
156
154
  attr_accessor :enabled
157
155
  # The list of features enabled in the embedded component.
@@ -164,8 +162,7 @@ module Stripe
164
162
  end
165
163
 
166
164
  class CapitalFinancingPromotion < Stripe::RequestParams
167
- class Features < Stripe::RequestParams
168
- end
165
+ class Features < Stripe::RequestParams; end
169
166
  # Whether the embedded component is enabled.
170
167
  attr_accessor :enabled
171
168
  # The list of features enabled in the embedded component.
@@ -178,7 +175,40 @@ module Stripe
178
175
  end
179
176
 
180
177
  class CapitalOverview < Stripe::RequestParams
178
+ class Features < Stripe::RequestParams; end
179
+ # Whether the embedded component is enabled.
180
+ attr_accessor :enabled
181
+ # The list of features enabled in the embedded component.
182
+ attr_accessor :features
183
+
184
+ def initialize(enabled: nil, features: nil)
185
+ @enabled = enabled
186
+ @features = features
187
+ end
188
+ end
189
+
190
+ class DisputesList < Stripe::RequestParams
181
191
  class Features < Stripe::RequestParams
192
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
193
+ attr_accessor :capture_payments
194
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
195
+ attr_accessor :destination_on_behalf_of_charge_management
196
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
197
+ attr_accessor :dispute_management
198
+ # Whether to allow sending refunds. This is `true` by default.
199
+ attr_accessor :refund_management
200
+
201
+ def initialize(
202
+ capture_payments: nil,
203
+ destination_on_behalf_of_charge_management: nil,
204
+ dispute_management: nil,
205
+ refund_management: nil
206
+ )
207
+ @capture_payments = capture_payments
208
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
209
+ @dispute_management = dispute_management
210
+ @refund_management = refund_management
211
+ end
182
212
  end
183
213
  # Whether the embedded component is enabled.
184
214
  attr_accessor :enabled
@@ -192,8 +222,7 @@ module Stripe
192
222
  end
193
223
 
194
224
  class Documents < Stripe::RequestParams
195
- class Features < Stripe::RequestParams
196
- end
225
+ class Features < Stripe::RequestParams; end
197
226
  # Whether the embedded component is enabled.
198
227
  attr_accessor :enabled
199
228
  # The list of features enabled in the embedded component.
@@ -206,8 +235,7 @@ module Stripe
206
235
  end
207
236
 
208
237
  class ExportTaxTransactions < Stripe::RequestParams
209
- class Features < Stripe::RequestParams
210
- end
238
+ class Features < Stripe::RequestParams; end
211
239
  # Whether the embedded component is enabled.
212
240
  attr_accessor :enabled
213
241
  # The list of features enabled in the embedded component.
@@ -436,8 +464,7 @@ module Stripe
436
464
  end
437
465
 
438
466
  class PaymentMethodSettings < Stripe::RequestParams
439
- class Features < Stripe::RequestParams
440
- end
467
+ class Features < Stripe::RequestParams; end
441
468
  # Whether the embedded component is enabled.
442
469
  attr_accessor :enabled
443
470
  # The list of features enabled in the embedded component.
@@ -522,8 +549,7 @@ module Stripe
522
549
  end
523
550
 
524
551
  class PayoutsList < Stripe::RequestParams
525
- class Features < Stripe::RequestParams
526
- end
552
+ class Features < Stripe::RequestParams; end
527
553
  # Whether the embedded component is enabled.
528
554
  attr_accessor :enabled
529
555
  # The list of features enabled in the embedded component.
@@ -536,8 +562,7 @@ module Stripe
536
562
  end
537
563
 
538
564
  class ProductTaxCodeSelector < Stripe::RequestParams
539
- class Features < Stripe::RequestParams
540
- end
565
+ class Features < Stripe::RequestParams; end
541
566
  # Whether the embedded component is enabled.
542
567
  attr_accessor :enabled
543
568
  # The list of features enabled in the embedded component.
@@ -570,8 +595,7 @@ module Stripe
570
595
  end
571
596
 
572
597
  class ReportingChart < Stripe::RequestParams
573
- class Features < Stripe::RequestParams
574
- end
598
+ class Features < Stripe::RequestParams; end
575
599
  # Whether the embedded component is enabled.
576
600
  attr_accessor :enabled
577
601
  # The list of features enabled in the embedded component.
@@ -584,8 +608,7 @@ module Stripe
584
608
  end
585
609
 
586
610
  class TaxRegistrations < Stripe::RequestParams
587
- class Features < Stripe::RequestParams
588
- end
611
+ class Features < Stripe::RequestParams; end
589
612
  # Whether the embedded component is enabled.
590
613
  attr_accessor :enabled
591
614
  # The list of features enabled in the embedded component.
@@ -598,8 +621,7 @@ module Stripe
598
621
  end
599
622
 
600
623
  class TaxSettings < Stripe::RequestParams
601
- class Features < Stripe::RequestParams
602
- end
624
+ class Features < Stripe::RequestParams; end
603
625
  # Whether the embedded component is enabled.
604
626
  attr_accessor :enabled
605
627
  # The list of features enabled in the embedded component.
@@ -612,8 +634,7 @@ module Stripe
612
634
  end
613
635
 
614
636
  class TaxThresholdMonitoring < Stripe::RequestParams
615
- class Features < Stripe::RequestParams
616
- end
637
+ class Features < Stripe::RequestParams; end
617
638
  # Whether the embedded component is enabled.
618
639
  attr_accessor :enabled
619
640
  # The list of features enabled in the embedded component.
@@ -642,6 +663,8 @@ module Stripe
642
663
  attr_accessor :capital_financing_promotion
643
664
  # Configuration for the capital overview embedded component.
644
665
  attr_accessor :capital_overview
666
+ # Configuration for the disputes list embedded component.
667
+ attr_accessor :disputes_list
645
668
  # Configuration for the documents embedded component.
646
669
  attr_accessor :documents
647
670
  # Configuration for the export tax transactions embedded component.
@@ -691,6 +714,7 @@ module Stripe
691
714
  capital_financing_application: nil,
692
715
  capital_financing_promotion: nil,
693
716
  capital_overview: nil,
717
+ disputes_list: nil,
694
718
  documents: nil,
695
719
  export_tax_transactions: nil,
696
720
  financial_account: nil,
@@ -720,6 +744,7 @@ module Stripe
720
744
  @capital_financing_application = capital_financing_application
721
745
  @capital_financing_promotion = capital_financing_promotion
722
746
  @capital_overview = capital_overview
747
+ @disputes_list = disputes_list
723
748
  @documents = documents
724
749
  @export_tax_transactions = export_tax_transactions
725
750
  @financial_account = financial_account
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class ApplePayDomainService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -13,7 +13,7 @@ module Stripe
13
13
  end
14
14
 
15
15
  # Retrieves the current account balance, based on the authentication that was used to make the request.
16
- # For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
16
+ # For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
17
17
  def retrieve(params = {}, opts = {})
18
18
  request(method: :get, path: "/v1/balance", params: params, opts: opts, base_address: :api)
19
19
  end