stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3
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 +28 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- 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/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +46 -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/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- 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 +58 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -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 +42 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- 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 +19 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
- data/lib/stripe/params/setup_intent_create_params.rb +50 -1
- data/lib/stripe/params/setup_intent_update_params.rb +34 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -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/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +27 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +373 -5
- data/lib/stripe/resources/checkout/session.rb +32 -0
- data/lib/stripe/resources/confirmation_token.rb +103 -3
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +151 -2
- data/lib/stripe/resources/payment_intent.rb +126 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +103 -3
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +151 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +21 -2
- data/lib/stripe/resources/setup_intent.rb +38 -2
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- 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/terminal/reader.rb +18 -1
- 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/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -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/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- 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/core/vault/network_token_service.rb +1 -0
- 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/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_event_notification_handler.rb +28 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +5856 -213
- metadata +32 -2
|
@@ -138,6 +138,50 @@ module Stripe
|
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
+
class DisputeDetails < ::Stripe::StripeObject
|
|
142
|
+
class Reinstated < ::Stripe::StripeObject
|
|
143
|
+
# 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).
|
|
144
|
+
attr_reader :currency
|
|
145
|
+
# 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.
|
|
146
|
+
attr_reader :value
|
|
147
|
+
|
|
148
|
+
def self.inner_class_types
|
|
149
|
+
@inner_class_types = {}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self.field_remappings
|
|
153
|
+
@field_remappings = {}
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class Withdrawn < ::Stripe::StripeObject
|
|
158
|
+
# 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).
|
|
159
|
+
attr_reader :currency
|
|
160
|
+
# 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.
|
|
161
|
+
attr_reader :value
|
|
162
|
+
|
|
163
|
+
def self.inner_class_types
|
|
164
|
+
@inner_class_types = {}
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def self.field_remappings
|
|
168
|
+
@field_remappings = {}
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
# 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.
|
|
172
|
+
attr_reader :reinstated
|
|
173
|
+
# 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.
|
|
174
|
+
attr_reader :withdrawn
|
|
175
|
+
|
|
176
|
+
def self.inner_class_types
|
|
177
|
+
@inner_class_types = { reinstated: Reinstated, withdrawn: Withdrawn }
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def self.field_remappings
|
|
181
|
+
@field_remappings = {}
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
141
185
|
class PaymentMethodDetails < ::Stripe::StripeObject
|
|
142
186
|
class AchCreditTransfer < ::Stripe::StripeObject
|
|
143
187
|
# Account number to transfer funds to.
|
|
@@ -206,6 +250,16 @@ module Stripe
|
|
|
206
250
|
end
|
|
207
251
|
end
|
|
208
252
|
|
|
253
|
+
class AeonPay < ::Stripe::StripeObject
|
|
254
|
+
def self.inner_class_types
|
|
255
|
+
@inner_class_types = {}
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
def self.field_remappings
|
|
259
|
+
@field_remappings = {}
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
209
263
|
class Affirm < ::Stripe::StripeObject
|
|
210
264
|
# ID of the location that this reader is assigned to.
|
|
211
265
|
attr_reader :location
|
|
@@ -356,6 +410,16 @@ module Stripe
|
|
|
356
410
|
end
|
|
357
411
|
end
|
|
358
412
|
|
|
413
|
+
class AuPay < ::Stripe::StripeObject
|
|
414
|
+
def self.inner_class_types
|
|
415
|
+
@inner_class_types = {}
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
def self.field_remappings
|
|
419
|
+
@field_remappings = {}
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
|
|
359
423
|
class BacsDebit < ::Stripe::StripeObject
|
|
360
424
|
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
361
425
|
attr_reader :expected_debit_date
|
|
@@ -503,7 +567,7 @@ module Stripe
|
|
|
503
567
|
class Checks < ::Stripe::StripeObject
|
|
504
568
|
# If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
505
569
|
attr_reader :address_line1_check
|
|
506
|
-
# If you provide
|
|
570
|
+
# If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
507
571
|
attr_reader :address_postal_code_check
|
|
508
572
|
# If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
509
573
|
attr_reader :cvc_check
|
|
@@ -701,6 +765,35 @@ module Stripe
|
|
|
701
765
|
end
|
|
702
766
|
|
|
703
767
|
class CardPresent < ::Stripe::StripeObject
|
|
768
|
+
class Fleet < ::Stripe::StripeObject
|
|
769
|
+
class TransactionDatum < ::Stripe::StripeObject
|
|
770
|
+
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
771
|
+
attr_reader :prompt
|
|
772
|
+
# Whether the collected value is printed on the receipt.
|
|
773
|
+
attr_reader :receipt_behavior
|
|
774
|
+
# The value collected for this Fleet prompt.
|
|
775
|
+
attr_reader :value
|
|
776
|
+
|
|
777
|
+
def self.inner_class_types
|
|
778
|
+
@inner_class_types = {}
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
def self.field_remappings
|
|
782
|
+
@field_remappings = {}
|
|
783
|
+
end
|
|
784
|
+
end
|
|
785
|
+
# Fleet prompts and values collected for this transaction.
|
|
786
|
+
attr_reader :transaction_data
|
|
787
|
+
|
|
788
|
+
def self.inner_class_types
|
|
789
|
+
@inner_class_types = { transaction_data: TransactionDatum }
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
def self.field_remappings
|
|
793
|
+
@field_remappings = {}
|
|
794
|
+
end
|
|
795
|
+
end
|
|
796
|
+
|
|
704
797
|
class Multicapture < ::Stripe::StripeObject
|
|
705
798
|
# Indicates whether or not multiple captures are supported.
|
|
706
799
|
attr_reader :status
|
|
@@ -743,6 +836,20 @@ module Stripe
|
|
|
743
836
|
end
|
|
744
837
|
|
|
745
838
|
class Receipt < ::Stripe::StripeObject
|
|
839
|
+
class CardholderMessage < ::Stripe::StripeObject
|
|
840
|
+
# Where the message must be printed or displayed. An empty list means the message must not be shown.
|
|
841
|
+
attr_reader :destinations
|
|
842
|
+
# The message from the card issuer, such as the remaining balance.
|
|
843
|
+
attr_reader :value
|
|
844
|
+
|
|
845
|
+
def self.inner_class_types
|
|
846
|
+
@inner_class_types = {}
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
def self.field_remappings
|
|
850
|
+
@field_remappings = {}
|
|
851
|
+
end
|
|
852
|
+
end
|
|
746
853
|
# The type of account being debited or credited
|
|
747
854
|
attr_reader :account_type
|
|
748
855
|
# The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
|
|
@@ -753,6 +860,8 @@ module Stripe
|
|
|
753
860
|
attr_reader :authorization_code
|
|
754
861
|
# EMV tag 8A. A code returned by the card issuer.
|
|
755
862
|
attr_reader :authorization_response_code
|
|
863
|
+
# A message from the card issuer to show to the cardholder, and where it must be shown.
|
|
864
|
+
attr_reader :cardholder_message
|
|
756
865
|
# Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
|
757
866
|
attr_reader :cardholder_verification_method
|
|
758
867
|
# Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
|
|
@@ -763,7 +872,7 @@ module Stripe
|
|
|
763
872
|
attr_reader :transaction_status_information
|
|
764
873
|
|
|
765
874
|
def self.inner_class_types
|
|
766
|
-
@inner_class_types = {}
|
|
875
|
+
@inner_class_types = { cardholder_message: CardholderMessage }
|
|
767
876
|
end
|
|
768
877
|
|
|
769
878
|
def self.field_remappings
|
|
@@ -807,6 +916,8 @@ module Stripe
|
|
|
807
916
|
#
|
|
808
917
|
# *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.*
|
|
809
918
|
attr_reader :fingerprint
|
|
919
|
+
# Attribute for field fleet
|
|
920
|
+
attr_reader :fleet
|
|
810
921
|
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
811
922
|
attr_reader :funding
|
|
812
923
|
# 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.
|
|
@@ -850,6 +961,7 @@ module Stripe
|
|
|
850
961
|
|
|
851
962
|
def self.inner_class_types
|
|
852
963
|
@inner_class_types = {
|
|
964
|
+
fleet: Fleet,
|
|
853
965
|
multicapture: Multicapture,
|
|
854
966
|
offline: Offline,
|
|
855
967
|
reauthorization: Reauthorization,
|
|
@@ -938,6 +1050,16 @@ module Stripe
|
|
|
938
1050
|
end
|
|
939
1051
|
end
|
|
940
1052
|
|
|
1053
|
+
class Dbarai < ::Stripe::StripeObject
|
|
1054
|
+
def self.inner_class_types
|
|
1055
|
+
@inner_class_types = {}
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
def self.field_remappings
|
|
1059
|
+
@field_remappings = {}
|
|
1060
|
+
end
|
|
1061
|
+
end
|
|
1062
|
+
|
|
941
1063
|
class Eps < ::Stripe::StripeObject
|
|
942
1064
|
# 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`
|
|
943
1065
|
attr_reader :bank
|
|
@@ -1323,6 +1445,16 @@ module Stripe
|
|
|
1323
1445
|
end
|
|
1324
1446
|
end
|
|
1325
1447
|
|
|
1448
|
+
class Merpay < ::Stripe::StripeObject
|
|
1449
|
+
def self.inner_class_types
|
|
1450
|
+
@inner_class_types = {}
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
def self.field_remappings
|
|
1454
|
+
@field_remappings = {}
|
|
1455
|
+
end
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1326
1458
|
class Mobilepay < ::Stripe::StripeObject
|
|
1327
1459
|
class Card < ::Stripe::StripeObject
|
|
1328
1460
|
# Brand of the card used in the transaction
|
|
@@ -1602,6 +1734,8 @@ module Stripe
|
|
|
1602
1734
|
end
|
|
1603
1735
|
|
|
1604
1736
|
class Paypay < ::Stripe::StripeObject
|
|
1737
|
+
# Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
|
|
1738
|
+
attr_reader :fingerprint
|
|
1605
1739
|
# ID of the multi-use Mandate created by, or used to make, this PayPay payment.
|
|
1606
1740
|
attr_reader :mandate
|
|
1607
1741
|
|
|
@@ -2076,6 +2210,8 @@ module Stripe
|
|
|
2076
2210
|
attr_reader :ach_debit
|
|
2077
2211
|
# Attribute for field acss_debit
|
|
2078
2212
|
attr_reader :acss_debit
|
|
2213
|
+
# Attribute for field aeon_pay
|
|
2214
|
+
attr_reader :aeon_pay
|
|
2079
2215
|
# Attribute for field affirm
|
|
2080
2216
|
attr_reader :affirm
|
|
2081
2217
|
# Attribute for field afterpay_clearpay
|
|
@@ -2088,6 +2224,8 @@ module Stripe
|
|
|
2088
2224
|
attr_reader :amazon_pay
|
|
2089
2225
|
# Attribute for field au_becs_debit
|
|
2090
2226
|
attr_reader :au_becs_debit
|
|
2227
|
+
# Attribute for field au_pay
|
|
2228
|
+
attr_reader :au_pay
|
|
2091
2229
|
# Attribute for field bacs_debit
|
|
2092
2230
|
attr_reader :bacs_debit
|
|
2093
2231
|
# Attribute for field bancontact
|
|
@@ -2118,6 +2256,8 @@ module Stripe
|
|
|
2118
2256
|
attr_reader :custom
|
|
2119
2257
|
# Attribute for field customer_balance
|
|
2120
2258
|
attr_reader :customer_balance
|
|
2259
|
+
# Attribute for field dbarai
|
|
2260
|
+
attr_reader :dbarai
|
|
2121
2261
|
# Attribute for field eps
|
|
2122
2262
|
attr_reader :eps
|
|
2123
2263
|
# Attribute for field fpx
|
|
@@ -2150,6 +2290,8 @@ module Stripe
|
|
|
2150
2290
|
attr_reader :link
|
|
2151
2291
|
# Attribute for field mb_way
|
|
2152
2292
|
attr_reader :mb_way
|
|
2293
|
+
# Attribute for field merpay
|
|
2294
|
+
attr_reader :merpay
|
|
2153
2295
|
# Attribute for field mobilepay
|
|
2154
2296
|
attr_reader :mobilepay
|
|
2155
2297
|
# Attribute for field momo
|
|
@@ -2242,12 +2384,14 @@ module Stripe
|
|
|
2242
2384
|
ach_credit_transfer: AchCreditTransfer,
|
|
2243
2385
|
ach_debit: AchDebit,
|
|
2244
2386
|
acss_debit: AcssDebit,
|
|
2387
|
+
aeon_pay: AeonPay,
|
|
2245
2388
|
affirm: Affirm,
|
|
2246
2389
|
afterpay_clearpay: AfterpayClearpay,
|
|
2247
2390
|
alipay: Alipay,
|
|
2248
2391
|
alma: Alma,
|
|
2249
2392
|
amazon_pay: AmazonPay,
|
|
2250
2393
|
au_becs_debit: AuBecsDebit,
|
|
2394
|
+
au_pay: AuPay,
|
|
2251
2395
|
bacs_debit: BacsDebit,
|
|
2252
2396
|
bancontact: Bancontact,
|
|
2253
2397
|
billie: Billie,
|
|
@@ -2262,6 +2406,7 @@ module Stripe
|
|
|
2262
2406
|
crypto: Crypto,
|
|
2263
2407
|
custom: Custom,
|
|
2264
2408
|
customer_balance: CustomerBalance,
|
|
2409
|
+
dbarai: Dbarai,
|
|
2265
2410
|
eps: Eps,
|
|
2266
2411
|
fpx: Fpx,
|
|
2267
2412
|
getflex: Getflex,
|
|
@@ -2278,6 +2423,7 @@ module Stripe
|
|
|
2278
2423
|
kr_card: KrCard,
|
|
2279
2424
|
link: Link,
|
|
2280
2425
|
mb_way: MbWay,
|
|
2426
|
+
merpay: Merpay,
|
|
2281
2427
|
mobilepay: Mobilepay,
|
|
2282
2428
|
momo: Momo,
|
|
2283
2429
|
multibanco: Multibanco,
|
|
@@ -2467,6 +2613,8 @@ module Stripe
|
|
|
2467
2613
|
attr_reader :customer_presence
|
|
2468
2614
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2469
2615
|
attr_reader :description
|
|
2616
|
+
# Summary information about disputes associated with this Payment Attempt Record.
|
|
2617
|
+
attr_reader :dispute_details
|
|
2470
2618
|
# Unique identifier for the object.
|
|
2471
2619
|
attr_reader :id
|
|
2472
2620
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
@@ -2666,6 +2814,7 @@ module Stripe
|
|
|
2666
2814
|
amount_refunded: AmountRefunded,
|
|
2667
2815
|
amount_requested: AmountRequested,
|
|
2668
2816
|
customer_details: CustomerDetails,
|
|
2817
|
+
dispute_details: DisputeDetails,
|
|
2669
2818
|
payment_method_details: PaymentMethodDetails,
|
|
2670
2819
|
processor_details: ProcessorDetails,
|
|
2671
2820
|
shipping_details: ShippingDetails,
|
|
@@ -1521,7 +1521,7 @@ module Stripe
|
|
|
1521
1521
|
end
|
|
1522
1522
|
|
|
1523
1523
|
class VerifyWithMicrodeposits < ::Stripe::StripeObject
|
|
1524
|
-
# The timestamp when the microdeposits are expected to land.
|
|
1524
|
+
# The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
|
|
1525
1525
|
attr_reader :arrival_date
|
|
1526
1526
|
# The URL for the hosted verification page, which allows customers to verify their bank account.
|
|
1527
1527
|
attr_reader :hosted_verification_url
|
|
@@ -1608,6 +1608,29 @@ module Stripe
|
|
|
1608
1608
|
@field_remappings = {}
|
|
1609
1609
|
end
|
|
1610
1610
|
end
|
|
1611
|
+
|
|
1612
|
+
class WechatPayRedirectToMiniProgram < ::Stripe::StripeObject
|
|
1613
|
+
# Mini Program ID registered on WeChat Open Platform
|
|
1614
|
+
attr_reader :app_id
|
|
1615
|
+
# Random string
|
|
1616
|
+
attr_reader :nonce_str
|
|
1617
|
+
# Unique trading ID assigned by WeChat Pay
|
|
1618
|
+
attr_reader :prepay_id
|
|
1619
|
+
# Signature
|
|
1620
|
+
attr_reader :sign
|
|
1621
|
+
# Signature type
|
|
1622
|
+
attr_reader :sign_type
|
|
1623
|
+
# Current time in epoch format
|
|
1624
|
+
attr_reader :timestamp
|
|
1625
|
+
|
|
1626
|
+
def self.inner_class_types
|
|
1627
|
+
@inner_class_types = {}
|
|
1628
|
+
end
|
|
1629
|
+
|
|
1630
|
+
def self.field_remappings
|
|
1631
|
+
@field_remappings = {}
|
|
1632
|
+
end
|
|
1633
|
+
end
|
|
1611
1634
|
# Attribute for field alipay_handle_redirect
|
|
1612
1635
|
attr_reader :alipay_handle_redirect
|
|
1613
1636
|
# Attribute for field blik_authorize
|
|
@@ -1656,6 +1679,8 @@ module Stripe
|
|
|
1656
1679
|
attr_reader :wechat_pay_redirect_to_android_app
|
|
1657
1680
|
# Attribute for field wechat_pay_redirect_to_ios_app
|
|
1658
1681
|
attr_reader :wechat_pay_redirect_to_ios_app
|
|
1682
|
+
# Attribute for field wechat_pay_redirect_to_mini_program
|
|
1683
|
+
attr_reader :wechat_pay_redirect_to_mini_program
|
|
1659
1684
|
|
|
1660
1685
|
def self.inner_class_types
|
|
1661
1686
|
@inner_class_types = {
|
|
@@ -1681,6 +1706,7 @@ module Stripe
|
|
|
1681
1706
|
wechat_pay_handle_app_redirect: WechatPayHandleAppRedirect,
|
|
1682
1707
|
wechat_pay_redirect_to_android_app: WechatPayRedirectToAndroidApp,
|
|
1683
1708
|
wechat_pay_redirect_to_ios_app: WechatPayRedirectToIosApp,
|
|
1709
|
+
wechat_pay_redirect_to_mini_program: WechatPayRedirectToMiniProgram,
|
|
1684
1710
|
}
|
|
1685
1711
|
end
|
|
1686
1712
|
|
|
@@ -3337,6 +3363,19 @@ module Stripe
|
|
|
3337
3363
|
end
|
|
3338
3364
|
|
|
3339
3365
|
class BacsDebit < ::Stripe::StripeObject
|
|
3366
|
+
class FinancialConnections < ::Stripe::StripeObject
|
|
3367
|
+
# Attribute for field return_url
|
|
3368
|
+
attr_reader :return_url
|
|
3369
|
+
|
|
3370
|
+
def self.inner_class_types
|
|
3371
|
+
@inner_class_types = {}
|
|
3372
|
+
end
|
|
3373
|
+
|
|
3374
|
+
def self.field_remappings
|
|
3375
|
+
@field_remappings = {}
|
|
3376
|
+
end
|
|
3377
|
+
end
|
|
3378
|
+
|
|
3340
3379
|
class MandateOptions < ::Stripe::StripeObject
|
|
3341
3380
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
3342
3381
|
attr_reader :reference_prefix
|
|
@@ -3349,6 +3388,8 @@ module Stripe
|
|
|
3349
3388
|
@field_remappings = {}
|
|
3350
3389
|
end
|
|
3351
3390
|
end
|
|
3391
|
+
# Attribute for field financial_connections
|
|
3392
|
+
attr_reader :financial_connections
|
|
3352
3393
|
# Attribute for field mandate_options
|
|
3353
3394
|
attr_reader :mandate_options
|
|
3354
3395
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -3365,7 +3406,10 @@ module Stripe
|
|
|
3365
3406
|
attr_reader :verification_method
|
|
3366
3407
|
|
|
3367
3408
|
def self.inner_class_types
|
|
3368
|
-
@inner_class_types = {
|
|
3409
|
+
@inner_class_types = {
|
|
3410
|
+
financial_connections: FinancialConnections,
|
|
3411
|
+
mandate_options: MandateOptions,
|
|
3412
|
+
}
|
|
3369
3413
|
end
|
|
3370
3414
|
|
|
3371
3415
|
def self.field_remappings
|
|
@@ -3620,6 +3664,43 @@ module Stripe
|
|
|
3620
3664
|
end
|
|
3621
3665
|
end
|
|
3622
3666
|
|
|
3667
|
+
class PaymentDetails < ::Stripe::StripeObject
|
|
3668
|
+
class MoneyServices < ::Stripe::StripeObject
|
|
3669
|
+
class AccountFunding < ::Stripe::StripeObject
|
|
3670
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
3671
|
+
attr_reader :digital_asset_category
|
|
3672
|
+
|
|
3673
|
+
def self.inner_class_types
|
|
3674
|
+
@inner_class_types = {}
|
|
3675
|
+
end
|
|
3676
|
+
|
|
3677
|
+
def self.field_remappings
|
|
3678
|
+
@field_remappings = {}
|
|
3679
|
+
end
|
|
3680
|
+
end
|
|
3681
|
+
# Attribute for field account_funding
|
|
3682
|
+
attr_reader :account_funding
|
|
3683
|
+
|
|
3684
|
+
def self.inner_class_types
|
|
3685
|
+
@inner_class_types = { account_funding: AccountFunding }
|
|
3686
|
+
end
|
|
3687
|
+
|
|
3688
|
+
def self.field_remappings
|
|
3689
|
+
@field_remappings = {}
|
|
3690
|
+
end
|
|
3691
|
+
end
|
|
3692
|
+
# Attribute for field money_services
|
|
3693
|
+
attr_reader :money_services
|
|
3694
|
+
|
|
3695
|
+
def self.inner_class_types
|
|
3696
|
+
@inner_class_types = { money_services: MoneyServices }
|
|
3697
|
+
end
|
|
3698
|
+
|
|
3699
|
+
def self.field_remappings
|
|
3700
|
+
@field_remappings = {}
|
|
3701
|
+
end
|
|
3702
|
+
end
|
|
3703
|
+
|
|
3623
3704
|
class StatementDetails < ::Stripe::StripeObject
|
|
3624
3705
|
class Address < ::Stripe::StripeObject
|
|
3625
3706
|
# City, district, suburb, town, or village.
|
|
@@ -3672,6 +3753,8 @@ module Stripe
|
|
|
3672
3753
|
attr_reader :mandate_options
|
|
3673
3754
|
# Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
|
|
3674
3755
|
attr_reader :network
|
|
3756
|
+
# Attribute for field payment_details
|
|
3757
|
+
attr_reader :payment_details
|
|
3675
3758
|
# Indicates whether Stripe may synchronously request a real-time card account update for this confirmation. `if_available` allows the update; `never` opts out. Defaults to `if_available` and is omitted from the response unless explicitly set on this confirmation. This does not affect batch Card Account Updater.
|
|
3676
3759
|
attr_reader :request_card_account_update
|
|
3677
3760
|
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
@@ -3716,6 +3799,7 @@ module Stripe
|
|
|
3716
3799
|
capture_delay: CaptureDelay,
|
|
3717
3800
|
installments: Installments,
|
|
3718
3801
|
mandate_options: MandateOptions,
|
|
3802
|
+
payment_details: PaymentDetails,
|
|
3719
3803
|
statement_details: StatementDetails,
|
|
3720
3804
|
}
|
|
3721
3805
|
end
|
|
@@ -3795,6 +3879,43 @@ module Stripe
|
|
|
3795
3879
|
end
|
|
3796
3880
|
end
|
|
3797
3881
|
|
|
3882
|
+
class PaymentDetails < ::Stripe::StripeObject
|
|
3883
|
+
class MoneyServices < ::Stripe::StripeObject
|
|
3884
|
+
class AccountFunding < ::Stripe::StripeObject
|
|
3885
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
3886
|
+
attr_reader :digital_asset_category
|
|
3887
|
+
|
|
3888
|
+
def self.inner_class_types
|
|
3889
|
+
@inner_class_types = {}
|
|
3890
|
+
end
|
|
3891
|
+
|
|
3892
|
+
def self.field_remappings
|
|
3893
|
+
@field_remappings = {}
|
|
3894
|
+
end
|
|
3895
|
+
end
|
|
3896
|
+
# Attribute for field account_funding
|
|
3897
|
+
attr_reader :account_funding
|
|
3898
|
+
|
|
3899
|
+
def self.inner_class_types
|
|
3900
|
+
@inner_class_types = { account_funding: AccountFunding }
|
|
3901
|
+
end
|
|
3902
|
+
|
|
3903
|
+
def self.field_remappings
|
|
3904
|
+
@field_remappings = {}
|
|
3905
|
+
end
|
|
3906
|
+
end
|
|
3907
|
+
# Attribute for field money_services
|
|
3908
|
+
attr_reader :money_services
|
|
3909
|
+
|
|
3910
|
+
def self.inner_class_types
|
|
3911
|
+
@inner_class_types = { money_services: MoneyServices }
|
|
3912
|
+
end
|
|
3913
|
+
|
|
3914
|
+
def self.field_remappings
|
|
3915
|
+
@field_remappings = {}
|
|
3916
|
+
end
|
|
3917
|
+
end
|
|
3918
|
+
|
|
3798
3919
|
class Routing < ::Stripe::StripeObject
|
|
3799
3920
|
# Requested routing priority
|
|
3800
3921
|
attr_reader :requested_priority
|
|
@@ -3819,6 +3940,8 @@ module Stripe
|
|
|
3819
3940
|
attr_reader :capture_method
|
|
3820
3941
|
# Fleet prompting data for this payment.
|
|
3821
3942
|
attr_reader :fleet
|
|
3943
|
+
# Attribute for field payment_details
|
|
3944
|
+
attr_reader :payment_details
|
|
3822
3945
|
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
3823
3946
|
attr_reader :request_extended_authorization
|
|
3824
3947
|
# Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
|
|
@@ -3835,6 +3958,7 @@ module Stripe
|
|
|
3835
3958
|
aade_data: AadeData,
|
|
3836
3959
|
capture_delay: CaptureDelay,
|
|
3837
3960
|
fleet: Fleet,
|
|
3961
|
+
payment_details: PaymentDetails,
|
|
3838
3962
|
routing: Routing,
|
|
3839
3963
|
}
|
|
3840
3964
|
end
|
|
@@ -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
|