stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2
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/event_types.rb +8 -0
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +42 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
- data/lib/stripe/params/setup_intent_create_params.rb +37 -0
- data/lib/stripe/params/setup_intent_update_params.rb +21 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/charge.rb +354 -2
- data/lib/stripe/resources/checkout/session.rb +30 -0
- data/lib/stripe/resources/confirmation_token.rb +84 -0
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/payment_attempt_record.rb +133 -0
- data/lib/stripe/resources/payment_intent.rb +100 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +84 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +133 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services.rb +9 -0
- data/lib/stripe/stripe_event_notification_handler.rb +8 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -1
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe.rbi +4320 -69
- metadata +20 -2
|
@@ -68,11 +68,56 @@ module Stripe
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
class CardPresent < ::Stripe::StripeObject
|
|
71
|
+
class EvCharging < ::Stripe::StripeObject
|
|
72
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
73
|
+
attr_reader :carbon_footprint_avoided_grams_co2
|
|
74
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
75
|
+
attr_reader :charging_ended_at
|
|
76
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
77
|
+
attr_reader :charging_power_output_capacity_kw
|
|
78
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
79
|
+
attr_reader :charging_started_at
|
|
80
|
+
# The type of connector used for the charging session.
|
|
81
|
+
attr_reader :connector_type
|
|
82
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
83
|
+
attr_reader :estimated_range_added
|
|
84
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
85
|
+
attr_reader :estimated_range_left
|
|
86
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
87
|
+
attr_reader :maximum_power_dispensed_kw
|
|
88
|
+
|
|
89
|
+
def self.inner_class_types
|
|
90
|
+
@inner_class_types = {}
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def self.field_remappings
|
|
94
|
+
@field_remappings = {}
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
class FleetData < ::Stripe::StripeObject
|
|
99
|
+
# The type of product being purchased at this line item.
|
|
100
|
+
attr_reader :product_type
|
|
101
|
+
# The type of service received at the acceptor location.
|
|
102
|
+
attr_reader :service_type
|
|
103
|
+
|
|
104
|
+
def self.inner_class_types
|
|
105
|
+
@inner_class_types = {}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def self.field_remappings
|
|
109
|
+
@field_remappings = {}
|
|
110
|
+
end
|
|
111
|
+
end
|
|
71
112
|
# Attribute for field commodity_code
|
|
72
113
|
attr_reader :commodity_code
|
|
114
|
+
# Attribute for field ev_charging
|
|
115
|
+
attr_reader :ev_charging
|
|
116
|
+
# Attribute for field fleet_data
|
|
117
|
+
attr_reader :fleet_data
|
|
73
118
|
|
|
74
119
|
def self.inner_class_types
|
|
75
|
-
@inner_class_types = {}
|
|
120
|
+
@inner_class_types = { ev_charging: EvCharging, fleet_data: FleetData }
|
|
76
121
|
end
|
|
77
122
|
|
|
78
123
|
def self.field_remappings
|
|
@@ -40,6 +40,16 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class AeonPay < ::Stripe::StripeObject
|
|
44
|
+
def self.inner_class_types
|
|
45
|
+
@inner_class_types = {}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def self.field_remappings
|
|
49
|
+
@field_remappings = {}
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
43
53
|
class Affirm < ::Stripe::StripeObject
|
|
44
54
|
def self.inner_class_types
|
|
45
55
|
@inner_class_types = {}
|
|
@@ -107,6 +117,16 @@ module Stripe
|
|
|
107
117
|
end
|
|
108
118
|
end
|
|
109
119
|
|
|
120
|
+
class AuPay < ::Stripe::StripeObject
|
|
121
|
+
def self.inner_class_types
|
|
122
|
+
@inner_class_types = {}
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def self.field_remappings
|
|
126
|
+
@field_remappings = {}
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
110
130
|
class BacsDebit < ::Stripe::StripeObject
|
|
111
131
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
112
132
|
attr_reader :fingerprint
|
|
@@ -262,6 +282,35 @@ module Stripe
|
|
|
262
282
|
class GeneratedFrom < ::Stripe::StripeObject
|
|
263
283
|
class PaymentMethodDetails < ::Stripe::StripeObject
|
|
264
284
|
class CardPresent < ::Stripe::StripeObject
|
|
285
|
+
class Fleet < ::Stripe::StripeObject
|
|
286
|
+
class TransactionDatum < ::Stripe::StripeObject
|
|
287
|
+
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
288
|
+
attr_reader :prompt
|
|
289
|
+
# Whether the collected value is printed on the receipt.
|
|
290
|
+
attr_reader :receipt_behavior
|
|
291
|
+
# The value collected for this Fleet prompt.
|
|
292
|
+
attr_reader :value
|
|
293
|
+
|
|
294
|
+
def self.inner_class_types
|
|
295
|
+
@inner_class_types = {}
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
def self.field_remappings
|
|
299
|
+
@field_remappings = {}
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
# Fleet prompts and values collected for this transaction.
|
|
303
|
+
attr_reader :transaction_data
|
|
304
|
+
|
|
305
|
+
def self.inner_class_types
|
|
306
|
+
@inner_class_types = { transaction_data: TransactionDatum }
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
def self.field_remappings
|
|
310
|
+
@field_remappings = {}
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
265
314
|
class Multicapture < ::Stripe::StripeObject
|
|
266
315
|
# Indicates whether or not multiple captures are supported.
|
|
267
316
|
attr_reader :status
|
|
@@ -368,6 +417,8 @@ module Stripe
|
|
|
368
417
|
#
|
|
369
418
|
# *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
370
419
|
attr_reader :fingerprint
|
|
420
|
+
# Attribute for field fleet
|
|
421
|
+
attr_reader :fleet
|
|
371
422
|
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
372
423
|
attr_reader :funding
|
|
373
424
|
# ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
|
@@ -411,6 +462,7 @@ module Stripe
|
|
|
411
462
|
|
|
412
463
|
def self.inner_class_types
|
|
413
464
|
@inner_class_types = {
|
|
465
|
+
fleet: Fleet,
|
|
414
466
|
multicapture: Multicapture,
|
|
415
467
|
offline: Offline,
|
|
416
468
|
reauthorization: Reauthorization,
|
|
@@ -923,6 +975,16 @@ module Stripe
|
|
|
923
975
|
end
|
|
924
976
|
end
|
|
925
977
|
|
|
978
|
+
class Dbarai < ::Stripe::StripeObject
|
|
979
|
+
def self.inner_class_types
|
|
980
|
+
@inner_class_types = {}
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
def self.field_remappings
|
|
984
|
+
@field_remappings = {}
|
|
985
|
+
end
|
|
986
|
+
end
|
|
987
|
+
|
|
926
988
|
class Eps < ::Stripe::StripeObject
|
|
927
989
|
# The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
|
928
990
|
attr_reader :bank
|
|
@@ -1190,6 +1252,16 @@ module Stripe
|
|
|
1190
1252
|
end
|
|
1191
1253
|
end
|
|
1192
1254
|
|
|
1255
|
+
class Merpay < ::Stripe::StripeObject
|
|
1256
|
+
def self.inner_class_types
|
|
1257
|
+
@inner_class_types = {}
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
def self.field_remappings
|
|
1261
|
+
@field_remappings = {}
|
|
1262
|
+
end
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1193
1265
|
class Mobilepay < ::Stripe::StripeObject
|
|
1194
1266
|
def self.inner_class_types
|
|
1195
1267
|
@inner_class_types = {}
|
|
@@ -1753,6 +1825,8 @@ module Stripe
|
|
|
1753
1825
|
end
|
|
1754
1826
|
# Attribute for field acss_debit
|
|
1755
1827
|
attr_reader :acss_debit
|
|
1828
|
+
# Attribute for field aeon_pay
|
|
1829
|
+
attr_reader :aeon_pay
|
|
1756
1830
|
# Attribute for field affirm
|
|
1757
1831
|
attr_reader :affirm
|
|
1758
1832
|
# Attribute for field afterpay_clearpay
|
|
@@ -1767,6 +1841,8 @@ module Stripe
|
|
|
1767
1841
|
attr_reader :amazon_pay
|
|
1768
1842
|
# Attribute for field au_becs_debit
|
|
1769
1843
|
attr_reader :au_becs_debit
|
|
1844
|
+
# Attribute for field au_pay
|
|
1845
|
+
attr_reader :au_pay
|
|
1770
1846
|
# Attribute for field bacs_debit
|
|
1771
1847
|
attr_reader :bacs_debit
|
|
1772
1848
|
# Attribute for field bancontact
|
|
@@ -1801,6 +1877,8 @@ module Stripe
|
|
|
1801
1877
|
attr_reader :customer_account
|
|
1802
1878
|
# Attribute for field customer_balance
|
|
1803
1879
|
attr_reader :customer_balance
|
|
1880
|
+
# Attribute for field dbarai
|
|
1881
|
+
attr_reader :dbarai
|
|
1804
1882
|
# Attribute for field eps
|
|
1805
1883
|
attr_reader :eps
|
|
1806
1884
|
# Attribute for field fpx
|
|
@@ -1839,6 +1917,8 @@ module Stripe
|
|
|
1839
1917
|
attr_reader :livemode
|
|
1840
1918
|
# Attribute for field mb_way
|
|
1841
1919
|
attr_reader :mb_way
|
|
1920
|
+
# Attribute for field merpay
|
|
1921
|
+
attr_reader :merpay
|
|
1842
1922
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
1843
1923
|
attr_reader :metadata
|
|
1844
1924
|
# Attribute for field mobilepay
|
|
@@ -2035,12 +2115,14 @@ module Stripe
|
|
|
2035
2115
|
def self.inner_class_types
|
|
2036
2116
|
@inner_class_types = {
|
|
2037
2117
|
acss_debit: AcssDebit,
|
|
2118
|
+
aeon_pay: AeonPay,
|
|
2038
2119
|
affirm: Affirm,
|
|
2039
2120
|
afterpay_clearpay: AfterpayClearpay,
|
|
2040
2121
|
alipay: Alipay,
|
|
2041
2122
|
alma: Alma,
|
|
2042
2123
|
amazon_pay: AmazonPay,
|
|
2043
2124
|
au_becs_debit: AuBecsDebit,
|
|
2125
|
+
au_pay: AuPay,
|
|
2044
2126
|
bacs_debit: BacsDebit,
|
|
2045
2127
|
bancontact: Bancontact,
|
|
2046
2128
|
billie: Billie,
|
|
@@ -2055,6 +2137,7 @@ module Stripe
|
|
|
2055
2137
|
crypto: Crypto,
|
|
2056
2138
|
custom: Custom,
|
|
2057
2139
|
customer_balance: CustomerBalance,
|
|
2140
|
+
dbarai: Dbarai,
|
|
2058
2141
|
eps: Eps,
|
|
2059
2142
|
fpx: Fpx,
|
|
2060
2143
|
getflex: Getflex,
|
|
@@ -2071,6 +2154,7 @@ module Stripe
|
|
|
2071
2154
|
kr_card: KrCard,
|
|
2072
2155
|
link: Link,
|
|
2073
2156
|
mb_way: MbWay,
|
|
2157
|
+
merpay: Merpay,
|
|
2074
2158
|
mobilepay: Mobilepay,
|
|
2075
2159
|
multibanco: Multibanco,
|
|
2076
2160
|
naver_pay: NaverPay,
|
|
@@ -1545,6 +1545,37 @@ module Stripe
|
|
|
1545
1545
|
end
|
|
1546
1546
|
end
|
|
1547
1547
|
|
|
1548
|
+
class RakutenPay < ::Stripe::StripeObject
|
|
1549
|
+
class DisplayPreference < ::Stripe::StripeObject
|
|
1550
|
+
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1551
|
+
attr_reader :overridable
|
|
1552
|
+
# The account's display preference.
|
|
1553
|
+
attr_reader :preference
|
|
1554
|
+
# The effective display preference value.
|
|
1555
|
+
attr_reader :value
|
|
1556
|
+
|
|
1557
|
+
def self.inner_class_types
|
|
1558
|
+
@inner_class_types = {}
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1561
|
+
def self.field_remappings
|
|
1562
|
+
@field_remappings = {}
|
|
1563
|
+
end
|
|
1564
|
+
end
|
|
1565
|
+
# Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1566
|
+
attr_reader :available
|
|
1567
|
+
# Attribute for field display_preference
|
|
1568
|
+
attr_reader :display_preference
|
|
1569
|
+
|
|
1570
|
+
def self.inner_class_types
|
|
1571
|
+
@inner_class_types = { display_preference: DisplayPreference }
|
|
1572
|
+
end
|
|
1573
|
+
|
|
1574
|
+
def self.field_remappings
|
|
1575
|
+
@field_remappings = {}
|
|
1576
|
+
end
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1548
1579
|
class RevolutPay < ::Stripe::StripeObject
|
|
1549
1580
|
class DisplayPreference < ::Stripe::StripeObject
|
|
1550
1581
|
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
@@ -2154,6 +2185,8 @@ module Stripe
|
|
|
2154
2185
|
attr_reader :promptpay
|
|
2155
2186
|
# Attribute for field qris
|
|
2156
2187
|
attr_reader :qris
|
|
2188
|
+
# Attribute for field rakuten_pay
|
|
2189
|
+
attr_reader :rakuten_pay
|
|
2157
2190
|
# Attribute for field revolut_pay
|
|
2158
2191
|
attr_reader :revolut_pay
|
|
2159
2192
|
# Attribute for field samsung_pay
|
|
@@ -2268,6 +2301,7 @@ module Stripe
|
|
|
2268
2301
|
pix: Pix,
|
|
2269
2302
|
promptpay: Promptpay,
|
|
2270
2303
|
qris: Qris,
|
|
2304
|
+
rakuten_pay: RakutenPay,
|
|
2271
2305
|
revolut_pay: RevolutPay,
|
|
2272
2306
|
samsung_pay: SamsungPay,
|
|
2273
2307
|
satispay: Satispay,
|
|
@@ -139,6 +139,50 @@ module Stripe
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
+
class DisputeDetails < ::Stripe::StripeObject
|
|
143
|
+
class Reinstated < ::Stripe::StripeObject
|
|
144
|
+
# 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).
|
|
145
|
+
attr_reader :currency
|
|
146
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
147
|
+
attr_reader :value
|
|
148
|
+
|
|
149
|
+
def self.inner_class_types
|
|
150
|
+
@inner_class_types = {}
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
def self.field_remappings
|
|
154
|
+
@field_remappings = {}
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
class Withdrawn < ::Stripe::StripeObject
|
|
159
|
+
# 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).
|
|
160
|
+
attr_reader :currency
|
|
161
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
162
|
+
attr_reader :value
|
|
163
|
+
|
|
164
|
+
def self.inner_class_types
|
|
165
|
+
@inner_class_types = {}
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def self.field_remappings
|
|
169
|
+
@field_remappings = {}
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
# Total amounts reinstated across all disputes, keyed by currency, with each value containing the total for that currency. Withdrawals are not subtracted from these totals.
|
|
173
|
+
attr_reader :reinstated
|
|
174
|
+
# Total amounts withdrawn across all disputes, keyed by currency, with each value containing the total for that currency. Reinstatements are not subtracted from these totals.
|
|
175
|
+
attr_reader :withdrawn
|
|
176
|
+
|
|
177
|
+
def self.inner_class_types
|
|
178
|
+
@inner_class_types = { reinstated: Reinstated, withdrawn: Withdrawn }
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def self.field_remappings
|
|
182
|
+
@field_remappings = {}
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
142
186
|
class PaymentMethodDetails < ::Stripe::StripeObject
|
|
143
187
|
class AchCreditTransfer < ::Stripe::StripeObject
|
|
144
188
|
# Account number to transfer funds to.
|
|
@@ -207,6 +251,16 @@ module Stripe
|
|
|
207
251
|
end
|
|
208
252
|
end
|
|
209
253
|
|
|
254
|
+
class AeonPay < ::Stripe::StripeObject
|
|
255
|
+
def self.inner_class_types
|
|
256
|
+
@inner_class_types = {}
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
def self.field_remappings
|
|
260
|
+
@field_remappings = {}
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
210
264
|
class Affirm < ::Stripe::StripeObject
|
|
211
265
|
# ID of the location that this reader is assigned to.
|
|
212
266
|
attr_reader :location
|
|
@@ -357,6 +411,16 @@ module Stripe
|
|
|
357
411
|
end
|
|
358
412
|
end
|
|
359
413
|
|
|
414
|
+
class AuPay < ::Stripe::StripeObject
|
|
415
|
+
def self.inner_class_types
|
|
416
|
+
@inner_class_types = {}
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
def self.field_remappings
|
|
420
|
+
@field_remappings = {}
|
|
421
|
+
end
|
|
422
|
+
end
|
|
423
|
+
|
|
360
424
|
class BacsDebit < ::Stripe::StripeObject
|
|
361
425
|
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
362
426
|
attr_reader :expected_debit_date
|
|
@@ -702,6 +766,35 @@ module Stripe
|
|
|
702
766
|
end
|
|
703
767
|
|
|
704
768
|
class CardPresent < ::Stripe::StripeObject
|
|
769
|
+
class Fleet < ::Stripe::StripeObject
|
|
770
|
+
class TransactionDatum < ::Stripe::StripeObject
|
|
771
|
+
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
772
|
+
attr_reader :prompt
|
|
773
|
+
# Whether the collected value is printed on the receipt.
|
|
774
|
+
attr_reader :receipt_behavior
|
|
775
|
+
# The value collected for this Fleet prompt.
|
|
776
|
+
attr_reader :value
|
|
777
|
+
|
|
778
|
+
def self.inner_class_types
|
|
779
|
+
@inner_class_types = {}
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
def self.field_remappings
|
|
783
|
+
@field_remappings = {}
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
# Fleet prompts and values collected for this transaction.
|
|
787
|
+
attr_reader :transaction_data
|
|
788
|
+
|
|
789
|
+
def self.inner_class_types
|
|
790
|
+
@inner_class_types = { transaction_data: TransactionDatum }
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
def self.field_remappings
|
|
794
|
+
@field_remappings = {}
|
|
795
|
+
end
|
|
796
|
+
end
|
|
797
|
+
|
|
705
798
|
class Multicapture < ::Stripe::StripeObject
|
|
706
799
|
# Indicates whether or not multiple captures are supported.
|
|
707
800
|
attr_reader :status
|
|
@@ -808,6 +901,8 @@ module Stripe
|
|
|
808
901
|
#
|
|
809
902
|
# *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
810
903
|
attr_reader :fingerprint
|
|
904
|
+
# Attribute for field fleet
|
|
905
|
+
attr_reader :fleet
|
|
811
906
|
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
812
907
|
attr_reader :funding
|
|
813
908
|
# ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
|
@@ -851,6 +946,7 @@ module Stripe
|
|
|
851
946
|
|
|
852
947
|
def self.inner_class_types
|
|
853
948
|
@inner_class_types = {
|
|
949
|
+
fleet: Fleet,
|
|
854
950
|
multicapture: Multicapture,
|
|
855
951
|
offline: Offline,
|
|
856
952
|
reauthorization: Reauthorization,
|
|
@@ -939,6 +1035,16 @@ module Stripe
|
|
|
939
1035
|
end
|
|
940
1036
|
end
|
|
941
1037
|
|
|
1038
|
+
class Dbarai < ::Stripe::StripeObject
|
|
1039
|
+
def self.inner_class_types
|
|
1040
|
+
@inner_class_types = {}
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
def self.field_remappings
|
|
1044
|
+
@field_remappings = {}
|
|
1045
|
+
end
|
|
1046
|
+
end
|
|
1047
|
+
|
|
942
1048
|
class Eps < ::Stripe::StripeObject
|
|
943
1049
|
# The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`
|
|
944
1050
|
attr_reader :bank
|
|
@@ -1324,6 +1430,16 @@ module Stripe
|
|
|
1324
1430
|
end
|
|
1325
1431
|
end
|
|
1326
1432
|
|
|
1433
|
+
class Merpay < ::Stripe::StripeObject
|
|
1434
|
+
def self.inner_class_types
|
|
1435
|
+
@inner_class_types = {}
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1438
|
+
def self.field_remappings
|
|
1439
|
+
@field_remappings = {}
|
|
1440
|
+
end
|
|
1441
|
+
end
|
|
1442
|
+
|
|
1327
1443
|
class Mobilepay < ::Stripe::StripeObject
|
|
1328
1444
|
class Card < ::Stripe::StripeObject
|
|
1329
1445
|
# Brand of the card used in the transaction
|
|
@@ -1603,6 +1719,8 @@ module Stripe
|
|
|
1603
1719
|
end
|
|
1604
1720
|
|
|
1605
1721
|
class Paypay < ::Stripe::StripeObject
|
|
1722
|
+
# Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
|
|
1723
|
+
attr_reader :fingerprint
|
|
1606
1724
|
# ID of the multi-use Mandate created by, or used to make, this PayPay payment.
|
|
1607
1725
|
attr_reader :mandate
|
|
1608
1726
|
|
|
@@ -2077,6 +2195,8 @@ module Stripe
|
|
|
2077
2195
|
attr_reader :ach_debit
|
|
2078
2196
|
# Attribute for field acss_debit
|
|
2079
2197
|
attr_reader :acss_debit
|
|
2198
|
+
# Attribute for field aeon_pay
|
|
2199
|
+
attr_reader :aeon_pay
|
|
2080
2200
|
# Attribute for field affirm
|
|
2081
2201
|
attr_reader :affirm
|
|
2082
2202
|
# Attribute for field afterpay_clearpay
|
|
@@ -2089,6 +2209,8 @@ module Stripe
|
|
|
2089
2209
|
attr_reader :amazon_pay
|
|
2090
2210
|
# Attribute for field au_becs_debit
|
|
2091
2211
|
attr_reader :au_becs_debit
|
|
2212
|
+
# Attribute for field au_pay
|
|
2213
|
+
attr_reader :au_pay
|
|
2092
2214
|
# Attribute for field bacs_debit
|
|
2093
2215
|
attr_reader :bacs_debit
|
|
2094
2216
|
# Attribute for field bancontact
|
|
@@ -2119,6 +2241,8 @@ module Stripe
|
|
|
2119
2241
|
attr_reader :custom
|
|
2120
2242
|
# Attribute for field customer_balance
|
|
2121
2243
|
attr_reader :customer_balance
|
|
2244
|
+
# Attribute for field dbarai
|
|
2245
|
+
attr_reader :dbarai
|
|
2122
2246
|
# Attribute for field eps
|
|
2123
2247
|
attr_reader :eps
|
|
2124
2248
|
# Attribute for field fpx
|
|
@@ -2151,6 +2275,8 @@ module Stripe
|
|
|
2151
2275
|
attr_reader :link
|
|
2152
2276
|
# Attribute for field mb_way
|
|
2153
2277
|
attr_reader :mb_way
|
|
2278
|
+
# Attribute for field merpay
|
|
2279
|
+
attr_reader :merpay
|
|
2154
2280
|
# Attribute for field mobilepay
|
|
2155
2281
|
attr_reader :mobilepay
|
|
2156
2282
|
# Attribute for field momo
|
|
@@ -2243,12 +2369,14 @@ module Stripe
|
|
|
2243
2369
|
ach_credit_transfer: AchCreditTransfer,
|
|
2244
2370
|
ach_debit: AchDebit,
|
|
2245
2371
|
acss_debit: AcssDebit,
|
|
2372
|
+
aeon_pay: AeonPay,
|
|
2246
2373
|
affirm: Affirm,
|
|
2247
2374
|
afterpay_clearpay: AfterpayClearpay,
|
|
2248
2375
|
alipay: Alipay,
|
|
2249
2376
|
alma: Alma,
|
|
2250
2377
|
amazon_pay: AmazonPay,
|
|
2251
2378
|
au_becs_debit: AuBecsDebit,
|
|
2379
|
+
au_pay: AuPay,
|
|
2252
2380
|
bacs_debit: BacsDebit,
|
|
2253
2381
|
bancontact: Bancontact,
|
|
2254
2382
|
billie: Billie,
|
|
@@ -2263,6 +2391,7 @@ module Stripe
|
|
|
2263
2391
|
crypto: Crypto,
|
|
2264
2392
|
custom: Custom,
|
|
2265
2393
|
customer_balance: CustomerBalance,
|
|
2394
|
+
dbarai: Dbarai,
|
|
2266
2395
|
eps: Eps,
|
|
2267
2396
|
fpx: Fpx,
|
|
2268
2397
|
getflex: Getflex,
|
|
@@ -2279,6 +2408,7 @@ module Stripe
|
|
|
2279
2408
|
kr_card: KrCard,
|
|
2280
2409
|
link: Link,
|
|
2281
2410
|
mb_way: MbWay,
|
|
2411
|
+
merpay: Merpay,
|
|
2282
2412
|
mobilepay: Mobilepay,
|
|
2283
2413
|
momo: Momo,
|
|
2284
2414
|
multibanco: Multibanco,
|
|
@@ -2468,6 +2598,8 @@ module Stripe
|
|
|
2468
2598
|
attr_reader :customer_presence
|
|
2469
2599
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2470
2600
|
attr_reader :description
|
|
2601
|
+
# Summary information about disputes associated with this Payment Record.
|
|
2602
|
+
attr_reader :dispute_details
|
|
2471
2603
|
# Unique identifier for the object.
|
|
2472
2604
|
attr_reader :id
|
|
2473
2605
|
# ID of the latest Payment Attempt Record attached to this Payment Record.
|
|
@@ -2679,6 +2811,7 @@ module Stripe
|
|
|
2679
2811
|
amount_refunded: AmountRefunded,
|
|
2680
2812
|
amount_requested: AmountRequested,
|
|
2681
2813
|
customer_details: CustomerDetails,
|
|
2814
|
+
dispute_details: DisputeDetails,
|
|
2682
2815
|
payment_method_details: PaymentMethodDetails,
|
|
2683
2816
|
processor_details: ProcessorDetails,
|
|
2684
2817
|
shipping_details: ShippingDetails,
|
|
@@ -303,6 +303,19 @@ module Stripe
|
|
|
303
303
|
end
|
|
304
304
|
end
|
|
305
305
|
|
|
306
|
+
class SepaDebit < ::Stripe::StripeObject
|
|
307
|
+
# Creditor identifier used for the intended debit.
|
|
308
|
+
attr_reader :creditor_id
|
|
309
|
+
|
|
310
|
+
def self.inner_class_types
|
|
311
|
+
@inner_class_types = {}
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
def self.field_remappings
|
|
315
|
+
@field_remappings = {}
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
306
319
|
class UsBankAccount < ::Stripe::StripeObject
|
|
307
320
|
# Describes the presence of the customer during the payment.
|
|
308
321
|
attr_reader :customer_presence
|
|
@@ -321,11 +334,13 @@ module Stripe
|
|
|
321
334
|
attr_reader :card
|
|
322
335
|
# Describes the type of money movement.
|
|
323
336
|
attr_reader :money_movement_type
|
|
337
|
+
# Describes SEPA debit money movement details.
|
|
338
|
+
attr_reader :sepa_debit
|
|
324
339
|
# Describes US bank account money movement details.
|
|
325
340
|
attr_reader :us_bank_account
|
|
326
341
|
|
|
327
342
|
def self.inner_class_types
|
|
328
|
-
@inner_class_types = { card: Card, us_bank_account: UsBankAccount }
|
|
343
|
+
@inner_class_types = { card: Card, sepa_debit: SepaDebit, us_bank_account: UsBankAccount }
|
|
329
344
|
end
|
|
330
345
|
|
|
331
346
|
def self.field_remappings
|
|
@@ -508,6 +523,23 @@ module Stripe
|
|
|
508
523
|
end
|
|
509
524
|
end
|
|
510
525
|
|
|
526
|
+
class CardTesting < ::Stripe::StripeObject
|
|
527
|
+
# The time when this signal was evaluated.
|
|
528
|
+
attr_reader :evaluated_at
|
|
529
|
+
# Risk level of this signal, based on the score.
|
|
530
|
+
attr_reader :risk_level
|
|
531
|
+
# Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true.
|
|
532
|
+
attr_reader :score
|
|
533
|
+
|
|
534
|
+
def self.inner_class_types
|
|
535
|
+
@inner_class_types = {}
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
def self.field_remappings
|
|
539
|
+
@field_remappings = {}
|
|
540
|
+
end
|
|
541
|
+
end
|
|
542
|
+
|
|
511
543
|
class EarlyFraudWarning < ::Stripe::StripeObject
|
|
512
544
|
# The time when this signal was evaluated.
|
|
513
545
|
attr_reader :evaluated_at
|
|
@@ -560,6 +592,8 @@ module Stripe
|
|
|
560
592
|
end
|
|
561
593
|
# A payment evaluation signal with evaluated_at, risk_level, and score fields.
|
|
562
594
|
attr_reader :bank_initiated_return
|
|
595
|
+
# The likelihood that this `PaymentEvaluation` is part of a card testing attack.
|
|
596
|
+
attr_reader :card_testing
|
|
563
597
|
# The likelihood that this `PaymentEvaluation` results in an early fraud warning.
|
|
564
598
|
attr_reader :early_fraud_warning
|
|
565
599
|
# The likelihood that this `PaymentEvaluation` results in a dispute with reason code `fraudulent`.
|
|
@@ -570,6 +604,7 @@ module Stripe
|
|
|
570
604
|
def self.inner_class_types
|
|
571
605
|
@inner_class_types = {
|
|
572
606
|
bank_initiated_return: BankInitiatedReturn,
|
|
607
|
+
card_testing: CardTesting,
|
|
573
608
|
early_fraud_warning: EarlyFraudWarning,
|
|
574
609
|
fraudulent_dispute: FraudulentDispute,
|
|
575
610
|
fraudulent_payment: FraudulentPayment,
|
|
@@ -600,7 +635,7 @@ module Stripe
|
|
|
600
635
|
attr_reader :outcome
|
|
601
636
|
# Payment details attached to this payment evaluation.
|
|
602
637
|
attr_reader :payment_details
|
|
603
|
-
# Recommended action
|
|
638
|
+
# Recommended action for this payment based on its evaluated signals and rules.
|
|
604
639
|
attr_reader :recommended_action
|
|
605
640
|
# Details about Radar Rules associated with the payment evaluation.
|
|
606
641
|
attr_reader :rules
|