stripe 13.2.0 → 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 +1396 -645
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -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 +60 -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 +94 -0
- data/lib/stripe/resources/capital/financing_summary.rb +32 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +56 -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 +87 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -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 +61 -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 +96 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +132 -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 +418 -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 +46 -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 +145 -0
- data/lib/stripe/resources/issuing/dispute.rb +65 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +49 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +43 -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 +56 -0
- data/lib/stripe/resources/order.rb +322 -0
- data/lib/stripe/resources/payment_attempt_record.rb +100 -0
- data/lib/stripe/resources/payment_intent.rb +712 -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 +194 -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 +356 -0
- data/lib/stripe/resources/quote_line.rb +136 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +374 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +170 -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 +173 -0
- data/lib/stripe/resources/tax/association.rb +60 -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 +124 -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 +178 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +30 -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 +31 -0
- data/lib/stripe/services/account_notice_service.rb +39 -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/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/gift_cards/card_service.rb +63 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +74 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +44 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_record_service.rb +78 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +5 -0
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +45 -0
- data/stripe.gemspec +2 -1
- metadata +62 -4
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1383
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.
|
1
|
+
13.3.0-beta.2
|
data/lib/stripe/object_types.rb
CHANGED
@@ -14,8 +14,10 @@ module Stripe
|
|
14
14
|
# object classes: The beginning of the section generated from our OpenAPI spec
|
15
15
|
Account.object_name => Account,
|
16
16
|
AccountLink.object_name => AccountLink,
|
17
|
+
AccountNotice.object_name => AccountNotice,
|
17
18
|
AccountSession.object_name => AccountSession,
|
18
19
|
ApplePayDomain.object_name => ApplePayDomain,
|
20
|
+
Application.object_name => Application,
|
19
21
|
ApplicationFee.object_name => ApplicationFee,
|
20
22
|
ApplicationFeeRefund.object_name => ApplicationFeeRefund,
|
21
23
|
Apps::Secret.object_name => Apps::Secret,
|
@@ -23,16 +25,21 @@ module Stripe
|
|
23
25
|
BalanceTransaction.object_name => BalanceTransaction,
|
24
26
|
BankAccount.object_name => BankAccount,
|
25
27
|
Billing::Alert.object_name => Billing::Alert,
|
28
|
+
Billing::AlertTriggered.object_name => Billing::AlertTriggered,
|
26
29
|
Billing::CreditBalanceSummary.object_name => Billing::CreditBalanceSummary,
|
27
30
|
Billing::CreditBalanceTransaction.object_name => Billing::CreditBalanceTransaction,
|
28
31
|
Billing::CreditGrant.object_name => Billing::CreditGrant,
|
29
32
|
Billing::Meter.object_name => Billing::Meter,
|
33
|
+
Billing::MeterErrorReport.object_name => Billing::MeterErrorReport,
|
30
34
|
Billing::MeterEvent.object_name => Billing::MeterEvent,
|
31
35
|
Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,
|
32
36
|
Billing::MeterEventSummary.object_name => Billing::MeterEventSummary,
|
33
37
|
BillingPortal::Configuration.object_name => BillingPortal::Configuration,
|
34
38
|
BillingPortal::Session.object_name => BillingPortal::Session,
|
35
39
|
Capability.object_name => Capability,
|
40
|
+
Capital::FinancingOffer.object_name => Capital::FinancingOffer,
|
41
|
+
Capital::FinancingSummary.object_name => Capital::FinancingSummary,
|
42
|
+
Capital::FinancingTransaction.object_name => Capital::FinancingTransaction,
|
36
43
|
Card.object_name => Card,
|
37
44
|
CashBalance.object_name => CashBalance,
|
38
45
|
Charge.object_name => Charge,
|
@@ -41,6 +48,7 @@ module Stripe
|
|
41
48
|
Climate::Product.object_name => Climate::Product,
|
42
49
|
Climate::Supplier.object_name => Climate::Supplier,
|
43
50
|
ConfirmationToken.object_name => ConfirmationToken,
|
51
|
+
ConnectCollectionTransfer.object_name => ConnectCollectionTransfer,
|
44
52
|
CountrySpec.object_name => CountrySpec,
|
45
53
|
Coupon.object_name => Coupon,
|
46
54
|
CreditNote.object_name => CreditNote,
|
@@ -52,6 +60,7 @@ module Stripe
|
|
52
60
|
Discount.object_name => Discount,
|
53
61
|
Dispute.object_name => Dispute,
|
54
62
|
Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
|
63
|
+
Entitlements::ActiveEntitlementSummary.object_name => Entitlements::ActiveEntitlementSummary,
|
55
64
|
Entitlements::Feature.object_name => Entitlements::Feature,
|
56
65
|
EphemeralKey.object_name => EphemeralKey,
|
57
66
|
Event.object_name => Event,
|
@@ -59,34 +68,48 @@ module Stripe
|
|
59
68
|
File.object_name => File,
|
60
69
|
FileLink.object_name => FileLink,
|
61
70
|
FinancialConnections::Account.object_name => FinancialConnections::Account,
|
71
|
+
FinancialConnections::AccountInferredBalance.object_name =>
|
72
|
+
FinancialConnections::AccountInferredBalance,
|
62
73
|
FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
|
63
74
|
FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership,
|
75
|
+
FinancialConnections::Institution.object_name => FinancialConnections::Institution,
|
64
76
|
FinancialConnections::Session.object_name => FinancialConnections::Session,
|
65
77
|
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
|
66
78
|
Forwarding::Request.object_name => Forwarding::Request,
|
67
79
|
FundingInstructions.object_name => FundingInstructions,
|
80
|
+
GiftCards::Card.object_name => GiftCards::Card,
|
81
|
+
GiftCards::Transaction.object_name => GiftCards::Transaction,
|
68
82
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
69
83
|
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
70
84
|
Invoice.object_name => Invoice,
|
71
85
|
InvoiceItem.object_name => InvoiceItem,
|
72
86
|
InvoiceLineItem.object_name => InvoiceLineItem,
|
87
|
+
InvoicePayment.object_name => InvoicePayment,
|
73
88
|
InvoiceRenderingTemplate.object_name => InvoiceRenderingTemplate,
|
74
89
|
Issuing::Authorization.object_name => Issuing::Authorization,
|
75
90
|
Issuing::Card.object_name => Issuing::Card,
|
76
91
|
Issuing::Cardholder.object_name => Issuing::Cardholder,
|
92
|
+
Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
|
77
93
|
Issuing::Dispute.object_name => Issuing::Dispute,
|
94
|
+
Issuing::DisputeSettlementDetail.object_name => Issuing::DisputeSettlementDetail,
|
95
|
+
Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit,
|
78
96
|
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
|
79
97
|
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
|
98
|
+
Issuing::Settlement.object_name => Issuing::Settlement,
|
80
99
|
Issuing::Token.object_name => Issuing::Token,
|
81
100
|
Issuing::Transaction.object_name => Issuing::Transaction,
|
82
101
|
LineItem.object_name => LineItem,
|
83
102
|
LoginLink.object_name => LoginLink,
|
84
103
|
Mandate.object_name => Mandate,
|
104
|
+
Margin.object_name => Margin,
|
105
|
+
Order.object_name => Order,
|
106
|
+
PaymentAttemptRecord.object_name => PaymentAttemptRecord,
|
85
107
|
PaymentIntent.object_name => PaymentIntent,
|
86
108
|
PaymentLink.object_name => PaymentLink,
|
87
109
|
PaymentMethod.object_name => PaymentMethod,
|
88
110
|
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
89
111
|
PaymentMethodDomain.object_name => PaymentMethodDomain,
|
112
|
+
PaymentRecord.object_name => PaymentRecord,
|
90
113
|
Payout.object_name => Payout,
|
91
114
|
Person.object_name => Person,
|
92
115
|
Plan.object_name => Plan,
|
@@ -95,12 +118,16 @@ module Stripe
|
|
95
118
|
ProductFeature.object_name => ProductFeature,
|
96
119
|
PromotionCode.object_name => PromotionCode,
|
97
120
|
Quote.object_name => Quote,
|
121
|
+
QuoteLine.object_name => QuoteLine,
|
122
|
+
QuotePreviewInvoice.object_name => QuotePreviewInvoice,
|
123
|
+
QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
|
98
124
|
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
|
99
125
|
Radar::ValueList.object_name => Radar::ValueList,
|
100
126
|
Radar::ValueListItem.object_name => Radar::ValueListItem,
|
101
127
|
Refund.object_name => Refund,
|
102
128
|
Reporting::ReportRun.object_name => Reporting::ReportRun,
|
103
129
|
Reporting::ReportType.object_name => Reporting::ReportType,
|
130
|
+
ReserveTransaction.object_name => ReserveTransaction,
|
104
131
|
Reversal.object_name => Reversal,
|
105
132
|
Review.object_name => Review,
|
106
133
|
SetupAttempt.object_name => SetupAttempt,
|
@@ -108,23 +135,28 @@ module Stripe
|
|
108
135
|
ShippingRate.object_name => ShippingRate,
|
109
136
|
Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
|
110
137
|
Source.object_name => Source,
|
138
|
+
SourceMandateNotification.object_name => SourceMandateNotification,
|
111
139
|
SourceTransaction.object_name => SourceTransaction,
|
112
140
|
Subscription.object_name => Subscription,
|
113
141
|
SubscriptionItem.object_name => SubscriptionItem,
|
114
142
|
SubscriptionSchedule.object_name => SubscriptionSchedule,
|
143
|
+
Tax::Association.object_name => Tax::Association,
|
115
144
|
Tax::Calculation.object_name => Tax::Calculation,
|
116
145
|
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
|
146
|
+
Tax::Form.object_name => Tax::Form,
|
117
147
|
Tax::Registration.object_name => Tax::Registration,
|
118
148
|
Tax::Settings.object_name => Tax::Settings,
|
119
149
|
Tax::Transaction.object_name => Tax::Transaction,
|
120
150
|
Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
|
121
151
|
TaxCode.object_name => TaxCode,
|
152
|
+
TaxDeductedAtSource.object_name => TaxDeductedAtSource,
|
122
153
|
TaxId.object_name => TaxId,
|
123
154
|
TaxRate.object_name => TaxRate,
|
124
155
|
Terminal::Configuration.object_name => Terminal::Configuration,
|
125
156
|
Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
|
126
157
|
Terminal::Location.object_name => Terminal::Location,
|
127
158
|
Terminal::Reader.object_name => Terminal::Reader,
|
159
|
+
Terminal::ReaderCollectedData.object_name => Terminal::ReaderCollectedData,
|
128
160
|
TestHelpers::TestClock.object_name => TestHelpers::TestClock,
|
129
161
|
Token.object_name => Token,
|
130
162
|
Topup.object_name => Topup,
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class RequestSigningAuthenticator
|
5
|
+
AUTHORIZATION_HEADER_NAME = "Authorization"
|
6
|
+
CONTENT_TYPE_HEADER_NAME = "Content-Type"
|
7
|
+
STRIPE_CONTEXT_HEADER_NAME = "Stripe-Context"
|
8
|
+
STRIPE_ACCOUNT_HEADER_NAME = "Stripe-Account"
|
9
|
+
CONTENT_DIGEST_HEADER_NAME = "Content-Digest"
|
10
|
+
SIGNATURE_INPUT_HEADER_NAME = "Signature-Input"
|
11
|
+
SIGNATURE_HEADER_NAME = "Signature"
|
12
|
+
|
13
|
+
attr_reader :auth_token, :sign_lambda
|
14
|
+
|
15
|
+
def initialize(auth_token, sign_lambda)
|
16
|
+
raise ArgumentError, "auth_token must be a string" unless auth_token.is_a?(String)
|
17
|
+
raise ArgumentError, "sign_lambda must be a lambda" unless sign_lambda.is_a?(Proc)
|
18
|
+
|
19
|
+
@auth_token = auth_token
|
20
|
+
@sign_lambda = sign_lambda
|
21
|
+
end
|
22
|
+
|
23
|
+
def authenticate(method, headers, body)
|
24
|
+
covered_headers = [CONTENT_TYPE_HEADER_NAME,
|
25
|
+
CONTENT_DIGEST_HEADER_NAME,
|
26
|
+
STRIPE_CONTEXT_HEADER_NAME,
|
27
|
+
STRIPE_ACCOUNT_HEADER_NAME,
|
28
|
+
AUTHORIZATION_HEADER_NAME,]
|
29
|
+
|
30
|
+
headers[AUTHORIZATION_HEADER_NAME] = "STRIPE-V2-SIG #{auth_token}"
|
31
|
+
|
32
|
+
if method == :get
|
33
|
+
covered_headers -= [CONTENT_TYPE_HEADER_NAME,
|
34
|
+
CONTENT_DIGEST_HEADER_NAME,]
|
35
|
+
else
|
36
|
+
content = body || ""
|
37
|
+
headers[CONTENT_DIGEST_HEADER_NAME] =
|
38
|
+
%(sha-256=:#{content_digest(content)}:)
|
39
|
+
end
|
40
|
+
|
41
|
+
covered_headers_formatted = covered_headers
|
42
|
+
.map { |string| %("#{string.downcase}") }
|
43
|
+
.join(" ")
|
44
|
+
|
45
|
+
signature_input = "(#{covered_headers_formatted});created=#{created_time}"
|
46
|
+
|
47
|
+
inputs = covered_headers
|
48
|
+
.map { |header| %("#{header.downcase}": #{headers[header]}) }
|
49
|
+
.join("\n")
|
50
|
+
|
51
|
+
signature_base = %(#{inputs}\n"@signature-params": #{signature_input})
|
52
|
+
.encode(Encoding::UTF_8)
|
53
|
+
|
54
|
+
headers[SIGNATURE_INPUT_HEADER_NAME] = "sig1=#{signature_input}"
|
55
|
+
|
56
|
+
headers[SIGNATURE_HEADER_NAME] =
|
57
|
+
"sig1=:#{encoded_signature(signature_base)}:"
|
58
|
+
end
|
59
|
+
|
60
|
+
private def sign(signature_base)
|
61
|
+
@sign_lambda.call(signature_base)
|
62
|
+
end
|
63
|
+
|
64
|
+
private def encoded_signature(signature_base)
|
65
|
+
Base64.strict_encode64(sign(signature_base))
|
66
|
+
rescue StandardError
|
67
|
+
raise AuthenticationError, "Encountered '#{e.message} (#{e.class})' " \
|
68
|
+
"when calculating request signature."
|
69
|
+
end
|
70
|
+
|
71
|
+
private def content_digest(content)
|
72
|
+
Base64.strict_encode64(OpenSSL::Digest.new("SHA256").digest(content))
|
73
|
+
end
|
74
|
+
|
75
|
+
private def created_time
|
76
|
+
Time.now.to_i
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -34,6 +34,236 @@ module Stripe
|
|
34
34
|
nested_resource_class_methods :login_link, operations: %i[create]
|
35
35
|
nested_resource_class_methods :person, operations: %i[create retrieve update delete list]
|
36
36
|
|
37
|
+
class BusinessProfile < Stripe::StripeObject
|
38
|
+
class AnnualRevenue < Stripe::StripeObject
|
39
|
+
attr_reader :amount, :currency, :fiscal_year_end
|
40
|
+
end
|
41
|
+
|
42
|
+
class MonthlyEstimatedRevenue < Stripe::StripeObject
|
43
|
+
attr_reader :amount, :currency
|
44
|
+
end
|
45
|
+
|
46
|
+
class SupportAddress < Stripe::StripeObject
|
47
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
48
|
+
end
|
49
|
+
attr_reader :annual_revenue, :estimated_worker_count, :mcc, :monthly_estimated_revenue, :name, :product_description, :support_address, :support_email, :support_phone, :support_url, :url
|
50
|
+
end
|
51
|
+
|
52
|
+
class Capabilities < Stripe::StripeObject
|
53
|
+
attr_reader :acss_debit_payments, :affirm_payments, :afterpay_clearpay_payments, :alma_payments, :amazon_pay_payments, :au_becs_debit_payments, :automatic_indirect_tax, :bacs_debit_payments, :bancontact_payments, :bank_transfer_payments, :blik_payments, :boleto_payments, :card_issuing, :card_payments, :cartes_bancaires_payments, :cashapp_payments, :eps_payments, :fpx_payments, :gb_bank_transfer_payments, :giropay_payments, :gopay_payments, :grabpay_payments, :id_bank_transfer_payments, :id_bank_transfer_payments_bca, :ideal_payments, :india_international_payments, :jcb_payments, :jp_bank_transfer_payments, :kakao_pay_payments, :klarna_payments, :konbini_payments, :kr_card_payments, :legacy_payments, :link_payments, :mb_way_payments, :mobilepay_payments, :multibanco_payments, :mx_bank_transfer_payments, :naver_pay_payments, :oxxo_payments, :p24_payments, :payco_payments, :paynow_payments, :paypal_payments, :payto_payments, :promptpay_payments, :qris_payments, :rechnung_payments, :revolut_pay_payments, :samsung_pay_payments, :sepa_bank_transfer_payments, :sepa_debit_payments, :shopeepay_payments, :sofort_payments, :swish_payments, :tax_reporting_us_1099_k, :tax_reporting_us_1099_misc, :transfers, :treasury, :treasury_evolve, :treasury_fifth_third, :treasury_goldman_sachs, :twint_payments, :us_bank_account_ach_payments, :us_bank_transfer_payments, :zip_payments
|
54
|
+
end
|
55
|
+
|
56
|
+
class Company < Stripe::StripeObject
|
57
|
+
class Address < Stripe::StripeObject
|
58
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
59
|
+
end
|
60
|
+
|
61
|
+
class AddressKana < Stripe::StripeObject
|
62
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state, :town
|
63
|
+
end
|
64
|
+
|
65
|
+
class AddressKanji < Stripe::StripeObject
|
66
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state, :town
|
67
|
+
end
|
68
|
+
|
69
|
+
class OwnershipDeclaration < Stripe::StripeObject
|
70
|
+
attr_reader :date, :ip, :user_agent
|
71
|
+
end
|
72
|
+
|
73
|
+
class Verification < Stripe::StripeObject
|
74
|
+
class Document < Stripe::StripeObject
|
75
|
+
attr_reader :back, :details, :details_code, :front
|
76
|
+
end
|
77
|
+
attr_reader :document
|
78
|
+
end
|
79
|
+
attr_reader :address, :address_kana, :address_kanji, :directors_provided, :executives_provided, :export_license_id, :export_purpose_code, :name, :name_kana, :name_kanji, :owners_provided, :ownership_declaration, :phone, :structure, :tax_id_provided, :tax_id_registrar, :vat_id_provided, :verification
|
80
|
+
end
|
81
|
+
|
82
|
+
class Controller < Stripe::StripeObject
|
83
|
+
class Application < Stripe::StripeObject
|
84
|
+
attr_reader :loss_liable, :onboarding_owner, :pricing_controls
|
85
|
+
end
|
86
|
+
|
87
|
+
class Dashboard < Stripe::StripeObject
|
88
|
+
attr_reader :type
|
89
|
+
end
|
90
|
+
|
91
|
+
class Fees < Stripe::StripeObject
|
92
|
+
attr_reader :payer
|
93
|
+
end
|
94
|
+
|
95
|
+
class Losses < Stripe::StripeObject
|
96
|
+
attr_reader :payments
|
97
|
+
end
|
98
|
+
|
99
|
+
class StripeDashboard < Stripe::StripeObject
|
100
|
+
attr_reader :type
|
101
|
+
end
|
102
|
+
attr_reader :application, :dashboard, :fees, :is_controller, :losses, :requirement_collection, :stripe_dashboard, :type
|
103
|
+
end
|
104
|
+
|
105
|
+
class FutureRequirements < Stripe::StripeObject
|
106
|
+
class Alternative < Stripe::StripeObject
|
107
|
+
attr_reader :alternative_fields_due, :original_fields_due
|
108
|
+
end
|
109
|
+
|
110
|
+
class Error < Stripe::StripeObject
|
111
|
+
attr_reader :code, :reason, :requirement
|
112
|
+
end
|
113
|
+
attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
|
114
|
+
end
|
115
|
+
|
116
|
+
class Groups < Stripe::StripeObject
|
117
|
+
attr_reader :payments_pricing
|
118
|
+
end
|
119
|
+
|
120
|
+
class Requirements < Stripe::StripeObject
|
121
|
+
class Alternative < Stripe::StripeObject
|
122
|
+
attr_reader :alternative_fields_due, :original_fields_due
|
123
|
+
end
|
124
|
+
|
125
|
+
class Error < Stripe::StripeObject
|
126
|
+
attr_reader :code, :reason, :requirement
|
127
|
+
end
|
128
|
+
attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
|
129
|
+
end
|
130
|
+
|
131
|
+
class RiskControls < Stripe::StripeObject
|
132
|
+
class Charges < Stripe::StripeObject
|
133
|
+
attr_reader :pause_requested
|
134
|
+
end
|
135
|
+
|
136
|
+
class Payouts < Stripe::StripeObject
|
137
|
+
attr_reader :pause_requested
|
138
|
+
end
|
139
|
+
attr_reader :charges, :payouts
|
140
|
+
end
|
141
|
+
|
142
|
+
class Settings < Stripe::StripeObject
|
143
|
+
class BacsDebitPayments < Stripe::StripeObject
|
144
|
+
attr_reader :display_name, :service_user_number
|
145
|
+
end
|
146
|
+
|
147
|
+
class BankBcaOnboarding < Stripe::StripeObject
|
148
|
+
attr_reader :account_holder_name, :business_account_number
|
149
|
+
end
|
150
|
+
|
151
|
+
class Branding < Stripe::StripeObject
|
152
|
+
attr_reader :icon, :logo, :primary_color, :secondary_color
|
153
|
+
end
|
154
|
+
|
155
|
+
class Capital < Stripe::StripeObject
|
156
|
+
attr_reader :payout_destination, :payout_destination_selector
|
157
|
+
end
|
158
|
+
|
159
|
+
class CardIssuing < Stripe::StripeObject
|
160
|
+
class TosAcceptance < Stripe::StripeObject
|
161
|
+
attr_reader :date, :ip, :user_agent
|
162
|
+
end
|
163
|
+
attr_reader :tos_acceptance
|
164
|
+
end
|
165
|
+
|
166
|
+
class CardPayments < Stripe::StripeObject
|
167
|
+
class DeclineOn < Stripe::StripeObject
|
168
|
+
attr_reader :avs_failure, :cvc_failure
|
169
|
+
end
|
170
|
+
attr_reader :decline_on, :statement_descriptor_prefix, :statement_descriptor_prefix_kana, :statement_descriptor_prefix_kanji
|
171
|
+
end
|
172
|
+
|
173
|
+
class Dashboard < Stripe::StripeObject
|
174
|
+
attr_reader :display_name, :timezone
|
175
|
+
end
|
176
|
+
|
177
|
+
class Invoices < Stripe::StripeObject
|
178
|
+
attr_reader :default_account_tax_ids
|
179
|
+
end
|
180
|
+
|
181
|
+
class Payments < Stripe::StripeObject
|
182
|
+
attr_reader :statement_descriptor, :statement_descriptor_kana, :statement_descriptor_kanji, :statement_descriptor_prefix_kana, :statement_descriptor_prefix_kanji
|
183
|
+
end
|
184
|
+
|
185
|
+
class Payouts < Stripe::StripeObject
|
186
|
+
class Schedule < Stripe::StripeObject
|
187
|
+
attr_reader :delay_days, :interval, :monthly_anchor, :weekly_anchor
|
188
|
+
end
|
189
|
+
attr_reader :debit_negative_balances, :schedule, :statement_descriptor
|
190
|
+
end
|
191
|
+
|
192
|
+
class SepaDebitPayments < Stripe::StripeObject
|
193
|
+
attr_reader :creditor_id
|
194
|
+
end
|
195
|
+
|
196
|
+
class TaxForms < Stripe::StripeObject
|
197
|
+
attr_reader :consented_to_paperless_delivery
|
198
|
+
end
|
199
|
+
|
200
|
+
class Treasury < Stripe::StripeObject
|
201
|
+
class TosAcceptance < Stripe::StripeObject
|
202
|
+
attr_reader :date, :ip, :user_agent
|
203
|
+
end
|
204
|
+
attr_reader :tos_acceptance
|
205
|
+
end
|
206
|
+
attr_reader :bacs_debit_payments, :bank_bca_onboarding, :branding, :capital, :card_issuing, :card_payments, :dashboard, :invoices, :payments, :payouts, :sepa_debit_payments, :tax_forms, :treasury
|
207
|
+
end
|
208
|
+
|
209
|
+
class TosAcceptance < Stripe::StripeObject
|
210
|
+
attr_reader :date, :ip, :service_agreement, :user_agent
|
211
|
+
end
|
212
|
+
# Business information about the account.
|
213
|
+
attr_reader :business_profile
|
214
|
+
# The business type. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
215
|
+
attr_reader :business_type
|
216
|
+
# Attribute for field capabilities
|
217
|
+
attr_reader :capabilities
|
218
|
+
# Whether the account can process charges.
|
219
|
+
attr_reader :charges_enabled
|
220
|
+
# Attribute for field company
|
221
|
+
attr_reader :company
|
222
|
+
# Attribute for field controller
|
223
|
+
attr_reader :controller
|
224
|
+
# The account's country.
|
225
|
+
attr_reader :country
|
226
|
+
# Time at which the account was connected. Measured in seconds since the Unix epoch.
|
227
|
+
attr_reader :created
|
228
|
+
# Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).
|
229
|
+
attr_reader :default_currency
|
230
|
+
# Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](/connect/onboarding) to finish submitting account details.
|
231
|
+
attr_reader :details_submitted
|
232
|
+
# An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.
|
233
|
+
attr_reader :email
|
234
|
+
# External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.
|
235
|
+
attr_reader :external_accounts
|
236
|
+
# Attribute for field future_requirements
|
237
|
+
attr_reader :future_requirements
|
238
|
+
# The groups associated with the account.
|
239
|
+
attr_reader :groups
|
240
|
+
# Unique identifier for the object.
|
241
|
+
attr_reader :id
|
242
|
+
# This is an object representing a person associated with a Stripe account.
|
243
|
+
#
|
244
|
+
# A platform cannot access a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
|
245
|
+
#
|
246
|
+
# See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information).
|
247
|
+
attr_reader :individual
|
248
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
249
|
+
attr_reader :metadata
|
250
|
+
# String representing the object's type. Objects of the same type share the same value.
|
251
|
+
attr_reader :object
|
252
|
+
# Whether the funds in this account can be paid out.
|
253
|
+
attr_reader :payouts_enabled
|
254
|
+
# Attribute for field requirements
|
255
|
+
attr_reader :requirements
|
256
|
+
# Attribute for field risk_controls
|
257
|
+
attr_reader :risk_controls
|
258
|
+
# Options for customizing how the account functions within Stripe.
|
259
|
+
attr_reader :settings
|
260
|
+
# Attribute for field tos_acceptance
|
261
|
+
attr_reader :tos_acceptance
|
262
|
+
# The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
|
263
|
+
attr_reader :type
|
264
|
+
# Always true for a deleted object
|
265
|
+
attr_reader :deleted
|
266
|
+
|
37
267
|
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
38
268
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
39
269
|
#
|
@@ -14,6 +14,15 @@ module Stripe
|
|
14
14
|
"account_link"
|
15
15
|
end
|
16
16
|
|
17
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
18
|
+
attr_reader :created
|
19
|
+
# The timestamp at which this account link will expire.
|
20
|
+
attr_reader :expires_at
|
21
|
+
# String representing the object's type. Objects of the same type share the same value.
|
22
|
+
attr_reader :object
|
23
|
+
# The URL for the account link.
|
24
|
+
attr_reader :url
|
25
|
+
|
17
26
|
# Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
|
18
27
|
def self.create(params = {}, opts = {})
|
19
28
|
request_stripe_object(method: :post, path: "/v1/account_links", params: params, opts: opts)
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
|
6
|
+
#
|
7
|
+
# See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
|
8
|
+
class AccountNotice < APIResource
|
9
|
+
extend Stripe::APIOperations::List
|
10
|
+
include Stripe::APIOperations::Save
|
11
|
+
|
12
|
+
OBJECT_NAME = "account_notice"
|
13
|
+
def self.object_name
|
14
|
+
"account_notice"
|
15
|
+
end
|
16
|
+
|
17
|
+
class Email < Stripe::StripeObject
|
18
|
+
attr_reader :plain_text, :recipient, :subject
|
19
|
+
end
|
20
|
+
|
21
|
+
class LinkedObjects < Stripe::StripeObject
|
22
|
+
attr_reader :capability, :issuing_credit_underwriting_record, :issuing_dispute
|
23
|
+
end
|
24
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
25
|
+
attr_reader :created
|
26
|
+
# When present, the deadline for sending the notice to meet the relevant regulations.
|
27
|
+
attr_reader :deadline
|
28
|
+
# Information about the email when sent.
|
29
|
+
attr_reader :email
|
30
|
+
# Unique identifier for the object.
|
31
|
+
attr_reader :id
|
32
|
+
# Information about objects related to the notice.
|
33
|
+
attr_reader :linked_objects
|
34
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
35
|
+
attr_reader :livemode
|
36
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
37
|
+
attr_reader :metadata
|
38
|
+
# String representing the object's type. Objects of the same type share the same value.
|
39
|
+
attr_reader :object
|
40
|
+
# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
|
41
|
+
attr_reader :reason
|
42
|
+
# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
|
43
|
+
attr_reader :sent_at
|
44
|
+
|
45
|
+
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
46
|
+
def self.list(filters = {}, opts = {})
|
47
|
+
request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Updates an AccountNotice object.
|
51
|
+
def self.update(id, params = {}, opts = {})
|
52
|
+
request_stripe_object(
|
53
|
+
method: :post,
|
54
|
+
path: format("/v1/account_notices/%<id>s", { id: CGI.escape(id) }),
|
55
|
+
params: params,
|
56
|
+
opts: opts
|
57
|
+
)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -17,6 +17,109 @@ module Stripe
|
|
17
17
|
"account_session"
|
18
18
|
end
|
19
19
|
|
20
|
+
class Components < Stripe::StripeObject
|
21
|
+
class AccountManagement < Stripe::StripeObject
|
22
|
+
class Features < Stripe::StripeObject
|
23
|
+
attr_reader :disable_stripe_user_authentication, :external_account_collection
|
24
|
+
end
|
25
|
+
attr_reader :enabled, :features
|
26
|
+
end
|
27
|
+
|
28
|
+
class AccountOnboarding < Stripe::StripeObject
|
29
|
+
class Features < Stripe::StripeObject
|
30
|
+
attr_reader :disable_stripe_user_authentication, :external_account_collection
|
31
|
+
end
|
32
|
+
attr_reader :enabled, :features
|
33
|
+
end
|
34
|
+
|
35
|
+
class Balances < Stripe::StripeObject
|
36
|
+
class Features < Stripe::StripeObject
|
37
|
+
attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
|
38
|
+
end
|
39
|
+
attr_reader :enabled, :features
|
40
|
+
end
|
41
|
+
|
42
|
+
class CapitalFinancing < Stripe::StripeObject
|
43
|
+
class Features < Stripe::StripeObject; end
|
44
|
+
attr_reader :enabled, :features
|
45
|
+
end
|
46
|
+
|
47
|
+
class CapitalFinancingApplication < Stripe::StripeObject
|
48
|
+
class Features < Stripe::StripeObject; end
|
49
|
+
attr_reader :enabled, :features
|
50
|
+
end
|
51
|
+
|
52
|
+
class CapitalFinancingPromotion < Stripe::StripeObject
|
53
|
+
class Features < Stripe::StripeObject; end
|
54
|
+
attr_reader :enabled, :features
|
55
|
+
end
|
56
|
+
|
57
|
+
class Documents < Stripe::StripeObject
|
58
|
+
class Features < Stripe::StripeObject; end
|
59
|
+
attr_reader :enabled, :features
|
60
|
+
end
|
61
|
+
|
62
|
+
class NotificationBanner < Stripe::StripeObject
|
63
|
+
class Features < Stripe::StripeObject
|
64
|
+
attr_reader :disable_stripe_user_authentication, :external_account_collection
|
65
|
+
end
|
66
|
+
attr_reader :enabled, :features
|
67
|
+
end
|
68
|
+
|
69
|
+
class PaymentDetails < Stripe::StripeObject
|
70
|
+
class Features < Stripe::StripeObject
|
71
|
+
attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
|
72
|
+
end
|
73
|
+
attr_reader :enabled, :features
|
74
|
+
end
|
75
|
+
|
76
|
+
class Payments < Stripe::StripeObject
|
77
|
+
class Features < Stripe::StripeObject
|
78
|
+
attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
|
79
|
+
end
|
80
|
+
attr_reader :enabled, :features
|
81
|
+
end
|
82
|
+
|
83
|
+
class Payouts < Stripe::StripeObject
|
84
|
+
class Features < Stripe::StripeObject
|
85
|
+
attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
|
86
|
+
end
|
87
|
+
attr_reader :enabled, :features
|
88
|
+
end
|
89
|
+
|
90
|
+
class PayoutsList < Stripe::StripeObject
|
91
|
+
class Features < Stripe::StripeObject; end
|
92
|
+
attr_reader :enabled, :features
|
93
|
+
end
|
94
|
+
|
95
|
+
class TaxRegistrations < Stripe::StripeObject
|
96
|
+
class Features < Stripe::StripeObject; end
|
97
|
+
attr_reader :enabled, :features
|
98
|
+
end
|
99
|
+
|
100
|
+
class TaxSettings < Stripe::StripeObject
|
101
|
+
class Features < Stripe::StripeObject; end
|
102
|
+
attr_reader :enabled, :features
|
103
|
+
end
|
104
|
+
attr_reader :account_management, :account_onboarding, :balances, :capital_financing, :capital_financing_application, :capital_financing_promotion, :documents, :notification_banner, :payment_details, :payments, :payouts, :payouts_list, :tax_registrations, :tax_settings
|
105
|
+
end
|
106
|
+
# The ID of the account the AccountSession was created for
|
107
|
+
attr_reader :account
|
108
|
+
# The client secret of this AccountSession. Used on the client to set up secure access to the given `account`.
|
109
|
+
#
|
110
|
+
# The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
|
111
|
+
#
|
112
|
+
# Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
|
113
|
+
attr_reader :client_secret
|
114
|
+
# Attribute for field components
|
115
|
+
attr_reader :components
|
116
|
+
# The timestamp at which this AccountSession will expire.
|
117
|
+
attr_reader :expires_at
|
118
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
119
|
+
attr_reader :livemode
|
120
|
+
# String representing the object's type. Objects of the same type share the same value.
|
121
|
+
attr_reader :object
|
122
|
+
|
20
123
|
# Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
|
21
124
|
def self.create(params = {}, opts = {})
|
22
125
|
request_stripe_object(method: :post, path: "/v1/account_sessions", params: params, opts: opts)
|
@@ -13,6 +13,19 @@ module Stripe
|
|
13
13
|
"apple_pay_domain"
|
14
14
|
end
|
15
15
|
|
16
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
17
|
+
attr_reader :created
|
18
|
+
# Attribute for field domain_name
|
19
|
+
attr_reader :domain_name
|
20
|
+
# Unique identifier for the object.
|
21
|
+
attr_reader :id
|
22
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
23
|
+
attr_reader :livemode
|
24
|
+
# String representing the object's type. Objects of the same type share the same value.
|
25
|
+
attr_reader :object
|
26
|
+
# Always true for a deleted object
|
27
|
+
attr_reader :deleted
|
28
|
+
|
16
29
|
# Create an apple pay domain.
|
17
30
|
def self.create(params = {}, opts = {})
|
18
31
|
request_stripe_object(
|