stripe 18.1.0.pre.alpha.4 → 18.2.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +56 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/object_types.rb +6 -0
- data/lib/stripe/params/account_create_params.rb +50 -28
- 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_notice_update_params.rb +1 -1
- 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 +17 -0
- data/lib/stripe/params/account_update_params.rb +49 -27
- 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/balance_transfer_create_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 +9 -9
- 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 +10 -10
- data/lib/stripe/params/checkout/session_create_params.rb +53 -41
- data/lib/stripe/params/checkout/session_update_params.rb +27 -15
- 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 -6
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- 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_update_params.rb +7 -7
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +84 -1
- data/lib/stripe/params/dispute_update_params.rb +3 -3
- data/lib/stripe/params/external_account_create_params.rb +2 -2
- data/lib/stripe/params/external_account_update_params.rb +2 -2
- 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 +3 -3
- 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 +21 -9
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -1
- data/lib/stripe/params/invoice_create_params.rb +37 -13
- data/lib/stripe/params/invoice_create_preview_params.rb +60 -60
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +8 -8
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +6 -6
- data/lib/stripe/params/invoice_line_item_update_params.rb +20 -8
- 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 +21 -9
- data/lib/stripe/params/invoice_update_params.rb +34 -10
- 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_list_params.rb +34 -1
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -11
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +1 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +4 -4
- 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/program_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_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/mandate_list_params.rb +1 -1
- data/lib/stripe/params/margin_create_params.rb +1 -1
- data/lib/stripe/params/margin_update_params.rb +1 -1
- data/lib/stripe/params/order_create_params.rb +12 -12
- data/lib/stripe/params/order_update_params.rb +12 -12
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +18 -18
- data/lib/stripe/params/payment_intent_confirm_params.rb +43 -39
- data/lib/stripe/params/payment_intent_create_params.rb +61 -57
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +4 -4
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +10 -10
- 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 +40 -40
- data/lib/stripe/params/payment_link_create_params.rb +32 -20
- 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 +40 -40
- data/lib/stripe/params/payment_method_configuration_update_params.rb +40 -40
- data/lib/stripe/params/payment_method_create_params.rb +4 -4
- 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 -3
- data/lib/stripe/params/product_create_params.rb +21 -8
- 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 +18 -5
- 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 +14 -14
- data/lib/stripe/params/quote_list_params.rb +2 -2
- data/lib/stripe/params/quote_update_params.rb +14 -14
- 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 +6 -6
- data/lib/stripe/params/setup_intent_create_params.rb +12 -12
- data/lib/stripe/params/setup_intent_update_params.rb +8 -8
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- 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 +51 -27
- data/lib/stripe/params/subscription_item_create_params.rb +15 -15
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +15 -15
- 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_amend_params.rb +10 -10
- data/lib/stripe/params/subscription_schedule_create_params.rb +31 -31
- data/lib/stripe/params/subscription_schedule_update_params.rb +31 -31
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +49 -25
- 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/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 -6
- 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/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -1
- 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 -3
- 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 +1 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -1
- 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 -3
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/intent_create_params.rb +110 -40
- data/lib/stripe/params/v2/core/account_create_params.rb +36 -24
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +8 -8
- data/lib/stripe/params/v2/core/account_update_params.rb +41 -29
- 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/v2/core/claimable_sandbox_create_params.rb +1 -1
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -1
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- 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 +24 -0
- data/lib/stripe/resources/account.rb +27 -27
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_notice.rb +6 -6
- data/lib/stripe/resources/account_session.rb +5 -5
- 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/balance_transfer.rb +3 -3
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -2
- data/lib/stripe/resources/billing/credit_grant.rb +3 -3
- 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/capital/financing_offer.rb +2 -2
- data/lib/stripe/resources/capital/financing_summary.rb +7 -4
- data/lib/stripe/resources/card.rb +2 -2
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +47 -35
- data/lib/stripe/resources/checkout/session.rb +19 -19
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -11
- data/lib/stripe/resources/coupon.rb +3 -3
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -1
- 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/delegated_checkout/requested_session.rb +63 -10
- data/lib/stripe/resources/discount.rb +5 -5
- data/lib/stripe/resources/dispute.rb +5 -5
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +1 -1
- 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 -3
- data/lib/stripe/resources/financial_connections/session.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/blocklist_entry.rb +1 -1
- 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 +66 -34
- data/lib/stripe/resources/invoice_item.rb +9 -9
- data/lib/stripe/resources/invoice_line_item.rb +7 -7
- 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 +16 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +5 -5
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/program.rb +1 -1
- data/lib/stripe/resources/issuing/settlement.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +13 -13
- data/lib/stripe/resources/line_item.rb +3 -3
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/margin.rb +1 -1
- data/lib/stripe/resources/order.rb +13 -13
- data/lib/stripe/resources/payment_attempt_record.rb +80 -22
- data/lib/stripe/resources/payment_intent.rb +117 -74
- 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 -13
- data/lib/stripe/resources/payment_method_configuration.rb +4 -4
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +82 -22
- 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 -6
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +15 -15
- data/lib/stripe/resources/quote_line.rb +5 -5
- data/lib/stripe/resources/quote_preview_invoice.rb +64 -32
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +100 -100
- 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 -3
- 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 -17
- data/lib/stripe/resources/setup_intent.rb +19 -19
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- 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 -8
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +46 -14
- data/lib/stripe/resources/subscription_item.rb +22 -22
- data/lib/stripe/resources/subscription_schedule.rb +101 -101
- 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/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +5 -5
- 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 -1
- 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 -5
- data/lib/stripe/resources/treasury/received_credit.rb +10 -10
- data/lib/stripe/resources/treasury/received_debit.rb +7 -7
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/billing/intent_action.rb +139 -51
- data/lib/stripe/resources/v2/core/account.rb +174 -289
- 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/v2/core/vault/gb_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +23 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +20 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +19 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- 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/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +2 -0
- data/lib/stripe/services/v2/payment_service.rb +3 -1
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_object.rb +11 -3
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6022 -3221
- metadata +55 -2
|
@@ -95,7 +95,7 @@ module Stripe
|
|
|
95
95
|
#
|
|
96
96
|
# Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
|
|
97
97
|
attr_accessor :product
|
|
98
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
98
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
99
99
|
attr_accessor :tax_behavior
|
|
100
100
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
101
101
|
attr_accessor :unit_amount
|
|
@@ -143,7 +143,7 @@ module Stripe
|
|
|
143
143
|
attr_accessor :id
|
|
144
144
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
145
145
|
attr_accessor :images
|
|
146
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
146
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
147
147
|
attr_accessor :metadata
|
|
148
148
|
# The product's name, meant to be displayable to the customer.
|
|
149
149
|
attr_accessor :name
|
|
@@ -151,7 +151,7 @@ module Stripe
|
|
|
151
151
|
attr_accessor :package_dimensions
|
|
152
152
|
# Whether this product is shipped (i.e., physical goods).
|
|
153
153
|
attr_accessor :shippable
|
|
154
|
-
# A [tax code](https://stripe.com/
|
|
154
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
155
155
|
attr_accessor :tax_code
|
|
156
156
|
# A URL of a publicly-accessible webpage for this product.
|
|
157
157
|
attr_accessor :url
|
|
@@ -301,9 +301,9 @@ module Stripe
|
|
|
301
301
|
attr_accessor :reference
|
|
302
302
|
# Indicates that you intend to make future payments with the payment method.
|
|
303
303
|
#
|
|
304
|
-
# Providing this parameter will [attach the payment method](https://stripe.com/
|
|
304
|
+
# Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
305
305
|
#
|
|
306
|
-
# When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/
|
|
306
|
+
# When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
307
307
|
#
|
|
308
308
|
# If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
309
309
|
attr_accessor :setup_future_usage
|
|
@@ -357,9 +357,9 @@ module Stripe
|
|
|
357
357
|
attr_accessor :capture_method
|
|
358
358
|
# Indicates that you intend to make future payments with the payment method.
|
|
359
359
|
#
|
|
360
|
-
# Providing this parameter will [attach the payment method](https://stripe.com/
|
|
360
|
+
# Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
361
361
|
#
|
|
362
|
-
# When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/
|
|
362
|
+
# When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
363
363
|
#
|
|
364
364
|
# If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
365
365
|
attr_accessor :setup_future_usage
|
|
@@ -1595,7 +1595,7 @@ module Stripe
|
|
|
1595
1595
|
attr_accessor :capture_method
|
|
1596
1596
|
# The line items purchased by the customer.
|
|
1597
1597
|
attr_accessor :line_items
|
|
1598
|
-
# [Preferred locale](https://stripe.com/
|
|
1598
|
+
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1599
1599
|
attr_accessor :preferred_locale
|
|
1600
1600
|
# 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.
|
|
1601
1601
|
attr_accessor :reference
|
|
@@ -1791,7 +1791,7 @@ module Stripe
|
|
|
1791
1791
|
attr_accessor :application_fee_amount
|
|
1792
1792
|
# PaymentMethod-specific configuration to provide to the order's PaymentIntent.
|
|
1793
1793
|
attr_accessor :payment_method_options
|
|
1794
|
-
# The list of [payment method types](https://stripe.com/
|
|
1794
|
+
# The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
|
1795
1795
|
attr_accessor :payment_method_types
|
|
1796
1796
|
# The URL to redirect the customer to after they authenticate their payment.
|
|
1797
1797
|
attr_accessor :return_url
|
|
@@ -1896,11 +1896,11 @@ module Stripe
|
|
|
1896
1896
|
attr_accessor :display_name
|
|
1897
1897
|
# Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
1898
1898
|
attr_accessor :fixed_amount
|
|
1899
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
1899
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1900
1900
|
attr_accessor :metadata
|
|
1901
1901
|
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
1902
1902
|
attr_accessor :tax_behavior
|
|
1903
|
-
# A [tax code](https://stripe.com/
|
|
1903
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
1904
1904
|
attr_accessor :tax_code
|
|
1905
1905
|
# The type of calculation to use on the shipping rate.
|
|
1906
1906
|
attr_accessor :type
|
|
@@ -2019,7 +2019,7 @@ module Stripe
|
|
|
2019
2019
|
attr_accessor :ip_address
|
|
2020
2020
|
# A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
|
|
2021
2021
|
attr_accessor :line_items
|
|
2022
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2022
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2023
2023
|
attr_accessor :metadata
|
|
2024
2024
|
# Payment information associated with the order, including payment settings.
|
|
2025
2025
|
attr_accessor :payment
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class PaymentIntentApplyCustomerBalanceParams < ::Stripe::RequestParams
|
|
6
6
|
# Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter.
|
|
7
7
|
#
|
|
8
|
-
# A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/
|
|
8
|
+
# A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent.
|
|
9
9
|
#
|
|
10
10
|
# When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent.
|
|
11
11
|
attr_accessor :amount
|
|
@@ -79,7 +79,7 @@ module Stripe
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
class Tax < ::Stripe::RequestParams
|
|
82
|
-
# The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/
|
|
82
|
+
# The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
83
83
|
#
|
|
84
84
|
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
|
|
85
85
|
attr_accessor :total_tax_amount
|
|
@@ -88,7 +88,7 @@ module Stripe
|
|
|
88
88
|
@total_tax_amount = total_tax_amount
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
|
-
# The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/
|
|
91
|
+
# The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
92
92
|
#
|
|
93
93
|
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
|
|
94
94
|
attr_accessor :discount_amount
|
|
@@ -104,7 +104,7 @@ module Stripe
|
|
|
104
104
|
attr_accessor :quantity
|
|
105
105
|
# Contains information about the tax on the item.
|
|
106
106
|
attr_accessor :tax
|
|
107
|
-
# The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/
|
|
107
|
+
# The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
108
108
|
attr_accessor :unit_cost
|
|
109
109
|
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
|
110
110
|
attr_accessor :unit_of_measure
|
|
@@ -131,7 +131,7 @@ module Stripe
|
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
class Shipping < ::Stripe::RequestParams
|
|
134
|
-
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/
|
|
134
|
+
# 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.
|
|
135
135
|
attr_accessor :amount
|
|
136
136
|
# 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.
|
|
137
137
|
attr_accessor :from_postal_code
|
|
@@ -146,7 +146,7 @@ module Stripe
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
class Tax < ::Stripe::RequestParams
|
|
149
|
-
# The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
149
|
+
# 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.
|
|
150
150
|
#
|
|
151
151
|
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
152
152
|
attr_accessor :total_tax_amount
|
|
@@ -155,7 +155,7 @@ module Stripe
|
|
|
155
155
|
@total_tax_amount = total_tax_amount
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
158
|
+
# 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.
|
|
159
159
|
#
|
|
160
160
|
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
161
|
attr_accessor :discount_amount
|
|
@@ -177,7 +177,7 @@ module Stripe
|
|
|
177
177
|
class Hooks < ::Stripe::RequestParams
|
|
178
178
|
class Inputs < ::Stripe::RequestParams
|
|
179
179
|
class Tax < ::Stripe::RequestParams
|
|
180
|
-
# The [TaxCalculation](https://stripe.com/
|
|
180
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
181
181
|
attr_accessor :calculation
|
|
182
182
|
|
|
183
183
|
def initialize(calculation: nil)
|
|
@@ -274,7 +274,7 @@ module Stripe
|
|
|
274
274
|
attr_accessor :line2
|
|
275
275
|
# ZIP or postal code.
|
|
276
276
|
attr_accessor :postal_code
|
|
277
|
-
# State, county, province, or region.
|
|
277
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
278
278
|
attr_accessor :state
|
|
279
279
|
|
|
280
280
|
def initialize(
|
|
@@ -305,7 +305,7 @@ module Stripe
|
|
|
305
305
|
attr_accessor :line2
|
|
306
306
|
# ZIP or postal code.
|
|
307
307
|
attr_accessor :postal_code
|
|
308
|
-
# State, county, province, or region.
|
|
308
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
309
309
|
attr_accessor :state
|
|
310
310
|
|
|
311
311
|
def initialize(
|
|
@@ -500,7 +500,7 @@ module Stripe
|
|
|
500
500
|
attr_accessor :line2
|
|
501
501
|
# ZIP or postal code.
|
|
502
502
|
attr_accessor :postal_code
|
|
503
|
-
# State, county, province, or region.
|
|
503
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
504
504
|
attr_accessor :state
|
|
505
505
|
|
|
506
506
|
def initialize(
|
|
@@ -568,7 +568,7 @@ module Stripe
|
|
|
568
568
|
attr_accessor :line2
|
|
569
569
|
# ZIP or postal code.
|
|
570
570
|
attr_accessor :postal_code
|
|
571
|
-
# State, county, province, or region.
|
|
571
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
572
572
|
attr_accessor :state
|
|
573
573
|
|
|
574
574
|
def initialize(
|
|
@@ -796,7 +796,7 @@ module Stripe
|
|
|
796
796
|
attr_accessor :line2
|
|
797
797
|
# ZIP or postal code.
|
|
798
798
|
attr_accessor :postal_code
|
|
799
|
-
# State, county, province, or region.
|
|
799
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
800
800
|
attr_accessor :state
|
|
801
801
|
|
|
802
802
|
def initialize(
|
|
@@ -1294,7 +1294,7 @@ module Stripe
|
|
|
1294
1294
|
attr_accessor :line2
|
|
1295
1295
|
# ZIP or postal code.
|
|
1296
1296
|
attr_accessor :postal_code
|
|
1297
|
-
# State, county, province, or region.
|
|
1297
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1298
1298
|
attr_accessor :state
|
|
1299
1299
|
|
|
1300
1300
|
def initialize(
|
|
@@ -1516,7 +1516,7 @@ module Stripe
|
|
|
1516
1516
|
attr_accessor :line2
|
|
1517
1517
|
# ZIP or postal code.
|
|
1518
1518
|
attr_accessor :postal_code
|
|
1519
|
-
# State, county, province, or region.
|
|
1519
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1520
1520
|
attr_accessor :state
|
|
1521
1521
|
|
|
1522
1522
|
def initialize(
|
|
@@ -1855,15 +1855,15 @@ module Stripe
|
|
|
1855
1855
|
attr_accessor :amount_details
|
|
1856
1856
|
# The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided.
|
|
1857
1857
|
attr_accessor :amount_to_capture
|
|
1858
|
-
# 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/
|
|
1858
|
+
# 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).
|
|
1859
1859
|
attr_accessor :application_fee_amount
|
|
1860
1860
|
# Specifies which fields in the response should be expanded.
|
|
1861
1861
|
attr_accessor :expand
|
|
1862
|
-
# Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/
|
|
1862
|
+
# Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://docs.stripe.com/payments/multicapture) is available for PaymentIntents.
|
|
1863
1863
|
attr_accessor :final_capture
|
|
1864
1864
|
# Automations to be run during the PaymentIntent lifecycle
|
|
1865
1865
|
attr_accessor :hooks
|
|
1866
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
1866
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1867
1867
|
attr_accessor :metadata
|
|
1868
1868
|
# Provides industry-specific information about the charge.
|
|
1869
1869
|
attr_accessor :payment_details
|
|
@@ -1874,7 +1874,7 @@ module Stripe
|
|
|
1874
1874
|
# 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.
|
|
1875
1875
|
attr_accessor :statement_descriptor_suffix
|
|
1876
1876
|
# The parameters that you can use to automatically create a transfer after the payment
|
|
1877
|
-
# is captured. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
1877
|
+
# is captured. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
1878
1878
|
attr_accessor :transfer_data
|
|
1879
1879
|
|
|
1880
1880
|
def initialize(
|
|
@@ -88,7 +88,7 @@ module Stripe
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
class Tax < ::Stripe::RequestParams
|
|
91
|
-
# The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/
|
|
91
|
+
# The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
92
92
|
#
|
|
93
93
|
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
|
|
94
94
|
attr_accessor :total_tax_amount
|
|
@@ -97,7 +97,7 @@ module Stripe
|
|
|
97
97
|
@total_tax_amount = total_tax_amount
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
|
-
# The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/
|
|
100
|
+
# The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
101
101
|
#
|
|
102
102
|
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
|
|
103
103
|
attr_accessor :discount_amount
|
|
@@ -113,7 +113,7 @@ module Stripe
|
|
|
113
113
|
attr_accessor :quantity
|
|
114
114
|
# Contains information about the tax on the item.
|
|
115
115
|
attr_accessor :tax
|
|
116
|
-
# The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/
|
|
116
|
+
# The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
117
117
|
attr_accessor :unit_cost
|
|
118
118
|
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
|
119
119
|
attr_accessor :unit_of_measure
|
|
@@ -140,7 +140,7 @@ module Stripe
|
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
class Shipping < ::Stripe::RequestParams
|
|
143
|
-
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/
|
|
143
|
+
# 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.
|
|
144
144
|
attr_accessor :amount
|
|
145
145
|
# 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.
|
|
146
146
|
attr_accessor :from_postal_code
|
|
@@ -155,7 +155,7 @@ module Stripe
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
class Tax < ::Stripe::RequestParams
|
|
158
|
-
# The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
158
|
+
# 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.
|
|
159
159
|
#
|
|
160
160
|
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
161
161
|
attr_accessor :total_tax_amount
|
|
@@ -164,7 +164,7 @@ module Stripe
|
|
|
164
164
|
@total_tax_amount = total_tax_amount
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/
|
|
167
|
+
# 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.
|
|
168
168
|
#
|
|
169
169
|
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
170
170
|
attr_accessor :discount_amount
|
|
@@ -186,7 +186,7 @@ module Stripe
|
|
|
186
186
|
class Hooks < ::Stripe::RequestParams
|
|
187
187
|
class Inputs < ::Stripe::RequestParams
|
|
188
188
|
class Tax < ::Stripe::RequestParams
|
|
189
|
-
# The [TaxCalculation](https://stripe.com/
|
|
189
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
190
190
|
attr_accessor :calculation
|
|
191
191
|
|
|
192
192
|
def initialize(calculation: nil)
|
|
@@ -339,7 +339,7 @@ module Stripe
|
|
|
339
339
|
attr_accessor :line2
|
|
340
340
|
# ZIP or postal code.
|
|
341
341
|
attr_accessor :postal_code
|
|
342
|
-
# State, county, province, or region.
|
|
342
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
343
343
|
attr_accessor :state
|
|
344
344
|
|
|
345
345
|
def initialize(
|
|
@@ -370,7 +370,7 @@ module Stripe
|
|
|
370
370
|
attr_accessor :line2
|
|
371
371
|
# ZIP or postal code.
|
|
372
372
|
attr_accessor :postal_code
|
|
373
|
-
# State, county, province, or region.
|
|
373
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
374
374
|
attr_accessor :state
|
|
375
375
|
|
|
376
376
|
def initialize(
|
|
@@ -565,7 +565,7 @@ module Stripe
|
|
|
565
565
|
attr_accessor :line2
|
|
566
566
|
# ZIP or postal code.
|
|
567
567
|
attr_accessor :postal_code
|
|
568
|
-
# State, county, province, or region.
|
|
568
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
569
569
|
attr_accessor :state
|
|
570
570
|
|
|
571
571
|
def initialize(
|
|
@@ -633,7 +633,7 @@ module Stripe
|
|
|
633
633
|
attr_accessor :line2
|
|
634
634
|
# ZIP or postal code.
|
|
635
635
|
attr_accessor :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_accessor :state
|
|
638
638
|
|
|
639
639
|
def initialize(
|
|
@@ -861,7 +861,7 @@ module Stripe
|
|
|
861
861
|
attr_accessor :line2
|
|
862
862
|
# ZIP or postal code.
|
|
863
863
|
attr_accessor :postal_code
|
|
864
|
-
# State, county, province, or region.
|
|
864
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
865
865
|
attr_accessor :state
|
|
866
866
|
|
|
867
867
|
def initialize(
|
|
@@ -1359,7 +1359,7 @@ module Stripe
|
|
|
1359
1359
|
attr_accessor :line2
|
|
1360
1360
|
# ZIP or postal code.
|
|
1361
1361
|
attr_accessor :postal_code
|
|
1362
|
-
# State, county, province, or region.
|
|
1362
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1363
1363
|
attr_accessor :state
|
|
1364
1364
|
|
|
1365
1365
|
def initialize(
|
|
@@ -1581,7 +1581,7 @@ module Stripe
|
|
|
1581
1581
|
attr_accessor :line2
|
|
1582
1582
|
# ZIP or postal code.
|
|
1583
1583
|
attr_accessor :postal_code
|
|
1584
|
-
# State, county, province, or region.
|
|
1584
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1585
1585
|
attr_accessor :state
|
|
1586
1586
|
|
|
1587
1587
|
def initialize(
|
|
@@ -1973,7 +1973,7 @@ module Stripe
|
|
|
1973
1973
|
attr_accessor :line2
|
|
1974
1974
|
# ZIP or postal code.
|
|
1975
1975
|
attr_accessor :postal_code
|
|
1976
|
-
# State, county, province, or region.
|
|
1976
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1977
1977
|
attr_accessor :state
|
|
1978
1978
|
|
|
1979
1979
|
def initialize(
|
|
@@ -2180,7 +2180,7 @@ module Stripe
|
|
|
2180
2180
|
class Qris < ::Stripe::RequestParams; end
|
|
2181
2181
|
|
|
2182
2182
|
class RadarOptions < ::Stripe::RequestParams
|
|
2183
|
-
# A [Radar Session](https://stripe.com/
|
|
2183
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
2184
2184
|
attr_accessor :session
|
|
2185
2185
|
|
|
2186
2186
|
def initialize(session: nil)
|
|
@@ -2341,7 +2341,7 @@ module Stripe
|
|
|
2341
2341
|
attr_accessor :link
|
|
2342
2342
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2343
2343
|
attr_accessor :mb_way
|
|
2344
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2344
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2345
2345
|
attr_accessor :metadata
|
|
2346
2346
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
2347
2347
|
attr_accessor :mobilepay
|
|
@@ -2373,7 +2373,7 @@ module Stripe
|
|
|
2373
2373
|
attr_accessor :promptpay
|
|
2374
2374
|
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2375
2375
|
attr_accessor :qris
|
|
2376
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
2376
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2377
2377
|
attr_accessor :radar_options
|
|
2378
2378
|
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2379
2379
|
attr_accessor :rechnung
|
|
@@ -2906,7 +2906,7 @@ module Stripe
|
|
|
2906
2906
|
attr_accessor :line2
|
|
2907
2907
|
# ZIP or postal code.
|
|
2908
2908
|
attr_accessor :postal_code
|
|
2909
|
-
# State, county, province, or region.
|
|
2909
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2910
2910
|
attr_accessor :state
|
|
2911
2911
|
|
|
2912
2912
|
def initialize(
|
|
@@ -3020,7 +3020,7 @@ module Stripe
|
|
|
3020
3020
|
attr_accessor :cvc_token
|
|
3021
3021
|
# Installment configuration for payments attempted on this PaymentIntent.
|
|
3022
3022
|
#
|
|
3023
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
3023
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
3024
3024
|
attr_accessor :installments
|
|
3025
3025
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
3026
3026
|
attr_accessor :mandate_options
|
|
@@ -3030,19 +3030,19 @@ module Stripe
|
|
|
3030
3030
|
attr_accessor :moto
|
|
3031
3031
|
# Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
|
|
3032
3032
|
attr_accessor :network
|
|
3033
|
-
# Request ability to [decrement the authorization](https://stripe.com/
|
|
3033
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3034
3034
|
attr_accessor :request_decremental_authorization
|
|
3035
|
-
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/
|
|
3035
|
+
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3036
3036
|
attr_accessor :request_extended_authorization
|
|
3037
|
-
# Request ability to [increment the authorization](https://stripe.com/
|
|
3037
|
+
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
3038
3038
|
attr_accessor :request_incremental_authorization
|
|
3039
|
-
# Request ability to make [multiple captures](https://stripe.com/
|
|
3039
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3040
3040
|
attr_accessor :request_multicapture
|
|
3041
|
-
# Request ability to [overcapture](https://stripe.com/
|
|
3041
|
+
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3042
3042
|
attr_accessor :request_overcapture
|
|
3043
3043
|
# Request partial authorization on this PaymentIntent.
|
|
3044
3044
|
attr_accessor :request_partial_authorization
|
|
3045
|
-
# 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/
|
|
3045
|
+
# 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.
|
|
3046
3046
|
attr_accessor :request_three_d_secure
|
|
3047
3047
|
# 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).
|
|
3048
3048
|
attr_accessor :require_cvc_recollection
|
|
@@ -3124,9 +3124,9 @@ module Stripe
|
|
|
3124
3124
|
#
|
|
3125
3125
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
3126
3126
|
attr_accessor :capture_method
|
|
3127
|
-
# Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/
|
|
3127
|
+
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
3128
3128
|
attr_accessor :request_extended_authorization
|
|
3129
|
-
# Request ability to [increment](https://stripe.com/
|
|
3129
|
+
# 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.
|
|
3130
3130
|
attr_accessor :request_incremental_authorization_support
|
|
3131
3131
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
3132
3132
|
attr_accessor :routing
|
|
@@ -4731,7 +4731,7 @@ module Stripe
|
|
|
4731
4731
|
attr_accessor :capture_method
|
|
4732
4732
|
# The line items purchased by the customer.
|
|
4733
4733
|
attr_accessor :line_items
|
|
4734
|
-
# [Preferred locale](https://stripe.com/
|
|
4734
|
+
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4735
4735
|
attr_accessor :preferred_locale
|
|
4736
4736
|
# 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.
|
|
4737
4737
|
attr_accessor :reference
|
|
@@ -5504,7 +5504,7 @@ module Stripe
|
|
|
5504
5504
|
end
|
|
5505
5505
|
|
|
5506
5506
|
class RadarOptions < ::Stripe::RequestParams
|
|
5507
|
-
# A [Radar Session](https://stripe.com/
|
|
5507
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
5508
5508
|
attr_accessor :session
|
|
5509
5509
|
|
|
5510
5510
|
def initialize(session: nil)
|
|
@@ -5524,7 +5524,7 @@ module Stripe
|
|
|
5524
5524
|
attr_accessor :line2
|
|
5525
5525
|
# ZIP or postal code.
|
|
5526
5526
|
attr_accessor :postal_code
|
|
5527
|
-
# State, county, province, or region.
|
|
5527
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
5528
5528
|
attr_accessor :state
|
|
5529
5529
|
|
|
5530
5530
|
def initialize(
|
|
@@ -5566,7 +5566,7 @@ module Stripe
|
|
|
5566
5566
|
attr_accessor :allocated_funds
|
|
5567
5567
|
# Provides industry-specific information about the amount.
|
|
5568
5568
|
attr_accessor :amount_details
|
|
5569
|
-
# 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/
|
|
5569
|
+
# 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).
|
|
5570
5570
|
attr_accessor :application_fee_amount
|
|
5571
5571
|
# Controls when the funds will be captured from the customer's account.
|
|
5572
5572
|
attr_accessor :capture_method
|
|
@@ -5574,7 +5574,7 @@ module Stripe
|
|
|
5574
5574
|
#
|
|
5575
5575
|
# If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
|
|
5576
5576
|
attr_accessor :confirmation_token
|
|
5577
|
-
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/
|
|
5577
|
+
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication).
|
|
5578
5578
|
attr_accessor :error_on_requires_action
|
|
5579
5579
|
# The list of payment method types to exclude from use with this payment.
|
|
5580
5580
|
attr_accessor :excluded_payment_method_types
|
|
@@ -5588,22 +5588,22 @@ module Stripe
|
|
|
5588
5588
|
attr_accessor :mandate
|
|
5589
5589
|
# Attribute for param field mandate_data
|
|
5590
5590
|
attr_accessor :mandate_data
|
|
5591
|
-
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/
|
|
5591
|
+
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards).
|
|
5592
5592
|
attr_accessor :off_session
|
|
5593
5593
|
# Provides industry-specific information about the charge.
|
|
5594
5594
|
attr_accessor :payment_details
|
|
5595
|
-
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/
|
|
5596
|
-
# If the payment method is attached to a Customer, it must match the [customer](https://stripe.com
|
|
5595
|
+
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
|
|
5596
|
+
# If the payment method is attached to a Customer, it must match the [customer](https://api.stripe.com#create_payment_intent-customer) that is set on this PaymentIntent.
|
|
5597
5597
|
attr_accessor :payment_method
|
|
5598
5598
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
|
5599
|
-
# in the [payment_method](https://stripe.com/
|
|
5599
|
+
# in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
|
|
5600
5600
|
# property on the PaymentIntent.
|
|
5601
5601
|
attr_accessor :payment_method_data
|
|
5602
5602
|
# Payment method-specific configuration for this PaymentIntent.
|
|
5603
5603
|
attr_accessor :payment_method_options
|
|
5604
5604
|
# The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
5605
5605
|
attr_accessor :payment_method_types
|
|
5606
|
-
# Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/
|
|
5606
|
+
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
5607
5607
|
attr_accessor :radar_options
|
|
5608
5608
|
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
5609
5609
|
attr_accessor :receipt_email
|
|
@@ -5625,6 +5625,8 @@ module Stripe
|
|
|
5625
5625
|
attr_accessor :shipping
|
|
5626
5626
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
|
5627
5627
|
attr_accessor :use_stripe_sdk
|
|
5628
|
+
# ID of the SharedPaymentToken used to confirm this PaymentIntent.
|
|
5629
|
+
attr_accessor :shared_payment_granted_token
|
|
5628
5630
|
|
|
5629
5631
|
def initialize(
|
|
5630
5632
|
allocated_funds: nil,
|
|
@@ -5650,7 +5652,8 @@ module Stripe
|
|
|
5650
5652
|
return_url: nil,
|
|
5651
5653
|
setup_future_usage: nil,
|
|
5652
5654
|
shipping: nil,
|
|
5653
|
-
use_stripe_sdk: nil
|
|
5655
|
+
use_stripe_sdk: nil,
|
|
5656
|
+
shared_payment_granted_token: nil
|
|
5654
5657
|
)
|
|
5655
5658
|
@allocated_funds = allocated_funds
|
|
5656
5659
|
@amount_details = amount_details
|
|
@@ -5676,6 +5679,7 @@ module Stripe
|
|
|
5676
5679
|
@setup_future_usage = setup_future_usage
|
|
5677
5680
|
@shipping = shipping
|
|
5678
5681
|
@use_stripe_sdk = use_stripe_sdk
|
|
5682
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
5679
5683
|
end
|
|
5680
5684
|
end
|
|
5681
5685
|
end
|