stripe 13.3.0.pre.beta.2 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1394
  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 +0 -32
  7. data/lib/stripe/resources/account.rb +2 -232
  8. data/lib/stripe/resources/account_link.rb +0 -9
  9. data/lib/stripe/resources/account_session.rb +0 -103
  10. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  11. data/lib/stripe/resources/application_fee.rb +2 -36
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  13. data/lib/stripe/resources/apps/secret.rb +2 -24
  14. data/lib/stripe/resources/balance.rb +0 -59
  15. data/lib/stripe/resources/balance_transaction.rb +2 -36
  16. data/lib/stripe/resources/bank_account.rb +3 -61
  17. data/lib/stripe/resources/billing/alert.rb +2 -23
  18. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  19. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -46
  20. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  21. data/lib/stripe/resources/billing/meter.rb +2 -44
  22. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  23. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  24. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  25. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  26. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  27. data/lib/stripe/resources/capability.rb +0 -38
  28. data/lib/stripe/resources/card.rb +1 -73
  29. data/lib/stripe/resources/cash_balance.rb +0 -14
  30. data/lib/stripe/resources/charge.rb +2 -471
  31. data/lib/stripe/resources/checkout/session.rb +2 -498
  32. data/lib/stripe/resources/climate/order.rb +2 -57
  33. data/lib/stripe/resources/climate/product.rb +2 -26
  34. data/lib/stripe/resources/climate/supplier.rb +2 -20
  35. data/lib/stripe/resources/confirmation_token.rb +0 -297
  36. data/lib/stripe/resources/country_spec.rb +2 -29
  37. data/lib/stripe/resources/coupon.rb +2 -46
  38. data/lib/stripe/resources/credit_note.rb +2 -93
  39. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  40. data/lib/stripe/resources/customer.rb +2 -95
  41. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  42. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  43. data/lib/stripe/resources/customer_session.rb +0 -34
  44. data/lib/stripe/resources/discount.rb +0 -29
  45. data/lib/stripe/resources/dispute.rb +2 -90
  46. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  47. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  48. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  49. data/lib/stripe/resources/event.rb +2 -46
  50. data/lib/stripe/resources/exchange_rate.rb +2 -9
  51. data/lib/stripe/resources/file.rb +2 -25
  52. data/lib/stripe/resources/file_link.rb +2 -21
  53. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  54. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  55. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  56. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  57. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  58. data/lib/stripe/resources/forwarding/request.rb +2 -42
  59. data/lib/stripe/resources/funding_instructions.rb +0 -82
  60. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  61. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  62. data/lib/stripe/resources/invoice.rb +2 -420
  63. data/lib/stripe/resources/invoice_item.rb +2 -56
  64. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  65. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  66. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  67. data/lib/stripe/resources/issuing/card.rb +2 -88
  68. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  69. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  70. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  71. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  72. data/lib/stripe/resources/issuing/token.rb +2 -48
  73. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  74. data/lib/stripe/resources/line_item.rb +0 -50
  75. data/lib/stripe/resources/login_link.rb +0 -7
  76. data/lib/stripe/resources/mandate.rb +0 -78
  77. data/lib/stripe/resources/payment_intent.rb +2 -714
  78. data/lib/stripe/resources/payment_link.rb +2 -200
  79. data/lib/stripe/resources/payment_method.rb +2 -370
  80. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  81. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  82. data/lib/stripe/resources/payout.rb +2 -58
  83. data/lib/stripe/resources/person.rb +0 -128
  84. data/lib/stripe/resources/plan.rb +2 -54
  85. data/lib/stripe/resources/price.rb +2 -79
  86. data/lib/stripe/resources/product.rb +2 -62
  87. data/lib/stripe/resources/product_feature.rb +0 -12
  88. data/lib/stripe/resources/promotion_code.rb +2 -37
  89. data/lib/stripe/resources/quote.rb +2 -358
  90. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  91. data/lib/stripe/resources/radar/value_list.rb +2 -25
  92. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  93. data/lib/stripe/resources/refund.rb +2 -132
  94. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  95. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  96. data/lib/stripe/resources/reversal.rb +0 -21
  97. data/lib/stripe/resources/review.rb +2 -38
  98. data/lib/stripe/resources/setup_attempt.rb +2 -103
  99. data/lib/stripe/resources/setup_intent.rb +2 -160
  100. data/lib/stripe/resources/shipping_rate.rb +2 -44
  101. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  102. data/lib/stripe/resources/source.rb +0 -195
  103. data/lib/stripe/resources/source_transaction.rb +0 -48
  104. data/lib/stripe/resources/subscription.rb +2 -216
  105. data/lib/stripe/resources/subscription_item.rb +2 -48
  106. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  107. data/lib/stripe/resources/tax/calculation.rb +0 -72
  108. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  109. data/lib/stripe/resources/tax/registration.rb +2 -381
  110. data/lib/stripe/resources/tax/settings.rb +0 -33
  111. data/lib/stripe/resources/tax/transaction.rb +0 -68
  112. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  113. data/lib/stripe/resources/tax_code.rb +2 -11
  114. data/lib/stripe/resources/tax_id.rb +2 -32
  115. data/lib/stripe/resources/tax_rate.rb +2 -44
  116. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  117. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  118. data/lib/stripe/resources/terminal/location.rb +2 -22
  119. data/lib/stripe/resources/terminal/reader.rb +2 -180
  120. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  121. data/lib/stripe/resources/token.rb +0 -29
  122. data/lib/stripe/resources/topup.rb +2 -35
  123. data/lib/stripe/resources/transfer.rb +2 -37
  124. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  125. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  126. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  127. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  128. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  129. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  130. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  131. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  132. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  133. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  134. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  135. data/lib/stripe/resources/usage_record.rb +0 -13
  136. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  138. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  139. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  140. data/lib/stripe/resources/v2/event.rb +0 -21
  141. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  142. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  143. data/lib/stripe/resources.rb +0 -31
  144. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  145. data/lib/stripe/services/financial_connections_service.rb +1 -2
  146. data/lib/stripe/services/invoice_service.rb +1 -44
  147. data/lib/stripe/services/issuing_service.rb +1 -5
  148. data/lib/stripe/services/payment_intent_service.rb +0 -37
  149. data/lib/stripe/services/quote_service.rb +1 -49
  150. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  153. data/lib/stripe/services/terminal_service.rb +1 -2
  154. data/lib/stripe/services/v1_services.rb +1 -8
  155. data/lib/stripe/services.rb +0 -25
  156. data/lib/stripe/stripe_client.rb +1 -1
  157. data/lib/stripe/stripe_configuration.rb +1 -3
  158. data/lib/stripe/stripe_object.rb +3 -8
  159. data/lib/stripe/util.rb +2 -8
  160. data/lib/stripe/version.rb +1 -1
  161. data/lib/stripe.rb +0 -45
  162. data/stripe.gemspec +1 -2
  163. metadata +4 -62
  164. data/lib/stripe/request_signing_authenticator.rb +0 -79
  165. data/lib/stripe/resources/account_notice.rb +0 -60
  166. data/lib/stripe/resources/application.rb +0 -20
  167. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  168. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  169. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  170. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  171. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  172. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  173. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  174. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  175. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  176. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  177. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  178. data/lib/stripe/resources/invoice_payment.rb +0 -46
  179. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  180. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  181. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  182. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  183. data/lib/stripe/resources/margin.rb +0 -56
  184. data/lib/stripe/resources/order.rb +0 -322
  185. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  186. data/lib/stripe/resources/payment_record.rb +0 -194
  187. data/lib/stripe/resources/quote_line.rb +0 -136
  188. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  189. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  190. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  191. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  192. data/lib/stripe/resources/tax/association.rb +0 -60
  193. data/lib/stripe/resources/tax/form.rb +0 -124
  194. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  195. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  196. data/lib/stripe/resources/v2/amount.rb +0 -9
  197. data/lib/stripe/services/account_notice_service.rb +0 -39
  198. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  199. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  200. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  201. data/lib/stripe/services/capital_service.rb +0 -15
  202. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  203. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  204. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  205. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  206. data/lib/stripe/services/gift_cards_service.rb +0 -14
  207. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  208. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  209. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  210. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  211. data/lib/stripe/services/margin_service.rb +0 -50
  212. data/lib/stripe/services/order_line_item_service.rb +0 -17
  213. data/lib/stripe/services/order_service.rb +0 -78
  214. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  215. data/lib/stripe/services/payment_record_service.rb +0 -78
  216. data/lib/stripe/services/quote_line_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  219. data/lib/stripe/services/tax/association_service.rb +0 -19
  220. data/lib/stripe/services/tax/form_service.rb +0 -37
  221. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -26,436 +26,6 @@ module Stripe
26
26
  "payment_method_configuration"
27
27
  end
28
28
 
29
- class AcssDebit < Stripe::StripeObject
30
- class DisplayPreference < Stripe::StripeObject
31
- attr_reader :overridable, :preference, :value
32
- end
33
- attr_reader :available, :display_preference
34
- end
35
-
36
- class Affirm < Stripe::StripeObject
37
- class DisplayPreference < Stripe::StripeObject
38
- attr_reader :overridable, :preference, :value
39
- end
40
- attr_reader :available, :display_preference
41
- end
42
-
43
- class AfterpayClearpay < Stripe::StripeObject
44
- class DisplayPreference < Stripe::StripeObject
45
- attr_reader :overridable, :preference, :value
46
- end
47
- attr_reader :available, :display_preference
48
- end
49
-
50
- class Alipay < Stripe::StripeObject
51
- class DisplayPreference < Stripe::StripeObject
52
- attr_reader :overridable, :preference, :value
53
- end
54
- attr_reader :available, :display_preference
55
- end
56
-
57
- class Alma < Stripe::StripeObject
58
- class DisplayPreference < Stripe::StripeObject
59
- attr_reader :overridable, :preference, :value
60
- end
61
- attr_reader :available, :display_preference
62
- end
63
-
64
- class AmazonPay < Stripe::StripeObject
65
- class DisplayPreference < Stripe::StripeObject
66
- attr_reader :overridable, :preference, :value
67
- end
68
- attr_reader :available, :display_preference
69
- end
70
-
71
- class ApplePay < Stripe::StripeObject
72
- class DisplayPreference < Stripe::StripeObject
73
- attr_reader :overridable, :preference, :value
74
- end
75
- attr_reader :available, :display_preference
76
- end
77
-
78
- class AuBecsDebit < Stripe::StripeObject
79
- class DisplayPreference < Stripe::StripeObject
80
- attr_reader :overridable, :preference, :value
81
- end
82
- attr_reader :available, :display_preference
83
- end
84
-
85
- class BacsDebit < Stripe::StripeObject
86
- class DisplayPreference < Stripe::StripeObject
87
- attr_reader :overridable, :preference, :value
88
- end
89
- attr_reader :available, :display_preference
90
- end
91
-
92
- class Bancontact < Stripe::StripeObject
93
- class DisplayPreference < Stripe::StripeObject
94
- attr_reader :overridable, :preference, :value
95
- end
96
- attr_reader :available, :display_preference
97
- end
98
-
99
- class Blik < Stripe::StripeObject
100
- class DisplayPreference < Stripe::StripeObject
101
- attr_reader :overridable, :preference, :value
102
- end
103
- attr_reader :available, :display_preference
104
- end
105
-
106
- class Boleto < Stripe::StripeObject
107
- class DisplayPreference < Stripe::StripeObject
108
- attr_reader :overridable, :preference, :value
109
- end
110
- attr_reader :available, :display_preference
111
- end
112
-
113
- class Card < Stripe::StripeObject
114
- class DisplayPreference < Stripe::StripeObject
115
- attr_reader :overridable, :preference, :value
116
- end
117
- attr_reader :available, :display_preference
118
- end
119
-
120
- class CartesBancaires < Stripe::StripeObject
121
- class DisplayPreference < Stripe::StripeObject
122
- attr_reader :overridable, :preference, :value
123
- end
124
- attr_reader :available, :display_preference
125
- end
126
-
127
- class Cashapp < Stripe::StripeObject
128
- class DisplayPreference < Stripe::StripeObject
129
- attr_reader :overridable, :preference, :value
130
- end
131
- attr_reader :available, :display_preference
132
- end
133
-
134
- class CustomerBalance < Stripe::StripeObject
135
- class DisplayPreference < Stripe::StripeObject
136
- attr_reader :overridable, :preference, :value
137
- end
138
- attr_reader :available, :display_preference
139
- end
140
-
141
- class Eps < Stripe::StripeObject
142
- class DisplayPreference < Stripe::StripeObject
143
- attr_reader :overridable, :preference, :value
144
- end
145
- attr_reader :available, :display_preference
146
- end
147
-
148
- class Fpx < Stripe::StripeObject
149
- class DisplayPreference < Stripe::StripeObject
150
- attr_reader :overridable, :preference, :value
151
- end
152
- attr_reader :available, :display_preference
153
- end
154
-
155
- class Giropay < Stripe::StripeObject
156
- class DisplayPreference < Stripe::StripeObject
157
- attr_reader :overridable, :preference, :value
158
- end
159
- attr_reader :available, :display_preference
160
- end
161
-
162
- class GooglePay < Stripe::StripeObject
163
- class DisplayPreference < Stripe::StripeObject
164
- attr_reader :overridable, :preference, :value
165
- end
166
- attr_reader :available, :display_preference
167
- end
168
-
169
- class Gopay < Stripe::StripeObject
170
- class DisplayPreference < Stripe::StripeObject
171
- attr_reader :overridable, :preference, :value
172
- end
173
- attr_reader :available, :display_preference
174
- end
175
-
176
- class Grabpay < Stripe::StripeObject
177
- class DisplayPreference < Stripe::StripeObject
178
- attr_reader :overridable, :preference, :value
179
- end
180
- attr_reader :available, :display_preference
181
- end
182
-
183
- class IdBankTransfer < Stripe::StripeObject
184
- class DisplayPreference < Stripe::StripeObject
185
- attr_reader :overridable, :preference, :value
186
- end
187
- attr_reader :available, :display_preference
188
- end
189
-
190
- class Ideal < Stripe::StripeObject
191
- class DisplayPreference < Stripe::StripeObject
192
- attr_reader :overridable, :preference, :value
193
- end
194
- attr_reader :available, :display_preference
195
- end
196
-
197
- class Jcb < Stripe::StripeObject
198
- class DisplayPreference < Stripe::StripeObject
199
- attr_reader :overridable, :preference, :value
200
- end
201
- attr_reader :available, :display_preference
202
- end
203
-
204
- class Klarna < Stripe::StripeObject
205
- class DisplayPreference < Stripe::StripeObject
206
- attr_reader :overridable, :preference, :value
207
- end
208
- attr_reader :available, :display_preference
209
- end
210
-
211
- class Konbini < Stripe::StripeObject
212
- class DisplayPreference < Stripe::StripeObject
213
- attr_reader :overridable, :preference, :value
214
- end
215
- attr_reader :available, :display_preference
216
- end
217
-
218
- class Link < Stripe::StripeObject
219
- class DisplayPreference < Stripe::StripeObject
220
- attr_reader :overridable, :preference, :value
221
- end
222
- attr_reader :available, :display_preference
223
- end
224
-
225
- class Mobilepay < Stripe::StripeObject
226
- class DisplayPreference < Stripe::StripeObject
227
- attr_reader :overridable, :preference, :value
228
- end
229
- attr_reader :available, :display_preference
230
- end
231
-
232
- class Multibanco < Stripe::StripeObject
233
- class DisplayPreference < Stripe::StripeObject
234
- attr_reader :overridable, :preference, :value
235
- end
236
- attr_reader :available, :display_preference
237
- end
238
-
239
- class Oxxo < Stripe::StripeObject
240
- class DisplayPreference < Stripe::StripeObject
241
- attr_reader :overridable, :preference, :value
242
- end
243
- attr_reader :available, :display_preference
244
- end
245
-
246
- class P24 < Stripe::StripeObject
247
- class DisplayPreference < Stripe::StripeObject
248
- attr_reader :overridable, :preference, :value
249
- end
250
- attr_reader :available, :display_preference
251
- end
252
-
253
- class Paynow < Stripe::StripeObject
254
- class DisplayPreference < Stripe::StripeObject
255
- attr_reader :overridable, :preference, :value
256
- end
257
- attr_reader :available, :display_preference
258
- end
259
-
260
- class Paypal < Stripe::StripeObject
261
- class DisplayPreference < Stripe::StripeObject
262
- attr_reader :overridable, :preference, :value
263
- end
264
- attr_reader :available, :display_preference
265
- end
266
-
267
- class Payto < Stripe::StripeObject
268
- class DisplayPreference < Stripe::StripeObject
269
- attr_reader :overridable, :preference, :value
270
- end
271
- attr_reader :available, :display_preference
272
- end
273
-
274
- class Promptpay < Stripe::StripeObject
275
- class DisplayPreference < Stripe::StripeObject
276
- attr_reader :overridable, :preference, :value
277
- end
278
- attr_reader :available, :display_preference
279
- end
280
-
281
- class Qris < Stripe::StripeObject
282
- class DisplayPreference < Stripe::StripeObject
283
- attr_reader :overridable, :preference, :value
284
- end
285
- attr_reader :available, :display_preference
286
- end
287
-
288
- class RevolutPay < Stripe::StripeObject
289
- class DisplayPreference < Stripe::StripeObject
290
- attr_reader :overridable, :preference, :value
291
- end
292
- attr_reader :available, :display_preference
293
- end
294
-
295
- class SepaDebit < Stripe::StripeObject
296
- class DisplayPreference < Stripe::StripeObject
297
- attr_reader :overridable, :preference, :value
298
- end
299
- attr_reader :available, :display_preference
300
- end
301
-
302
- class Shopeepay < Stripe::StripeObject
303
- class DisplayPreference < Stripe::StripeObject
304
- attr_reader :overridable, :preference, :value
305
- end
306
- attr_reader :available, :display_preference
307
- end
308
-
309
- class Sofort < Stripe::StripeObject
310
- class DisplayPreference < Stripe::StripeObject
311
- attr_reader :overridable, :preference, :value
312
- end
313
- attr_reader :available, :display_preference
314
- end
315
-
316
- class Swish < Stripe::StripeObject
317
- class DisplayPreference < Stripe::StripeObject
318
- attr_reader :overridable, :preference, :value
319
- end
320
- attr_reader :available, :display_preference
321
- end
322
-
323
- class Twint < Stripe::StripeObject
324
- class DisplayPreference < Stripe::StripeObject
325
- attr_reader :overridable, :preference, :value
326
- end
327
- attr_reader :available, :display_preference
328
- end
329
-
330
- class UsBankAccount < Stripe::StripeObject
331
- class DisplayPreference < Stripe::StripeObject
332
- attr_reader :overridable, :preference, :value
333
- end
334
- attr_reader :available, :display_preference
335
- end
336
-
337
- class WechatPay < Stripe::StripeObject
338
- class DisplayPreference < Stripe::StripeObject
339
- attr_reader :overridable, :preference, :value
340
- end
341
- attr_reader :available, :display_preference
342
- end
343
-
344
- class Zip < Stripe::StripeObject
345
- class DisplayPreference < Stripe::StripeObject
346
- attr_reader :overridable, :preference, :value
347
- end
348
- attr_reader :available, :display_preference
349
- end
350
- # Attribute for field acss_debit
351
- attr_reader :acss_debit
352
- # Whether the configuration can be used for new payments.
353
- attr_reader :active
354
- # Attribute for field affirm
355
- attr_reader :affirm
356
- # Attribute for field afterpay_clearpay
357
- attr_reader :afterpay_clearpay
358
- # Attribute for field alipay
359
- attr_reader :alipay
360
- # Attribute for field alma
361
- attr_reader :alma
362
- # Attribute for field amazon_pay
363
- attr_reader :amazon_pay
364
- # Attribute for field apple_pay
365
- attr_reader :apple_pay
366
- # For child configs, the Connect application associated with the configuration.
367
- attr_reader :application
368
- # Attribute for field au_becs_debit
369
- attr_reader :au_becs_debit
370
- # Attribute for field bacs_debit
371
- attr_reader :bacs_debit
372
- # Attribute for field bancontact
373
- attr_reader :bancontact
374
- # Attribute for field blik
375
- attr_reader :blik
376
- # Attribute for field boleto
377
- attr_reader :boleto
378
- # Attribute for field card
379
- attr_reader :card
380
- # Attribute for field cartes_bancaires
381
- attr_reader :cartes_bancaires
382
- # Attribute for field cashapp
383
- attr_reader :cashapp
384
- # Attribute for field customer_balance
385
- attr_reader :customer_balance
386
- # Attribute for field eps
387
- attr_reader :eps
388
- # Attribute for field fpx
389
- attr_reader :fpx
390
- # Attribute for field giropay
391
- attr_reader :giropay
392
- # Attribute for field google_pay
393
- attr_reader :google_pay
394
- # Attribute for field gopay
395
- attr_reader :gopay
396
- # Attribute for field grabpay
397
- attr_reader :grabpay
398
- # Unique identifier for the object.
399
- attr_reader :id
400
- # Attribute for field id_bank_transfer
401
- attr_reader :id_bank_transfer
402
- # Attribute for field ideal
403
- attr_reader :ideal
404
- # The default configuration is used whenever a payment method configuration is not specified.
405
- attr_reader :is_default
406
- # Attribute for field jcb
407
- attr_reader :jcb
408
- # Attribute for field klarna
409
- attr_reader :klarna
410
- # Attribute for field konbini
411
- attr_reader :konbini
412
- # Attribute for field link
413
- attr_reader :link
414
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
415
- attr_reader :livemode
416
- # Attribute for field mobilepay
417
- attr_reader :mobilepay
418
- # Attribute for field multibanco
419
- attr_reader :multibanco
420
- # The configuration's name.
421
- attr_reader :name
422
- # String representing the object's type. Objects of the same type share the same value.
423
- attr_reader :object
424
- # Attribute for field oxxo
425
- attr_reader :oxxo
426
- # Attribute for field p24
427
- attr_reader :p24
428
- # For child configs, the configuration's parent configuration.
429
- attr_reader :parent
430
- # Attribute for field paynow
431
- attr_reader :paynow
432
- # Attribute for field paypal
433
- attr_reader :paypal
434
- # Attribute for field payto
435
- attr_reader :payto
436
- # Attribute for field promptpay
437
- attr_reader :promptpay
438
- # Attribute for field qris
439
- attr_reader :qris
440
- # Attribute for field revolut_pay
441
- attr_reader :revolut_pay
442
- # Attribute for field sepa_debit
443
- attr_reader :sepa_debit
444
- # Attribute for field shopeepay
445
- attr_reader :shopeepay
446
- # Attribute for field sofort
447
- attr_reader :sofort
448
- # Attribute for field swish
449
- attr_reader :swish
450
- # Attribute for field twint
451
- attr_reader :twint
452
- # Attribute for field us_bank_account
453
- attr_reader :us_bank_account
454
- # Attribute for field wechat_pay
455
- attr_reader :wechat_pay
456
- # Attribute for field zip
457
- attr_reader :zip
458
-
459
29
  # Creates a payment method configuration
460
30
  def self.create(params = {}, opts = {})
461
31
  request_stripe_object(
@@ -467,11 +37,11 @@ module Stripe
467
37
  end
468
38
 
469
39
  # List payment method configurations
470
- def self.list(filters = {}, opts = {})
40
+ def self.list(params = {}, opts = {})
471
41
  request_stripe_object(
472
42
  method: :get,
473
43
  path: "/v1/payment_method_configurations",
474
- params: filters,
44
+ params: params,
475
45
  opts: opts
476
46
  )
477
47
  end
@@ -16,63 +16,6 @@ module Stripe
16
16
  "payment_method_domain"
17
17
  end
18
18
 
19
- class AmazonPay < Stripe::StripeObject
20
- class StatusDetails < Stripe::StripeObject
21
- attr_reader :error_message
22
- end
23
- attr_reader :status, :status_details
24
- end
25
-
26
- class ApplePay < Stripe::StripeObject
27
- class StatusDetails < Stripe::StripeObject
28
- attr_reader :error_message
29
- end
30
- attr_reader :status, :status_details
31
- end
32
-
33
- class GooglePay < Stripe::StripeObject
34
- class StatusDetails < Stripe::StripeObject
35
- attr_reader :error_message
36
- end
37
- attr_reader :status, :status_details
38
- end
39
-
40
- class Link < Stripe::StripeObject
41
- class StatusDetails < Stripe::StripeObject
42
- attr_reader :error_message
43
- end
44
- attr_reader :status, :status_details
45
- end
46
-
47
- class Paypal < Stripe::StripeObject
48
- class StatusDetails < Stripe::StripeObject
49
- attr_reader :error_message
50
- end
51
- attr_reader :status, :status_details
52
- end
53
- # Indicates the status of a specific payment method on a payment method domain.
54
- attr_reader :amazon_pay
55
- # Indicates the status of a specific payment method on a payment method domain.
56
- attr_reader :apple_pay
57
- # Time at which the object was created. Measured in seconds since the Unix epoch.
58
- attr_reader :created
59
- # The domain name that this payment method domain object represents.
60
- attr_reader :domain_name
61
- # Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
62
- attr_reader :enabled
63
- # Indicates the status of a specific payment method on a payment method domain.
64
- attr_reader :google_pay
65
- # Unique identifier for the object.
66
- attr_reader :id
67
- # Indicates the status of a specific payment method on a payment method domain.
68
- attr_reader :link
69
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
70
- attr_reader :livemode
71
- # String representing the object's type. Objects of the same type share the same value.
72
- attr_reader :object
73
- # Indicates the status of a specific payment method on a payment method domain.
74
- attr_reader :paypal
75
-
76
19
  # Creates a payment method domain.
77
20
  def self.create(params = {}, opts = {})
78
21
  request_stripe_object(
@@ -84,11 +27,11 @@ module Stripe
84
27
  end
85
28
 
86
29
  # Lists the details of existing payment method domains.
87
- def self.list(filters = {}, opts = {})
30
+ def self.list(params = {}, opts = {})
88
31
  request_stripe_object(
89
32
  method: :get,
90
33
  path: "/v1/payment_method_domains",
91
- params: filters,
34
+ params: params,
92
35
  opts: opts
93
36
  )
94
37
  end
@@ -20,62 +20,6 @@ module Stripe
20
20
  "payout"
21
21
  end
22
22
 
23
- class TraceId < Stripe::StripeObject
24
- attr_reader :status, :value
25
- end
26
- # The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.
27
- attr_reader :amount
28
- # The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.
29
- attr_reader :application_fee
30
- # The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.
31
- attr_reader :application_fee_amount
32
- # Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays.
33
- attr_reader :arrival_date
34
- # Returns `true` if the payout is created by an [automated payout schedule](https://stripe.com/docs/payouts#payout-schedule) and `false` if it's [requested manually](https://stripe.com/docs/payouts#manual-payouts).
35
- attr_reader :automatic
36
- # ID of the balance transaction that describes the impact of this payout on your account balance.
37
- attr_reader :balance_transaction
38
- # Time at which the object was created. Measured in seconds since the Unix epoch.
39
- attr_reader :created
40
- # 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).
41
- attr_reader :currency
42
- # An arbitrary string attached to the object. Often useful for displaying to users.
43
- attr_reader :description
44
- # ID of the bank account or card the payout is sent to.
45
- attr_reader :destination
46
- # If the payout fails or cancels, this is the ID of the balance transaction that reverses the initial balance transaction and returns the funds from the failed payout back in your balance.
47
- attr_reader :failure_balance_transaction
48
- # Error code that provides a reason for a payout failure, if available. View our [list of failure codes](https://stripe.com/docs/api#payout_failures).
49
- attr_reader :failure_code
50
- # Message that provides the reason for a payout failure, if available.
51
- attr_reader :failure_message
52
- # Unique identifier for the object.
53
- attr_reader :id
54
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
55
- attr_reader :livemode
56
- # 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.
57
- attr_reader :metadata
58
- # The method used to send this payout, which can be `standard` or `instant`. `instant` is supported for payouts to debit cards and bank accounts in certain countries. Learn more about [bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks).
59
- attr_reader :method
60
- # String representing the object's type. Objects of the same type share the same value.
61
- attr_reader :object
62
- # If the payout reverses another, this is the ID of the original payout.
63
- attr_reader :original_payout
64
- # If `completed`, you can use the [Balance Transactions API](https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout) to list all balance transactions that are paid out in this payout.
65
- attr_reader :reconciliation_status
66
- # If the payout reverses, this is the ID of the payout that reverses this payout.
67
- attr_reader :reversed_by
68
- # The source balance this payout came from, which can be one of the following: `card`, `fpx`, or `bank_account`.
69
- attr_reader :source_type
70
- # Extra information about a payout that displays on the user's bank statement.
71
- attr_reader :statement_descriptor
72
- # Current status of the payout: `paid`, `pending`, `in_transit`, `canceled` or `failed`. A payout is `pending` until it's submitted to the bank, when it becomes `in_transit`. The status changes to `paid` if the transaction succeeds, or to `failed` or `canceled` (within 5 business days). Some payouts that fail might initially show as `paid`, then change to `failed`.
73
- attr_reader :status
74
- # A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar.
75
- attr_reader :trace_id
76
- # Can be `bank_account` or `card`.
77
- attr_reader :type
78
-
79
23
  # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
80
24
  def cancel(params = {}, opts = {})
81
25
  request_stripe_object(
@@ -106,8 +50,8 @@ module Stripe
106
50
  end
107
51
 
108
52
  # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first.
109
- def self.list(filters = {}, opts = {})
110
- request_stripe_object(method: :get, path: "/v1/payouts", params: filters, opts: opts)
53
+ def self.list(params = {}, opts = {})
54
+ request_stripe_object(method: :get, path: "/v1/payouts", params: params, opts: opts)
111
55
  end
112
56
 
113
57
  # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.