stripe 13.3.0.pre.beta.3 → 13.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +657 -1401
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +0 -32
- data/lib/stripe/resources/account.rb +2 -232
- data/lib/stripe/resources/account_link.rb +0 -9
- data/lib/stripe/resources/account_session.rb +0 -103
- data/lib/stripe/resources/apple_pay_domain.rb +2 -20
- data/lib/stripe/resources/application_fee.rb +2 -36
- data/lib/stripe/resources/application_fee_refund.rb +0 -17
- data/lib/stripe/resources/apps/secret.rb +2 -24
- data/lib/stripe/resources/balance.rb +0 -59
- data/lib/stripe/resources/balance_transaction.rb +2 -36
- data/lib/stripe/resources/bank_account.rb +3 -61
- data/lib/stripe/resources/billing/alert.rb +2 -23
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
- data/lib/stripe/resources/billing/credit_grant.rb +2 -46
- data/lib/stripe/resources/billing/meter.rb +2 -44
- data/lib/stripe/resources/billing/meter_event.rb +0 -15
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
- data/lib/stripe/resources/billing_portal/session.rb +0 -61
- data/lib/stripe/resources/capability.rb +0 -38
- data/lib/stripe/resources/card.rb +1 -77
- data/lib/stripe/resources/cash_balance.rb +0 -14
- data/lib/stripe/resources/charge.rb +2 -471
- data/lib/stripe/resources/checkout/session.rb +2 -498
- data/lib/stripe/resources/climate/order.rb +2 -57
- data/lib/stripe/resources/climate/product.rb +2 -26
- data/lib/stripe/resources/climate/supplier.rb +2 -20
- data/lib/stripe/resources/confirmation_token.rb +0 -297
- data/lib/stripe/resources/country_spec.rb +2 -29
- data/lib/stripe/resources/coupon.rb +2 -46
- data/lib/stripe/resources/credit_note.rb +2 -93
- data/lib/stripe/resources/credit_note_line_item.rb +0 -46
- data/lib/stripe/resources/customer.rb +2 -95
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
- data/lib/stripe/resources/customer_session.rb +0 -34
- data/lib/stripe/resources/discount.rb +0 -29
- data/lib/stripe/resources/dispute.rb +2 -98
- data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
- data/lib/stripe/resources/entitlements/feature.rb +2 -17
- data/lib/stripe/resources/ephemeral_key.rb +0 -13
- data/lib/stripe/resources/event.rb +2 -46
- data/lib/stripe/resources/exchange_rate.rb +2 -9
- data/lib/stripe/resources/file.rb +2 -25
- data/lib/stripe/resources/file_link.rb +2 -21
- data/lib/stripe/resources/financial_connections/account.rb +2 -89
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
- data/lib/stripe/resources/financial_connections/session.rb +0 -49
- data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
- data/lib/stripe/resources/forwarding/request.rb +2 -42
- data/lib/stripe/resources/funding_instructions.rb +0 -82
- data/lib/stripe/resources/identity/verification_report.rb +2 -94
- data/lib/stripe/resources/identity/verification_session.rb +2 -78
- data/lib/stripe/resources/invoice.rb +2 -420
- data/lib/stripe/resources/invoice_item.rb +2 -56
- data/lib/stripe/resources/invoice_line_item.rb +0 -83
- data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
- data/lib/stripe/resources/issuing/authorization.rb +2 -131
- data/lib/stripe/resources/issuing/card.rb +2 -88
- data/lib/stripe/resources/issuing/cardholder.rb +2 -78
- data/lib/stripe/resources/issuing/dispute.rb +2 -67
- data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
- data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
- data/lib/stripe/resources/issuing/token.rb +2 -48
- data/lib/stripe/resources/issuing/transaction.rb +2 -108
- data/lib/stripe/resources/line_item.rb +0 -50
- data/lib/stripe/resources/login_link.rb +0 -7
- data/lib/stripe/resources/mandate.rb +0 -78
- data/lib/stripe/resources/payment_intent.rb +2 -714
- data/lib/stripe/resources/payment_link.rb +2 -200
- data/lib/stripe/resources/payment_method.rb +2 -370
- data/lib/stripe/resources/payment_method_configuration.rb +2 -432
- data/lib/stripe/resources/payment_method_domain.rb +2 -59
- data/lib/stripe/resources/payout.rb +2 -58
- data/lib/stripe/resources/person.rb +0 -128
- data/lib/stripe/resources/plan.rb +2 -54
- data/lib/stripe/resources/price.rb +2 -79
- data/lib/stripe/resources/product.rb +2 -62
- data/lib/stripe/resources/product_feature.rb +0 -12
- data/lib/stripe/resources/promotion_code.rb +2 -37
- data/lib/stripe/resources/quote.rb +2 -358
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
- data/lib/stripe/resources/radar/value_list.rb +2 -25
- data/lib/stripe/resources/radar/value_list_item.rb +2 -19
- data/lib/stripe/resources/refund.rb +2 -132
- data/lib/stripe/resources/reporting/report_run.rb +2 -31
- data/lib/stripe/resources/reporting/report_type.rb +2 -21
- data/lib/stripe/resources/reversal.rb +0 -21
- data/lib/stripe/resources/review.rb +2 -38
- data/lib/stripe/resources/setup_attempt.rb +2 -103
- data/lib/stripe/resources/setup_intent.rb +2 -160
- data/lib/stripe/resources/shipping_rate.rb +2 -44
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
- data/lib/stripe/resources/source.rb +0 -197
- data/lib/stripe/resources/source_transaction.rb +0 -48
- data/lib/stripe/resources/subscription.rb +2 -216
- data/lib/stripe/resources/subscription_item.rb +2 -48
- data/lib/stripe/resources/subscription_schedule.rb +2 -175
- data/lib/stripe/resources/tax/calculation.rb +0 -72
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
- data/lib/stripe/resources/tax/registration.rb +2 -381
- data/lib/stripe/resources/tax/settings.rb +0 -33
- data/lib/stripe/resources/tax/transaction.rb +0 -68
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
- data/lib/stripe/resources/tax_code.rb +2 -11
- data/lib/stripe/resources/tax_id.rb +2 -32
- data/lib/stripe/resources/tax_rate.rb +2 -44
- data/lib/stripe/resources/terminal/configuration.rb +2 -109
- data/lib/stripe/resources/terminal/connection_token.rb +0 -7
- data/lib/stripe/resources/terminal/location.rb +2 -22
- data/lib/stripe/resources/terminal/reader.rb +2 -180
- data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
- data/lib/stripe/resources/token.rb +0 -29
- data/lib/stripe/resources/topup.rb +2 -35
- data/lib/stripe/resources/transfer.rb +2 -37
- data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
- data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
- data/lib/stripe/resources/treasury/financial_account.rb +2 -59
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
- data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
- data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
- data/lib/stripe/resources/treasury/received_credit.rb +2 -72
- data/lib/stripe/resources/treasury/received_debit.rb +2 -69
- data/lib/stripe/resources/treasury/transaction.rb +2 -44
- data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
- data/lib/stripe/resources/usage_record.rb +0 -13
- data/lib/stripe/resources/usage_record_summary.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
- data/lib/stripe/resources/v2/event.rb +0 -21
- data/lib/stripe/resources/v2/event_destination.rb +0 -49
- data/lib/stripe/resources/webhook_endpoint.rb +2 -34
- data/lib/stripe/resources.rb +0 -31
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +1 -44
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/reader_service.rb +0 -33
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services.rb +0 -25
- data/lib/stripe/stripe_client.rb +7 -2
- data/lib/stripe/stripe_configuration.rb +22 -4
- data/lib/stripe/stripe_object.rb +3 -8
- data/lib/stripe/thin_event.rb +22 -2
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +22 -45
- data/stripe.gemspec +1 -2
- metadata +7 -65
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -60
- data/lib/stripe/resources/application.rb +0 -20
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
- data/lib/stripe/resources/capital/financing_offer.rb +0 -94
- data/lib/stripe/resources/capital/financing_summary.rb +0 -32
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -61
- data/lib/stripe/resources/gift_cards/card.rb +0 -96
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
- data/lib/stripe/resources/invoice_payment.rb +0 -46
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -56
- data/lib/stripe/resources/order.rb +0 -322
- data/lib/stripe/resources/payment_attempt_record.rb +0 -100
- data/lib/stripe/resources/payment_record.rb +0 -188
- data/lib/stripe/resources/quote_line.rb +0 -136
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
- data/lib/stripe/resources/reserve_transaction.rb +0 -22
- data/lib/stripe/resources/source_mandate_notification.rb +0 -59
- data/lib/stripe/resources/tax/association.rb +0 -60
- data/lib/stripe/resources/tax/form.rb +0 -124
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
- data/lib/stripe/resources/v2/amount.rb +0 -9
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/gift_cards/card_service.rb +0 -63
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_payment_service.rb +0 -28
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
- data/lib/stripe/services/payment_record_service.rb +0 -78
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/association_service.rb +0 -19
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1412
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.3.
|
1
|
+
13.3.1
|
data/lib/stripe/object_types.rb
CHANGED
@@ -14,10 +14,8 @@ 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,
|
18
17
|
AccountSession.object_name => AccountSession,
|
19
18
|
ApplePayDomain.object_name => ApplePayDomain,
|
20
|
-
Application.object_name => Application,
|
21
19
|
ApplicationFee.object_name => ApplicationFee,
|
22
20
|
ApplicationFeeRefund.object_name => ApplicationFeeRefund,
|
23
21
|
Apps::Secret.object_name => Apps::Secret,
|
@@ -25,21 +23,16 @@ module Stripe
|
|
25
23
|
BalanceTransaction.object_name => BalanceTransaction,
|
26
24
|
BankAccount.object_name => BankAccount,
|
27
25
|
Billing::Alert.object_name => Billing::Alert,
|
28
|
-
Billing::AlertTriggered.object_name => Billing::AlertTriggered,
|
29
26
|
Billing::CreditBalanceSummary.object_name => Billing::CreditBalanceSummary,
|
30
27
|
Billing::CreditBalanceTransaction.object_name => Billing::CreditBalanceTransaction,
|
31
28
|
Billing::CreditGrant.object_name => Billing::CreditGrant,
|
32
29
|
Billing::Meter.object_name => Billing::Meter,
|
33
|
-
Billing::MeterErrorReport.object_name => Billing::MeterErrorReport,
|
34
30
|
Billing::MeterEvent.object_name => Billing::MeterEvent,
|
35
31
|
Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,
|
36
32
|
Billing::MeterEventSummary.object_name => Billing::MeterEventSummary,
|
37
33
|
BillingPortal::Configuration.object_name => BillingPortal::Configuration,
|
38
34
|
BillingPortal::Session.object_name => BillingPortal::Session,
|
39
35
|
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,
|
43
36
|
Card.object_name => Card,
|
44
37
|
CashBalance.object_name => CashBalance,
|
45
38
|
Charge.object_name => Charge,
|
@@ -48,7 +41,6 @@ module Stripe
|
|
48
41
|
Climate::Product.object_name => Climate::Product,
|
49
42
|
Climate::Supplier.object_name => Climate::Supplier,
|
50
43
|
ConfirmationToken.object_name => ConfirmationToken,
|
51
|
-
ConnectCollectionTransfer.object_name => ConnectCollectionTransfer,
|
52
44
|
CountrySpec.object_name => CountrySpec,
|
53
45
|
Coupon.object_name => Coupon,
|
54
46
|
CreditNote.object_name => CreditNote,
|
@@ -60,7 +52,6 @@ module Stripe
|
|
60
52
|
Discount.object_name => Discount,
|
61
53
|
Dispute.object_name => Dispute,
|
62
54
|
Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
|
63
|
-
Entitlements::ActiveEntitlementSummary.object_name => Entitlements::ActiveEntitlementSummary,
|
64
55
|
Entitlements::Feature.object_name => Entitlements::Feature,
|
65
56
|
EphemeralKey.object_name => EphemeralKey,
|
66
57
|
Event.object_name => Event,
|
@@ -68,48 +59,34 @@ module Stripe
|
|
68
59
|
File.object_name => File,
|
69
60
|
FileLink.object_name => FileLink,
|
70
61
|
FinancialConnections::Account.object_name => FinancialConnections::Account,
|
71
|
-
FinancialConnections::AccountInferredBalance.object_name =>
|
72
|
-
FinancialConnections::AccountInferredBalance,
|
73
62
|
FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
|
74
63
|
FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership,
|
75
|
-
FinancialConnections::Institution.object_name => FinancialConnections::Institution,
|
76
64
|
FinancialConnections::Session.object_name => FinancialConnections::Session,
|
77
65
|
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
|
78
66
|
Forwarding::Request.object_name => Forwarding::Request,
|
79
67
|
FundingInstructions.object_name => FundingInstructions,
|
80
|
-
GiftCards::Card.object_name => GiftCards::Card,
|
81
|
-
GiftCards::Transaction.object_name => GiftCards::Transaction,
|
82
68
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
83
69
|
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
84
70
|
Invoice.object_name => Invoice,
|
85
71
|
InvoiceItem.object_name => InvoiceItem,
|
86
72
|
InvoiceLineItem.object_name => InvoiceLineItem,
|
87
|
-
InvoicePayment.object_name => InvoicePayment,
|
88
73
|
InvoiceRenderingTemplate.object_name => InvoiceRenderingTemplate,
|
89
74
|
Issuing::Authorization.object_name => Issuing::Authorization,
|
90
75
|
Issuing::Card.object_name => Issuing::Card,
|
91
76
|
Issuing::Cardholder.object_name => Issuing::Cardholder,
|
92
|
-
Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
|
93
77
|
Issuing::Dispute.object_name => Issuing::Dispute,
|
94
|
-
Issuing::DisputeSettlementDetail.object_name => Issuing::DisputeSettlementDetail,
|
95
|
-
Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit,
|
96
78
|
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
|
97
79
|
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
|
98
|
-
Issuing::Settlement.object_name => Issuing::Settlement,
|
99
80
|
Issuing::Token.object_name => Issuing::Token,
|
100
81
|
Issuing::Transaction.object_name => Issuing::Transaction,
|
101
82
|
LineItem.object_name => LineItem,
|
102
83
|
LoginLink.object_name => LoginLink,
|
103
84
|
Mandate.object_name => Mandate,
|
104
|
-
Margin.object_name => Margin,
|
105
|
-
Order.object_name => Order,
|
106
|
-
PaymentAttemptRecord.object_name => PaymentAttemptRecord,
|
107
85
|
PaymentIntent.object_name => PaymentIntent,
|
108
86
|
PaymentLink.object_name => PaymentLink,
|
109
87
|
PaymentMethod.object_name => PaymentMethod,
|
110
88
|
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
111
89
|
PaymentMethodDomain.object_name => PaymentMethodDomain,
|
112
|
-
PaymentRecord.object_name => PaymentRecord,
|
113
90
|
Payout.object_name => Payout,
|
114
91
|
Person.object_name => Person,
|
115
92
|
Plan.object_name => Plan,
|
@@ -118,16 +95,12 @@ module Stripe
|
|
118
95
|
ProductFeature.object_name => ProductFeature,
|
119
96
|
PromotionCode.object_name => PromotionCode,
|
120
97
|
Quote.object_name => Quote,
|
121
|
-
QuoteLine.object_name => QuoteLine,
|
122
|
-
QuotePreviewInvoice.object_name => QuotePreviewInvoice,
|
123
|
-
QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
|
124
98
|
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
|
125
99
|
Radar::ValueList.object_name => Radar::ValueList,
|
126
100
|
Radar::ValueListItem.object_name => Radar::ValueListItem,
|
127
101
|
Refund.object_name => Refund,
|
128
102
|
Reporting::ReportRun.object_name => Reporting::ReportRun,
|
129
103
|
Reporting::ReportType.object_name => Reporting::ReportType,
|
130
|
-
ReserveTransaction.object_name => ReserveTransaction,
|
131
104
|
Reversal.object_name => Reversal,
|
132
105
|
Review.object_name => Review,
|
133
106
|
SetupAttempt.object_name => SetupAttempt,
|
@@ -135,28 +108,23 @@ module Stripe
|
|
135
108
|
ShippingRate.object_name => ShippingRate,
|
136
109
|
Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
|
137
110
|
Source.object_name => Source,
|
138
|
-
SourceMandateNotification.object_name => SourceMandateNotification,
|
139
111
|
SourceTransaction.object_name => SourceTransaction,
|
140
112
|
Subscription.object_name => Subscription,
|
141
113
|
SubscriptionItem.object_name => SubscriptionItem,
|
142
114
|
SubscriptionSchedule.object_name => SubscriptionSchedule,
|
143
|
-
Tax::Association.object_name => Tax::Association,
|
144
115
|
Tax::Calculation.object_name => Tax::Calculation,
|
145
116
|
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
|
146
|
-
Tax::Form.object_name => Tax::Form,
|
147
117
|
Tax::Registration.object_name => Tax::Registration,
|
148
118
|
Tax::Settings.object_name => Tax::Settings,
|
149
119
|
Tax::Transaction.object_name => Tax::Transaction,
|
150
120
|
Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
|
151
121
|
TaxCode.object_name => TaxCode,
|
152
|
-
TaxDeductedAtSource.object_name => TaxDeductedAtSource,
|
153
122
|
TaxId.object_name => TaxId,
|
154
123
|
TaxRate.object_name => TaxRate,
|
155
124
|
Terminal::Configuration.object_name => Terminal::Configuration,
|
156
125
|
Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
|
157
126
|
Terminal::Location.object_name => Terminal::Location,
|
158
127
|
Terminal::Reader.object_name => Terminal::Reader,
|
159
|
-
Terminal::ReaderCollectedData.object_name => Terminal::ReaderCollectedData,
|
160
128
|
TestHelpers::TestClock.object_name => TestHelpers::TestClock,
|
161
129
|
Token.object_name => Token,
|
162
130
|
Topup.object_name => Topup,
|
@@ -34,236 +34,6 @@ 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
|
-
|
267
37
|
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
268
38
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
269
39
|
#
|
@@ -307,8 +77,8 @@ module Stripe
|
|
307
77
|
end
|
308
78
|
|
309
79
|
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
|
310
|
-
def self.list(
|
311
|
-
request_stripe_object(method: :get, path: "/v1/accounts", params:
|
80
|
+
def self.list(params = {}, opts = {})
|
81
|
+
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
|
312
82
|
end
|
313
83
|
|
314
84
|
# Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
|
@@ -14,15 +14,6 @@ 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
|
-
|
26
17
|
# 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.
|
27
18
|
def self.create(params = {}, opts = {})
|
28
19
|
request_stripe_object(method: :post, path: "/v1/account_links", params: params, opts: opts)
|
@@ -17,109 +17,6 @@ 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
|
-
|
123
20
|
# 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.
|
124
21
|
def self.create(params = {}, opts = {})
|
125
22
|
request_stripe_object(method: :post, path: "/v1/account_sessions", params: params, opts: opts)
|
@@ -13,19 +13,6 @@ 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
|
-
|
29
16
|
# Create an apple pay domain.
|
30
17
|
def self.create(params = {}, opts = {})
|
31
18
|
request_stripe_object(
|
@@ -57,13 +44,8 @@ module Stripe
|
|
57
44
|
end
|
58
45
|
|
59
46
|
# List apple pay domains.
|
60
|
-
def self.list(
|
61
|
-
request_stripe_object(
|
62
|
-
method: :get,
|
63
|
-
path: "/v1/apple_pay/domains",
|
64
|
-
params: filters,
|
65
|
-
opts: opts
|
66
|
-
)
|
47
|
+
def self.list(params = {}, opts = {})
|
48
|
+
request_stripe_object(method: :get, path: "/v1/apple_pay/domains", params: params, opts: opts)
|
67
49
|
end
|
68
50
|
|
69
51
|
def self.resource_url
|
@@ -13,43 +13,9 @@ module Stripe
|
|
13
13
|
|
14
14
|
nested_resource_class_methods :refund, operations: %i[create retrieve update list]
|
15
15
|
|
16
|
-
class FeeSource < Stripe::StripeObject
|
17
|
-
attr_reader :charge, :payout, :type
|
18
|
-
end
|
19
|
-
# ID of the Stripe account this fee was taken from.
|
20
|
-
attr_reader :account
|
21
|
-
# Amount earned, in cents (or local equivalent).
|
22
|
-
attr_reader :amount
|
23
|
-
# Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
|
24
|
-
attr_reader :amount_refunded
|
25
|
-
# ID of the Connect application that earned the fee.
|
26
|
-
attr_reader :application
|
27
|
-
# Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
|
28
|
-
attr_reader :balance_transaction
|
29
|
-
# ID of the charge that the application fee was taken from.
|
30
|
-
attr_reader :charge
|
31
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
32
|
-
attr_reader :created
|
33
|
-
# 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).
|
34
|
-
attr_reader :currency
|
35
|
-
# Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
|
36
|
-
attr_reader :fee_source
|
37
|
-
# Unique identifier for the object.
|
38
|
-
attr_reader :id
|
39
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
40
|
-
attr_reader :livemode
|
41
|
-
# String representing the object's type. Objects of the same type share the same value.
|
42
|
-
attr_reader :object
|
43
|
-
# ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.
|
44
|
-
attr_reader :originating_transaction
|
45
|
-
# Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
|
46
|
-
attr_reader :refunded
|
47
|
-
# A list of refunds that have been applied to the fee.
|
48
|
-
attr_reader :refunds
|
49
|
-
|
50
16
|
# Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
|
51
|
-
def self.list(
|
52
|
-
request_stripe_object(method: :get, path: "/v1/application_fees", params:
|
17
|
+
def self.list(params = {}, opts = {})
|
18
|
+
request_stripe_object(method: :get, path: "/v1/application_fees", params: params, opts: opts)
|
53
19
|
end
|
54
20
|
end
|
55
21
|
end
|
@@ -15,23 +15,6 @@ module Stripe
|
|
15
15
|
"fee_refund"
|
16
16
|
end
|
17
17
|
|
18
|
-
# Amount, in cents (or local equivalent).
|
19
|
-
attr_reader :amount
|
20
|
-
# Balance transaction that describes the impact on your account balance.
|
21
|
-
attr_reader :balance_transaction
|
22
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :created
|
24
|
-
# 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).
|
25
|
-
attr_reader :currency
|
26
|
-
# ID of the application fee that was refunded.
|
27
|
-
attr_reader :fee
|
28
|
-
# Unique identifier for the object.
|
29
|
-
attr_reader :id
|
30
|
-
# 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.
|
31
|
-
attr_reader :metadata
|
32
|
-
# String representing the object's type. Objects of the same type share the same value.
|
33
|
-
attr_reader :object
|
34
|
-
|
35
18
|
def resource_url
|
36
19
|
"#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds" \
|
37
20
|
"/#{CGI.escape(id)}"
|
@@ -21,28 +21,6 @@ module Stripe
|
|
21
21
|
"apps.secret"
|
22
22
|
end
|
23
23
|
|
24
|
-
class Scope < Stripe::StripeObject
|
25
|
-
attr_reader :type, :user
|
26
|
-
end
|
27
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
28
|
-
attr_reader :created
|
29
|
-
# If true, indicates that this secret has been deleted
|
30
|
-
attr_reader :deleted
|
31
|
-
# The Unix timestamp for the expiry time of the secret, after which the secret deletes.
|
32
|
-
attr_reader :expires_at
|
33
|
-
# Unique identifier for the object.
|
34
|
-
attr_reader :id
|
35
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
36
|
-
attr_reader :livemode
|
37
|
-
# A name for the secret that's unique within the scope.
|
38
|
-
attr_reader :name
|
39
|
-
# String representing the object's type. Objects of the same type share the same value.
|
40
|
-
attr_reader :object
|
41
|
-
# The plaintext secret value to be stored.
|
42
|
-
attr_reader :payload
|
43
|
-
# Attribute for field scope
|
44
|
-
attr_reader :scope
|
45
|
-
|
46
24
|
# Create or replace a secret in the secret store.
|
47
25
|
def self.create(params = {}, opts = {})
|
48
26
|
request_stripe_object(method: :post, path: "/v1/apps/secrets", params: params, opts: opts)
|
@@ -69,8 +47,8 @@ module Stripe
|
|
69
47
|
end
|
70
48
|
|
71
49
|
# List all secrets stored on the given scope.
|
72
|
-
def self.list(
|
73
|
-
request_stripe_object(method: :get, path: "/v1/apps/secrets", params:
|
50
|
+
def self.list(params = {}, opts = {})
|
51
|
+
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: params, opts: opts)
|
74
52
|
end
|
75
53
|
end
|
76
54
|
end
|