stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/params/account_create_params.rb +27 -10
- data/lib/stripe/params/account_person_create_params.rb +9 -9
- data/lib/stripe/params/account_person_update_params.rb +9 -9
- data/lib/stripe/params/account_update_params.rb +27 -10
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +2 -2
- data/lib/stripe/params/charge_capture_params.rb +941 -2
- data/lib/stripe/params/charge_update_params.rb +941 -2
- data/lib/stripe/params/checkout/session_create_params.rb +3 -3
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +28 -1
- data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/order_create_params.rb +938 -1
- data/lib/stripe/params/order_update_params.rb +938 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
- data/lib/stripe/params/payment_intent_confirm_params.rb +2017 -123
- data/lib/stripe/params/payment_intent_create_params.rb +2017 -123
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
- data/lib/stripe/params/payment_intent_update_params.rb +2017 -123
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/quote_create_params.rb +18 -18
- data/lib/stripe/params/quote_update_params.rb +18 -18
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -3
- data/lib/stripe/params/setup_intent_create_params.rb +3 -3
- data/lib/stripe/params/setup_intent_update_params.rb +3 -3
- data/lib/stripe/params/subscription_schedule_amend_params.rb +28 -1
- data/lib/stripe/params/tax/registration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
- data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/token_create_params.rb +18 -18
- data/lib/stripe/params/transfer_create_params.rb +5 -5
- data/lib/stripe/params.rb +4 -0
- data/lib/stripe/resources/account.rb +19 -1
- data/lib/stripe/resources/application_fee.rb +2 -2
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -2
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +6 -6
- data/lib/stripe/resources/capital/financing_summary.rb +7 -7
- data/lib/stripe/resources/charge.rb +5 -3
- data/lib/stripe/resources/checkout/session.rb +3 -3
- data/lib/stripe/resources/confirmation_token.rb +1 -1
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +50 -50
- data/lib/stripe/resources/financial_connections/account.rb +22 -0
- data/lib/stripe/resources/invoice.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +18 -0
- data/lib/stripe/resources/mandate.rb +3 -3
- data/lib/stripe/resources/payment_attempt_record.rb +8 -6
- data/lib/stripe/resources/payment_intent.rb +38 -26
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
- data/lib/stripe/resources/payment_method.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +8 -6
- data/lib/stripe/resources/person.rb +36 -36
- data/lib/stripe/resources/quote.rb +27 -27
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +9 -9
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +31 -0
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +3 -3
- data/lib/stripe/resources/subscription.rb +9 -9
- data/lib/stripe/resources/subscription_schedule.rb +9 -9
- data/lib/stripe/resources/transfer.rb +4 -4
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/util.rb +2 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +17737 -652
- metadata +10 -2
|
@@ -209,6 +209,18 @@ module Stripe
|
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
+
class FraudRisk < ::Stripe::RequestParams
|
|
213
|
+
# Stripe’s assessment of the likelihood of fraud on an authorization.
|
|
214
|
+
attr_accessor :level
|
|
215
|
+
# Stripe’s numerical model score assessing the likelihood of fraudulent activity. A higher score means a higher likelihood of fraudulent activity, and anything above 25 is considered high risk.
|
|
216
|
+
attr_accessor :score
|
|
217
|
+
|
|
218
|
+
def initialize(level: nil, score: nil)
|
|
219
|
+
@level = level
|
|
220
|
+
@score = score
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
212
224
|
class MerchantDisputeRisk < ::Stripe::RequestParams
|
|
213
225
|
# The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100.
|
|
214
226
|
attr_accessor :dispute_rate
|
|
@@ -222,11 +234,14 @@ module Stripe
|
|
|
222
234
|
end
|
|
223
235
|
# Stripe's assessment of this authorization's likelihood of being card testing activity.
|
|
224
236
|
attr_accessor :card_testing_risk
|
|
237
|
+
# Stripe’s assessment of this authorization’s likelihood to be fraudulent.
|
|
238
|
+
attr_accessor :fraud_risk
|
|
225
239
|
# The dispute risk of the merchant (the seller on a purchase) on an authorization based on all Stripe Issuing activity.
|
|
226
240
|
attr_accessor :merchant_dispute_risk
|
|
227
241
|
|
|
228
|
-
def initialize(card_testing_risk: nil, merchant_dispute_risk: nil)
|
|
242
|
+
def initialize(card_testing_risk: nil, fraud_risk: nil, merchant_dispute_risk: nil)
|
|
229
243
|
@card_testing_risk = card_testing_risk
|
|
244
|
+
@fraud_risk = fraud_risk
|
|
230
245
|
@merchant_dispute_risk = merchant_dispute_risk
|
|
231
246
|
end
|
|
232
247
|
end
|
|
@@ -562,14 +562,14 @@ module Stripe
|
|
|
562
562
|
attr_accessor :registered_address
|
|
563
563
|
# Describes the person’s relationship to the account.
|
|
564
564
|
attr_accessor :relationship
|
|
565
|
-
# The last four digits of the individual's Social Security Number (U.S. only).
|
|
566
|
-
attr_accessor :ssn_last_4
|
|
567
|
-
# The individual's verification document information.
|
|
568
|
-
attr_accessor :verification
|
|
569
565
|
# The credit applicant's self-reported yearly income in minor units.
|
|
570
566
|
attr_accessor :self_reported_income
|
|
571
567
|
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
572
568
|
attr_accessor :self_reported_monthly_housing_payment
|
|
569
|
+
# The last four digits of the individual's Social Security Number (U.S. only).
|
|
570
|
+
attr_accessor :ssn_last_4
|
|
571
|
+
# The individual's verification document information.
|
|
572
|
+
attr_accessor :verification
|
|
573
573
|
|
|
574
574
|
def initialize(
|
|
575
575
|
address: nil,
|
|
@@ -593,10 +593,10 @@ module Stripe
|
|
|
593
593
|
political_exposure: nil,
|
|
594
594
|
registered_address: nil,
|
|
595
595
|
relationship: nil,
|
|
596
|
-
ssn_last_4: nil,
|
|
597
|
-
verification: nil,
|
|
598
596
|
self_reported_income: nil,
|
|
599
|
-
self_reported_monthly_housing_payment: nil
|
|
597
|
+
self_reported_monthly_housing_payment: nil,
|
|
598
|
+
ssn_last_4: nil,
|
|
599
|
+
verification: nil
|
|
600
600
|
)
|
|
601
601
|
@address = address
|
|
602
602
|
@address_kana = address_kana
|
|
@@ -619,10 +619,10 @@ module Stripe
|
|
|
619
619
|
@political_exposure = political_exposure
|
|
620
620
|
@registered_address = registered_address
|
|
621
621
|
@relationship = relationship
|
|
622
|
-
@ssn_last_4 = ssn_last_4
|
|
623
|
-
@verification = verification
|
|
624
622
|
@self_reported_income = self_reported_income
|
|
625
623
|
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
624
|
+
@ssn_last_4 = ssn_last_4
|
|
625
|
+
@verification = verification
|
|
626
626
|
end
|
|
627
627
|
end
|
|
628
628
|
# The business type.
|
|
@@ -1152,16 +1152,16 @@ module Stripe
|
|
|
1152
1152
|
attr_accessor :registered_address
|
|
1153
1153
|
# The relationship that this person has with the account's legal entity.
|
|
1154
1154
|
attr_accessor :relationship
|
|
1155
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
1156
|
+
attr_accessor :self_reported_income
|
|
1157
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1158
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
1155
1159
|
# The last four digits of the person's Social Security number (U.S. only).
|
|
1156
1160
|
attr_accessor :ssn_last_4
|
|
1157
1161
|
# Demographic data related to the person.
|
|
1158
1162
|
attr_accessor :us_cfpb_data
|
|
1159
1163
|
# The person's verification status.
|
|
1160
1164
|
attr_accessor :verification
|
|
1161
|
-
# The credit applicant's self-reported yearly income in minor units.
|
|
1162
|
-
attr_accessor :self_reported_income
|
|
1163
|
-
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1164
|
-
attr_accessor :self_reported_monthly_housing_payment
|
|
1165
1165
|
|
|
1166
1166
|
def initialize(
|
|
1167
1167
|
additional_tos_acceptances: nil,
|
|
@@ -1188,11 +1188,11 @@ module Stripe
|
|
|
1188
1188
|
political_exposure: nil,
|
|
1189
1189
|
registered_address: nil,
|
|
1190
1190
|
relationship: nil,
|
|
1191
|
+
self_reported_income: nil,
|
|
1192
|
+
self_reported_monthly_housing_payment: nil,
|
|
1191
1193
|
ssn_last_4: nil,
|
|
1192
1194
|
us_cfpb_data: nil,
|
|
1193
|
-
verification: nil
|
|
1194
|
-
self_reported_income: nil,
|
|
1195
|
-
self_reported_monthly_housing_payment: nil
|
|
1195
|
+
verification: nil
|
|
1196
1196
|
)
|
|
1197
1197
|
@additional_tos_acceptances = additional_tos_acceptances
|
|
1198
1198
|
@address = address
|
|
@@ -1218,11 +1218,11 @@ module Stripe
|
|
|
1218
1218
|
@political_exposure = political_exposure
|
|
1219
1219
|
@registered_address = registered_address
|
|
1220
1220
|
@relationship = relationship
|
|
1221
|
+
@self_reported_income = self_reported_income
|
|
1222
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
1221
1223
|
@ssn_last_4 = ssn_last_4
|
|
1222
1224
|
@us_cfpb_data = us_cfpb_data
|
|
1223
1225
|
@verification = verification
|
|
1224
|
-
@self_reported_income = self_reported_income
|
|
1225
|
-
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
1226
1226
|
end
|
|
1227
1227
|
end
|
|
1228
1228
|
|
|
@@ -5,6 +5,8 @@ module Stripe
|
|
|
5
5
|
class TransferCreateParams < ::Stripe::RequestParams
|
|
6
6
|
# A positive integer in cents (or local equivalent) representing how much to transfer.
|
|
7
7
|
attr_accessor :amount
|
|
8
|
+
# Attribute for param field application_fee_amount
|
|
9
|
+
attr_accessor :application_fee_amount
|
|
8
10
|
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies).
|
|
9
11
|
attr_accessor :currency
|
|
10
12
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
@@ -23,11 +25,10 @@ module Stripe
|
|
|
23
25
|
attr_accessor :source_type
|
|
24
26
|
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
|
25
27
|
attr_accessor :transfer_group
|
|
26
|
-
# Attribute for param field application_fee_amount
|
|
27
|
-
attr_accessor :application_fee_amount
|
|
28
28
|
|
|
29
29
|
def initialize(
|
|
30
30
|
amount: nil,
|
|
31
|
+
application_fee_amount: nil,
|
|
31
32
|
currency: nil,
|
|
32
33
|
description: nil,
|
|
33
34
|
destination: nil,
|
|
@@ -36,10 +37,10 @@ module Stripe
|
|
|
36
37
|
metadata: nil,
|
|
37
38
|
source_transaction: nil,
|
|
38
39
|
source_type: nil,
|
|
39
|
-
transfer_group: nil
|
|
40
|
-
application_fee_amount: nil
|
|
40
|
+
transfer_group: nil
|
|
41
41
|
)
|
|
42
42
|
@amount = amount
|
|
43
|
+
@application_fee_amount = application_fee_amount
|
|
43
44
|
@currency = currency
|
|
44
45
|
@description = description
|
|
45
46
|
@destination = destination
|
|
@@ -49,7 +50,6 @@ module Stripe
|
|
|
49
50
|
@source_transaction = source_transaction
|
|
50
51
|
@source_type = source_type
|
|
51
52
|
@transfer_group = transfer_group
|
|
52
|
-
@application_fee_amount = application_fee_amount
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
data/lib/stripe/params.rb
CHANGED
|
@@ -47,6 +47,7 @@ require "stripe/params/balance_settings_retrieve_params"
|
|
|
47
47
|
require "stripe/params/balance_settings_update_params"
|
|
48
48
|
require "stripe/params/balance_transaction_list_params"
|
|
49
49
|
require "stripe/params/balance_transaction_retrieve_params"
|
|
50
|
+
require "stripe/params/balance_transfer_create_params"
|
|
50
51
|
require "stripe/params/billing/alert_activate_params"
|
|
51
52
|
require "stripe/params/billing/alert_archive_params"
|
|
52
53
|
require "stripe/params/billing/alert_create_params"
|
|
@@ -435,6 +436,9 @@ require "stripe/params/quote_preview_subscription_schedule_list_params"
|
|
|
435
436
|
require "stripe/params/quote_reestimate_params"
|
|
436
437
|
require "stripe/params/quote_retrieve_params"
|
|
437
438
|
require "stripe/params/quote_update_params"
|
|
439
|
+
require "stripe/params/radar/account_evaluation_create_params"
|
|
440
|
+
require "stripe/params/radar/account_evaluation_retrieve_params"
|
|
441
|
+
require "stripe/params/radar/account_evaluation_update_params"
|
|
438
442
|
require "stripe/params/radar/early_fraud_warning_list_params"
|
|
439
443
|
require "stripe/params/radar/early_fraud_warning_retrieve_params"
|
|
440
444
|
require "stripe/params/radar/value_list_create_params"
|
|
@@ -103,6 +103,8 @@ module Stripe
|
|
|
103
103
|
attr_reader :name
|
|
104
104
|
# Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
|
|
105
105
|
attr_reader :product_description
|
|
106
|
+
# A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
|
|
107
|
+
attr_reader :specified_commercial_transactions_act_url
|
|
106
108
|
# A publicly available mailing address for sending support issues to.
|
|
107
109
|
attr_reader :support_address
|
|
108
110
|
# A publicly available email address for sending support issues to.
|
|
@@ -938,7 +940,7 @@ module Stripe
|
|
|
938
940
|
class Invoices < ::Stripe::StripeObject
|
|
939
941
|
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
|
|
940
942
|
attr_reader :default_account_tax_ids
|
|
941
|
-
# Whether
|
|
943
|
+
# Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
|
|
942
944
|
attr_reader :hosted_payment_method_save
|
|
943
945
|
|
|
944
946
|
def self.inner_class_types
|
|
@@ -1010,6 +1012,19 @@ module Stripe
|
|
|
1010
1012
|
end
|
|
1011
1013
|
end
|
|
1012
1014
|
|
|
1015
|
+
class PaypayPayments < ::Stripe::StripeObject
|
|
1016
|
+
# Whether your business sells digital content or not.
|
|
1017
|
+
attr_reader :goods_type
|
|
1018
|
+
|
|
1019
|
+
def self.inner_class_types
|
|
1020
|
+
@inner_class_types = {}
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
def self.field_remappings
|
|
1024
|
+
@field_remappings = {}
|
|
1025
|
+
end
|
|
1026
|
+
end
|
|
1027
|
+
|
|
1013
1028
|
class SepaDebitPayments < ::Stripe::StripeObject
|
|
1014
1029
|
# SEPA creditor identifier that identifies the company making the payment.
|
|
1015
1030
|
attr_reader :creditor_id
|
|
@@ -1084,6 +1099,8 @@ module Stripe
|
|
|
1084
1099
|
attr_reader :payments
|
|
1085
1100
|
# Attribute for field payouts
|
|
1086
1101
|
attr_reader :payouts
|
|
1102
|
+
# Attribute for field paypay_payments
|
|
1103
|
+
attr_reader :paypay_payments
|
|
1087
1104
|
# Attribute for field sepa_debit_payments
|
|
1088
1105
|
attr_reader :sepa_debit_payments
|
|
1089
1106
|
# Attribute for field tax_forms
|
|
@@ -1103,6 +1120,7 @@ module Stripe
|
|
|
1103
1120
|
invoices: Invoices,
|
|
1104
1121
|
payments: Payments,
|
|
1105
1122
|
payouts: Payouts,
|
|
1123
|
+
paypay_payments: PaypayPayments,
|
|
1106
1124
|
sepa_debit_payments: SepaDebitPayments,
|
|
1107
1125
|
tax_forms: TaxForms,
|
|
1108
1126
|
treasury: Treasury,
|
|
@@ -18,10 +18,10 @@ module Stripe
|
|
|
18
18
|
attr_reader :charge
|
|
19
19
|
# Payout ID that created this application fee.
|
|
20
20
|
attr_reader :payout
|
|
21
|
-
# Type of object that created the application fee.
|
|
22
|
-
attr_reader :type
|
|
23
21
|
# Transfer ID that created this application fee.
|
|
24
22
|
attr_reader :transfer
|
|
23
|
+
# Type of object that created the application fee.
|
|
24
|
+
attr_reader :type
|
|
25
25
|
|
|
26
26
|
def self.inner_class_types
|
|
27
27
|
@inner_class_types = {}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# Balance transfers represent funds moving between balance types on your Stripe account.
|
|
6
|
+
# They currently support moving funds between your Stripe balance and your [Issuing](https://stripe.com/docs/issuing) balance and between your [Allocated Funds](https://stripe.com/docs/connect/funds-segregation) balance and your Stripe balance.
|
|
7
|
+
class BalanceTransfer < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "balance_transfer"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"balance_transfer"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class DestinationBalance < ::Stripe::StripeObject
|
|
16
|
+
class Issuing < ::Stripe::StripeObject
|
|
17
|
+
# Identifier for the balance_transaction that increased the destination balance.
|
|
18
|
+
attr_reader :balance_transaction
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class Payments < ::Stripe::StripeObject
|
|
30
|
+
# Identifier for the balance_transaction that increased the destination balance.
|
|
31
|
+
attr_reader :balance_transaction
|
|
32
|
+
|
|
33
|
+
def self.inner_class_types
|
|
34
|
+
@inner_class_types = {}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.field_remappings
|
|
38
|
+
@field_remappings = {}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
# Attribute for field issuing
|
|
42
|
+
attr_reader :issuing
|
|
43
|
+
# Attribute for field payments
|
|
44
|
+
attr_reader :payments
|
|
45
|
+
# Destination balance type to adjust for the Balance Transfer. One of `payments`, `issuing`, or `allocated_funds`.
|
|
46
|
+
attr_reader :type
|
|
47
|
+
|
|
48
|
+
def self.inner_class_types
|
|
49
|
+
@inner_class_types = { issuing: Issuing, payments: Payments }
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def self.field_remappings
|
|
53
|
+
@field_remappings = {}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class SourceBalance < ::Stripe::StripeObject
|
|
58
|
+
class Issuing < ::Stripe::StripeObject
|
|
59
|
+
# Identifier for the balance_transaction that decreased the source balance.
|
|
60
|
+
attr_reader :balance_transaction
|
|
61
|
+
|
|
62
|
+
def self.inner_class_types
|
|
63
|
+
@inner_class_types = {}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self.field_remappings
|
|
67
|
+
@field_remappings = {}
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class Payments < ::Stripe::StripeObject
|
|
72
|
+
# Identifier for the balance_transaction that decreased the source balance.
|
|
73
|
+
attr_reader :balance_transaction
|
|
74
|
+
# The payments balance type that this BalanceTransfer pulled funds from. One of `card`, `fpx`, or `bank_account`.
|
|
75
|
+
attr_reader :source_type
|
|
76
|
+
|
|
77
|
+
def self.inner_class_types
|
|
78
|
+
@inner_class_types = {}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def self.field_remappings
|
|
82
|
+
@field_remappings = {}
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
# Attribute for field issuing
|
|
86
|
+
attr_reader :issuing
|
|
87
|
+
# Attribute for field payments
|
|
88
|
+
attr_reader :payments
|
|
89
|
+
# Source balance type to adjust for the Balance Transfer. One of `payments`, `issuing`, or `allocated_funds`.
|
|
90
|
+
attr_reader :type
|
|
91
|
+
|
|
92
|
+
def self.inner_class_types
|
|
93
|
+
@inner_class_types = { issuing: Issuing, payments: Payments }
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.field_remappings
|
|
97
|
+
@field_remappings = {}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
# A positive integer representing how much was transferred in the smallest currency unit.
|
|
101
|
+
attr_reader :amount
|
|
102
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
103
|
+
attr_reader :created
|
|
104
|
+
# 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).
|
|
105
|
+
attr_reader :currency
|
|
106
|
+
# The balance that funds were transferred to.
|
|
107
|
+
attr_reader :destination_balance
|
|
108
|
+
# A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
|
109
|
+
attr_reader :hosted_regulatory_receipt_url
|
|
110
|
+
# Unique identifier for the object.
|
|
111
|
+
attr_reader :id
|
|
112
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
113
|
+
attr_reader :livemode
|
|
114
|
+
# 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.
|
|
115
|
+
attr_reader :metadata
|
|
116
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
117
|
+
attr_reader :object
|
|
118
|
+
# The balance that funds were transferred from. One of `card`, `fpx`, or `bank_account`.
|
|
119
|
+
attr_reader :source_balance
|
|
120
|
+
|
|
121
|
+
# Creates a balance transfer. For Issuing use cases, funds will be debited immediately from the source balance and credited to the destination balance immediately (if your account is based in the US) or next-business-day (if your account is based in the EU). For Segregated Separate Charges and Transfers use cases, funds will be debited immediately from the source balance and credited immediately to the destination balance.
|
|
122
|
+
def self.create(params = {}, opts = {})
|
|
123
|
+
request_stripe_object(
|
|
124
|
+
method: :post,
|
|
125
|
+
path: "/v1/balance_transfers",
|
|
126
|
+
params: params,
|
|
127
|
+
opts: opts
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def self.inner_class_types
|
|
132
|
+
@inner_class_types = { destination_balance: DestinationBalance, source_balance: SourceBalance }
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def self.field_remappings
|
|
136
|
+
@field_remappings = {}
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
@@ -124,9 +124,9 @@ module Stripe
|
|
|
124
124
|
attr_reader :requirements
|
|
125
125
|
# The routing transit number for the bank account.
|
|
126
126
|
attr_reader :routing_number
|
|
127
|
-
# For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
|
|
127
|
+
# For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, `tokenized_account_number_deactivated` or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If the status is `tokenized_account_number_deactivated`, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
|
|
128
128
|
#
|
|
129
|
-
# For external accounts, possible values are `new`, `errored` and `
|
|
129
|
+
# For external accounts, possible values are `new`, `errored`, `verification_failed`, and `tokenized_account_number_deactivated`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
|
|
130
130
|
attr_reader :status
|
|
131
131
|
# Always true for a deleted object
|
|
132
132
|
attr_reader :deleted
|
|
@@ -22,10 +22,10 @@ module Stripe
|
|
|
22
22
|
attr_reader :object
|
|
23
23
|
# Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
|
|
24
24
|
attr_reader :starts_at
|
|
25
|
-
# The aggregated meter usage value for the specified bucket.
|
|
26
|
-
attr_reader :value
|
|
27
25
|
# A set of key-value pairs representing the tenants of the meter usage.
|
|
28
26
|
attr_reader :tenants
|
|
27
|
+
# The aggregated meter usage value for the specified bucket.
|
|
28
|
+
attr_reader :value
|
|
29
29
|
|
|
30
30
|
def self.inner_class_types
|
|
31
31
|
@inner_class_types = {}
|
|
@@ -63,6 +63,8 @@ module Stripe
|
|
|
63
63
|
class PaymentMethodUpdate < ::Stripe::StripeObject
|
|
64
64
|
# Whether the feature is enabled.
|
|
65
65
|
attr_reader :enabled
|
|
66
|
+
# The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used.
|
|
67
|
+
attr_reader :payment_method_configuration
|
|
66
68
|
|
|
67
69
|
def self.inner_class_types
|
|
68
70
|
@inner_class_types = {}
|
|
@@ -14,16 +14,16 @@ module Stripe
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
class AcceptedTerms < ::Stripe::StripeObject
|
|
17
|
-
# Amount of financing offered, in minor units. For example,
|
|
17
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
18
18
|
attr_reader :advance_amount
|
|
19
19
|
# Currency that the financing offer is transacted in. For example, `usd`.
|
|
20
20
|
attr_reader :currency
|
|
21
|
-
# Fixed fee amount, in minor units. For example,
|
|
21
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
22
22
|
attr_reader :fee_amount
|
|
23
23
|
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
24
24
|
# Represents the discount amount on remaining premium for the existing loan at payout time.
|
|
25
25
|
attr_reader :previous_financing_fee_discount_amount
|
|
26
|
-
# Per-transaction rate at which Stripe
|
|
26
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
27
27
|
attr_reader :withhold_rate
|
|
28
28
|
|
|
29
29
|
def self.inner_class_types
|
|
@@ -36,20 +36,20 @@ module Stripe
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
class OfferedTerms < ::Stripe::StripeObject
|
|
39
|
-
# Amount of financing offered, in minor units. For example,
|
|
39
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
40
40
|
attr_reader :advance_amount
|
|
41
41
|
# Describes the type of user the offer is being extended to.
|
|
42
42
|
attr_reader :campaign_type
|
|
43
43
|
# Currency that the financing offer is transacted in. For example, `usd`.
|
|
44
44
|
attr_reader :currency
|
|
45
|
-
# Fixed fee amount, in minor units. For example,
|
|
45
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
46
46
|
attr_reader :fee_amount
|
|
47
47
|
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
48
48
|
# Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
|
|
49
49
|
# is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
|
|
50
50
|
# and the remaining fee.
|
|
51
51
|
attr_reader :previous_financing_fee_discount_rate
|
|
52
|
-
# Per-transaction rate at which Stripe
|
|
52
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
53
53
|
attr_reader :withhold_rate
|
|
54
54
|
|
|
55
55
|
def self.inner_class_types
|
|
@@ -16,9 +16,9 @@ module Stripe
|
|
|
16
16
|
# The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
|
|
17
17
|
# Given in seconds since unix epoch.
|
|
18
18
|
attr_reader :due_at
|
|
19
|
-
# The amount that has already been paid in the current repayment interval, in minor units. For example,
|
|
19
|
+
# The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
|
|
20
20
|
attr_reader :paid_amount
|
|
21
|
-
# The amount that is yet to be paid in the current repayment interval, in minor units. For example,
|
|
21
|
+
# The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
|
|
22
22
|
attr_reader :remaining_amount
|
|
23
23
|
|
|
24
24
|
def self.inner_class_types
|
|
@@ -29,7 +29,7 @@ module Stripe
|
|
|
29
29
|
@field_remappings = {}
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
-
# Amount of financing offered, in minor units. For example,
|
|
32
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
33
33
|
attr_reader :advance_amount
|
|
34
34
|
# The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
|
|
35
35
|
attr_reader :advance_paid_out_at
|
|
@@ -37,15 +37,15 @@ module Stripe
|
|
|
37
37
|
attr_reader :currency
|
|
38
38
|
# The chronologically current repayment interval for the financing offer.
|
|
39
39
|
attr_reader :current_repayment_interval
|
|
40
|
-
# Fixed fee amount, in minor units. For example,
|
|
40
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
41
41
|
attr_reader :fee_amount
|
|
42
|
-
# The amount the Connected account has paid toward the financing debt so far, in minor units. For example,
|
|
42
|
+
# The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000.
|
|
43
43
|
attr_reader :paid_amount
|
|
44
|
-
# The balance remaining to be paid on the financing, in minor units. For example,
|
|
44
|
+
# The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000.
|
|
45
45
|
attr_reader :remaining_amount
|
|
46
46
|
# The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
|
|
47
47
|
attr_reader :repayments_begin_at
|
|
48
|
-
# Per-transaction rate at which Stripe
|
|
48
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
49
49
|
attr_reader :withhold_rate
|
|
50
50
|
|
|
51
51
|
def self.inner_class_types
|
|
@@ -1229,7 +1229,7 @@ module Stripe
|
|
|
1229
1229
|
end
|
|
1230
1230
|
|
|
1231
1231
|
class Ideal < ::Stripe::StripeObject
|
|
1232
|
-
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1232
|
+
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1233
1233
|
attr_reader :bank
|
|
1234
1234
|
# The Bank Identifier Code of the customer's bank.
|
|
1235
1235
|
attr_reader :bic
|
|
@@ -1239,6 +1239,8 @@ module Stripe
|
|
|
1239
1239
|
attr_reader :generated_sepa_debit_mandate
|
|
1240
1240
|
# Last four characters of the IBAN.
|
|
1241
1241
|
attr_reader :iban_last4
|
|
1242
|
+
# Unique transaction ID generated by iDEAL.
|
|
1243
|
+
attr_reader :transaction_id
|
|
1242
1244
|
# Owner's verified full name. Values are verified or provided by iDEAL directly
|
|
1243
1245
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1244
1246
|
attr_reader :verified_name
|
|
@@ -2369,6 +2371,8 @@ module Stripe
|
|
|
2369
2371
|
@field_remappings = {}
|
|
2370
2372
|
end
|
|
2371
2373
|
end
|
|
2374
|
+
# Funds that are in transit and destined for another balance or another connected account.
|
|
2375
|
+
attr_reader :allocated_funds
|
|
2372
2376
|
# Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
2373
2377
|
attr_reader :amount
|
|
2374
2378
|
# Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made).
|
|
@@ -2467,8 +2471,6 @@ module Stripe
|
|
|
2467
2471
|
attr_reader :transfer_data
|
|
2468
2472
|
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
|
2469
2473
|
attr_reader :transfer_group
|
|
2470
|
-
# Funds that are in transit and destined for another balance or another connected account.
|
|
2471
|
-
attr_reader :allocated_funds
|
|
2472
2474
|
|
|
2473
2475
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
|
2474
2476
|
#
|
|
@@ -1504,15 +1504,15 @@ module Stripe
|
|
|
1504
1504
|
class MandateOptions < ::Stripe::StripeObject
|
|
1505
1505
|
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1506
1506
|
attr_reader :amount
|
|
1507
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
1507
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
1508
1508
|
attr_reader :amount_type
|
|
1509
1509
|
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1510
1510
|
attr_reader :end_date
|
|
1511
|
-
# The periodicity at which payments will be collected.
|
|
1511
|
+
# The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
1512
1512
|
attr_reader :payment_schedule
|
|
1513
1513
|
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
1514
1514
|
attr_reader :payments_per_period
|
|
1515
|
-
# The purpose for which payments are made.
|
|
1515
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
1516
1516
|
attr_reader :purpose
|
|
1517
1517
|
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1518
1518
|
attr_reader :start_date
|
|
@@ -992,7 +992,7 @@ module Stripe
|
|
|
992
992
|
end
|
|
993
993
|
|
|
994
994
|
class Ideal < ::Stripe::StripeObject
|
|
995
|
-
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
995
|
+
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
996
996
|
attr_reader :bank
|
|
997
997
|
# The Bank Identifier Code of the customer's bank, if the bank was provided.
|
|
998
998
|
attr_reader :bic
|