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
|
@@ -221,6 +221,16 @@ module Stripe
|
|
|
221
221
|
end
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
+
class AeonPay < ::Stripe::StripeObject
|
|
225
|
+
def self.inner_class_types
|
|
226
|
+
@inner_class_types = {}
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
def self.field_remappings
|
|
230
|
+
@field_remappings = {}
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
224
234
|
class Affirm < ::Stripe::StripeObject
|
|
225
235
|
# ID of the location that this reader is assigned to.
|
|
226
236
|
attr_reader :location
|
|
@@ -371,6 +381,16 @@ module Stripe
|
|
|
371
381
|
end
|
|
372
382
|
end
|
|
373
383
|
|
|
384
|
+
class AuPay < ::Stripe::StripeObject
|
|
385
|
+
def self.inner_class_types
|
|
386
|
+
@inner_class_types = {}
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def self.field_remappings
|
|
390
|
+
@field_remappings = {}
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
374
394
|
class BacsDebit < ::Stripe::StripeObject
|
|
375
395
|
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
376
396
|
attr_reader :expected_debit_date
|
|
@@ -733,11 +753,144 @@ module Stripe
|
|
|
733
753
|
end
|
|
734
754
|
|
|
735
755
|
class Link < ::Stripe::StripeObject
|
|
756
|
+
class FundingSource < ::Stripe::StripeObject
|
|
757
|
+
class Card < ::Stripe::StripeObject
|
|
758
|
+
class Checks < ::Stripe::StripeObject
|
|
759
|
+
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
760
|
+
attr_reader :address_line1_check
|
|
761
|
+
# If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
762
|
+
attr_reader :address_postal_code_check
|
|
763
|
+
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
764
|
+
attr_reader :cvc_check
|
|
765
|
+
|
|
766
|
+
def self.inner_class_types
|
|
767
|
+
@inner_class_types = {}
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
def self.field_remappings
|
|
771
|
+
@field_remappings = {}
|
|
772
|
+
end
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
class NetworkToken < ::Stripe::StripeObject
|
|
776
|
+
# Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
|
777
|
+
attr_reader :used
|
|
778
|
+
|
|
779
|
+
def self.inner_class_types
|
|
780
|
+
@inner_class_types = {}
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
def self.field_remappings
|
|
784
|
+
@field_remappings = {}
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
class ThreeDSecure < ::Stripe::StripeObject
|
|
789
|
+
# For authenticated transactions: how the customer was authenticated by
|
|
790
|
+
# the issuing bank.
|
|
791
|
+
attr_reader :authentication_flow
|
|
792
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field
|
|
793
|
+
# indicating what degree of authentication was performed.
|
|
794
|
+
attr_reader :electronic_commerce_indicator
|
|
795
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
796
|
+
attr_reader :exemption_indicator
|
|
797
|
+
# Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
|
|
798
|
+
# the outcome of Stripe's internal risk assessment.
|
|
799
|
+
attr_reader :exemption_indicator_applied
|
|
800
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
801
|
+
attr_reader :result
|
|
802
|
+
# Additional information about why 3D Secure succeeded or failed based
|
|
803
|
+
# on the `result`.
|
|
804
|
+
attr_reader :result_reason
|
|
805
|
+
# The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
|
|
806
|
+
# (dsTransId) for this payment.
|
|
807
|
+
attr_reader :transaction_id
|
|
808
|
+
# The version of 3D Secure that was used.
|
|
809
|
+
attr_reader :version
|
|
810
|
+
|
|
811
|
+
def self.inner_class_types
|
|
812
|
+
@inner_class_types = {}
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
def self.field_remappings
|
|
816
|
+
@field_remappings = {}
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
# The authorized amount.
|
|
820
|
+
attr_reader :amount_authorized
|
|
821
|
+
# Authorization code on the charge.
|
|
822
|
+
attr_reader :authorization_code
|
|
823
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
824
|
+
attr_reader :brand
|
|
825
|
+
# Check results by Card networks on Card address and CVC at time of payment.
|
|
826
|
+
attr_reader :checks
|
|
827
|
+
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
828
|
+
attr_reader :country
|
|
829
|
+
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
830
|
+
attr_reader :description
|
|
831
|
+
# The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
|
|
832
|
+
attr_reader :electronic_commerce_indicator
|
|
833
|
+
# Two-digit number representing the card's expiration month.
|
|
834
|
+
attr_reader :exp_month
|
|
835
|
+
# Four-digit number representing the card's expiration year.
|
|
836
|
+
attr_reader :exp_year
|
|
837
|
+
# Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
838
|
+
#
|
|
839
|
+
# *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.*
|
|
840
|
+
attr_reader :fingerprint
|
|
841
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
842
|
+
attr_reader :funding
|
|
843
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
844
|
+
attr_reader :iin
|
|
845
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
846
|
+
attr_reader :issuer
|
|
847
|
+
# The last four digits of the card.
|
|
848
|
+
attr_reader :last4
|
|
849
|
+
# Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
850
|
+
attr_reader :network
|
|
851
|
+
# If this card has network token credentials, this contains the details of the network token credentials.
|
|
852
|
+
attr_reader :network_token
|
|
853
|
+
# This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
854
|
+
attr_reader :network_transaction_id
|
|
855
|
+
# Status of a card based on the card issuer.
|
|
856
|
+
attr_reader :regulated_status
|
|
857
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
858
|
+
attr_reader :three_d_secure
|
|
859
|
+
# Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
860
|
+
attr_reader :transaction_link_id
|
|
861
|
+
|
|
862
|
+
def self.inner_class_types
|
|
863
|
+
@inner_class_types = {
|
|
864
|
+
checks: Checks,
|
|
865
|
+
network_token: NetworkToken,
|
|
866
|
+
three_d_secure: ThreeDSecure,
|
|
867
|
+
}
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
def self.field_remappings
|
|
871
|
+
@field_remappings = {}
|
|
872
|
+
end
|
|
873
|
+
end
|
|
874
|
+
# Attribute for field card
|
|
875
|
+
attr_reader :card
|
|
876
|
+
# The type of funding source used for this Link payment.
|
|
877
|
+
attr_reader :type
|
|
878
|
+
|
|
879
|
+
def self.inner_class_types
|
|
880
|
+
@inner_class_types = { card: Card }
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
def self.field_remappings
|
|
884
|
+
@field_remappings = {}
|
|
885
|
+
end
|
|
886
|
+
end
|
|
736
887
|
# The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
|
|
737
888
|
attr_reader :funding_source_group
|
|
889
|
+
# Details about the funding sources used for this Link payment.
|
|
890
|
+
attr_reader :funding_sources
|
|
738
891
|
|
|
739
892
|
def self.inner_class_types
|
|
740
|
-
@inner_class_types = {}
|
|
893
|
+
@inner_class_types = { funding_sources: FundingSource }
|
|
741
894
|
end
|
|
742
895
|
|
|
743
896
|
def self.field_remappings
|
|
@@ -1031,6 +1184,35 @@ module Stripe
|
|
|
1031
1184
|
end
|
|
1032
1185
|
|
|
1033
1186
|
class CardPresent < ::Stripe::StripeObject
|
|
1187
|
+
class Fleet < ::Stripe::StripeObject
|
|
1188
|
+
class TransactionDatum < ::Stripe::StripeObject
|
|
1189
|
+
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
1190
|
+
attr_reader :prompt
|
|
1191
|
+
# Whether the collected value is printed on the receipt.
|
|
1192
|
+
attr_reader :receipt_behavior
|
|
1193
|
+
# The value collected for this Fleet prompt.
|
|
1194
|
+
attr_reader :value
|
|
1195
|
+
|
|
1196
|
+
def self.inner_class_types
|
|
1197
|
+
@inner_class_types = {}
|
|
1198
|
+
end
|
|
1199
|
+
|
|
1200
|
+
def self.field_remappings
|
|
1201
|
+
@field_remappings = {}
|
|
1202
|
+
end
|
|
1203
|
+
end
|
|
1204
|
+
# Fleet prompts and values collected for this transaction.
|
|
1205
|
+
attr_reader :transaction_data
|
|
1206
|
+
|
|
1207
|
+
def self.inner_class_types
|
|
1208
|
+
@inner_class_types = { transaction_data: TransactionDatum }
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
def self.field_remappings
|
|
1212
|
+
@field_remappings = {}
|
|
1213
|
+
end
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1034
1216
|
class Multicapture < ::Stripe::StripeObject
|
|
1035
1217
|
# Indicates whether or not multiple captures are supported.
|
|
1036
1218
|
attr_reader :status
|
|
@@ -1137,6 +1319,8 @@ module Stripe
|
|
|
1137
1319
|
#
|
|
1138
1320
|
# *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.*
|
|
1139
1321
|
attr_reader :fingerprint
|
|
1322
|
+
# Attribute for field fleet
|
|
1323
|
+
attr_reader :fleet
|
|
1140
1324
|
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
1141
1325
|
attr_reader :funding
|
|
1142
1326
|
# 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.
|
|
@@ -1180,6 +1364,7 @@ module Stripe
|
|
|
1180
1364
|
|
|
1181
1365
|
def self.inner_class_types
|
|
1182
1366
|
@inner_class_types = {
|
|
1367
|
+
fleet: Fleet,
|
|
1183
1368
|
multicapture: Multicapture,
|
|
1184
1369
|
offline: Offline,
|
|
1185
1370
|
reauthorization: Reauthorization,
|
|
@@ -1253,6 +1438,16 @@ module Stripe
|
|
|
1253
1438
|
end
|
|
1254
1439
|
end
|
|
1255
1440
|
|
|
1441
|
+
class Dbarai < ::Stripe::StripeObject
|
|
1442
|
+
def self.inner_class_types
|
|
1443
|
+
@inner_class_types = {}
|
|
1444
|
+
end
|
|
1445
|
+
|
|
1446
|
+
def self.field_remappings
|
|
1447
|
+
@field_remappings = {}
|
|
1448
|
+
end
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1256
1451
|
class Eps < ::Stripe::StripeObject
|
|
1257
1452
|
# 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`.
|
|
1258
1453
|
attr_reader :bank
|
|
@@ -1621,14 +1816,147 @@ module Stripe
|
|
|
1621
1816
|
end
|
|
1622
1817
|
|
|
1623
1818
|
class Link < ::Stripe::StripeObject
|
|
1819
|
+
class FundingSource < ::Stripe::StripeObject
|
|
1820
|
+
class Card < ::Stripe::StripeObject
|
|
1821
|
+
class Checks < ::Stripe::StripeObject
|
|
1822
|
+
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
1823
|
+
attr_reader :address_line1_check
|
|
1824
|
+
# If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
1825
|
+
attr_reader :address_postal_code_check
|
|
1826
|
+
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
1827
|
+
attr_reader :cvc_check
|
|
1828
|
+
|
|
1829
|
+
def self.inner_class_types
|
|
1830
|
+
@inner_class_types = {}
|
|
1831
|
+
end
|
|
1832
|
+
|
|
1833
|
+
def self.field_remappings
|
|
1834
|
+
@field_remappings = {}
|
|
1835
|
+
end
|
|
1836
|
+
end
|
|
1837
|
+
|
|
1838
|
+
class NetworkToken < ::Stripe::StripeObject
|
|
1839
|
+
# Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
|
1840
|
+
attr_reader :used
|
|
1841
|
+
|
|
1842
|
+
def self.inner_class_types
|
|
1843
|
+
@inner_class_types = {}
|
|
1844
|
+
end
|
|
1845
|
+
|
|
1846
|
+
def self.field_remappings
|
|
1847
|
+
@field_remappings = {}
|
|
1848
|
+
end
|
|
1849
|
+
end
|
|
1850
|
+
|
|
1851
|
+
class ThreeDSecure < ::Stripe::StripeObject
|
|
1852
|
+
# For authenticated transactions: how the customer was authenticated by
|
|
1853
|
+
# the issuing bank.
|
|
1854
|
+
attr_reader :authentication_flow
|
|
1855
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field
|
|
1856
|
+
# indicating what degree of authentication was performed.
|
|
1857
|
+
attr_reader :electronic_commerce_indicator
|
|
1858
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
1859
|
+
attr_reader :exemption_indicator
|
|
1860
|
+
# Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
|
|
1861
|
+
# the outcome of Stripe's internal risk assessment.
|
|
1862
|
+
attr_reader :exemption_indicator_applied
|
|
1863
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
1864
|
+
attr_reader :result
|
|
1865
|
+
# Additional information about why 3D Secure succeeded or failed based
|
|
1866
|
+
# on the `result`.
|
|
1867
|
+
attr_reader :result_reason
|
|
1868
|
+
# The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
|
|
1869
|
+
# (dsTransId) for this payment.
|
|
1870
|
+
attr_reader :transaction_id
|
|
1871
|
+
# The version of 3D Secure that was used.
|
|
1872
|
+
attr_reader :version
|
|
1873
|
+
|
|
1874
|
+
def self.inner_class_types
|
|
1875
|
+
@inner_class_types = {}
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
def self.field_remappings
|
|
1879
|
+
@field_remappings = {}
|
|
1880
|
+
end
|
|
1881
|
+
end
|
|
1882
|
+
# The authorized amount.
|
|
1883
|
+
attr_reader :amount_authorized
|
|
1884
|
+
# Authorization code on the charge.
|
|
1885
|
+
attr_reader :authorization_code
|
|
1886
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1887
|
+
attr_reader :brand
|
|
1888
|
+
# Check results by Card networks on Card address and CVC at time of payment.
|
|
1889
|
+
attr_reader :checks
|
|
1890
|
+
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
1891
|
+
attr_reader :country
|
|
1892
|
+
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
1893
|
+
attr_reader :description
|
|
1894
|
+
# The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
|
|
1895
|
+
attr_reader :electronic_commerce_indicator
|
|
1896
|
+
# Two-digit number representing the card's expiration month.
|
|
1897
|
+
attr_reader :exp_month
|
|
1898
|
+
# Four-digit number representing the card's expiration year.
|
|
1899
|
+
attr_reader :exp_year
|
|
1900
|
+
# Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
1901
|
+
#
|
|
1902
|
+
# *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.*
|
|
1903
|
+
attr_reader :fingerprint
|
|
1904
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
1905
|
+
attr_reader :funding
|
|
1906
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
1907
|
+
attr_reader :iin
|
|
1908
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
1909
|
+
attr_reader :issuer
|
|
1910
|
+
# The last four digits of the card.
|
|
1911
|
+
attr_reader :last4
|
|
1912
|
+
# Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
1913
|
+
attr_reader :network
|
|
1914
|
+
# If this card has network token credentials, this contains the details of the network token credentials.
|
|
1915
|
+
attr_reader :network_token
|
|
1916
|
+
# This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
1917
|
+
attr_reader :network_transaction_id
|
|
1918
|
+
# Status of a card based on the card issuer.
|
|
1919
|
+
attr_reader :regulated_status
|
|
1920
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
1921
|
+
attr_reader :three_d_secure
|
|
1922
|
+
# Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
1923
|
+
attr_reader :transaction_link_id
|
|
1924
|
+
|
|
1925
|
+
def self.inner_class_types
|
|
1926
|
+
@inner_class_types = {
|
|
1927
|
+
checks: Checks,
|
|
1928
|
+
network_token: NetworkToken,
|
|
1929
|
+
three_d_secure: ThreeDSecure,
|
|
1930
|
+
}
|
|
1931
|
+
end
|
|
1932
|
+
|
|
1933
|
+
def self.field_remappings
|
|
1934
|
+
@field_remappings = {}
|
|
1935
|
+
end
|
|
1936
|
+
end
|
|
1937
|
+
# Attribute for field card
|
|
1938
|
+
attr_reader :card
|
|
1939
|
+
# The type of funding source used for this Link payment.
|
|
1940
|
+
attr_reader :type
|
|
1941
|
+
|
|
1942
|
+
def self.inner_class_types
|
|
1943
|
+
@inner_class_types = { card: Card }
|
|
1944
|
+
end
|
|
1945
|
+
|
|
1946
|
+
def self.field_remappings
|
|
1947
|
+
@field_remappings = {}
|
|
1948
|
+
end
|
|
1949
|
+
end
|
|
1624
1950
|
# Two-letter ISO code representing the funding source country beneath the Link payment.
|
|
1625
1951
|
# You could use this attribute to get a sense of international fees.
|
|
1626
1952
|
attr_reader :country
|
|
1627
1953
|
# The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
|
|
1628
1954
|
attr_reader :funding_source_group
|
|
1955
|
+
# Details about the funding sources used for this Link payment.
|
|
1956
|
+
attr_reader :funding_sources
|
|
1629
1957
|
|
|
1630
1958
|
def self.inner_class_types
|
|
1631
|
-
@inner_class_types = {}
|
|
1959
|
+
@inner_class_types = { funding_sources: FundingSource }
|
|
1632
1960
|
end
|
|
1633
1961
|
|
|
1634
1962
|
def self.field_remappings
|
|
@@ -1646,6 +1974,16 @@ module Stripe
|
|
|
1646
1974
|
end
|
|
1647
1975
|
end
|
|
1648
1976
|
|
|
1977
|
+
class Merpay < ::Stripe::StripeObject
|
|
1978
|
+
def self.inner_class_types
|
|
1979
|
+
@inner_class_types = {}
|
|
1980
|
+
end
|
|
1981
|
+
|
|
1982
|
+
def self.field_remappings
|
|
1983
|
+
@field_remappings = {}
|
|
1984
|
+
end
|
|
1985
|
+
end
|
|
1986
|
+
|
|
1649
1987
|
class Mobilepay < ::Stripe::StripeObject
|
|
1650
1988
|
class Card < ::Stripe::StripeObject
|
|
1651
1989
|
# Brand of the card used in the transaction
|
|
@@ -1912,6 +2250,8 @@ module Stripe
|
|
|
1912
2250
|
end
|
|
1913
2251
|
|
|
1914
2252
|
class Paypay < ::Stripe::StripeObject
|
|
2253
|
+
# Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
|
|
2254
|
+
attr_reader :fingerprint
|
|
1915
2255
|
# ID of the multi-use Mandate created by, or used to make, this PayPay payment.
|
|
1916
2256
|
attr_reader :mandate
|
|
1917
2257
|
|
|
@@ -2388,6 +2728,8 @@ module Stripe
|
|
|
2388
2728
|
attr_reader :ach_debit
|
|
2389
2729
|
# Attribute for field acss_debit
|
|
2390
2730
|
attr_reader :acss_debit
|
|
2731
|
+
# Attribute for field aeon_pay
|
|
2732
|
+
attr_reader :aeon_pay
|
|
2391
2733
|
# Attribute for field affirm
|
|
2392
2734
|
attr_reader :affirm
|
|
2393
2735
|
# Attribute for field afterpay_clearpay
|
|
@@ -2400,6 +2742,8 @@ module Stripe
|
|
|
2400
2742
|
attr_reader :amazon_pay
|
|
2401
2743
|
# Attribute for field au_becs_debit
|
|
2402
2744
|
attr_reader :au_becs_debit
|
|
2745
|
+
# Attribute for field au_pay
|
|
2746
|
+
attr_reader :au_pay
|
|
2403
2747
|
# Attribute for field bacs_debit
|
|
2404
2748
|
attr_reader :bacs_debit
|
|
2405
2749
|
# Attribute for field bancontact
|
|
@@ -2424,6 +2768,8 @@ module Stripe
|
|
|
2424
2768
|
attr_reader :crypto
|
|
2425
2769
|
# Attribute for field customer_balance
|
|
2426
2770
|
attr_reader :customer_balance
|
|
2771
|
+
# Attribute for field dbarai
|
|
2772
|
+
attr_reader :dbarai
|
|
2427
2773
|
# Attribute for field eps
|
|
2428
2774
|
attr_reader :eps
|
|
2429
2775
|
# Attribute for field fpx
|
|
@@ -2456,6 +2802,8 @@ module Stripe
|
|
|
2456
2802
|
attr_reader :link
|
|
2457
2803
|
# Attribute for field mb_way
|
|
2458
2804
|
attr_reader :mb_way
|
|
2805
|
+
# Attribute for field merpay
|
|
2806
|
+
attr_reader :merpay
|
|
2459
2807
|
# Attribute for field mobilepay
|
|
2460
2808
|
attr_reader :mobilepay
|
|
2461
2809
|
# Attribute for field multibanco
|
|
@@ -2546,12 +2894,14 @@ module Stripe
|
|
|
2546
2894
|
ach_credit_transfer: AchCreditTransfer,
|
|
2547
2895
|
ach_debit: AchDebit,
|
|
2548
2896
|
acss_debit: AcssDebit,
|
|
2897
|
+
aeon_pay: AeonPay,
|
|
2549
2898
|
affirm: Affirm,
|
|
2550
2899
|
afterpay_clearpay: AfterpayClearpay,
|
|
2551
2900
|
alipay: Alipay,
|
|
2552
2901
|
alma: Alma,
|
|
2553
2902
|
amazon_pay: AmazonPay,
|
|
2554
2903
|
au_becs_debit: AuBecsDebit,
|
|
2904
|
+
au_pay: AuPay,
|
|
2555
2905
|
bacs_debit: BacsDebit,
|
|
2556
2906
|
bancontact: Bancontact,
|
|
2557
2907
|
billie: Billie,
|
|
@@ -2564,6 +2914,7 @@ module Stripe
|
|
|
2564
2914
|
cashapp: Cashapp,
|
|
2565
2915
|
crypto: Crypto,
|
|
2566
2916
|
customer_balance: CustomerBalance,
|
|
2917
|
+
dbarai: Dbarai,
|
|
2567
2918
|
eps: Eps,
|
|
2568
2919
|
fpx: Fpx,
|
|
2569
2920
|
getflex: Getflex,
|
|
@@ -2580,6 +2931,7 @@ module Stripe
|
|
|
2580
2931
|
kr_card: KrCard,
|
|
2581
2932
|
link: Link,
|
|
2582
2933
|
mb_way: MbWay,
|
|
2934
|
+
merpay: Merpay,
|
|
2583
2935
|
mobilepay: Mobilepay,
|
|
2584
2936
|
multibanco: Multibanco,
|
|
2585
2937
|
naver_pay: NaverPay,
|
|
@@ -2444,6 +2444,14 @@ module Stripe
|
|
|
2444
2444
|
end
|
|
2445
2445
|
|
|
2446
2446
|
class Paypay < ::Stripe::StripeObject
|
|
2447
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2448
|
+
#
|
|
2449
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2450
|
+
#
|
|
2451
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2452
|
+
#
|
|
2453
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2454
|
+
attr_reader :setup_future_usage
|
|
2447
2455
|
# A reference to the merchant subscription this payment corresponds to.
|
|
2448
2456
|
attr_reader :subscription_reference
|
|
2449
2457
|
|
|
@@ -2687,6 +2695,25 @@ module Stripe
|
|
|
2687
2695
|
end
|
|
2688
2696
|
end
|
|
2689
2697
|
|
|
2698
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
2699
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2700
|
+
#
|
|
2701
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2702
|
+
#
|
|
2703
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2704
|
+
#
|
|
2705
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2706
|
+
attr_reader :setup_future_usage
|
|
2707
|
+
|
|
2708
|
+
def self.inner_class_types
|
|
2709
|
+
@inner_class_types = {}
|
|
2710
|
+
end
|
|
2711
|
+
|
|
2712
|
+
def self.field_remappings
|
|
2713
|
+
@field_remappings = {}
|
|
2714
|
+
end
|
|
2715
|
+
end
|
|
2716
|
+
|
|
2690
2717
|
class Sunbit < ::Stripe::StripeObject
|
|
2691
2718
|
# Controls when the funds will be captured from the customer's account.
|
|
2692
2719
|
attr_reader :capture_method
|
|
@@ -2959,6 +2986,8 @@ module Stripe
|
|
|
2959
2986
|
attr_reader :sequra
|
|
2960
2987
|
# Attribute for field sofort
|
|
2961
2988
|
attr_reader :sofort
|
|
2989
|
+
# Attribute for field stripe_balance
|
|
2990
|
+
attr_reader :stripe_balance
|
|
2962
2991
|
# Attribute for field sunbit
|
|
2963
2992
|
attr_reader :sunbit
|
|
2964
2993
|
# Attribute for field swish
|
|
@@ -3017,6 +3046,7 @@ module Stripe
|
|
|
3017
3046
|
sepa_debit: SepaDebit,
|
|
3018
3047
|
sequra: Sequra,
|
|
3019
3048
|
sofort: Sofort,
|
|
3049
|
+
stripe_balance: StripeBalance,
|
|
3020
3050
|
sunbit: Sunbit,
|
|
3021
3051
|
swish: Swish,
|
|
3022
3052
|
twint: Twint,
|