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
|
@@ -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 AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
187
187
|
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
188
188
|
#
|
|
189
|
-
# 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/
|
|
189
|
+
# 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.
|
|
190
190
|
attr_accessor :allow_redirects
|
|
191
191
|
# Whether this feature is enabled.
|
|
192
192
|
attr_accessor :enabled
|
|
@@ -200,7 +200,7 @@ module Stripe
|
|
|
200
200
|
class Hooks < ::Stripe::RequestParams
|
|
201
201
|
class Inputs < ::Stripe::RequestParams
|
|
202
202
|
class Tax < ::Stripe::RequestParams
|
|
203
|
-
# The [TaxCalculation](https://stripe.com/
|
|
203
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
204
204
|
attr_accessor :calculation
|
|
205
205
|
|
|
206
206
|
def initialize(calculation: nil)
|
|
@@ -353,7 +353,7 @@ module Stripe
|
|
|
353
353
|
attr_accessor :line2
|
|
354
354
|
# ZIP or postal code.
|
|
355
355
|
attr_accessor :postal_code
|
|
356
|
-
# State, county, province, or region.
|
|
356
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
357
357
|
attr_accessor :state
|
|
358
358
|
|
|
359
359
|
def initialize(
|
|
@@ -384,7 +384,7 @@ module Stripe
|
|
|
384
384
|
attr_accessor :line2
|
|
385
385
|
# ZIP or postal code.
|
|
386
386
|
attr_accessor :postal_code
|
|
387
|
-
# State, county, province, or region.
|
|
387
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
388
388
|
attr_accessor :state
|
|
389
389
|
|
|
390
390
|
def initialize(
|
|
@@ -579,7 +579,7 @@ module Stripe
|
|
|
579
579
|
attr_accessor :line2
|
|
580
580
|
# ZIP or postal code.
|
|
581
581
|
attr_accessor :postal_code
|
|
582
|
-
# State, county, province, or region.
|
|
582
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
583
583
|
attr_accessor :state
|
|
584
584
|
|
|
585
585
|
def initialize(
|
|
@@ -647,7 +647,7 @@ module Stripe
|
|
|
647
647
|
attr_accessor :line2
|
|
648
648
|
# ZIP or postal code.
|
|
649
649
|
attr_accessor :postal_code
|
|
650
|
-
# State, county, province, or region.
|
|
650
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
651
651
|
attr_accessor :state
|
|
652
652
|
|
|
653
653
|
def initialize(
|
|
@@ -875,7 +875,7 @@ module Stripe
|
|
|
875
875
|
attr_accessor :line2
|
|
876
876
|
# ZIP or postal code.
|
|
877
877
|
attr_accessor :postal_code
|
|
878
|
-
# State, county, province, or region.
|
|
878
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
879
879
|
attr_accessor :state
|
|
880
880
|
|
|
881
881
|
def initialize(
|
|
@@ -1373,7 +1373,7 @@ module Stripe
|
|
|
1373
1373
|
attr_accessor :line2
|
|
1374
1374
|
# ZIP or postal code.
|
|
1375
1375
|
attr_accessor :postal_code
|
|
1376
|
-
# State, county, province, or region.
|
|
1376
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1377
1377
|
attr_accessor :state
|
|
1378
1378
|
|
|
1379
1379
|
def initialize(
|
|
@@ -1595,7 +1595,7 @@ module Stripe
|
|
|
1595
1595
|
attr_accessor :line2
|
|
1596
1596
|
# ZIP or postal code.
|
|
1597
1597
|
attr_accessor :postal_code
|
|
1598
|
-
# State, county, province, or region.
|
|
1598
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1599
1599
|
attr_accessor :state
|
|
1600
1600
|
|
|
1601
1601
|
def initialize(
|
|
@@ -1987,7 +1987,7 @@ module Stripe
|
|
|
1987
1987
|
attr_accessor :line2
|
|
1988
1988
|
# ZIP or postal code.
|
|
1989
1989
|
attr_accessor :postal_code
|
|
1990
|
-
# State, county, province, or region.
|
|
1990
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1991
1991
|
attr_accessor :state
|
|
1992
1992
|
|
|
1993
1993
|
def initialize(
|
|
@@ -2194,7 +2194,7 @@ module Stripe
|
|
|
2194
2194
|
class Qris < ::Stripe::RequestParams; end
|
|
2195
2195
|
|
|
2196
2196
|
class RadarOptions < ::Stripe::RequestParams
|
|
2197
|
-
# A [Radar Session](https://stripe.com/
|
|
2197
|
+
# 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.
|
|
2198
2198
|
attr_accessor :session
|
|
2199
2199
|
|
|
2200
2200
|
def initialize(session: nil)
|
|
@@ -2355,7 +2355,7 @@ module Stripe
|
|
|
2355
2355
|
attr_accessor :link
|
|
2356
2356
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2357
2357
|
attr_accessor :mb_way
|
|
2358
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2358
|
+
# 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`.
|
|
2359
2359
|
attr_accessor :metadata
|
|
2360
2360
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
2361
2361
|
attr_accessor :mobilepay
|
|
@@ -2387,7 +2387,7 @@ module Stripe
|
|
|
2387
2387
|
attr_accessor :promptpay
|
|
2388
2388
|
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2389
2389
|
attr_accessor :qris
|
|
2390
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
2390
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2391
2391
|
attr_accessor :radar_options
|
|
2392
2392
|
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2393
2393
|
attr_accessor :rechnung
|
|
@@ -2920,7 +2920,7 @@ module Stripe
|
|
|
2920
2920
|
attr_accessor :line2
|
|
2921
2921
|
# ZIP or postal code.
|
|
2922
2922
|
attr_accessor :postal_code
|
|
2923
|
-
# State, county, province, or region.
|
|
2923
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2924
2924
|
attr_accessor :state
|
|
2925
2925
|
|
|
2926
2926
|
def initialize(
|
|
@@ -3034,7 +3034,7 @@ module Stripe
|
|
|
3034
3034
|
attr_accessor :cvc_token
|
|
3035
3035
|
# Installment configuration for payments attempted on this PaymentIntent.
|
|
3036
3036
|
#
|
|
3037
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
3037
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
3038
3038
|
attr_accessor :installments
|
|
3039
3039
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
3040
3040
|
attr_accessor :mandate_options
|
|
@@ -3044,19 +3044,19 @@ module Stripe
|
|
|
3044
3044
|
attr_accessor :moto
|
|
3045
3045
|
# 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.
|
|
3046
3046
|
attr_accessor :network
|
|
3047
|
-
# Request ability to [decrement the authorization](https://stripe.com/
|
|
3047
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3048
3048
|
attr_accessor :request_decremental_authorization
|
|
3049
|
-
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/
|
|
3049
|
+
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3050
3050
|
attr_accessor :request_extended_authorization
|
|
3051
|
-
# Request ability to [increment the authorization](https://stripe.com/
|
|
3051
|
+
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
3052
3052
|
attr_accessor :request_incremental_authorization
|
|
3053
|
-
# Request ability to make [multiple captures](https://stripe.com/
|
|
3053
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3054
3054
|
attr_accessor :request_multicapture
|
|
3055
|
-
# Request ability to [overcapture](https://stripe.com/
|
|
3055
|
+
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3056
3056
|
attr_accessor :request_overcapture
|
|
3057
3057
|
# Request partial authorization on this PaymentIntent.
|
|
3058
3058
|
attr_accessor :request_partial_authorization
|
|
3059
|
-
# 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/
|
|
3059
|
+
# 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.
|
|
3060
3060
|
attr_accessor :request_three_d_secure
|
|
3061
3061
|
# 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).
|
|
3062
3062
|
attr_accessor :require_cvc_recollection
|
|
@@ -3138,9 +3138,9 @@ module Stripe
|
|
|
3138
3138
|
#
|
|
3139
3139
|
# 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.
|
|
3140
3140
|
attr_accessor :capture_method
|
|
3141
|
-
# Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/
|
|
3141
|
+
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
3142
3142
|
attr_accessor :request_extended_authorization
|
|
3143
|
-
# Request ability to [increment](https://stripe.com/
|
|
3143
|
+
# 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.
|
|
3144
3144
|
attr_accessor :request_incremental_authorization_support
|
|
3145
3145
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
3146
3146
|
attr_accessor :routing
|
|
@@ -4745,7 +4745,7 @@ module Stripe
|
|
|
4745
4745
|
attr_accessor :capture_method
|
|
4746
4746
|
# The line items purchased by the customer.
|
|
4747
4747
|
attr_accessor :line_items
|
|
4748
|
-
# [Preferred locale](https://stripe.com/
|
|
4748
|
+
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4749
4749
|
attr_accessor :preferred_locale
|
|
4750
4750
|
# 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.
|
|
4751
4751
|
attr_accessor :reference
|
|
@@ -5527,7 +5527,7 @@ module Stripe
|
|
|
5527
5527
|
end
|
|
5528
5528
|
|
|
5529
5529
|
class RadarOptions < ::Stripe::RequestParams
|
|
5530
|
-
# A [Radar Session](https://stripe.com/
|
|
5530
|
+
# 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.
|
|
5531
5531
|
attr_accessor :session
|
|
5532
5532
|
|
|
5533
5533
|
def initialize(session: nil)
|
|
@@ -5547,7 +5547,7 @@ module Stripe
|
|
|
5547
5547
|
attr_accessor :line2
|
|
5548
5548
|
# ZIP or postal code.
|
|
5549
5549
|
attr_accessor :postal_code
|
|
5550
|
-
# State, county, province, or region.
|
|
5550
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
5551
5551
|
attr_accessor :state
|
|
5552
5552
|
|
|
5553
5553
|
def initialize(
|
|
@@ -5592,7 +5592,7 @@ module Stripe
|
|
|
5592
5592
|
# the full amount is transferred.
|
|
5593
5593
|
#
|
|
5594
5594
|
# If you intend to collect a fee and you need a more robust reporting experience, using
|
|
5595
|
-
# [application_fee_amount](https://stripe.com/
|
|
5595
|
+
# [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
|
|
5596
5596
|
# might be a better fit for your integration.
|
|
5597
5597
|
attr_accessor :amount
|
|
5598
5598
|
# If specified, successful charges will be attributed to the destination
|
|
@@ -5608,17 +5608,17 @@ module Stripe
|
|
|
5608
5608
|
end
|
|
5609
5609
|
# Allocated Funds configuration for this PaymentIntent.
|
|
5610
5610
|
attr_accessor :allocated_funds
|
|
5611
|
-
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/
|
|
5611
|
+
# 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).
|
|
5612
5612
|
attr_accessor :amount
|
|
5613
5613
|
# Provides industry-specific information about the amount.
|
|
5614
5614
|
attr_accessor :amount_details
|
|
5615
|
-
# 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/
|
|
5615
|
+
# 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).
|
|
5616
5616
|
attr_accessor :application_fee_amount
|
|
5617
5617
|
# When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
|
|
5618
5618
|
attr_accessor :automatic_payment_methods
|
|
5619
5619
|
# Controls when the funds will be captured from the customer's account.
|
|
5620
5620
|
attr_accessor :capture_method
|
|
5621
|
-
# Set to `true` to attempt to [confirm this PaymentIntent](https://stripe.com/
|
|
5621
|
+
# Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://docs.stripe.com/api/payment_intents/confirm).
|
|
5622
5622
|
attr_accessor :confirm
|
|
5623
5623
|
# Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
|
|
5624
5624
|
attr_accessor :confirmation_method
|
|
@@ -5632,17 +5632,17 @@ module Stripe
|
|
|
5632
5632
|
#
|
|
5633
5633
|
# Payment methods attached to other Customers cannot be used with this PaymentIntent.
|
|
5634
5634
|
#
|
|
5635
|
-
# If [setup_future_usage](https://stripe.com
|
|
5635
|
+
# 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.
|
|
5636
5636
|
attr_accessor :customer
|
|
5637
|
-
# ID of the Account this PaymentIntent belongs to, if one exists.
|
|
5637
|
+
# ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
|
|
5638
5638
|
#
|
|
5639
5639
|
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
5640
5640
|
#
|
|
5641
|
-
# If [setup_future_usage](https://stripe.com
|
|
5641
|
+
# 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.
|
|
5642
5642
|
attr_accessor :customer_account
|
|
5643
5643
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
5644
5644
|
attr_accessor :description
|
|
5645
|
-
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/
|
|
5645
|
+
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
5646
5646
|
attr_accessor :error_on_requires_action
|
|
5647
5647
|
# The list of payment method types to exclude from use with this payment.
|
|
5648
5648
|
attr_accessor :excluded_payment_method_types
|
|
@@ -5652,39 +5652,41 @@ module Stripe
|
|
|
5652
5652
|
attr_accessor :fx_quote
|
|
5653
5653
|
# Automations to be run during the PaymentIntent lifecycle
|
|
5654
5654
|
attr_accessor :hooks
|
|
5655
|
-
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/
|
|
5655
|
+
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
5656
5656
|
attr_accessor :mandate
|
|
5657
|
-
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/
|
|
5657
|
+
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
5658
5658
|
attr_accessor :mandate_data
|
|
5659
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
5659
|
+
# 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`.
|
|
5660
5660
|
attr_accessor :metadata
|
|
5661
|
-
# 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/
|
|
5661
|
+
# 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). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
5662
5662
|
attr_accessor :off_session
|
|
5663
|
-
# The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
5663
|
+
# The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5664
5664
|
attr_accessor :on_behalf_of
|
|
5665
5665
|
# Provides industry-specific information about the charge.
|
|
5666
5666
|
attr_accessor :payment_details
|
|
5667
|
-
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/
|
|
5667
|
+
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
|
|
5668
5668
|
#
|
|
5669
5669
|
# If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
|
|
5670
|
-
# If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com
|
|
5670
|
+
# If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://api.stripe.com#create_payment_intent-customer) parameter of this PaymentIntent.
|
|
5671
5671
|
# end
|
|
5672
5672
|
attr_accessor :payment_method
|
|
5673
|
-
# The ID of the [payment method configuration](https://stripe.com/
|
|
5673
|
+
# The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
|
|
5674
5674
|
attr_accessor :payment_method_configuration
|
|
5675
5675
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
|
5676
|
-
# in the [payment_method](https://stripe.com/
|
|
5676
|
+
# in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
|
|
5677
5677
|
# property on the PaymentIntent.
|
|
5678
5678
|
attr_accessor :payment_method_data
|
|
5679
5679
|
# Payment method-specific configuration for this PaymentIntent.
|
|
5680
5680
|
attr_accessor :payment_method_options
|
|
5681
5681
|
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](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).
|
|
5682
5682
|
attr_accessor :payment_method_types
|
|
5683
|
-
#
|
|
5683
|
+
# When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
5684
|
+
attr_accessor :payments_orchestration
|
|
5685
|
+
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
5684
5686
|
attr_accessor :radar_options
|
|
5685
5687
|
# Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
5686
5688
|
attr_accessor :receipt_email
|
|
5687
|
-
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/
|
|
5689
|
+
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
5688
5690
|
attr_accessor :return_url
|
|
5689
5691
|
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
5690
5692
|
attr_accessor :secret_key_confirmation
|
|
@@ -5705,14 +5707,14 @@ module Stripe
|
|
|
5705
5707
|
# 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.
|
|
5706
5708
|
attr_accessor :statement_descriptor_suffix
|
|
5707
5709
|
# The parameters that you can use to automatically create a Transfer.
|
|
5708
|
-
# Learn more about the [use case for connected accounts](https://stripe.com/
|
|
5710
|
+
# Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5709
5711
|
attr_accessor :transfer_data
|
|
5710
|
-
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
5712
|
+
# 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).
|
|
5711
5713
|
attr_accessor :transfer_group
|
|
5712
5714
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
|
5713
5715
|
attr_accessor :use_stripe_sdk
|
|
5714
|
-
#
|
|
5715
|
-
attr_accessor :
|
|
5716
|
+
# ID of the SharedPaymentToken used to confirm this PaymentIntent.
|
|
5717
|
+
attr_accessor :shared_payment_granted_token
|
|
5716
5718
|
|
|
5717
5719
|
def initialize(
|
|
5718
5720
|
allocated_funds: nil,
|
|
@@ -5744,6 +5746,7 @@ module Stripe
|
|
|
5744
5746
|
payment_method_data: nil,
|
|
5745
5747
|
payment_method_options: nil,
|
|
5746
5748
|
payment_method_types: nil,
|
|
5749
|
+
payments_orchestration: nil,
|
|
5747
5750
|
radar_options: nil,
|
|
5748
5751
|
receipt_email: nil,
|
|
5749
5752
|
return_url: nil,
|
|
@@ -5755,7 +5758,7 @@ module Stripe
|
|
|
5755
5758
|
transfer_data: nil,
|
|
5756
5759
|
transfer_group: nil,
|
|
5757
5760
|
use_stripe_sdk: nil,
|
|
5758
|
-
|
|
5761
|
+
shared_payment_granted_token: nil
|
|
5759
5762
|
)
|
|
5760
5763
|
@allocated_funds = allocated_funds
|
|
5761
5764
|
@amount = amount
|
|
@@ -5786,6 +5789,7 @@ module Stripe
|
|
|
5786
5789
|
@payment_method_data = payment_method_data
|
|
5787
5790
|
@payment_method_options = payment_method_options
|
|
5788
5791
|
@payment_method_types = payment_method_types
|
|
5792
|
+
@payments_orchestration = payments_orchestration
|
|
5789
5793
|
@radar_options = radar_options
|
|
5790
5794
|
@receipt_email = receipt_email
|
|
5791
5795
|
@return_url = return_url
|
|
@@ -5797,7 +5801,7 @@ module Stripe
|
|
|
5797
5801
|
@transfer_data = transfer_data
|
|
5798
5802
|
@transfer_group = transfer_group
|
|
5799
5803
|
@use_stripe_sdk = use_stripe_sdk
|
|
5800
|
-
@
|
|
5804
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
5801
5805
|
end
|
|
5802
5806
|
end
|
|
5803
5807
|
end
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
class Hooks < ::Stripe::RequestParams
|
|
7
7
|
class Inputs < ::Stripe::RequestParams
|
|
8
8
|
class Tax < ::Stripe::RequestParams
|
|
9
|
-
# The [TaxCalculation](https://stripe.com/
|
|
9
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
10
10
|
attr_accessor :calculation
|
|
11
11
|
|
|
12
12
|
def initialize(calculation: nil)
|
|
@@ -38,7 +38,7 @@ module Stripe
|
|
|
38
38
|
end
|
|
39
39
|
# The updated total amount that you intend to collect from the cardholder. This amount must be smaller than the currently authorized amount and greater than the already captured amount.
|
|
40
40
|
attr_accessor :amount
|
|
41
|
-
# 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/
|
|
41
|
+
# 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).
|
|
42
42
|
attr_accessor :application_fee_amount
|
|
43
43
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
44
44
|
attr_accessor :description
|
|
@@ -46,10 +46,10 @@ module Stripe
|
|
|
46
46
|
attr_accessor :expand
|
|
47
47
|
# Automations to be run during the PaymentIntent lifecycle
|
|
48
48
|
attr_accessor :hooks
|
|
49
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
49
|
+
# 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`.
|
|
50
50
|
attr_accessor :metadata
|
|
51
51
|
# The parameters used to automatically create a transfer after the payment is captured.
|
|
52
|
-
# Learn more about the [use case for connected accounts](https://stripe.com/
|
|
52
|
+
# Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
53
53
|
attr_accessor :transfer_data
|
|
54
54
|
|
|
55
55
|
def initialize(
|
|
@@ -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)
|
|
@@ -246,7 +246,7 @@ module Stripe
|
|
|
246
246
|
attr_accessor :amount
|
|
247
247
|
# Provides industry-specific information about the amount.
|
|
248
248
|
attr_accessor :amount_details
|
|
249
|
-
# 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/
|
|
249
|
+
# 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).
|
|
250
250
|
attr_accessor :application_fee_amount
|
|
251
251
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
252
252
|
attr_accessor :description
|
|
@@ -254,7 +254,7 @@ module Stripe
|
|
|
254
254
|
attr_accessor :expand
|
|
255
255
|
# Automations to be run during the PaymentIntent lifecycle
|
|
256
256
|
attr_accessor :hooks
|
|
257
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
257
|
+
# 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`.
|
|
258
258
|
attr_accessor :metadata
|
|
259
259
|
# Provides industry-specific information about the charge.
|
|
260
260
|
attr_accessor :payment_details
|
|
@@ -263,7 +263,7 @@ module Stripe
|
|
|
263
263
|
# Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
264
264
|
attr_accessor :statement_descriptor
|
|
265
265
|
# The parameters used to automatically create a transfer after the payment is captured.
|
|
266
|
-
# Learn more about the [use case for connected accounts](https://stripe.com/
|
|
266
|
+
# Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
267
267
|
attr_accessor :transfer_data
|
|
268
268
|
|
|
269
269
|
def initialize(
|
|
@@ -24,7 +24,7 @@ module Stripe
|
|
|
24
24
|
attr_accessor :created
|
|
25
25
|
# Only return PaymentIntents for the customer that this customer ID specifies.
|
|
26
26
|
attr_accessor :customer
|
|
27
|
-
# Only return PaymentIntents for the account that this ID specifies.
|
|
27
|
+
# Only return PaymentIntents for the account representing the customer that this ID specifies.
|
|
28
28
|
attr_accessor :customer_account
|
|
29
29
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
30
30
|
attr_accessor :ending_before
|
|
@@ -9,7 +9,7 @@ module Stripe
|
|
|
9
9
|
attr_accessor :limit
|
|
10
10
|
# A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
|
|
11
11
|
attr_accessor :page
|
|
12
|
-
# The search query string. See [search query language](https://stripe.com/
|
|
12
|
+
# The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents).
|
|
13
13
|
attr_accessor :query
|
|
14
14
|
|
|
15
15
|
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|