stripe 13.3.0.pre.beta.2 → 13.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +650 -1394
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +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 -46
- 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 -73
- 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 -90
- 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 -195
- 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 +1 -1
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +3 -8
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/stripe.gemspec +1 -2
- metadata +4 -62
- 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 -194
- 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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.3.0
|
4
|
+
version: 13.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -60,15 +60,12 @@ files:
|
|
60
60
|
- lib/stripe/oauth.rb
|
61
61
|
- lib/stripe/object_types.rb
|
62
62
|
- lib/stripe/request_options.rb
|
63
|
-
- lib/stripe/request_signing_authenticator.rb
|
64
63
|
- lib/stripe/resources.rb
|
65
64
|
- lib/stripe/resources/account.rb
|
66
65
|
- lib/stripe/resources/account_link.rb
|
67
|
-
- lib/stripe/resources/account_notice.rb
|
68
66
|
- lib/stripe/resources/account_session.rb
|
69
67
|
- lib/stripe/resources/alipay_account.rb
|
70
68
|
- lib/stripe/resources/apple_pay_domain.rb
|
71
|
-
- lib/stripe/resources/application.rb
|
72
69
|
- lib/stripe/resources/application_fee.rb
|
73
70
|
- lib/stripe/resources/application_fee_refund.rb
|
74
71
|
- lib/stripe/resources/apps/secret.rb
|
@@ -76,21 +73,16 @@ files:
|
|
76
73
|
- lib/stripe/resources/balance_transaction.rb
|
77
74
|
- lib/stripe/resources/bank_account.rb
|
78
75
|
- lib/stripe/resources/billing/alert.rb
|
79
|
-
- lib/stripe/resources/billing/alert_triggered.rb
|
80
76
|
- lib/stripe/resources/billing/credit_balance_summary.rb
|
81
77
|
- lib/stripe/resources/billing/credit_balance_transaction.rb
|
82
78
|
- lib/stripe/resources/billing/credit_grant.rb
|
83
79
|
- lib/stripe/resources/billing/meter.rb
|
84
|
-
- lib/stripe/resources/billing/meter_error_report.rb
|
85
80
|
- lib/stripe/resources/billing/meter_event.rb
|
86
81
|
- lib/stripe/resources/billing/meter_event_adjustment.rb
|
87
82
|
- lib/stripe/resources/billing/meter_event_summary.rb
|
88
83
|
- lib/stripe/resources/billing_portal/configuration.rb
|
89
84
|
- lib/stripe/resources/billing_portal/session.rb
|
90
85
|
- lib/stripe/resources/capability.rb
|
91
|
-
- lib/stripe/resources/capital/financing_offer.rb
|
92
|
-
- lib/stripe/resources/capital/financing_summary.rb
|
93
|
-
- lib/stripe/resources/capital/financing_transaction.rb
|
94
86
|
- lib/stripe/resources/card.rb
|
95
87
|
- lib/stripe/resources/cash_balance.rb
|
96
88
|
- lib/stripe/resources/charge.rb
|
@@ -99,7 +91,6 @@ files:
|
|
99
91
|
- lib/stripe/resources/climate/product.rb
|
100
92
|
- lib/stripe/resources/climate/supplier.rb
|
101
93
|
- lib/stripe/resources/confirmation_token.rb
|
102
|
-
- lib/stripe/resources/connect_collection_transfer.rb
|
103
94
|
- lib/stripe/resources/country_spec.rb
|
104
95
|
- lib/stripe/resources/coupon.rb
|
105
96
|
- lib/stripe/resources/credit_note.rb
|
@@ -111,7 +102,6 @@ files:
|
|
111
102
|
- lib/stripe/resources/discount.rb
|
112
103
|
- lib/stripe/resources/dispute.rb
|
113
104
|
- lib/stripe/resources/entitlements/active_entitlement.rb
|
114
|
-
- lib/stripe/resources/entitlements/active_entitlement_summary.rb
|
115
105
|
- lib/stripe/resources/entitlements/feature.rb
|
116
106
|
- lib/stripe/resources/ephemeral_key.rb
|
117
107
|
- lib/stripe/resources/event.rb
|
@@ -119,47 +109,34 @@ files:
|
|
119
109
|
- lib/stripe/resources/file.rb
|
120
110
|
- lib/stripe/resources/file_link.rb
|
121
111
|
- lib/stripe/resources/financial_connections/account.rb
|
122
|
-
- lib/stripe/resources/financial_connections/account_inferred_balance.rb
|
123
112
|
- lib/stripe/resources/financial_connections/account_owner.rb
|
124
113
|
- lib/stripe/resources/financial_connections/account_ownership.rb
|
125
|
-
- lib/stripe/resources/financial_connections/institution.rb
|
126
114
|
- lib/stripe/resources/financial_connections/session.rb
|
127
115
|
- lib/stripe/resources/financial_connections/transaction.rb
|
128
116
|
- lib/stripe/resources/forwarding/request.rb
|
129
117
|
- lib/stripe/resources/funding_instructions.rb
|
130
|
-
- lib/stripe/resources/gift_cards/card.rb
|
131
|
-
- lib/stripe/resources/gift_cards/transaction.rb
|
132
118
|
- lib/stripe/resources/identity/verification_report.rb
|
133
119
|
- lib/stripe/resources/identity/verification_session.rb
|
134
120
|
- lib/stripe/resources/invoice.rb
|
135
121
|
- lib/stripe/resources/invoice_item.rb
|
136
122
|
- lib/stripe/resources/invoice_line_item.rb
|
137
|
-
- lib/stripe/resources/invoice_payment.rb
|
138
123
|
- lib/stripe/resources/invoice_rendering_template.rb
|
139
124
|
- lib/stripe/resources/issuing/authorization.rb
|
140
125
|
- lib/stripe/resources/issuing/card.rb
|
141
126
|
- lib/stripe/resources/issuing/cardholder.rb
|
142
|
-
- lib/stripe/resources/issuing/credit_underwriting_record.rb
|
143
127
|
- lib/stripe/resources/issuing/dispute.rb
|
144
|
-
- lib/stripe/resources/issuing/dispute_settlement_detail.rb
|
145
|
-
- lib/stripe/resources/issuing/fraud_liability_debit.rb
|
146
128
|
- lib/stripe/resources/issuing/personalization_design.rb
|
147
129
|
- lib/stripe/resources/issuing/physical_bundle.rb
|
148
|
-
- lib/stripe/resources/issuing/settlement.rb
|
149
130
|
- lib/stripe/resources/issuing/token.rb
|
150
131
|
- lib/stripe/resources/issuing/transaction.rb
|
151
132
|
- lib/stripe/resources/line_item.rb
|
152
133
|
- lib/stripe/resources/login_link.rb
|
153
134
|
- lib/stripe/resources/mandate.rb
|
154
|
-
- lib/stripe/resources/margin.rb
|
155
|
-
- lib/stripe/resources/order.rb
|
156
|
-
- lib/stripe/resources/payment_attempt_record.rb
|
157
135
|
- lib/stripe/resources/payment_intent.rb
|
158
136
|
- lib/stripe/resources/payment_link.rb
|
159
137
|
- lib/stripe/resources/payment_method.rb
|
160
138
|
- lib/stripe/resources/payment_method_configuration.rb
|
161
139
|
- lib/stripe/resources/payment_method_domain.rb
|
162
|
-
- lib/stripe/resources/payment_record.rb
|
163
140
|
- lib/stripe/resources/payout.rb
|
164
141
|
- lib/stripe/resources/person.rb
|
165
142
|
- lib/stripe/resources/plan.rb
|
@@ -168,9 +145,6 @@ files:
|
|
168
145
|
- lib/stripe/resources/product_feature.rb
|
169
146
|
- lib/stripe/resources/promotion_code.rb
|
170
147
|
- lib/stripe/resources/quote.rb
|
171
|
-
- lib/stripe/resources/quote_line.rb
|
172
|
-
- lib/stripe/resources/quote_preview_invoice.rb
|
173
|
-
- lib/stripe/resources/quote_preview_subscription_schedule.rb
|
174
148
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
175
149
|
- lib/stripe/resources/radar/value_list.rb
|
176
150
|
- lib/stripe/resources/radar/value_list_item.rb
|
@@ -178,7 +152,6 @@ files:
|
|
178
152
|
- lib/stripe/resources/refund.rb
|
179
153
|
- lib/stripe/resources/reporting/report_run.rb
|
180
154
|
- lib/stripe/resources/reporting/report_type.rb
|
181
|
-
- lib/stripe/resources/reserve_transaction.rb
|
182
155
|
- lib/stripe/resources/reversal.rb
|
183
156
|
- lib/stripe/resources/review.rb
|
184
157
|
- lib/stripe/resources/setup_attempt.rb
|
@@ -186,28 +159,23 @@ files:
|
|
186
159
|
- lib/stripe/resources/shipping_rate.rb
|
187
160
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
188
161
|
- lib/stripe/resources/source.rb
|
189
|
-
- lib/stripe/resources/source_mandate_notification.rb
|
190
162
|
- lib/stripe/resources/source_transaction.rb
|
191
163
|
- lib/stripe/resources/subscription.rb
|
192
164
|
- lib/stripe/resources/subscription_item.rb
|
193
165
|
- lib/stripe/resources/subscription_schedule.rb
|
194
|
-
- lib/stripe/resources/tax/association.rb
|
195
166
|
- lib/stripe/resources/tax/calculation.rb
|
196
167
|
- lib/stripe/resources/tax/calculation_line_item.rb
|
197
|
-
- lib/stripe/resources/tax/form.rb
|
198
168
|
- lib/stripe/resources/tax/registration.rb
|
199
169
|
- lib/stripe/resources/tax/settings.rb
|
200
170
|
- lib/stripe/resources/tax/transaction.rb
|
201
171
|
- lib/stripe/resources/tax/transaction_line_item.rb
|
202
172
|
- lib/stripe/resources/tax_code.rb
|
203
|
-
- lib/stripe/resources/tax_deducted_at_source.rb
|
204
173
|
- lib/stripe/resources/tax_id.rb
|
205
174
|
- lib/stripe/resources/tax_rate.rb
|
206
175
|
- lib/stripe/resources/terminal/configuration.rb
|
207
176
|
- lib/stripe/resources/terminal/connection_token.rb
|
208
177
|
- lib/stripe/resources/terminal/location.rb
|
209
178
|
- lib/stripe/resources/terminal/reader.rb
|
210
|
-
- lib/stripe/resources/terminal/reader_collected_data.rb
|
211
179
|
- lib/stripe/resources/test_helpers/test_clock.rb
|
212
180
|
- lib/stripe/resources/token.rb
|
213
181
|
- lib/stripe/resources/topup.rb
|
@@ -225,7 +193,6 @@ files:
|
|
225
193
|
- lib/stripe/resources/treasury/transaction_entry.rb
|
226
194
|
- lib/stripe/resources/usage_record.rb
|
227
195
|
- lib/stripe/resources/usage_record_summary.rb
|
228
|
-
- lib/stripe/resources/v2/amount.rb
|
229
196
|
- lib/stripe/resources/v2/billing/meter_event.rb
|
230
197
|
- lib/stripe/resources/v2/billing/meter_event_adjustment.rb
|
231
198
|
- lib/stripe/resources/v2/billing/meter_event_session.rb
|
@@ -238,7 +205,6 @@ files:
|
|
238
205
|
- lib/stripe/services/account_external_account_service.rb
|
239
206
|
- lib/stripe/services/account_link_service.rb
|
240
207
|
- lib/stripe/services/account_login_link_service.rb
|
241
|
-
- lib/stripe/services/account_notice_service.rb
|
242
208
|
- lib/stripe/services/account_person_service.rb
|
243
209
|
- lib/stripe/services/account_service.rb
|
244
210
|
- lib/stripe/services/account_session_service.rb
|
@@ -261,10 +227,6 @@ files:
|
|
261
227
|
- lib/stripe/services/billing_portal/session_service.rb
|
262
228
|
- lib/stripe/services/billing_portal_service.rb
|
263
229
|
- lib/stripe/services/billing_service.rb
|
264
|
-
- lib/stripe/services/capital/financing_offer_service.rb
|
265
|
-
- lib/stripe/services/capital/financing_summary_service.rb
|
266
|
-
- lib/stripe/services/capital/financing_transaction_service.rb
|
267
|
-
- lib/stripe/services/capital_service.rb
|
268
230
|
- lib/stripe/services/charge_service.rb
|
269
231
|
- lib/stripe/services/checkout/session_line_item_service.rb
|
270
232
|
- lib/stripe/services/checkout/session_service.rb
|
@@ -297,52 +259,38 @@ files:
|
|
297
259
|
- lib/stripe/services/exchange_rate_service.rb
|
298
260
|
- lib/stripe/services/file_link_service.rb
|
299
261
|
- lib/stripe/services/file_service.rb
|
300
|
-
- lib/stripe/services/financial_connections/account_inferred_balance_service.rb
|
301
262
|
- lib/stripe/services/financial_connections/account_owner_service.rb
|
302
263
|
- lib/stripe/services/financial_connections/account_service.rb
|
303
|
-
- lib/stripe/services/financial_connections/institution_service.rb
|
304
264
|
- lib/stripe/services/financial_connections/session_service.rb
|
305
265
|
- lib/stripe/services/financial_connections/transaction_service.rb
|
306
266
|
- lib/stripe/services/financial_connections_service.rb
|
307
267
|
- lib/stripe/services/forwarding/request_service.rb
|
308
268
|
- lib/stripe/services/forwarding_service.rb
|
309
|
-
- lib/stripe/services/gift_cards/card_service.rb
|
310
|
-
- lib/stripe/services/gift_cards/transaction_service.rb
|
311
|
-
- lib/stripe/services/gift_cards_service.rb
|
312
269
|
- lib/stripe/services/identity/verification_report_service.rb
|
313
270
|
- lib/stripe/services/identity/verification_session_service.rb
|
314
271
|
- lib/stripe/services/identity_service.rb
|
315
272
|
- lib/stripe/services/invoice_item_service.rb
|
316
273
|
- lib/stripe/services/invoice_line_item_service.rb
|
317
|
-
- lib/stripe/services/invoice_payment_service.rb
|
318
274
|
- lib/stripe/services/invoice_rendering_template_service.rb
|
319
275
|
- lib/stripe/services/invoice_service.rb
|
320
276
|
- lib/stripe/services/invoice_upcoming_lines_service.rb
|
321
277
|
- lib/stripe/services/issuing/authorization_service.rb
|
322
278
|
- lib/stripe/services/issuing/card_service.rb
|
323
279
|
- lib/stripe/services/issuing/cardholder_service.rb
|
324
|
-
- lib/stripe/services/issuing/credit_underwriting_record_service.rb
|
325
280
|
- lib/stripe/services/issuing/dispute_service.rb
|
326
|
-
- lib/stripe/services/issuing/dispute_settlement_detail_service.rb
|
327
|
-
- lib/stripe/services/issuing/fraud_liability_debit_service.rb
|
328
281
|
- lib/stripe/services/issuing/personalization_design_service.rb
|
329
282
|
- lib/stripe/services/issuing/physical_bundle_service.rb
|
330
283
|
- lib/stripe/services/issuing/token_service.rb
|
331
284
|
- lib/stripe/services/issuing/transaction_service.rb
|
332
285
|
- lib/stripe/services/issuing_service.rb
|
333
286
|
- lib/stripe/services/mandate_service.rb
|
334
|
-
- lib/stripe/services/margin_service.rb
|
335
287
|
- lib/stripe/services/oauth_service.rb
|
336
|
-
- lib/stripe/services/order_line_item_service.rb
|
337
|
-
- lib/stripe/services/order_service.rb
|
338
|
-
- lib/stripe/services/payment_attempt_record_service.rb
|
339
288
|
- lib/stripe/services/payment_intent_service.rb
|
340
289
|
- lib/stripe/services/payment_link_line_item_service.rb
|
341
290
|
- lib/stripe/services/payment_link_service.rb
|
342
291
|
- lib/stripe/services/payment_method_configuration_service.rb
|
343
292
|
- lib/stripe/services/payment_method_domain_service.rb
|
344
293
|
- lib/stripe/services/payment_method_service.rb
|
345
|
-
- lib/stripe/services/payment_record_service.rb
|
346
294
|
- lib/stripe/services/payout_service.rb
|
347
295
|
- lib/stripe/services/plan_service.rb
|
348
296
|
- lib/stripe/services/price_service.rb
|
@@ -351,9 +299,6 @@ files:
|
|
351
299
|
- lib/stripe/services/promotion_code_service.rb
|
352
300
|
- lib/stripe/services/quote_computed_upfront_line_items_service.rb
|
353
301
|
- lib/stripe/services/quote_line_item_service.rb
|
354
|
-
- lib/stripe/services/quote_line_service.rb
|
355
|
-
- lib/stripe/services/quote_preview_invoice_service.rb
|
356
|
-
- lib/stripe/services/quote_preview_subscription_schedule_service.rb
|
357
302
|
- lib/stripe/services/quote_service.rb
|
358
303
|
- lib/stripe/services/radar/early_fraud_warning_service.rb
|
359
304
|
- lib/stripe/services/radar/value_list_item_service.rb
|
@@ -376,10 +321,8 @@ files:
|
|
376
321
|
- lib/stripe/services/subscription_item_usage_record_summary_service.rb
|
377
322
|
- lib/stripe/services/subscription_schedule_service.rb
|
378
323
|
- lib/stripe/services/subscription_service.rb
|
379
|
-
- lib/stripe/services/tax/association_service.rb
|
380
324
|
- lib/stripe/services/tax/calculation_line_item_service.rb
|
381
325
|
- lib/stripe/services/tax/calculation_service.rb
|
382
|
-
- lib/stripe/services/tax/form_service.rb
|
383
326
|
- lib/stripe/services/tax/registration_service.rb
|
384
327
|
- lib/stripe/services/tax/settings_service.rb
|
385
328
|
- lib/stripe/services/tax/transaction_line_item_service.rb
|
@@ -391,7 +334,6 @@ files:
|
|
391
334
|
- lib/stripe/services/terminal/configuration_service.rb
|
392
335
|
- lib/stripe/services/terminal/connection_token_service.rb
|
393
336
|
- lib/stripe/services/terminal/location_service.rb
|
394
|
-
- lib/stripe/services/terminal/reader_collected_data_service.rb
|
395
337
|
- lib/stripe/services/terminal/reader_service.rb
|
396
338
|
- lib/stripe/services/terminal_service.rb
|
397
339
|
- lib/stripe/services/test_helpers/confirmation_token_service.rb
|
@@ -473,9 +415,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
473
415
|
version: 2.3.0
|
474
416
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
475
417
|
requirements:
|
476
|
-
- - "
|
418
|
+
- - ">="
|
477
419
|
- !ruby/object:Gem::Version
|
478
|
-
version:
|
420
|
+
version: '0'
|
479
421
|
requirements: []
|
480
422
|
rubygems_version: 3.3.27
|
481
423
|
signing_key:
|
@@ -1,79 +0,0 @@
|
|
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
|
@@ -1,60 +0,0 @@
|
|
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
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class Application < APIResource
|
6
|
-
OBJECT_NAME = "application"
|
7
|
-
def self.object_name
|
8
|
-
"application"
|
9
|
-
end
|
10
|
-
|
11
|
-
# Unique identifier for the object.
|
12
|
-
attr_reader :id
|
13
|
-
# The name of the application.
|
14
|
-
attr_reader :name
|
15
|
-
# String representing the object's type. Objects of the same type share the same value.
|
16
|
-
attr_reader :object
|
17
|
-
# Always true for a deleted object
|
18
|
-
attr_reader :deleted
|
19
|
-
end
|
20
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Billing
|
6
|
-
class AlertTriggered < APIResource
|
7
|
-
OBJECT_NAME = "billing.alert_triggered"
|
8
|
-
def self.object_name
|
9
|
-
"billing.alert_triggered"
|
10
|
-
end
|
11
|
-
|
12
|
-
# A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
|
13
|
-
attr_reader :alert
|
14
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
15
|
-
attr_reader :created
|
16
|
-
# ID of customer for which the alert triggered
|
17
|
-
attr_reader :customer
|
18
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
19
|
-
attr_reader :livemode
|
20
|
-
# String representing the object's type. Objects of the same type share the same value.
|
21
|
-
attr_reader :object
|
22
|
-
# The value triggering the alert
|
23
|
-
attr_reader :value
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Billing
|
6
|
-
class MeterErrorReport < APIResource
|
7
|
-
OBJECT_NAME = "billing.meter_error_report"
|
8
|
-
def self.object_name
|
9
|
-
"billing.meter_error_report"
|
10
|
-
end
|
11
|
-
|
12
|
-
class Reason < Stripe::StripeObject
|
13
|
-
class ErrorType < Stripe::StripeObject
|
14
|
-
class SampleError < Stripe::StripeObject
|
15
|
-
class ApiRequest < Stripe::StripeObject
|
16
|
-
attr_reader :id, :idempotency_key
|
17
|
-
end
|
18
|
-
attr_reader :api_request, :error_message
|
19
|
-
end
|
20
|
-
attr_reader :sample_errors
|
21
|
-
end
|
22
|
-
attr_reader :error_count, :error_types
|
23
|
-
end
|
24
|
-
|
25
|
-
class RelatedObject < Stripe::StripeObject
|
26
|
-
attr_reader :id, :object, :url
|
27
|
-
end
|
28
|
-
# Unique identifier for the object.
|
29
|
-
attr_reader :id
|
30
|
-
# String representing the object's type. Objects of the same type share the same value.
|
31
|
-
attr_reader :object
|
32
|
-
# Attribute for field reason
|
33
|
-
attr_reader :reason
|
34
|
-
# The related objects about the error
|
35
|
-
attr_reader :related_object
|
36
|
-
# Summary of invalid events
|
37
|
-
attr_reader :summary
|
38
|
-
# Time when validation ended. Measured in seconds since the Unix epoch
|
39
|
-
attr_reader :validation_end
|
40
|
-
# Time when validation started. Measured in seconds since the Unix epoch
|
41
|
-
attr_reader :validation_start
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing an offer of financing from
|
7
|
-
# Stripe Capital to a Connect subaccount.
|
8
|
-
class FinancingOffer < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
|
11
|
-
OBJECT_NAME = "capital.financing_offer"
|
12
|
-
def self.object_name
|
13
|
-
"capital.financing_offer"
|
14
|
-
end
|
15
|
-
|
16
|
-
class AcceptedTerms < Stripe::StripeObject
|
17
|
-
attr_reader :advance_amount, :currency, :fee_amount, :previous_financing_fee_discount_amount, :withhold_rate
|
18
|
-
end
|
19
|
-
|
20
|
-
class OfferedTerms < Stripe::StripeObject
|
21
|
-
attr_reader :advance_amount, :campaign_type, :currency, :fee_amount, :previous_financing_fee_discount_rate, :withhold_rate
|
22
|
-
end
|
23
|
-
# This is an object representing the terms of an offer of financing from
|
24
|
-
# Stripe Capital to a Connected account. This resource represents
|
25
|
-
# the terms accepted by the Connected account, which may differ from those
|
26
|
-
# offered.
|
27
|
-
attr_reader :accepted_terms
|
28
|
-
# The ID of the merchant associated with this financing object.
|
29
|
-
attr_reader :account
|
30
|
-
# The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
|
31
|
-
attr_reader :charged_off_at
|
32
|
-
# Time at which the offer was created. Given in seconds since unix epoch.
|
33
|
-
attr_reader :created
|
34
|
-
# Time at which the offer expires. Given in seconds since unix epoch.
|
35
|
-
attr_reader :expires_after
|
36
|
-
# The type of financing being offered.
|
37
|
-
attr_reader :financing_type
|
38
|
-
# A unique identifier for the financing object.
|
39
|
-
attr_reader :id
|
40
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
41
|
-
attr_reader :livemode
|
42
|
-
# 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.
|
43
|
-
attr_reader :metadata
|
44
|
-
# The object type: financing_offer.
|
45
|
-
attr_reader :object
|
46
|
-
# This is an object representing the terms of an offer of financing from
|
47
|
-
# Stripe Capital to a Connected account. This resource represents
|
48
|
-
# both the terms offered to the Connected account.
|
49
|
-
attr_reader :offered_terms
|
50
|
-
# Financing product identifier.
|
51
|
-
attr_reader :product_type
|
52
|
-
# The ID of the financing offer that replaced this offer.
|
53
|
-
attr_reader :replacement
|
54
|
-
# The ID of the financing offer that this offer is a replacement for.
|
55
|
-
attr_reader :replacement_for
|
56
|
-
# The current status of the offer.
|
57
|
-
attr_reader :status
|
58
|
-
# See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
|
59
|
-
attr_reader :type
|
60
|
-
|
61
|
-
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
62
|
-
def self.list(filters = {}, opts = {})
|
63
|
-
request_stripe_object(
|
64
|
-
method: :get,
|
65
|
-
path: "/v1/capital/financing_offers",
|
66
|
-
params: filters,
|
67
|
-
opts: opts
|
68
|
-
)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
72
|
-
# the intended merchant recipient.
|
73
|
-
def mark_delivered(params = {}, opts = {})
|
74
|
-
request_stripe_object(
|
75
|
-
method: :post,
|
76
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
77
|
-
params: params,
|
78
|
-
opts: opts
|
79
|
-
)
|
80
|
-
end
|
81
|
-
|
82
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
83
|
-
# the intended merchant recipient.
|
84
|
-
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
85
|
-
request_stripe_object(
|
86
|
-
method: :post,
|
87
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
88
|
-
params: params,
|
89
|
-
opts: opts
|
90
|
-
)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# A financing object describes an account's current financing state. Used by Connect
|
7
|
-
# platforms to read the state of Capital offered to their connected accounts.
|
8
|
-
class FinancingSummary < SingletonAPIResource
|
9
|
-
OBJECT_NAME = "capital.financing_summary"
|
10
|
-
def self.object_name
|
11
|
-
"capital.financing_summary"
|
12
|
-
end
|
13
|
-
|
14
|
-
class Details < Stripe::StripeObject
|
15
|
-
class CurrentRepaymentInterval < Stripe::StripeObject
|
16
|
-
attr_reader :due_at, :paid_amount, :remaining_amount
|
17
|
-
end
|
18
|
-
attr_reader :advance_amount, :advance_paid_out_at, :currency, :current_repayment_interval, :fee_amount, :paid_amount, :remaining_amount, :repayments_begin_at, :withhold_rate
|
19
|
-
end
|
20
|
-
# Additional information about the financing summary. Describes currency, advance amount,
|
21
|
-
# fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
|
22
|
-
# repayment start date, and advance payout date.
|
23
|
-
attr_reader :details
|
24
|
-
# The Financing Offer ID this Financing Summary corresponds to
|
25
|
-
attr_reader :financing_offer
|
26
|
-
# The object type: financing_summary
|
27
|
-
attr_reader :object
|
28
|
-
# Status of the Connected Account's financing. [/v1/capital/financing_summary](https://stripe.com/docs/api/capital/financing_summary) will only return `details` for `paid_out` financing.
|
29
|
-
attr_reader :status
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|