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
@@ -15,303 +15,6 @@ module Stripe
15
15
  "confirmation_token"
16
16
  end
17
17
 
18
- class MandateData < Stripe::StripeObject
19
- class CustomerAcceptance < Stripe::StripeObject
20
- class Online < Stripe::StripeObject
21
- attr_reader :ip_address, :user_agent
22
- end
23
- attr_reader :online, :type
24
- end
25
- attr_reader :customer_acceptance
26
- end
27
-
28
- class PaymentMethodOptions < Stripe::StripeObject
29
- class Card < Stripe::StripeObject
30
- attr_reader :cvc_token
31
- end
32
- attr_reader :card
33
- end
34
-
35
- class PaymentMethodPreview < Stripe::StripeObject
36
- class AcssDebit < Stripe::StripeObject
37
- attr_reader :bank_name, :fingerprint, :institution_number, :last4, :transit_number
38
- end
39
-
40
- class Affirm < Stripe::StripeObject; end
41
- class AfterpayClearpay < Stripe::StripeObject; end
42
- class Alipay < Stripe::StripeObject; end
43
- class Alma < Stripe::StripeObject; end
44
- class AmazonPay < Stripe::StripeObject; end
45
-
46
- class AuBecsDebit < Stripe::StripeObject
47
- attr_reader :bsb_number, :fingerprint, :last4
48
- end
49
-
50
- class BacsDebit < Stripe::StripeObject
51
- attr_reader :fingerprint, :last4, :sort_code
52
- end
53
-
54
- class Bancontact < Stripe::StripeObject; end
55
-
56
- class BillingDetails < Stripe::StripeObject
57
- class Address < Stripe::StripeObject
58
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
59
- end
60
- attr_reader :address, :email, :name, :phone
61
- end
62
-
63
- class Blik < Stripe::StripeObject; end
64
-
65
- class Boleto < Stripe::StripeObject
66
- attr_reader :tax_id
67
- end
68
-
69
- class Card < Stripe::StripeObject
70
- class Checks < Stripe::StripeObject
71
- attr_reader :address_line1_check, :address_postal_code_check, :cvc_check
72
- end
73
-
74
- class GeneratedFrom < Stripe::StripeObject
75
- class PaymentMethodDetails < Stripe::StripeObject
76
- class CardPresent < Stripe::StripeObject
77
- class Offline < Stripe::StripeObject
78
- attr_reader :stored_at, :type
79
- end
80
-
81
- class Receipt < Stripe::StripeObject
82
- attr_reader :account_type, :application_cryptogram, :application_preferred_name, :authorization_code, :authorization_response_code, :cardholder_verification_method, :dedicated_file_name, :terminal_verification_results, :transaction_status_information
83
- end
84
-
85
- class Wallet < Stripe::StripeObject
86
- attr_reader :type
87
- end
88
- attr_reader :amount_authorized, :brand, :brand_product, :capture_before, :cardholder_name, :country, :description, :emv_auth_data, :exp_month, :exp_year, :fingerprint, :funding, :generated_card, :iin, :incremental_authorization_supported, :issuer, :last4, :network, :network_transaction_id, :offline, :overcapture_supported, :preferred_locales, :read_method, :receipt, :wallet
89
- end
90
- attr_reader :card_present, :type
91
- end
92
- attr_reader :charge, :payment_method_details, :setup_attempt
93
- end
94
-
95
- class Networks < Stripe::StripeObject
96
- attr_reader :available, :preferred
97
- end
98
-
99
- class ThreeDSecureUsage < Stripe::StripeObject
100
- attr_reader :supported
101
- end
102
-
103
- class Wallet < Stripe::StripeObject
104
- class AmexExpressCheckout < Stripe::StripeObject; end
105
- class ApplePay < Stripe::StripeObject; end
106
- class GooglePay < Stripe::StripeObject; end
107
- class Link < Stripe::StripeObject; end
108
-
109
- class Masterpass < Stripe::StripeObject
110
- class BillingAddress < Stripe::StripeObject
111
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
112
- end
113
-
114
- class ShippingAddress < Stripe::StripeObject
115
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
116
- end
117
- attr_reader :billing_address, :email, :name, :shipping_address
118
- end
119
-
120
- class SamsungPay < Stripe::StripeObject; end
121
-
122
- class VisaCheckout < Stripe::StripeObject
123
- class BillingAddress < Stripe::StripeObject
124
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
125
- end
126
-
127
- class ShippingAddress < Stripe::StripeObject
128
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
129
- end
130
- attr_reader :billing_address, :email, :name, :shipping_address
131
- end
132
- attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
133
- end
134
- attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet
135
- end
136
-
137
- class CardPresent < Stripe::StripeObject
138
- class Networks < Stripe::StripeObject
139
- attr_reader :available, :preferred
140
- end
141
-
142
- class Offline < Stripe::StripeObject
143
- attr_reader :stored_at, :type
144
- end
145
-
146
- class Wallet < Stripe::StripeObject
147
- attr_reader :type
148
- end
149
- attr_reader :brand, :brand_product, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :offline, :preferred_locales, :read_method, :wallet
150
- end
151
-
152
- class Cashapp < Stripe::StripeObject
153
- attr_reader :buyer_id, :cashtag
154
- end
155
-
156
- class CustomerBalance < Stripe::StripeObject; end
157
-
158
- class Eps < Stripe::StripeObject
159
- attr_reader :bank
160
- end
161
-
162
- class Fpx < Stripe::StripeObject
163
- attr_reader :account_holder_type, :bank
164
- end
165
-
166
- class Giropay < Stripe::StripeObject; end
167
- class Gopay < Stripe::StripeObject; end
168
- class Grabpay < Stripe::StripeObject; end
169
-
170
- class IdBankTransfer < Stripe::StripeObject
171
- attr_reader :bank, :bank_code, :bank_name, :display_name
172
- end
173
-
174
- class Ideal < Stripe::StripeObject
175
- attr_reader :bank, :bic
176
- end
177
-
178
- class InteracPresent < Stripe::StripeObject
179
- class Networks < Stripe::StripeObject
180
- attr_reader :available, :preferred
181
- end
182
- attr_reader :brand, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :preferred_locales, :read_method
183
- end
184
-
185
- class KakaoPay < Stripe::StripeObject; end
186
-
187
- class Klarna < Stripe::StripeObject
188
- class Dob < Stripe::StripeObject
189
- attr_reader :day, :month, :year
190
- end
191
- attr_reader :dob
192
- end
193
-
194
- class Konbini < Stripe::StripeObject; end
195
-
196
- class KrCard < Stripe::StripeObject
197
- attr_reader :brand, :last4
198
- end
199
-
200
- class Link < Stripe::StripeObject
201
- attr_reader :email, :persistent_token
202
- end
203
-
204
- class MbWay < Stripe::StripeObject; end
205
- class Mobilepay < Stripe::StripeObject; end
206
- class Multibanco < Stripe::StripeObject; end
207
-
208
- class NaverPay < Stripe::StripeObject
209
- attr_reader :funding
210
- end
211
-
212
- class Oxxo < Stripe::StripeObject; end
213
-
214
- class P24 < Stripe::StripeObject
215
- attr_reader :bank
216
- end
217
-
218
- class Payco < Stripe::StripeObject; end
219
- class Paynow < Stripe::StripeObject; end
220
-
221
- class Paypal < Stripe::StripeObject
222
- attr_reader :fingerprint, :payer_email, :payer_id, :verified_email
223
- end
224
-
225
- class Payto < Stripe::StripeObject
226
- attr_reader :bsb_number, :last4, :pay_id
227
- end
228
-
229
- class Pix < Stripe::StripeObject; end
230
- class Promptpay < Stripe::StripeObject; end
231
- class Qris < Stripe::StripeObject; end
232
-
233
- class Rechnung < Stripe::StripeObject
234
- class Dob < Stripe::StripeObject
235
- attr_reader :day, :month, :year
236
- end
237
- attr_reader :dob
238
- end
239
-
240
- class RevolutPay < Stripe::StripeObject; end
241
- class SamsungPay < Stripe::StripeObject; end
242
-
243
- class SepaDebit < Stripe::StripeObject
244
- class GeneratedFrom < Stripe::StripeObject
245
- attr_reader :charge, :setup_attempt
246
- end
247
- attr_reader :bank_code, :branch_code, :country, :fingerprint, :generated_from, :last4
248
- end
249
-
250
- class Shopeepay < Stripe::StripeObject; end
251
-
252
- class Sofort < Stripe::StripeObject
253
- attr_reader :country
254
- end
255
-
256
- class Swish < Stripe::StripeObject; end
257
- class Twint < Stripe::StripeObject; end
258
-
259
- class UsBankAccount < Stripe::StripeObject
260
- class Networks < Stripe::StripeObject
261
- attr_reader :preferred, :supported
262
- end
263
-
264
- class StatusDetails < Stripe::StripeObject
265
- class Blocked < Stripe::StripeObject
266
- attr_reader :network_code, :reason
267
- end
268
- attr_reader :blocked
269
- end
270
- attr_reader :account_holder_type, :account_number, :account_type, :bank_name, :financial_connections_account, :fingerprint, :last4, :networks, :routing_number, :status_details
271
- end
272
-
273
- class WechatPay < Stripe::StripeObject; end
274
- class Zip < Stripe::StripeObject; end
275
- attr_reader :acss_debit, :affirm, :afterpay_clearpay, :alipay, :allow_redisplay, :alma, :amazon_pay, :au_becs_debit, :bacs_debit, :bancontact, :billing_details, :blik, :boleto, :card, :card_present, :cashapp, :customer, :customer_balance, :eps, :fpx, :giropay, :gopay, :grabpay, :id_bank_transfer, :ideal, :interac_present, :kakao_pay, :klarna, :konbini, :kr_card, :link, :mb_way, :mobilepay, :multibanco, :naver_pay, :oxxo, :p24, :payco, :paynow, :paypal, :payto, :pix, :promptpay, :qris, :rechnung, :revolut_pay, :samsung_pay, :sepa_debit, :shopeepay, :sofort, :swish, :twint, :type, :us_bank_account, :wechat_pay, :zip
276
- end
277
-
278
- class Shipping < Stripe::StripeObject
279
- class Address < Stripe::StripeObject
280
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
281
- end
282
- attr_reader :address, :name, :phone
283
- end
284
- # Time at which the object was created. Measured in seconds since the Unix epoch.
285
- attr_reader :created
286
- # Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
287
- attr_reader :expires_at
288
- # Unique identifier for the object.
289
- attr_reader :id
290
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
291
- attr_reader :livemode
292
- # Data used for generating a Mandate.
293
- attr_reader :mandate_data
294
- # String representing the object's type. Objects of the same type share the same value.
295
- attr_reader :object
296
- # ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
297
- attr_reader :payment_intent
298
- # Payment-method-specific configuration for this ConfirmationToken.
299
- attr_reader :payment_method_options
300
- # Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
301
- attr_reader :payment_method_preview
302
- # Return URL used to confirm the Intent.
303
- attr_reader :return_url
304
- # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
305
- #
306
- # The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
307
- attr_reader :setup_future_usage
308
- # ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
309
- attr_reader :setup_intent
310
- # Shipping information collected on this ConfirmationToken.
311
- attr_reader :shipping
312
- # Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken.
313
- attr_reader :use_stripe_sdk
314
-
315
18
  def test_helpers
316
19
  TestHelpers.new(self)
317
20
  end
@@ -16,36 +16,9 @@ module Stripe
16
16
  "country_spec"
17
17
  end
18
18
 
19
- class VerificationFields < Stripe::StripeObject
20
- class Company < Stripe::StripeObject
21
- attr_reader :additional, :minimum
22
- end
23
-
24
- class Individual < Stripe::StripeObject
25
- attr_reader :additional, :minimum
26
- end
27
- attr_reader :company, :individual
28
- end
29
- # The default currency for this country. This applies to both payment methods and bank accounts.
30
- attr_reader :default_currency
31
- # Unique identifier for the object. Represented as the ISO country code for this country.
32
- attr_reader :id
33
- # String representing the object's type. Objects of the same type share the same value.
34
- attr_reader :object
35
- # Currencies that can be accepted in the specific country (for transfers).
36
- attr_reader :supported_bank_account_currencies
37
- # Currencies that can be accepted in the specified country (for payments).
38
- attr_reader :supported_payment_currencies
39
- # Payment methods available in the specified country. You may need to enable some payment methods (e.g., [ACH](https://stripe.com/docs/ach)) on your account before they appear in this list. The `stripe` payment method refers to [charging through your platform](https://stripe.com/docs/connect/destination-charges).
40
- attr_reader :supported_payment_methods
41
- # Countries that can accept transfers from the specified country.
42
- attr_reader :supported_transfer_countries
43
- # Attribute for field verification_fields
44
- attr_reader :verification_fields
45
-
46
19
  # Lists all Country Spec objects available in the API.
47
- def self.list(filters = {}, opts = {})
48
- request_stripe_object(method: :get, path: "/v1/country_specs", params: filters, opts: opts)
20
+ def self.list(params = {}, opts = {})
21
+ request_stripe_object(method: :get, path: "/v1/country_specs", params: params, opts: opts)
49
22
  end
50
23
  end
51
24
  end
@@ -16,50 +16,6 @@ module Stripe
16
16
  "coupon"
17
17
  end
18
18
 
19
- class AppliesTo < Stripe::StripeObject
20
- attr_reader :products
21
- end
22
-
23
- class CurrencyOptions < Stripe::StripeObject
24
- attr_reader :amount_off
25
- end
26
- # Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
27
- attr_reader :amount_off
28
- # Attribute for field applies_to
29
- attr_reader :applies_to
30
- # Time at which the object was created. Measured in seconds since the Unix epoch.
31
- attr_reader :created
32
- # If `amount_off` has been set, the three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the amount to take off.
33
- attr_reader :currency
34
- # Coupons defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
35
- attr_reader :currency_options
36
- # One of `forever`, `once`, and `repeating`. Describes how long a customer who applies this coupon will get the discount.
37
- attr_reader :duration
38
- # If `duration` is `repeating`, the number of months the coupon applies. Null if coupon `duration` is `forever` or `once`.
39
- attr_reader :duration_in_months
40
- # Unique identifier for the object.
41
- attr_reader :id
42
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
43
- attr_reader :livemode
44
- # Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
45
- attr_reader :max_redemptions
46
- # 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.
47
- attr_reader :metadata
48
- # Name of the coupon displayed to customers on for instance invoices or receipts.
49
- attr_reader :name
50
- # String representing the object's type. Objects of the same type share the same value.
51
- attr_reader :object
52
- # Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a $ (or local equivalent)100 invoice $ (or local equivalent)50 instead.
53
- attr_reader :percent_off
54
- # Date after which the coupon can no longer be redeemed.
55
- attr_reader :redeem_by
56
- # Number of times this coupon has been applied to a customer.
57
- attr_reader :times_redeemed
58
- # Taking account of the above properties, whether this coupon can still be applied to a customer.
59
- attr_reader :valid
60
- # Always true for a deleted object
61
- attr_reader :deleted
62
-
63
19
  # You can create coupons easily via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.
64
20
  #
65
21
  # A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice's subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it.
@@ -88,8 +44,8 @@ module Stripe
88
44
  end
89
45
 
90
46
  # Returns a list of your coupons.
91
- def self.list(filters = {}, opts = {})
92
- request_stripe_object(method: :get, path: "/v1/coupons", params: filters, opts: opts)
47
+ def self.list(params = {}, opts = {})
48
+ request_stripe_object(method: :get, path: "/v1/coupons", params: params, opts: opts)
93
49
  end
94
50
 
95
51
  # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
@@ -15,97 +15,6 @@ module Stripe
15
15
  "credit_note"
16
16
  end
17
17
 
18
- class DiscountAmount < Stripe::StripeObject
19
- attr_reader :amount, :discount
20
- end
21
-
22
- class PretaxCreditAmount < Stripe::StripeObject
23
- attr_reader :amount, :credit_balance_transaction, :discount, :type
24
- end
25
-
26
- class Refund < Stripe::StripeObject
27
- attr_reader :amount_refunded, :refund
28
- end
29
-
30
- class ShippingCost < Stripe::StripeObject
31
- class Tax < Stripe::StripeObject
32
- attr_reader :amount, :rate, :taxability_reason, :taxable_amount
33
- end
34
- attr_reader :amount_subtotal, :amount_tax, :amount_total, :shipping_rate, :taxes
35
- end
36
-
37
- class TaxAmount < Stripe::StripeObject
38
- attr_reader :amount, :inclusive, :tax_rate, :taxability_reason, :taxable_amount
39
- end
40
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax.
41
- attr_reader :amount
42
- # This is the sum of all the shipping amounts.
43
- attr_reader :amount_shipping
44
- # Time at which the object was created. Measured in seconds since the Unix epoch.
45
- attr_reader :created
46
- # 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).
47
- attr_reader :currency
48
- # ID of the customer.
49
- attr_reader :customer
50
- # Customer balance transaction related to this credit note.
51
- attr_reader :customer_balance_transaction
52
- # The integer amount in cents (or local equivalent) representing the total amount of discount that was credited.
53
- attr_reader :discount_amount
54
- # The aggregate amounts calculated per discount for all line items.
55
- attr_reader :discount_amounts
56
- # The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
57
- attr_reader :effective_at
58
- # Unique identifier for the object.
59
- attr_reader :id
60
- # ID of the invoice.
61
- attr_reader :invoice
62
- # Line items that make up the credit note
63
- attr_reader :lines
64
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
65
- attr_reader :livemode
66
- # Customer-facing text that appears on the credit note PDF.
67
- attr_reader :memo
68
- # 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.
69
- attr_reader :metadata
70
- # A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
71
- attr_reader :number
72
- # String representing the object's type. Objects of the same type share the same value.
73
- attr_reader :object
74
- # Amount that was credited outside of Stripe.
75
- attr_reader :out_of_band_amount
76
- # The link to download the PDF of the credit note.
77
- attr_reader :pdf
78
- # Attribute for field post_payment_amount
79
- attr_reader :post_payment_amount
80
- # Attribute for field pre_payment_amount
81
- attr_reader :pre_payment_amount
82
- # The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
83
- attr_reader :pretax_credit_amounts
84
- # Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
85
- attr_reader :reason
86
- # Refund related to this credit note.
87
- attr_reader :refund
88
- # Refunds related to this credit note.
89
- attr_reader :refunds
90
- # The details of the cost of shipping, including the ShippingRate applied to the invoice.
91
- attr_reader :shipping_cost
92
- # Status of this credit note, one of `issued` or `void`. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
93
- attr_reader :status
94
- # The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
95
- attr_reader :subtotal
96
- # The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding all tax and invoice level discounts.
97
- attr_reader :subtotal_excluding_tax
98
- # The aggregate amounts calculated per tax rate for all line items.
99
- attr_reader :tax_amounts
100
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax and all discount.
101
- attr_reader :total
102
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note, excluding tax, but including discounts.
103
- attr_reader :total_excluding_tax
104
- # Type of this credit note, one of `pre_payment` or `post_payment`. A `pre_payment` credit note means it was issued when the invoice was open. A `post_payment` credit note means it was issued when the invoice was paid.
105
- attr_reader :type
106
- # The time that the credit note was voided.
107
- attr_reader :voided_at
108
-
109
18
  # Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
110
19
  # its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
111
20
  # in any combination of the following:
@@ -125,8 +34,8 @@ module Stripe
125
34
  end
126
35
 
127
36
  # Returns a list of credit notes.
128
- def self.list(filters = {}, opts = {})
129
- request_stripe_object(method: :get, path: "/v1/credit_notes", params: filters, opts: opts)
37
+ def self.list(params = {}, opts = {})
38
+ request_stripe_object(method: :get, path: "/v1/credit_notes", params: params, opts: opts)
130
39
  end
131
40
 
132
41
  # When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.
@@ -8,51 +8,5 @@ module Stripe
8
8
  def self.object_name
9
9
  "credit_note_line_item"
10
10
  end
11
-
12
- class DiscountAmount < Stripe::StripeObject
13
- attr_reader :amount, :discount
14
- end
15
-
16
- class PretaxCreditAmount < Stripe::StripeObject
17
- attr_reader :amount, :credit_balance_transaction, :discount, :type
18
- end
19
-
20
- class TaxAmount < Stripe::StripeObject
21
- attr_reader :amount, :inclusive, :tax_rate, :taxability_reason, :taxable_amount
22
- end
23
- # The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
24
- attr_reader :amount
25
- # The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
26
- attr_reader :amount_excluding_tax
27
- # Description of the item being credited.
28
- attr_reader :description
29
- # The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
30
- attr_reader :discount_amount
31
- # The amount of discount calculated per discount for this line item
32
- attr_reader :discount_amounts
33
- # Unique identifier for the object.
34
- attr_reader :id
35
- # ID of the invoice line item being credited
36
- attr_reader :invoice_line_item
37
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
38
- attr_reader :livemode
39
- # String representing the object's type. Objects of the same type share the same value.
40
- attr_reader :object
41
- # The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
42
- attr_reader :pretax_credit_amounts
43
- # The number of units of product being credited.
44
- attr_reader :quantity
45
- # The amount of tax calculated per tax rate for this line item
46
- attr_reader :tax_amounts
47
- # The tax rates which apply to the line item.
48
- attr_reader :tax_rates
49
- # The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice.
50
- attr_reader :type
51
- # The cost of each unit of product being credited.
52
- attr_reader :unit_amount
53
- # Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.
54
- attr_reader :unit_amount_decimal
55
- # The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
56
- attr_reader :unit_amount_excluding_tax
57
11
  end
58
12
  end
@@ -22,99 +22,6 @@ module Stripe
22
22
  nested_resource_class_methods :source, operations: %i[create retrieve update delete list]
23
23
  nested_resource_class_methods :tax_id, operations: %i[create retrieve delete list]
24
24
 
25
- class Address < Stripe::StripeObject
26
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
27
- end
28
-
29
- class InvoiceSettings < Stripe::StripeObject
30
- class CustomField < Stripe::StripeObject
31
- attr_reader :name, :value
32
- end
33
-
34
- class RenderingOptions < Stripe::StripeObject
35
- attr_reader :amount_tax_display, :template
36
- end
37
- attr_reader :custom_fields, :default_payment_method, :footer, :rendering_options
38
- end
39
-
40
- class Shipping < Stripe::StripeObject
41
- class Address < Stripe::StripeObject
42
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
43
- end
44
- attr_reader :address, :carrier, :name, :phone, :tracking_number
45
- end
46
-
47
- class Tax < Stripe::StripeObject
48
- class Location < Stripe::StripeObject
49
- attr_reader :country, :source, :state
50
- end
51
- attr_reader :automatic_tax, :ip_address, :location
52
- end
53
- # The customer's address.
54
- attr_reader :address
55
- # The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize.
56
- attr_reader :balance
57
- # The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
58
- attr_reader :cash_balance
59
- # Time at which the object was created. Measured in seconds since the Unix epoch.
60
- attr_reader :created
61
- # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes.
62
- attr_reader :currency
63
- # ID of the default payment source for the customer.
64
- #
65
- # If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead.
66
- attr_reader :default_source
67
- # Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.
68
- #
69
- # If an invoice becomes uncollectible by [dunning](https://stripe.com/docs/billing/automatic-collection), `delinquent` doesn't reset to `false`.
70
- #
71
- # If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.
72
- attr_reader :delinquent
73
- # An arbitrary string attached to the object. Often useful for displaying to users.
74
- attr_reader :description
75
- # Describes the current discount active on the customer, if there is one.
76
- attr_reader :discount
77
- # The customer's email address.
78
- attr_reader :email
79
- # Unique identifier for the object.
80
- attr_reader :id
81
- # The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
82
- attr_reader :invoice_credit_balance
83
- # The prefix for the customer used to generate unique invoice numbers.
84
- attr_reader :invoice_prefix
85
- # Attribute for field invoice_settings
86
- attr_reader :invoice_settings
87
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
88
- attr_reader :livemode
89
- # 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.
90
- attr_reader :metadata
91
- # The customer's full name or business name.
92
- attr_reader :name
93
- # The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
94
- attr_reader :next_invoice_sequence
95
- # String representing the object's type. Objects of the same type share the same value.
96
- attr_reader :object
97
- # The customer's phone number.
98
- attr_reader :phone
99
- # The customer's preferred locales (languages), ordered by preference.
100
- attr_reader :preferred_locales
101
- # Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
102
- attr_reader :shipping
103
- # The customer's payment sources, if any.
104
- attr_reader :sources
105
- # The customer's current subscriptions, if any.
106
- attr_reader :subscriptions
107
- # Attribute for field tax
108
- attr_reader :tax
109
- # 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"**.
110
- attr_reader :tax_exempt
111
- # The customer's tax IDs.
112
- attr_reader :tax_ids
113
- # ID of the test clock that this customer belongs to.
114
- attr_reader :test_clock
115
- # Always true for a deleted object
116
- attr_reader :deleted
117
-
118
25
  # Creates a new customer object.
119
26
  def self.create(params = {}, opts = {})
120
27
  request_stripe_object(method: :post, path: "/v1/customers", params: params, opts: opts)
@@ -185,8 +92,8 @@ module Stripe
185
92
  end
186
93
 
187
94
  # Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.
188
- def self.list(filters = {}, opts = {})
189
- request_stripe_object(method: :get, path: "/v1/customers", params: filters, opts: opts)
95
+ def self.list(params = {}, opts = {})
96
+ request_stripe_object(method: :get, path: "/v1/customers", params: params, opts: opts)
190
97
  end
191
98
 
192
99
  # Returns a list of PaymentMethods for a given Customer