stripe 18.1.0.pre.beta.1 → 18.1.0
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/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +0 -34
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -63
- data/lib/stripe/event_types.rb +0 -209
- data/lib/stripe/object_types.rb +0 -49
- data/lib/stripe/params/account_create_params.rb +48 -329
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_person_create_params.rb +10 -10
- data/lib/stripe/params/account_person_update_params.rb +10 -10
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +47 -291
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/charge_capture_params.rb +2 -1650
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +3 -1651
- data/lib/stripe/params/checkout/session_create_params.rb +41 -167
- data/lib/stripe/params/checkout/session_update_params.rb +12 -152
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/coupon_create_params.rb +2 -18
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/dispute_update_params.rb +4 -13
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +4 -33
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +29 -110
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -855
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +9 -41
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +7 -39
- data/lib/stripe/params/invoice_line_item_update_params.rb +8 -40
- data/lib/stripe/params/invoice_list_params.rb +2 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_update_params.rb +26 -107
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -12
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +13 -1639
- data/lib/stripe/params/payment_intent_confirm_params.rb +52 -3012
- data/lib/stripe/params/payment_intent_create_params.rb +68 -3028
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +11 -32
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +57 -3048
- data/lib/stripe/params/payment_link_create_params.rb +19 -19
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +38 -143
- data/lib/stripe/params/payment_method_configuration_update_params.rb +38 -143
- data/lib/stripe/params/payment_method_create_params.rb +4 -81
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -22
- data/lib/stripe/params/product_create_params.rb +7 -7
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +4 -4
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +7 -805
- data/lib/stripe/params/quote_list_params.rb +2 -6
- data/lib/stripe/params/quote_update_params.rb +8 -813
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +9 -164
- data/lib/stripe/params/setup_intent_create_params.rb +15 -170
- data/lib/stripe/params/setup_intent_update_params.rb +11 -166
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +39 -264
- data/lib/stripe/params/subscription_item_create_params.rb +12 -56
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +11 -39
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +20 -178
- data/lib/stripe/params/subscription_schedule_update_params.rb +20 -178
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +36 -245
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/token_create_params.rb +22 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +3 -7
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +2 -9
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +2 -9
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -27
- data/lib/stripe/params/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/v2/core/account_create_params.rb +46 -271
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +31 -21
- data/lib/stripe/params/v2/core/account_update_params.rb +50 -268
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +0 -146
- data/lib/stripe/resources/account.rb +27 -208
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_session.rb +2 -83
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +2 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +1 -1
- data/lib/stripe/resources/billing/credit_grant.rb +2 -2
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +46 -248
- data/lib/stripe/resources/checkout/session.rb +23 -123
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -144
- data/lib/stripe/resources/coupon.rb +4 -29
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -19
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +3 -3
- data/lib/stripe/resources/dispute.rb +5 -27
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -65
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -28
- data/lib/stripe/resources/financial_connections/session.rb +3 -67
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/verification_report.rb +9 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +49 -166
- data/lib/stripe/resources/invoice_item.rb +6 -8
- data/lib/stripe/resources/invoice_line_item.rb +6 -44
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +12 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +12 -14
- data/lib/stripe/resources/line_item.rb +4 -69
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +0 -43
- data/lib/stripe/resources/payment_attempt_record.rb +79 -201
- data/lib/stripe/resources/payment_intent.rb +59 -751
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +13 -148
- data/lib/stripe/resources/payment_method_configuration.rb +4 -174
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +81 -201
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +23 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -26
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +14 -581
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -21
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -65
- data/lib/stripe/resources/setup_intent.rb +20 -107
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -46
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +23 -221
- data/lib/stripe/resources/subscription_item.rb +8 -27
- data/lib/stripe/resources/subscription_schedule.rb +11 -204
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -18
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +5 -7
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -35
- data/lib/stripe/resources/treasury/received_credit.rb +10 -40
- data/lib/stripe/resources/treasury/received_debit.rb +7 -39
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/core/account.rb +133 -789
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +0 -100
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -51
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +31 -2
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe.rbi +17422 -76304
- metadata +4 -301
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_cancel_params.rb +0 -13
- data/lib/stripe/params/order_create_params.rb +0 -2061
- data/lib/stripe/params/order_line_item_list_params.rb +0 -22
- data/lib/stripe/params/order_list_line_items_params.rb +0 -22
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_reopen_params.rb +0 -13
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2065
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -79
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -987
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -521
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
|
@@ -8,11 +8,11 @@ module Stripe
|
|
|
8
8
|
# see the history of payment attempts for a particular session.
|
|
9
9
|
#
|
|
10
10
|
# A PaymentIntent transitions through
|
|
11
|
-
# [multiple statuses](https://stripe.com/
|
|
11
|
+
# [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
|
|
12
12
|
# throughout its lifetime as it interfaces with Stripe.js to perform
|
|
13
13
|
# authentication flows and ultimately creates at most one successful charge.
|
|
14
14
|
#
|
|
15
|
-
# Related guide: [Payment Intents API](https://stripe.com/
|
|
15
|
+
# Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
|
|
16
16
|
class PaymentIntent < APIResource
|
|
17
17
|
extend Stripe::APIOperations::Create
|
|
18
18
|
extend Stripe::APIOperations::List
|
|
@@ -29,7 +29,7 @@ module Stripe
|
|
|
29
29
|
|
|
30
30
|
class AmountDetails < ::Stripe::StripeObject
|
|
31
31
|
class Shipping < ::Stripe::StripeObject
|
|
32
|
-
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/
|
|
32
|
+
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
33
33
|
attr_reader :amount
|
|
34
34
|
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
35
35
|
attr_reader :from_postal_code
|
|
@@ -46,7 +46,7 @@ module Stripe
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
class Tax < ::Stripe::StripeObject
|
|
49
|
-
# The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
49
|
+
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
50
50
|
#
|
|
51
51
|
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
52
52
|
attr_reader :total_tax_amount
|
|
@@ -72,11 +72,11 @@ module Stripe
|
|
|
72
72
|
@field_remappings = {}
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
75
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
76
76
|
#
|
|
77
77
|
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
78
78
|
attr_reader :discount_amount
|
|
79
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of
|
|
79
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
80
80
|
attr_reader :line_items
|
|
81
81
|
# Attribute for field shipping
|
|
82
82
|
attr_reader :shipping
|
|
@@ -97,7 +97,7 @@ module Stripe
|
|
|
97
97
|
class AutomaticPaymentMethods < ::Stripe::StripeObject
|
|
98
98
|
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
99
99
|
#
|
|
100
|
-
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/
|
|
100
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
101
101
|
attr_reader :allow_redirects
|
|
102
102
|
# Automatically calculates compatible payment methods
|
|
103
103
|
attr_reader :enabled
|
|
@@ -114,7 +114,7 @@ module Stripe
|
|
|
114
114
|
class Hooks < ::Stripe::StripeObject
|
|
115
115
|
class Inputs < ::Stripe::StripeObject
|
|
116
116
|
class Tax < ::Stripe::StripeObject
|
|
117
|
-
# The [TaxCalculation](https://stripe.com/
|
|
117
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
118
118
|
attr_reader :calculation
|
|
119
119
|
|
|
120
120
|
def self.inner_class_types
|
|
@@ -149,15 +149,15 @@ module Stripe
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
class LastPaymentError < ::Stripe::StripeObject
|
|
152
|
-
# For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/
|
|
152
|
+
# For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
|
|
153
153
|
attr_reader :advice_code
|
|
154
154
|
# For card errors, the ID of the failed charge.
|
|
155
155
|
attr_reader :charge
|
|
156
|
-
# For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/
|
|
156
|
+
# For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
|
|
157
157
|
attr_reader :code
|
|
158
|
-
# For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/
|
|
158
|
+
# For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
|
|
159
159
|
attr_reader :decline_code
|
|
160
|
-
# A URL to more information about the [error code](https://stripe.com/
|
|
160
|
+
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
161
161
|
attr_reader :doc_url
|
|
162
162
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
163
163
|
attr_reader :message
|
|
@@ -173,17 +173,17 @@ module Stripe
|
|
|
173
173
|
# see the history of payment attempts for a particular session.
|
|
174
174
|
#
|
|
175
175
|
# A PaymentIntent transitions through
|
|
176
|
-
# [multiple statuses](
|
|
176
|
+
# [multiple statuses](/payments/paymentintents/lifecycle)
|
|
177
177
|
# throughout its lifetime as it interfaces with Stripe.js to perform
|
|
178
178
|
# authentication flows and ultimately creates at most one successful charge.
|
|
179
179
|
#
|
|
180
|
-
# Related guide: [Payment Intents API](https://stripe.com/
|
|
180
|
+
# Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
|
|
181
181
|
attr_reader :payment_intent
|
|
182
182
|
# PaymentMethod objects represent your customer's payment instruments.
|
|
183
|
-
# You can use them with [PaymentIntents](https://stripe.com/
|
|
183
|
+
# You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
|
|
184
184
|
# Customer objects to store instrument details for future payments.
|
|
185
185
|
#
|
|
186
|
-
# Related guides: [Payment Methods](https://stripe.com/
|
|
186
|
+
# Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
|
|
187
187
|
attr_reader :payment_method
|
|
188
188
|
# If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
|
|
189
189
|
attr_reader :payment_method_type
|
|
@@ -191,7 +191,7 @@ module Stripe
|
|
|
191
191
|
attr_reader :request_log_url
|
|
192
192
|
# A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
|
|
193
193
|
# For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
|
|
194
|
-
# Later, you can use [PaymentIntents](https://stripe.com
|
|
194
|
+
# Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
|
|
195
195
|
#
|
|
196
196
|
# Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
197
197
|
# Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
@@ -202,9 +202,9 @@ module Stripe
|
|
|
202
202
|
# For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
203
203
|
# [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
204
204
|
# to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
205
|
-
# If you use the SetupIntent with a [Customer](https://stripe.com
|
|
205
|
+
# If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
|
|
206
206
|
# it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
207
|
-
# We recommend using SetupIntents or [setup_future_usage](https://stripe.com
|
|
207
|
+
# We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
|
|
208
208
|
# PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
|
|
209
209
|
#
|
|
210
210
|
# By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
@@ -326,7 +326,7 @@ module Stripe
|
|
|
326
326
|
attr_reader :line2
|
|
327
327
|
# ZIP or postal code.
|
|
328
328
|
attr_reader :postal_code
|
|
329
|
-
# State, county, province, or region.
|
|
329
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
330
330
|
attr_reader :state
|
|
331
331
|
|
|
332
332
|
def self.inner_class_types
|
|
@@ -349,7 +349,7 @@ module Stripe
|
|
|
349
349
|
attr_reader :line2
|
|
350
350
|
# ZIP or postal code.
|
|
351
351
|
attr_reader :postal_code
|
|
352
|
-
# State, county, province, or region.
|
|
352
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
353
353
|
attr_reader :state
|
|
354
354
|
|
|
355
355
|
def self.inner_class_types
|
|
@@ -399,7 +399,7 @@ module Stripe
|
|
|
399
399
|
attr_reader :line2
|
|
400
400
|
# ZIP or postal code.
|
|
401
401
|
attr_reader :postal_code
|
|
402
|
-
# State, county, province, or region.
|
|
402
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
403
403
|
attr_reader :state
|
|
404
404
|
|
|
405
405
|
def self.inner_class_types
|
|
@@ -422,7 +422,7 @@ module Stripe
|
|
|
422
422
|
attr_reader :line2
|
|
423
423
|
# ZIP or postal code.
|
|
424
424
|
attr_reader :postal_code
|
|
425
|
-
# State, county, province, or region.
|
|
425
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
426
426
|
attr_reader :state
|
|
427
427
|
|
|
428
428
|
def self.inner_class_types
|
|
@@ -470,7 +470,7 @@ module Stripe
|
|
|
470
470
|
attr_reader :line2
|
|
471
471
|
# ZIP or postal code.
|
|
472
472
|
attr_reader :postal_code
|
|
473
|
-
# State, county, province, or region.
|
|
473
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
474
474
|
attr_reader :state
|
|
475
475
|
|
|
476
476
|
def self.inner_class_types
|
|
@@ -493,7 +493,7 @@ module Stripe
|
|
|
493
493
|
attr_reader :line2
|
|
494
494
|
# ZIP or postal code.
|
|
495
495
|
attr_reader :postal_code
|
|
496
|
-
# State, county, province, or region.
|
|
496
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
497
497
|
attr_reader :state
|
|
498
498
|
|
|
499
499
|
def self.inner_class_types
|
|
@@ -539,7 +539,7 @@ module Stripe
|
|
|
539
539
|
attr_reader :line2
|
|
540
540
|
# ZIP or postal code.
|
|
541
541
|
attr_reader :postal_code
|
|
542
|
-
# State, county, province, or region.
|
|
542
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
543
543
|
attr_reader :state
|
|
544
544
|
|
|
545
545
|
def self.inner_class_types
|
|
@@ -562,7 +562,7 @@ module Stripe
|
|
|
562
562
|
attr_reader :line2
|
|
563
563
|
# ZIP or postal code.
|
|
564
564
|
attr_reader :postal_code
|
|
565
|
-
# State, county, province, or region.
|
|
565
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
566
566
|
attr_reader :state
|
|
567
567
|
|
|
568
568
|
def self.inner_class_types
|
|
@@ -610,7 +610,7 @@ module Stripe
|
|
|
610
610
|
attr_reader :line2
|
|
611
611
|
# ZIP or postal code.
|
|
612
612
|
attr_reader :postal_code
|
|
613
|
-
# State, county, province, or region.
|
|
613
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
614
614
|
attr_reader :state
|
|
615
615
|
|
|
616
616
|
def self.inner_class_types
|
|
@@ -633,7 +633,7 @@ module Stripe
|
|
|
633
633
|
attr_reader :line2
|
|
634
634
|
# ZIP or postal code.
|
|
635
635
|
attr_reader :postal_code
|
|
636
|
-
# State, county, province, or region.
|
|
636
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
637
637
|
attr_reader :state
|
|
638
638
|
|
|
639
639
|
def self.inner_class_types
|
|
@@ -683,7 +683,7 @@ module Stripe
|
|
|
683
683
|
attr_reader :line2
|
|
684
684
|
# ZIP or postal code.
|
|
685
685
|
attr_reader :postal_code
|
|
686
|
-
# State, county, province, or region.
|
|
686
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
687
687
|
attr_reader :state
|
|
688
688
|
|
|
689
689
|
def self.inner_class_types
|
|
@@ -706,7 +706,7 @@ module Stripe
|
|
|
706
706
|
attr_reader :line2
|
|
707
707
|
# ZIP or postal code.
|
|
708
708
|
attr_reader :postal_code
|
|
709
|
-
# State, county, province, or region.
|
|
709
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
710
710
|
attr_reader :state
|
|
711
711
|
|
|
712
712
|
def self.inner_class_types
|
|
@@ -1185,360 +1185,19 @@ module Stripe
|
|
|
1185
1185
|
end
|
|
1186
1186
|
|
|
1187
1187
|
class PaymentDetails < ::Stripe::StripeObject
|
|
1188
|
-
class CarRental < ::Stripe::StripeObject
|
|
1189
|
-
class Affiliate < ::Stripe::StripeObject
|
|
1190
|
-
# The name of the affiliate that originated the purchase.
|
|
1191
|
-
attr_reader :name
|
|
1192
|
-
|
|
1193
|
-
def self.inner_class_types
|
|
1194
|
-
@inner_class_types = {}
|
|
1195
|
-
end
|
|
1196
|
-
|
|
1197
|
-
def self.field_remappings
|
|
1198
|
-
@field_remappings = {}
|
|
1199
|
-
end
|
|
1200
|
-
end
|
|
1201
|
-
|
|
1202
|
-
class Delivery < ::Stripe::StripeObject
|
|
1203
|
-
class Recipient < ::Stripe::StripeObject
|
|
1204
|
-
# The email of the recipient the ticket is delivered to.
|
|
1205
|
-
attr_reader :email
|
|
1206
|
-
# The name of the recipient the ticket is delivered to.
|
|
1207
|
-
attr_reader :name
|
|
1208
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
1209
|
-
attr_reader :phone
|
|
1210
|
-
|
|
1211
|
-
def self.inner_class_types
|
|
1212
|
-
@inner_class_types = {}
|
|
1213
|
-
end
|
|
1214
|
-
|
|
1215
|
-
def self.field_remappings
|
|
1216
|
-
@field_remappings = {}
|
|
1217
|
-
end
|
|
1218
|
-
end
|
|
1219
|
-
# The delivery method for the payment
|
|
1220
|
-
attr_reader :mode
|
|
1221
|
-
# Attribute for field recipient
|
|
1222
|
-
attr_reader :recipient
|
|
1223
|
-
|
|
1224
|
-
def self.inner_class_types
|
|
1225
|
-
@inner_class_types = { recipient: Recipient }
|
|
1226
|
-
end
|
|
1227
|
-
|
|
1228
|
-
def self.field_remappings
|
|
1229
|
-
@field_remappings = {}
|
|
1230
|
-
end
|
|
1231
|
-
end
|
|
1232
|
-
|
|
1233
|
-
class Distance < ::Stripe::StripeObject
|
|
1234
|
-
# Distance traveled.
|
|
1235
|
-
attr_reader :amount
|
|
1236
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
|
1237
|
-
attr_reader :unit
|
|
1238
|
-
|
|
1239
|
-
def self.inner_class_types
|
|
1240
|
-
@inner_class_types = {}
|
|
1241
|
-
end
|
|
1242
|
-
|
|
1243
|
-
def self.field_remappings
|
|
1244
|
-
@field_remappings = {}
|
|
1245
|
-
end
|
|
1246
|
-
end
|
|
1247
|
-
|
|
1248
|
-
class Driver < ::Stripe::StripeObject
|
|
1249
|
-
# Driver's identification number.
|
|
1250
|
-
attr_reader :driver_identification_number
|
|
1251
|
-
# Driver's tax number.
|
|
1252
|
-
attr_reader :driver_tax_number
|
|
1253
|
-
# Full name of the driver on the reservation.
|
|
1254
|
-
attr_reader :name
|
|
1255
|
-
|
|
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
|
-
|
|
1265
|
-
class PickupAddress < ::Stripe::StripeObject
|
|
1266
|
-
# City, district, suburb, town, or village.
|
|
1267
|
-
attr_reader :city
|
|
1268
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1269
|
-
attr_reader :country
|
|
1270
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1271
|
-
attr_reader :line1
|
|
1272
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1273
|
-
attr_reader :line2
|
|
1274
|
-
# ZIP or postal code.
|
|
1275
|
-
attr_reader :postal_code
|
|
1276
|
-
# State, county, province, or region.
|
|
1277
|
-
attr_reader :state
|
|
1278
|
-
|
|
1279
|
-
def self.inner_class_types
|
|
1280
|
-
@inner_class_types = {}
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
def self.field_remappings
|
|
1284
|
-
@field_remappings = {}
|
|
1285
|
-
end
|
|
1286
|
-
end
|
|
1287
|
-
|
|
1288
|
-
class ReturnAddress < ::Stripe::StripeObject
|
|
1289
|
-
# City, district, suburb, town, or village.
|
|
1290
|
-
attr_reader :city
|
|
1291
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1292
|
-
attr_reader :country
|
|
1293
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1294
|
-
attr_reader :line1
|
|
1295
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1296
|
-
attr_reader :line2
|
|
1297
|
-
# ZIP or postal code.
|
|
1298
|
-
attr_reader :postal_code
|
|
1299
|
-
# State, county, province, or region.
|
|
1300
|
-
attr_reader :state
|
|
1301
|
-
|
|
1302
|
-
def self.inner_class_types
|
|
1303
|
-
@inner_class_types = {}
|
|
1304
|
-
end
|
|
1305
|
-
|
|
1306
|
-
def self.field_remappings
|
|
1307
|
-
@field_remappings = {}
|
|
1308
|
-
end
|
|
1309
|
-
end
|
|
1310
|
-
# Attribute for field affiliate
|
|
1311
|
-
attr_reader :affiliate
|
|
1312
|
-
# The booking number associated with the car rental.
|
|
1313
|
-
attr_reader :booking_number
|
|
1314
|
-
# Class code of the car.
|
|
1315
|
-
attr_reader :car_class_code
|
|
1316
|
-
# Make of the car.
|
|
1317
|
-
attr_reader :car_make
|
|
1318
|
-
# Model of the car.
|
|
1319
|
-
attr_reader :car_model
|
|
1320
|
-
# The name of the rental car company.
|
|
1321
|
-
attr_reader :company
|
|
1322
|
-
# The customer service phone number of the car rental company.
|
|
1323
|
-
attr_reader :customer_service_phone_number
|
|
1324
|
-
# Number of days the car is being rented.
|
|
1325
|
-
attr_reader :days_rented
|
|
1326
|
-
# Attribute for field delivery
|
|
1327
|
-
attr_reader :delivery
|
|
1328
|
-
# Attribute for field distance
|
|
1329
|
-
attr_reader :distance
|
|
1330
|
-
# The details of the drivers associated with the trip.
|
|
1331
|
-
attr_reader :drivers
|
|
1332
|
-
# List of additional charges being billed.
|
|
1333
|
-
attr_reader :extra_charges
|
|
1334
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
|
1335
|
-
attr_reader :no_show
|
|
1336
|
-
# Attribute for field pickup_address
|
|
1337
|
-
attr_reader :pickup_address
|
|
1338
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1339
|
-
attr_reader :pickup_at
|
|
1340
|
-
# Name of the pickup location.
|
|
1341
|
-
attr_reader :pickup_location_name
|
|
1342
|
-
# Rental rate.
|
|
1343
|
-
attr_reader :rate_amount
|
|
1344
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1345
|
-
attr_reader :rate_interval
|
|
1346
|
-
# The full name of the person or entity renting the car.
|
|
1347
|
-
attr_reader :renter_name
|
|
1348
|
-
# Attribute for field return_address
|
|
1349
|
-
attr_reader :return_address
|
|
1350
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
|
1351
|
-
attr_reader :return_at
|
|
1352
|
-
# Name of the return location.
|
|
1353
|
-
attr_reader :return_location_name
|
|
1354
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1355
|
-
attr_reader :tax_exempt
|
|
1356
|
-
# The vehicle identification number of the car.
|
|
1357
|
-
attr_reader :vehicle_identification_number
|
|
1358
|
-
|
|
1359
|
-
def self.inner_class_types
|
|
1360
|
-
@inner_class_types = {
|
|
1361
|
-
affiliate: Affiliate,
|
|
1362
|
-
delivery: Delivery,
|
|
1363
|
-
distance: Distance,
|
|
1364
|
-
drivers: Driver,
|
|
1365
|
-
pickup_address: PickupAddress,
|
|
1366
|
-
return_address: ReturnAddress,
|
|
1367
|
-
}
|
|
1368
|
-
end
|
|
1369
|
-
|
|
1370
|
-
def self.field_remappings
|
|
1371
|
-
@field_remappings = {}
|
|
1372
|
-
end
|
|
1373
|
-
end
|
|
1374
|
-
|
|
1375
|
-
class EventDetails < ::Stripe::StripeObject
|
|
1376
|
-
class Address < ::Stripe::StripeObject
|
|
1377
|
-
# City, district, suburb, town, or village.
|
|
1378
|
-
attr_reader :city
|
|
1379
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1380
|
-
attr_reader :country
|
|
1381
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1382
|
-
attr_reader :line1
|
|
1383
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1384
|
-
attr_reader :line2
|
|
1385
|
-
# ZIP or postal code.
|
|
1386
|
-
attr_reader :postal_code
|
|
1387
|
-
# State, county, province, or region.
|
|
1388
|
-
attr_reader :state
|
|
1389
|
-
|
|
1390
|
-
def self.inner_class_types
|
|
1391
|
-
@inner_class_types = {}
|
|
1392
|
-
end
|
|
1393
|
-
|
|
1394
|
-
def self.field_remappings
|
|
1395
|
-
@field_remappings = {}
|
|
1396
|
-
end
|
|
1397
|
-
end
|
|
1398
|
-
|
|
1399
|
-
class Affiliate < ::Stripe::StripeObject
|
|
1400
|
-
# The name of the affiliate that originated the purchase.
|
|
1401
|
-
attr_reader :name
|
|
1402
|
-
|
|
1403
|
-
def self.inner_class_types
|
|
1404
|
-
@inner_class_types = {}
|
|
1405
|
-
end
|
|
1406
|
-
|
|
1407
|
-
def self.field_remappings
|
|
1408
|
-
@field_remappings = {}
|
|
1409
|
-
end
|
|
1410
|
-
end
|
|
1411
|
-
|
|
1412
|
-
class Delivery < ::Stripe::StripeObject
|
|
1413
|
-
class Recipient < ::Stripe::StripeObject
|
|
1414
|
-
# The email of the recipient the ticket is delivered to.
|
|
1415
|
-
attr_reader :email
|
|
1416
|
-
# The name of the recipient the ticket is delivered to.
|
|
1417
|
-
attr_reader :name
|
|
1418
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
1419
|
-
attr_reader :phone
|
|
1420
|
-
|
|
1421
|
-
def self.inner_class_types
|
|
1422
|
-
@inner_class_types = {}
|
|
1423
|
-
end
|
|
1424
|
-
|
|
1425
|
-
def self.field_remappings
|
|
1426
|
-
@field_remappings = {}
|
|
1427
|
-
end
|
|
1428
|
-
end
|
|
1429
|
-
# The delivery method for the payment
|
|
1430
|
-
attr_reader :mode
|
|
1431
|
-
# Attribute for field recipient
|
|
1432
|
-
attr_reader :recipient
|
|
1433
|
-
|
|
1434
|
-
def self.inner_class_types
|
|
1435
|
-
@inner_class_types = { recipient: Recipient }
|
|
1436
|
-
end
|
|
1437
|
-
|
|
1438
|
-
def self.field_remappings
|
|
1439
|
-
@field_remappings = {}
|
|
1440
|
-
end
|
|
1441
|
-
end
|
|
1442
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
1443
|
-
attr_reader :access_controlled_venue
|
|
1444
|
-
# Attribute for field address
|
|
1445
|
-
attr_reader :address
|
|
1446
|
-
# Attribute for field affiliate
|
|
1447
|
-
attr_reader :affiliate
|
|
1448
|
-
# The name of the company
|
|
1449
|
-
attr_reader :company
|
|
1450
|
-
# Attribute for field delivery
|
|
1451
|
-
attr_reader :delivery
|
|
1452
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
|
1453
|
-
attr_reader :ends_at
|
|
1454
|
-
# Type of the event entertainment (concert, sports event etc)
|
|
1455
|
-
attr_reader :genre
|
|
1456
|
-
# The name of the event.
|
|
1457
|
-
attr_reader :name
|
|
1458
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
|
1459
|
-
attr_reader :starts_at
|
|
1460
|
-
|
|
1461
|
-
def self.inner_class_types
|
|
1462
|
-
@inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
|
|
1463
|
-
end
|
|
1464
|
-
|
|
1465
|
-
def self.field_remappings
|
|
1466
|
-
@field_remappings = {}
|
|
1467
|
-
end
|
|
1468
|
-
end
|
|
1469
|
-
|
|
1470
|
-
class Subscription < ::Stripe::StripeObject
|
|
1471
|
-
class Affiliate < ::Stripe::StripeObject
|
|
1472
|
-
# The name of the affiliate that originated the purchase.
|
|
1473
|
-
attr_reader :name
|
|
1474
|
-
|
|
1475
|
-
def self.inner_class_types
|
|
1476
|
-
@inner_class_types = {}
|
|
1477
|
-
end
|
|
1478
|
-
|
|
1479
|
-
def self.field_remappings
|
|
1480
|
-
@field_remappings = {}
|
|
1481
|
-
end
|
|
1482
|
-
end
|
|
1483
|
-
|
|
1484
|
-
class BillingInterval < ::Stripe::StripeObject
|
|
1485
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1486
|
-
attr_reader :count
|
|
1487
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1488
|
-
attr_reader :interval
|
|
1489
|
-
|
|
1490
|
-
def self.inner_class_types
|
|
1491
|
-
@inner_class_types = {}
|
|
1492
|
-
end
|
|
1493
|
-
|
|
1494
|
-
def self.field_remappings
|
|
1495
|
-
@field_remappings = {}
|
|
1496
|
-
end
|
|
1497
|
-
end
|
|
1498
|
-
# Attribute for field affiliate
|
|
1499
|
-
attr_reader :affiliate
|
|
1500
|
-
# Info whether the subscription will be auto renewed upon expiry.
|
|
1501
|
-
attr_reader :auto_renewal
|
|
1502
|
-
# Attribute for field billing_interval
|
|
1503
|
-
attr_reader :billing_interval
|
|
1504
|
-
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1505
|
-
attr_reader :ends_at
|
|
1506
|
-
# Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1507
|
-
attr_reader :name
|
|
1508
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1509
|
-
attr_reader :starts_at
|
|
1510
|
-
|
|
1511
|
-
def self.inner_class_types
|
|
1512
|
-
@inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
|
|
1513
|
-
end
|
|
1514
|
-
|
|
1515
|
-
def self.field_remappings
|
|
1516
|
-
@field_remappings = {}
|
|
1517
|
-
end
|
|
1518
|
-
end
|
|
1519
|
-
# Attribute for field car_rental
|
|
1520
|
-
attr_reader :car_rental
|
|
1521
1188
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1522
1189
|
#
|
|
1523
1190
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1524
1191
|
attr_reader :customer_reference
|
|
1525
|
-
# Attribute for field event_details
|
|
1526
|
-
attr_reader :event_details
|
|
1527
1192
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1528
1193
|
#
|
|
1529
1194
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1530
1195
|
#
|
|
1531
1196
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
1532
1197
|
attr_reader :order_reference
|
|
1533
|
-
# Attribute for field subscription
|
|
1534
|
-
attr_reader :subscription
|
|
1535
1198
|
|
|
1536
1199
|
def self.inner_class_types
|
|
1537
|
-
@inner_class_types = {
|
|
1538
|
-
car_rental: CarRental,
|
|
1539
|
-
event_details: EventDetails,
|
|
1540
|
-
subscription: Subscription,
|
|
1541
|
-
}
|
|
1200
|
+
@inner_class_types = {}
|
|
1542
1201
|
end
|
|
1543
1202
|
|
|
1544
1203
|
def self.field_remappings
|
|
@@ -1916,66 +1575,25 @@ module Stripe
|
|
|
1916
1575
|
@field_remappings = {}
|
|
1917
1576
|
end
|
|
1918
1577
|
end
|
|
1919
|
-
|
|
1920
|
-
class StatementDetails < ::Stripe::StripeObject
|
|
1921
|
-
class Address < ::Stripe::StripeObject
|
|
1922
|
-
# City, district, suburb, town, or village.
|
|
1923
|
-
attr_reader :city
|
|
1924
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1925
|
-
attr_reader :country
|
|
1926
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1927
|
-
attr_reader :line1
|
|
1928
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1929
|
-
attr_reader :line2
|
|
1930
|
-
# ZIP or postal code.
|
|
1931
|
-
attr_reader :postal_code
|
|
1932
|
-
# State, county, province, or region.
|
|
1933
|
-
attr_reader :state
|
|
1934
|
-
|
|
1935
|
-
def self.inner_class_types
|
|
1936
|
-
@inner_class_types = {}
|
|
1937
|
-
end
|
|
1938
|
-
|
|
1939
|
-
def self.field_remappings
|
|
1940
|
-
@field_remappings = {}
|
|
1941
|
-
end
|
|
1942
|
-
end
|
|
1943
|
-
# Attribute for field address
|
|
1944
|
-
attr_reader :address
|
|
1945
|
-
# Phone number
|
|
1946
|
-
attr_reader :phone
|
|
1947
|
-
|
|
1948
|
-
def self.inner_class_types
|
|
1949
|
-
@inner_class_types = { address: Address }
|
|
1950
|
-
end
|
|
1951
|
-
|
|
1952
|
-
def self.field_remappings
|
|
1953
|
-
@field_remappings = {}
|
|
1954
|
-
end
|
|
1955
|
-
end
|
|
1956
1578
|
# Controls when the funds will be captured from the customer's account.
|
|
1957
1579
|
attr_reader :capture_method
|
|
1958
1580
|
# Installment details for this payment.
|
|
1959
1581
|
#
|
|
1960
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
1582
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
1961
1583
|
attr_reader :installments
|
|
1962
1584
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
1963
1585
|
attr_reader :mandate_options
|
|
1964
1586
|
# 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.
|
|
1965
1587
|
attr_reader :network
|
|
1966
|
-
# Request ability to [
|
|
1967
|
-
attr_reader :request_decremental_authorization
|
|
1968
|
-
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1588
|
+
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1969
1589
|
attr_reader :request_extended_authorization
|
|
1970
|
-
# Request ability to [increment the authorization](https://stripe.com/
|
|
1590
|
+
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
1971
1591
|
attr_reader :request_incremental_authorization
|
|
1972
|
-
# Request ability to make [multiple captures](https://stripe.com/
|
|
1592
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
1973
1593
|
attr_reader :request_multicapture
|
|
1974
|
-
# Request ability to [overcapture](https://stripe.com/
|
|
1594
|
+
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1975
1595
|
attr_reader :request_overcapture
|
|
1976
|
-
#
|
|
1977
|
-
attr_reader :request_partial_authorization
|
|
1978
|
-
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1596
|
+
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1979
1597
|
attr_reader :request_three_d_secure
|
|
1980
1598
|
# When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
|
|
1981
1599
|
attr_reader :require_cvc_recollection
|
|
@@ -1991,15 +1609,9 @@ module Stripe
|
|
|
1991
1609
|
attr_reader :statement_descriptor_suffix_kana
|
|
1992
1610
|
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1993
1611
|
attr_reader :statement_descriptor_suffix_kanji
|
|
1994
|
-
# Attribute for field statement_details
|
|
1995
|
-
attr_reader :statement_details
|
|
1996
1612
|
|
|
1997
1613
|
def self.inner_class_types
|
|
1998
|
-
@inner_class_types = {
|
|
1999
|
-
installments: Installments,
|
|
2000
|
-
mandate_options: MandateOptions,
|
|
2001
|
-
statement_details: StatementDetails,
|
|
2002
|
-
}
|
|
1614
|
+
@inner_class_types = { installments: Installments, mandate_options: MandateOptions }
|
|
2003
1615
|
end
|
|
2004
1616
|
|
|
2005
1617
|
def self.field_remappings
|
|
@@ -2022,9 +1634,9 @@ module Stripe
|
|
|
2022
1634
|
end
|
|
2023
1635
|
# Controls when the funds will be captured from the customer's account.
|
|
2024
1636
|
attr_reader :capture_method
|
|
2025
|
-
# Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/
|
|
1637
|
+
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
2026
1638
|
attr_reader :request_extended_authorization
|
|
2027
|
-
# Request ability to [increment](https://stripe.com/
|
|
1639
|
+
# 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.
|
|
2028
1640
|
attr_reader :request_incremental_authorization_support
|
|
2029
1641
|
# Attribute for field routing
|
|
2030
1642
|
attr_reader :routing
|
|
@@ -2188,25 +1800,6 @@ module Stripe
|
|
|
2188
1800
|
end
|
|
2189
1801
|
end
|
|
2190
1802
|
|
|
2191
|
-
class Gopay < ::Stripe::StripeObject
|
|
2192
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2193
|
-
#
|
|
2194
|
-
# 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.
|
|
2195
|
-
#
|
|
2196
|
-
# 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.
|
|
2197
|
-
#
|
|
2198
|
-
# 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).
|
|
2199
|
-
attr_reader :setup_future_usage
|
|
2200
|
-
|
|
2201
|
-
def self.inner_class_types
|
|
2202
|
-
@inner_class_types = {}
|
|
2203
|
-
end
|
|
2204
|
-
|
|
2205
|
-
def self.field_remappings
|
|
2206
|
-
@field_remappings = {}
|
|
2207
|
-
end
|
|
2208
|
-
end
|
|
2209
|
-
|
|
2210
1803
|
class Grabpay < ::Stripe::StripeObject
|
|
2211
1804
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2212
1805
|
#
|
|
@@ -2226,29 +1819,6 @@ module Stripe
|
|
|
2226
1819
|
end
|
|
2227
1820
|
end
|
|
2228
1821
|
|
|
2229
|
-
class IdBankTransfer < ::Stripe::StripeObject
|
|
2230
|
-
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2231
|
-
attr_reader :expires_after
|
|
2232
|
-
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
2233
|
-
attr_reader :expires_at
|
|
2234
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2235
|
-
#
|
|
2236
|
-
# 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.
|
|
2237
|
-
#
|
|
2238
|
-
# 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.
|
|
2239
|
-
#
|
|
2240
|
-
# 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).
|
|
2241
|
-
attr_reader :setup_future_usage
|
|
2242
|
-
|
|
2243
|
-
def self.inner_class_types
|
|
2244
|
-
@inner_class_types = {}
|
|
2245
|
-
end
|
|
2246
|
-
|
|
2247
|
-
def self.field_remappings
|
|
2248
|
-
@field_remappings = {}
|
|
2249
|
-
end
|
|
2250
|
-
end
|
|
2251
|
-
|
|
2252
1822
|
class Ideal < ::Stripe::StripeObject
|
|
2253
1823
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2254
1824
|
#
|
|
@@ -2577,56 +2147,12 @@ module Stripe
|
|
|
2577
2147
|
end
|
|
2578
2148
|
|
|
2579
2149
|
class Paypal < ::Stripe::StripeObject
|
|
2580
|
-
class LineItem < ::Stripe::StripeObject
|
|
2581
|
-
class Tax < ::Stripe::StripeObject
|
|
2582
|
-
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2583
|
-
attr_reader :amount
|
|
2584
|
-
# The tax behavior for the line item.
|
|
2585
|
-
attr_reader :behavior
|
|
2586
|
-
|
|
2587
|
-
def self.inner_class_types
|
|
2588
|
-
@inner_class_types = {}
|
|
2589
|
-
end
|
|
2590
|
-
|
|
2591
|
-
def self.field_remappings
|
|
2592
|
-
@field_remappings = {}
|
|
2593
|
-
end
|
|
2594
|
-
end
|
|
2595
|
-
# Type of the line item.
|
|
2596
|
-
attr_reader :category
|
|
2597
|
-
# Description of the line item.
|
|
2598
|
-
attr_reader :description
|
|
2599
|
-
# Descriptive name of the line item.
|
|
2600
|
-
attr_reader :name
|
|
2601
|
-
# Quantity of the line item. Cannot be a negative number.
|
|
2602
|
-
attr_reader :quantity
|
|
2603
|
-
# Client facing stock keeping unit, article number or similar.
|
|
2604
|
-
attr_reader :sku
|
|
2605
|
-
# The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
2606
|
-
attr_reader :sold_by
|
|
2607
|
-
# Attribute for field tax
|
|
2608
|
-
attr_reader :tax
|
|
2609
|
-
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2610
|
-
attr_reader :unit_amount
|
|
2611
|
-
|
|
2612
|
-
def self.inner_class_types
|
|
2613
|
-
@inner_class_types = { tax: Tax }
|
|
2614
|
-
end
|
|
2615
|
-
|
|
2616
|
-
def self.field_remappings
|
|
2617
|
-
@field_remappings = {}
|
|
2618
|
-
end
|
|
2619
|
-
end
|
|
2620
2150
|
# Controls when the funds will be captured from the customer's account.
|
|
2621
2151
|
attr_reader :capture_method
|
|
2622
|
-
# The line items purchased by the customer.
|
|
2623
|
-
attr_reader :line_items
|
|
2624
2152
|
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2625
2153
|
attr_reader :preferred_locale
|
|
2626
2154
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2627
2155
|
attr_reader :reference
|
|
2628
|
-
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2629
|
-
attr_reader :reference_id
|
|
2630
2156
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2631
2157
|
#
|
|
2632
2158
|
# 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.
|
|
@@ -2635,19 +2161,7 @@ module Stripe
|
|
|
2635
2161
|
#
|
|
2636
2162
|
# 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).
|
|
2637
2163
|
attr_reader :setup_future_usage
|
|
2638
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
2639
|
-
attr_reader :subsellers
|
|
2640
2164
|
|
|
2641
|
-
def self.inner_class_types
|
|
2642
|
-
@inner_class_types = { line_items: LineItem }
|
|
2643
|
-
end
|
|
2644
|
-
|
|
2645
|
-
def self.field_remappings
|
|
2646
|
-
@field_remappings = {}
|
|
2647
|
-
end
|
|
2648
|
-
end
|
|
2649
|
-
|
|
2650
|
-
class Paypay < ::Stripe::StripeObject
|
|
2651
2165
|
def self.inner_class_types
|
|
2652
2166
|
@inner_class_types = {}
|
|
2653
2167
|
end
|
|
@@ -2701,59 +2215,12 @@ module Stripe
|
|
|
2701
2215
|
end
|
|
2702
2216
|
|
|
2703
2217
|
class Pix < ::Stripe::StripeObject
|
|
2704
|
-
class MandateOptions < ::Stripe::StripeObject
|
|
2705
|
-
# Amount to be charged for future payments.
|
|
2706
|
-
attr_reader :amount
|
|
2707
|
-
# Determines if the amount includes the IOF tax.
|
|
2708
|
-
attr_reader :amount_includes_iof
|
|
2709
|
-
# Type of amount.
|
|
2710
|
-
attr_reader :amount_type
|
|
2711
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
2712
|
-
attr_reader :currency
|
|
2713
|
-
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
2714
|
-
attr_reader :end_date
|
|
2715
|
-
# Schedule at which the future payments will be charged.
|
|
2716
|
-
attr_reader :payment_schedule
|
|
2717
|
-
# Subscription name displayed to buyers in their bank app.
|
|
2718
|
-
attr_reader :reference
|
|
2719
|
-
# Start date of the mandate, in `YYYY-MM-DD`.
|
|
2720
|
-
attr_reader :start_date
|
|
2721
|
-
|
|
2722
|
-
def self.inner_class_types
|
|
2723
|
-
@inner_class_types = {}
|
|
2724
|
-
end
|
|
2725
|
-
|
|
2726
|
-
def self.field_remappings
|
|
2727
|
-
@field_remappings = {}
|
|
2728
|
-
end
|
|
2729
|
-
end
|
|
2730
2218
|
# Determines if the amount includes the IOF tax.
|
|
2731
2219
|
attr_reader :amount_includes_iof
|
|
2732
2220
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
2733
2221
|
attr_reader :expires_after_seconds
|
|
2734
2222
|
# The timestamp at which the Pix expires.
|
|
2735
2223
|
attr_reader :expires_at
|
|
2736
|
-
# Attribute for field mandate_options
|
|
2737
|
-
attr_reader :mandate_options
|
|
2738
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2739
|
-
#
|
|
2740
|
-
# 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.
|
|
2741
|
-
#
|
|
2742
|
-
# 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.
|
|
2743
|
-
#
|
|
2744
|
-
# 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).
|
|
2745
|
-
attr_reader :setup_future_usage
|
|
2746
|
-
|
|
2747
|
-
def self.inner_class_types
|
|
2748
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
|
2749
|
-
end
|
|
2750
|
-
|
|
2751
|
-
def self.field_remappings
|
|
2752
|
-
@field_remappings = {}
|
|
2753
|
-
end
|
|
2754
|
-
end
|
|
2755
|
-
|
|
2756
|
-
class Promptpay < ::Stripe::StripeObject
|
|
2757
2224
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2758
2225
|
#
|
|
2759
2226
|
# 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.
|
|
@@ -2772,7 +2239,7 @@ module Stripe
|
|
|
2772
2239
|
end
|
|
2773
2240
|
end
|
|
2774
2241
|
|
|
2775
|
-
class
|
|
2242
|
+
class Promptpay < ::Stripe::StripeObject
|
|
2776
2243
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2777
2244
|
#
|
|
2778
2245
|
# 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.
|
|
@@ -2791,16 +2258,6 @@ module Stripe
|
|
|
2791
2258
|
end
|
|
2792
2259
|
end
|
|
2793
2260
|
|
|
2794
|
-
class Rechnung < ::Stripe::StripeObject
|
|
2795
|
-
def self.inner_class_types
|
|
2796
|
-
@inner_class_types = {}
|
|
2797
|
-
end
|
|
2798
|
-
|
|
2799
|
-
def self.field_remappings
|
|
2800
|
-
@field_remappings = {}
|
|
2801
|
-
end
|
|
2802
|
-
end
|
|
2803
|
-
|
|
2804
2261
|
class RevolutPay < ::Stripe::StripeObject
|
|
2805
2262
|
# Controls when the funds will be captured from the customer's account.
|
|
2806
2263
|
attr_reader :capture_method
|
|
@@ -2883,25 +2340,6 @@ module Stripe
|
|
|
2883
2340
|
end
|
|
2884
2341
|
end
|
|
2885
2342
|
|
|
2886
|
-
class Shopeepay < ::Stripe::StripeObject
|
|
2887
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2888
|
-
#
|
|
2889
|
-
# 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.
|
|
2890
|
-
#
|
|
2891
|
-
# 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.
|
|
2892
|
-
#
|
|
2893
|
-
# 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).
|
|
2894
|
-
attr_reader :setup_future_usage
|
|
2895
|
-
|
|
2896
|
-
def self.inner_class_types
|
|
2897
|
-
@inner_class_types = {}
|
|
2898
|
-
end
|
|
2899
|
-
|
|
2900
|
-
def self.field_remappings
|
|
2901
|
-
@field_remappings = {}
|
|
2902
|
-
end
|
|
2903
|
-
end
|
|
2904
|
-
|
|
2905
2343
|
class Sofort < ::Stripe::StripeObject
|
|
2906
2344
|
# Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
2907
2345
|
attr_reader :preferred_language
|
|
@@ -2923,25 +2361,6 @@ module Stripe
|
|
|
2923
2361
|
end
|
|
2924
2362
|
end
|
|
2925
2363
|
|
|
2926
|
-
class StripeBalance < ::Stripe::StripeObject
|
|
2927
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2928
|
-
#
|
|
2929
|
-
# 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.
|
|
2930
|
-
#
|
|
2931
|
-
# 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.
|
|
2932
|
-
#
|
|
2933
|
-
# 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).
|
|
2934
|
-
attr_reader :setup_future_usage
|
|
2935
|
-
|
|
2936
|
-
def self.inner_class_types
|
|
2937
|
-
@inner_class_types = {}
|
|
2938
|
-
end
|
|
2939
|
-
|
|
2940
|
-
def self.field_remappings
|
|
2941
|
-
@field_remappings = {}
|
|
2942
|
-
end
|
|
2943
|
-
end
|
|
2944
|
-
|
|
2945
2364
|
class Swish < ::Stripe::StripeObject
|
|
2946
2365
|
# A reference for this payment to be displayed in the Swish app.
|
|
2947
2366
|
attr_reader :reference
|
|
@@ -2987,21 +2406,6 @@ module Stripe
|
|
|
2987
2406
|
class Filters < ::Stripe::StripeObject
|
|
2988
2407
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2989
2408
|
attr_reader :account_subcategories
|
|
2990
|
-
# The institution to use to filter for possible accounts to link.
|
|
2991
|
-
attr_reader :institution
|
|
2992
|
-
|
|
2993
|
-
def self.inner_class_types
|
|
2994
|
-
@inner_class_types = {}
|
|
2995
|
-
end
|
|
2996
|
-
|
|
2997
|
-
def self.field_remappings
|
|
2998
|
-
@field_remappings = {}
|
|
2999
|
-
end
|
|
3000
|
-
end
|
|
3001
|
-
|
|
3002
|
-
class ManualEntry < ::Stripe::StripeObject
|
|
3003
|
-
# Settings for configuring manual entry of account details.
|
|
3004
|
-
attr_reader :mode
|
|
3005
2409
|
|
|
3006
2410
|
def self.inner_class_types
|
|
3007
2411
|
@inner_class_types = {}
|
|
@@ -3013,8 +2417,6 @@ module Stripe
|
|
|
3013
2417
|
end
|
|
3014
2418
|
# Attribute for field filters
|
|
3015
2419
|
attr_reader :filters
|
|
3016
|
-
# Attribute for field manual_entry
|
|
3017
|
-
attr_reader :manual_entry
|
|
3018
2420
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
3019
2421
|
attr_reader :permissions
|
|
3020
2422
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -3023,7 +2425,7 @@ module Stripe
|
|
|
3023
2425
|
attr_reader :return_url
|
|
3024
2426
|
|
|
3025
2427
|
def self.inner_class_types
|
|
3026
|
-
@inner_class_types = { filters: Filters
|
|
2428
|
+
@inner_class_types = { filters: Filters }
|
|
3027
2429
|
end
|
|
3028
2430
|
|
|
3029
2431
|
def self.field_remappings
|
|
@@ -3155,12 +2557,8 @@ module Stripe
|
|
|
3155
2557
|
attr_reader :fpx
|
|
3156
2558
|
# Attribute for field giropay
|
|
3157
2559
|
attr_reader :giropay
|
|
3158
|
-
# Attribute for field gopay
|
|
3159
|
-
attr_reader :gopay
|
|
3160
2560
|
# Attribute for field grabpay
|
|
3161
2561
|
attr_reader :grabpay
|
|
3162
|
-
# Attribute for field id_bank_transfer
|
|
3163
|
-
attr_reader :id_bank_transfer
|
|
3164
2562
|
# Attribute for field ideal
|
|
3165
2563
|
attr_reader :ideal
|
|
3166
2564
|
# Attribute for field interac_present
|
|
@@ -3197,18 +2595,12 @@ module Stripe
|
|
|
3197
2595
|
attr_reader :paynow
|
|
3198
2596
|
# Attribute for field paypal
|
|
3199
2597
|
attr_reader :paypal
|
|
3200
|
-
# Attribute for field paypay
|
|
3201
|
-
attr_reader :paypay
|
|
3202
2598
|
# Attribute for field payto
|
|
3203
2599
|
attr_reader :payto
|
|
3204
2600
|
# Attribute for field pix
|
|
3205
2601
|
attr_reader :pix
|
|
3206
2602
|
# Attribute for field promptpay
|
|
3207
2603
|
attr_reader :promptpay
|
|
3208
|
-
# Attribute for field qris
|
|
3209
|
-
attr_reader :qris
|
|
3210
|
-
# Attribute for field rechnung
|
|
3211
|
-
attr_reader :rechnung
|
|
3212
2604
|
# Attribute for field revolut_pay
|
|
3213
2605
|
attr_reader :revolut_pay
|
|
3214
2606
|
# Attribute for field samsung_pay
|
|
@@ -3217,12 +2609,8 @@ module Stripe
|
|
|
3217
2609
|
attr_reader :satispay
|
|
3218
2610
|
# Attribute for field sepa_debit
|
|
3219
2611
|
attr_reader :sepa_debit
|
|
3220
|
-
# Attribute for field shopeepay
|
|
3221
|
-
attr_reader :shopeepay
|
|
3222
2612
|
# Attribute for field sofort
|
|
3223
2613
|
attr_reader :sofort
|
|
3224
|
-
# Attribute for field stripe_balance
|
|
3225
|
-
attr_reader :stripe_balance
|
|
3226
2614
|
# Attribute for field swish
|
|
3227
2615
|
attr_reader :swish
|
|
3228
2616
|
# Attribute for field twint
|
|
@@ -3256,9 +2644,7 @@ module Stripe
|
|
|
3256
2644
|
eps: Eps,
|
|
3257
2645
|
fpx: Fpx,
|
|
3258
2646
|
giropay: Giropay,
|
|
3259
|
-
gopay: Gopay,
|
|
3260
2647
|
grabpay: Grabpay,
|
|
3261
|
-
id_bank_transfer: IdBankTransfer,
|
|
3262
2648
|
ideal: Ideal,
|
|
3263
2649
|
interac_present: InteracPresent,
|
|
3264
2650
|
kakao_pay: KakaoPay,
|
|
@@ -3277,19 +2663,14 @@ module Stripe
|
|
|
3277
2663
|
payco: Payco,
|
|
3278
2664
|
paynow: Paynow,
|
|
3279
2665
|
paypal: Paypal,
|
|
3280
|
-
paypay: Paypay,
|
|
3281
2666
|
payto: Payto,
|
|
3282
2667
|
pix: Pix,
|
|
3283
2668
|
promptpay: Promptpay,
|
|
3284
|
-
qris: Qris,
|
|
3285
|
-
rechnung: Rechnung,
|
|
3286
2669
|
revolut_pay: RevolutPay,
|
|
3287
2670
|
samsung_pay: SamsungPay,
|
|
3288
2671
|
satispay: Satispay,
|
|
3289
2672
|
sepa_debit: SepaDebit,
|
|
3290
|
-
shopeepay: Shopeepay,
|
|
3291
2673
|
sofort: Sofort,
|
|
3292
|
-
stripe_balance: StripeBalance,
|
|
3293
2674
|
swish: Swish,
|
|
3294
2675
|
twint: Twint,
|
|
3295
2676
|
us_bank_account: UsBankAccount,
|
|
@@ -3371,7 +2752,7 @@ module Stripe
|
|
|
3371
2752
|
attr_reader :line2
|
|
3372
2753
|
# ZIP or postal code.
|
|
3373
2754
|
attr_reader :postal_code
|
|
3374
|
-
# State, county, province, or region.
|
|
2755
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3375
2756
|
attr_reader :state
|
|
3376
2757
|
|
|
3377
2758
|
def self.inner_class_types
|
|
@@ -3404,7 +2785,7 @@ module Stripe
|
|
|
3404
2785
|
|
|
3405
2786
|
class TransferData < ::Stripe::StripeObject
|
|
3406
2787
|
# The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
|
|
3407
|
-
# The amount must be less than or equal to the [amount](https://stripe.com/
|
|
2788
|
+
# The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
|
|
3408
2789
|
# representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
|
|
3409
2790
|
attr_reader :amount
|
|
3410
2791
|
# The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
|
|
@@ -3418,7 +2799,7 @@ module Stripe
|
|
|
3418
2799
|
@field_remappings = {}
|
|
3419
2800
|
end
|
|
3420
2801
|
end
|
|
3421
|
-
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/
|
|
2802
|
+
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
3422
2803
|
attr_reader :amount
|
|
3423
2804
|
# Amount that can be captured from this PaymentIntent.
|
|
3424
2805
|
attr_reader :amount_capturable
|
|
@@ -3428,7 +2809,7 @@ module Stripe
|
|
|
3428
2809
|
attr_reader :amount_received
|
|
3429
2810
|
# ID of the Connect application that created the PaymentIntent.
|
|
3430
2811
|
attr_reader :application
|
|
3431
|
-
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/
|
|
2812
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
3432
2813
|
attr_reader :application_fee_amount
|
|
3433
2814
|
# Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
3434
2815
|
attr_reader :automatic_payment_methods
|
|
@@ -3442,7 +2823,7 @@ module Stripe
|
|
|
3442
2823
|
#
|
|
3443
2824
|
# The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
3444
2825
|
#
|
|
3445
|
-
# Refer to our docs to [accept a payment](https://stripe.com/
|
|
2826
|
+
# Refer to our docs to [accept a payment](https://docs.stripe.com/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
|
|
3446
2827
|
attr_reader :client_secret
|
|
3447
2828
|
# Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
|
|
3448
2829
|
attr_reader :confirmation_method
|
|
@@ -3454,43 +2835,42 @@ module Stripe
|
|
|
3454
2835
|
#
|
|
3455
2836
|
# Payment methods attached to other Customers cannot be used with this PaymentIntent.
|
|
3456
2837
|
#
|
|
3457
|
-
# If [setup_future_usage](https://stripe.com
|
|
2838
|
+
# If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
3458
2839
|
attr_reader :customer
|
|
3459
|
-
# ID of the Account this PaymentIntent belongs to, if one exists.
|
|
2840
|
+
# ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
|
|
3460
2841
|
#
|
|
3461
2842
|
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
3462
2843
|
#
|
|
3463
|
-
# If [setup_future_usage](https://stripe.com
|
|
2844
|
+
# If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
|
3464
2845
|
attr_reader :customer_account
|
|
3465
2846
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
3466
2847
|
attr_reader :description
|
|
3467
2848
|
# The list of payment method types to exclude from use with this payment.
|
|
3468
2849
|
attr_reader :excluded_payment_method_types
|
|
3469
|
-
# The FX Quote used for the PaymentIntent.
|
|
3470
|
-
attr_reader :fx_quote
|
|
3471
2850
|
# Attribute for field hooks
|
|
3472
2851
|
attr_reader :hooks
|
|
3473
2852
|
# Unique identifier for the object.
|
|
3474
2853
|
attr_reader :id
|
|
3475
2854
|
# The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
|
3476
2855
|
attr_reader :last_payment_error
|
|
3477
|
-
# ID of the latest [Charge object](https://stripe.com/
|
|
2856
|
+
# ID of the latest [Charge object](https://docs.stripe.com/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
|
|
3478
2857
|
attr_reader :latest_charge
|
|
3479
2858
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
3480
2859
|
attr_reader :livemode
|
|
3481
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2860
|
+
# 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. Learn more about [storing information in metadata](https://docs.stripe.com/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
|
|
3482
2861
|
attr_reader :metadata
|
|
3483
2862
|
# If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
|
|
3484
2863
|
attr_reader :next_action
|
|
3485
2864
|
# String representing the object's type. Objects of the same type share the same value.
|
|
3486
2865
|
attr_reader :object
|
|
3487
|
-
#
|
|
2866
|
+
# You can specify the settlement merchant as the
|
|
2867
|
+
# connected account using the `on_behalf_of` attribute on the charge. See the PaymentIntents [use case for connected accounts](/payments/connected-accounts) for details.
|
|
3488
2868
|
attr_reader :on_behalf_of
|
|
3489
2869
|
# Attribute for field payment_details
|
|
3490
2870
|
attr_reader :payment_details
|
|
3491
2871
|
# ID of the payment method used in this PaymentIntent.
|
|
3492
2872
|
attr_reader :payment_method
|
|
3493
|
-
# Information about the [payment method configuration](https://stripe.com/
|
|
2873
|
+
# Information about the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) used for this PaymentIntent.
|
|
3494
2874
|
attr_reader :payment_method_configuration_details
|
|
3495
2875
|
# Payment-method-specific configuration for this PaymentIntent.
|
|
3496
2876
|
attr_reader :payment_method_options
|
|
@@ -3504,8 +2884,6 @@ module Stripe
|
|
|
3504
2884
|
attr_reader :receipt_email
|
|
3505
2885
|
# ID of the review associated with this PaymentIntent, if any.
|
|
3506
2886
|
attr_reader :review
|
|
3507
|
-
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
3508
|
-
attr_reader :secret_key_confirmation
|
|
3509
2887
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3510
2888
|
#
|
|
3511
2889
|
# 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.
|
|
@@ -3524,11 +2902,11 @@ module Stripe
|
|
|
3524
2902
|
attr_reader :statement_descriptor
|
|
3525
2903
|
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
|
|
3526
2904
|
attr_reader :statement_descriptor_suffix
|
|
3527
|
-
# Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/
|
|
2905
|
+
# Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses).
|
|
3528
2906
|
attr_reader :status
|
|
3529
|
-
# The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
2907
|
+
# The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
3530
2908
|
attr_reader :transfer_data
|
|
3531
|
-
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
2909
|
+
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
3532
2910
|
attr_reader :transfer_group
|
|
3533
2911
|
|
|
3534
2912
|
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
|
@@ -3699,56 +3077,6 @@ module Stripe
|
|
|
3699
3077
|
request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
|
|
3700
3078
|
end
|
|
3701
3079
|
|
|
3702
|
-
# Perform a decremental authorization on an eligible
|
|
3703
|
-
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3704
|
-
# PaymentIntent's status must be requires_capture and
|
|
3705
|
-
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
3706
|
-
# must be available.
|
|
3707
|
-
#
|
|
3708
|
-
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
3709
|
-
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
3710
|
-
#
|
|
3711
|
-
# After decrement, the PaymentIntent object
|
|
3712
|
-
# returns with the updated
|
|
3713
|
-
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
3714
|
-
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
3715
|
-
#
|
|
3716
|
-
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
3717
|
-
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
3718
|
-
def decrement_authorization(params = {}, opts = {})
|
|
3719
|
-
request_stripe_object(
|
|
3720
|
-
method: :post,
|
|
3721
|
-
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
|
|
3722
|
-
params: params,
|
|
3723
|
-
opts: opts
|
|
3724
|
-
)
|
|
3725
|
-
end
|
|
3726
|
-
|
|
3727
|
-
# Perform a decremental authorization on an eligible
|
|
3728
|
-
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3729
|
-
# PaymentIntent's status must be requires_capture and
|
|
3730
|
-
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
3731
|
-
# must be available.
|
|
3732
|
-
#
|
|
3733
|
-
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
3734
|
-
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
3735
|
-
#
|
|
3736
|
-
# After decrement, the PaymentIntent object
|
|
3737
|
-
# returns with the updated
|
|
3738
|
-
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
3739
|
-
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
3740
|
-
#
|
|
3741
|
-
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
3742
|
-
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
3743
|
-
def self.decrement_authorization(intent, params = {}, opts = {})
|
|
3744
|
-
request_stripe_object(
|
|
3745
|
-
method: :post,
|
|
3746
|
-
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
|
3747
|
-
params: params,
|
|
3748
|
-
opts: opts
|
|
3749
|
-
)
|
|
3750
|
-
end
|
|
3751
|
-
|
|
3752
3080
|
# Perform an incremental authorization on an eligible
|
|
3753
3081
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3754
3082
|
# PaymentIntent's status must be requires_capture and
|
|
@@ -3833,26 +3161,6 @@ module Stripe
|
|
|
3833
3161
|
search(params, opts).auto_paging_each(&blk)
|
|
3834
3162
|
end
|
|
3835
3163
|
|
|
3836
|
-
# Trigger an external action on a PaymentIntent.
|
|
3837
|
-
def trigger_action(params = {}, opts = {})
|
|
3838
|
-
request_stripe_object(
|
|
3839
|
-
method: :post,
|
|
3840
|
-
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
|
|
3841
|
-
params: params,
|
|
3842
|
-
opts: opts
|
|
3843
|
-
)
|
|
3844
|
-
end
|
|
3845
|
-
|
|
3846
|
-
# Trigger an external action on a PaymentIntent.
|
|
3847
|
-
def self.trigger_action(intent, params = {}, opts = {})
|
|
3848
|
-
request_stripe_object(
|
|
3849
|
-
method: :post,
|
|
3850
|
-
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
|
3851
|
-
params: params,
|
|
3852
|
-
opts: opts
|
|
3853
|
-
)
|
|
3854
|
-
end
|
|
3855
|
-
|
|
3856
3164
|
# Updates properties on a PaymentIntent object without confirming.
|
|
3857
3165
|
#
|
|
3858
3166
|
# Depending on which properties you update, you might need to confirm the
|