stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +10 -0
- data/lib/stripe/resources/account.rb +230 -0
- data/lib/stripe/resources/account_link.rb +9 -0
- data/lib/stripe/resources/account_notice.rb +28 -0
- data/lib/stripe/resources/account_session.rb +103 -0
- data/lib/stripe/resources/apple_pay_domain.rb +13 -0
- data/lib/stripe/resources/application.rb +20 -0
- data/lib/stripe/resources/application_fee.rb +34 -0
- data/lib/stripe/resources/application_fee_refund.rb +17 -0
- data/lib/stripe/resources/apps/secret.rb +22 -0
- data/lib/stripe/resources/balance.rb +59 -0
- data/lib/stripe/resources/balance_transaction.rb +34 -0
- data/lib/stripe/resources/bank_account.rb +60 -2
- data/lib/stripe/resources/billing/alert.rb +21 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
- data/lib/stripe/resources/billing/credit_grant.rb +46 -2
- data/lib/stripe/resources/billing/meter.rb +49 -7
- data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
- data/lib/stripe/resources/billing/meter_event.rb +17 -3
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
- data/lib/stripe/resources/billing_portal/session.rb +61 -0
- data/lib/stripe/resources/capability.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +45 -0
- data/lib/stripe/resources/capital/financing_summary.rb +17 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +29 -0
- data/lib/stripe/resources/card.rb +72 -0
- data/lib/stripe/resources/cash_balance.rb +14 -0
- data/lib/stripe/resources/charge.rb +469 -0
- data/lib/stripe/resources/checkout/session.rb +496 -0
- data/lib/stripe/resources/climate/order.rb +55 -0
- data/lib/stripe/resources/climate/product.rb +24 -0
- data/lib/stripe/resources/climate/supplier.rb +18 -0
- data/lib/stripe/resources/confirmation_token.rb +297 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
- data/lib/stripe/resources/country_spec.rb +27 -0
- data/lib/stripe/resources/coupon.rb +44 -0
- data/lib/stripe/resources/credit_note.rb +91 -0
- data/lib/stripe/resources/credit_note_line_item.rb +46 -0
- data/lib/stripe/resources/customer.rb +93 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
- data/lib/stripe/resources/customer_session.rb +34 -0
- data/lib/stripe/resources/discount.rb +29 -0
- data/lib/stripe/resources/dispute.rb +88 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
- data/lib/stripe/resources/entitlements/feature.rb +15 -0
- data/lib/stripe/resources/ephemeral_key.rb +13 -0
- data/lib/stripe/resources/event.rb +44 -0
- data/lib/stripe/resources/exchange_rate.rb +7 -0
- data/lib/stripe/resources/file.rb +23 -0
- data/lib/stripe/resources/file_link.rb +19 -0
- data/lib/stripe/resources/financial_connections/account.rb +84 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
- data/lib/stripe/resources/financial_connections/institution.rb +35 -0
- data/lib/stripe/resources/financial_connections/session.rb +49 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
- data/lib/stripe/resources/forwarding/request.rb +40 -0
- data/lib/stripe/resources/funding_instructions.rb +82 -0
- data/lib/stripe/resources/gift_cards/card.rb +37 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +39 -0
- data/lib/stripe/resources/identity/verification_report.rb +92 -0
- data/lib/stripe/resources/identity/verification_session.rb +76 -0
- data/lib/stripe/resources/invoice.rb +337 -0
- data/lib/stripe/resources/invoice_item.rb +54 -0
- data/lib/stripe/resources/invoice_line_item.rb +83 -0
- data/lib/stripe/resources/invoice_payment.rb +34 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
- data/lib/stripe/resources/issuing/authorization.rb +129 -0
- data/lib/stripe/resources/issuing/card.rb +86 -0
- data/lib/stripe/resources/issuing/cardholder.rb +76 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +57 -0
- data/lib/stripe/resources/issuing/dispute.rb +65 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +23 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +17 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
- data/lib/stripe/resources/issuing/settlement.rb +49 -0
- data/lib/stripe/resources/issuing/token.rb +46 -0
- data/lib/stripe/resources/issuing/transaction.rb +106 -0
- data/lib/stripe/resources/line_item.rb +50 -0
- data/lib/stripe/resources/login_link.rb +7 -0
- data/lib/stripe/resources/mandate.rb +78 -0
- data/lib/stripe/resources/margin.rb +19 -0
- data/lib/stripe/resources/order.rb +202 -0
- data/lib/stripe/resources/payment_attempt_record.rb +73 -0
- data/lib/stripe/resources/payment_intent.rb +642 -0
- data/lib/stripe/resources/payment_link.rb +198 -0
- data/lib/stripe/resources/payment_method.rb +368 -0
- data/lib/stripe/resources/payment_method_configuration.rb +430 -0
- data/lib/stripe/resources/payment_method_domain.rb +57 -0
- data/lib/stripe/resources/payment_record.rb +79 -0
- data/lib/stripe/resources/payout.rb +56 -0
- data/lib/stripe/resources/person.rb +128 -0
- data/lib/stripe/resources/plan.rb +52 -0
- data/lib/stripe/resources/price.rb +77 -0
- data/lib/stripe/resources/product.rb +60 -0
- data/lib/stripe/resources/product_feature.rb +12 -0
- data/lib/stripe/resources/promotion_code.rb +35 -0
- data/lib/stripe/resources/quote.rb +252 -0
- data/lib/stripe/resources/quote_line.rb +136 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +331 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +159 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
- data/lib/stripe/resources/radar/value_list.rb +23 -0
- data/lib/stripe/resources/radar/value_list_item.rb +17 -0
- data/lib/stripe/resources/refund.rb +130 -0
- data/lib/stripe/resources/reporting/report_run.rb +29 -0
- data/lib/stripe/resources/reporting/report_type.rb +19 -0
- data/lib/stripe/resources/reserve_transaction.rb +22 -0
- data/lib/stripe/resources/reversal.rb +21 -0
- data/lib/stripe/resources/review.rb +36 -0
- data/lib/stripe/resources/setup_attempt.rb +101 -0
- data/lib/stripe/resources/setup_intent.rb +158 -0
- data/lib/stripe/resources/shipping_rate.rb +42 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
- data/lib/stripe/resources/source.rb +195 -0
- data/lib/stripe/resources/source_mandate_notification.rb +59 -0
- data/lib/stripe/resources/source_transaction.rb +48 -0
- data/lib/stripe/resources/subscription.rb +214 -0
- data/lib/stripe/resources/subscription_item.rb +46 -0
- data/lib/stripe/resources/subscription_schedule.rb +153 -0
- data/lib/stripe/resources/tax/association.rb +36 -0
- data/lib/stripe/resources/tax/calculation.rb +72 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
- data/lib/stripe/resources/tax/form.rb +75 -0
- data/lib/stripe/resources/tax/registration.rb +379 -0
- data/lib/stripe/resources/tax/settings.rb +33 -0
- data/lib/stripe/resources/tax/transaction.rb +68 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
- data/lib/stripe/resources/tax_code.rb +9 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
- data/lib/stripe/resources/tax_id.rb +30 -0
- data/lib/stripe/resources/tax_rate.rb +42 -0
- data/lib/stripe/resources/terminal/configuration.rb +107 -0
- data/lib/stripe/resources/terminal/connection_token.rb +7 -0
- data/lib/stripe/resources/terminal/location.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +118 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
- data/lib/stripe/resources/token.rb +29 -0
- data/lib/stripe/resources/topup.rb +33 -0
- data/lib/stripe/resources/transfer.rb +35 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
- data/lib/stripe/resources/treasury/financial_account.rb +57 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
- data/lib/stripe/resources/treasury/received_credit.rb +70 -0
- data/lib/stripe/resources/treasury/received_debit.rb +67 -0
- data/lib/stripe/resources/treasury/transaction.rb +42 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
- data/lib/stripe/resources/usage_record.rb +13 -0
- data/lib/stripe/resources/usage_record_summary.rb +18 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
- data/lib/stripe/resources/v2/event.rb +21 -0
- data/lib/stripe/resources/v2/event_destination.rb +49 -0
- data/lib/stripe/resources/webhook_endpoint.rb +27 -0
- data/lib/stripe/resources.rb +10 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
- data/lib/stripe/services/billing/meter_event_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +5 -5
- data/lib/stripe/stripe_object.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +2 -1
- metadata +13 -2
@@ -15,6 +15,303 @@ 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
|
+
|
18
315
|
def test_helpers
|
19
316
|
TestHelpers.new(self)
|
20
317
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class ConnectCollectionTransfer < APIResource
|
6
|
+
OBJECT_NAME = "connect_collection_transfer"
|
7
|
+
def self.object_name
|
8
|
+
"connect_collection_transfer"
|
9
|
+
end
|
10
|
+
|
11
|
+
# Amount transferred, in cents (or local equivalent).
|
12
|
+
attr_reader :amount
|
13
|
+
# 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).
|
14
|
+
attr_reader :currency
|
15
|
+
# ID of the account that funds are being collected for.
|
16
|
+
attr_reader :destination
|
17
|
+
# Unique identifier for the object.
|
18
|
+
attr_reader :id
|
19
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
20
|
+
attr_reader :livemode
|
21
|
+
# String representing the object's type. Objects of the same type share the same value.
|
22
|
+
attr_reader :object
|
23
|
+
end
|
24
|
+
end
|
@@ -16,6 +16,33 @@ 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
|
+
|
19
46
|
# Lists all Country Spec objects available in the API.
|
20
47
|
def self.list(filters = {}, opts = {})
|
21
48
|
request_stripe_object(method: :get, path: "/v1/country_specs", params: filters, opts: opts)
|
@@ -16,6 +16,50 @@ 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
|
+
|
19
63
|
# 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.
|
20
64
|
#
|
21
65
|
# 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.
|
@@ -15,6 +15,97 @@ 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
|
+
|
18
109
|
# Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
|
19
110
|
# its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
|
20
111
|
# in any combination of the following:
|
@@ -8,5 +8,51 @@ 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
|
11
57
|
end
|
12
58
|
end
|
@@ -22,6 +22,99 @@ 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
|
+
|
25
118
|
# Creates a new customer object.
|
26
119
|
def self.create(params = {}, opts = {})
|
27
120
|
request_stripe_object(method: :post, path: "/v1/customers", params: params, opts: opts)
|