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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# PaymentMethod objects represent your customer's payment instruments.
|
|
6
|
-
# You can use them with [PaymentIntents](https://stripe.com/
|
|
6
|
+
# You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
|
|
7
7
|
# Customer objects to store instrument details for future payments.
|
|
8
8
|
#
|
|
9
|
-
# Related guides: [Payment Methods](https://stripe.com/
|
|
9
|
+
# Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
|
|
10
10
|
class PaymentMethod < APIResource
|
|
11
11
|
extend Stripe::APIOperations::Create
|
|
12
12
|
extend Stripe::APIOperations::List
|
|
@@ -156,7 +156,7 @@ module Stripe
|
|
|
156
156
|
attr_reader :line2
|
|
157
157
|
# ZIP or postal code.
|
|
158
158
|
attr_reader :postal_code
|
|
159
|
-
# State, county, province, or region.
|
|
159
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
160
160
|
attr_reader :state
|
|
161
161
|
|
|
162
162
|
def self.inner_class_types
|
|
@@ -332,7 +332,7 @@ module Stripe
|
|
|
332
332
|
attr_reader :generated_card
|
|
333
333
|
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
334
334
|
attr_reader :iin
|
|
335
|
-
# Whether this [PaymentIntent](https://stripe.com/
|
|
335
|
+
# Whether this [PaymentIntent](https://docs.stripe.com/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
|
336
336
|
attr_reader :incremental_authorization_supported
|
|
337
337
|
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
338
338
|
attr_reader :issuer
|
|
@@ -473,7 +473,7 @@ module Stripe
|
|
|
473
473
|
attr_reader :line2
|
|
474
474
|
# ZIP or postal code.
|
|
475
475
|
attr_reader :postal_code
|
|
476
|
-
# State, county, province, or region.
|
|
476
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
477
477
|
attr_reader :state
|
|
478
478
|
|
|
479
479
|
def self.inner_class_types
|
|
@@ -496,7 +496,7 @@ module Stripe
|
|
|
496
496
|
attr_reader :line2
|
|
497
497
|
# ZIP or postal code.
|
|
498
498
|
attr_reader :postal_code
|
|
499
|
-
# State, county, province, or region.
|
|
499
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
500
500
|
attr_reader :state
|
|
501
501
|
|
|
502
502
|
def self.inner_class_types
|
|
@@ -550,7 +550,7 @@ module Stripe
|
|
|
550
550
|
attr_reader :line2
|
|
551
551
|
# ZIP or postal code.
|
|
552
552
|
attr_reader :postal_code
|
|
553
|
-
# State, county, province, or region.
|
|
553
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
554
554
|
attr_reader :state
|
|
555
555
|
|
|
556
556
|
def self.inner_class_types
|
|
@@ -573,7 +573,7 @@ module Stripe
|
|
|
573
573
|
attr_reader :line2
|
|
574
574
|
# ZIP or postal code.
|
|
575
575
|
attr_reader :postal_code
|
|
576
|
-
# State, county, province, or region.
|
|
576
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
577
577
|
attr_reader :state
|
|
578
578
|
|
|
579
579
|
def self.inner_class_types
|
|
@@ -927,7 +927,7 @@ module Stripe
|
|
|
927
927
|
end
|
|
928
928
|
|
|
929
929
|
class Ideal < ::Stripe::StripeObject
|
|
930
|
-
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
930
|
+
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
931
931
|
attr_reader :bank
|
|
932
932
|
# The Bank Identifier Code of the customer's bank, if the bank was provided.
|
|
933
933
|
attr_reader :bic
|
|
@@ -1277,7 +1277,7 @@ module Stripe
|
|
|
1277
1277
|
end
|
|
1278
1278
|
|
|
1279
1279
|
class RadarOptions < ::Stripe::StripeObject
|
|
1280
|
-
# A [Radar Session](https://stripe.com/
|
|
1280
|
+
# 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.
|
|
1281
1281
|
attr_reader :session
|
|
1282
1282
|
|
|
1283
1283
|
def self.inner_class_types
|
|
@@ -1614,7 +1614,7 @@ module Stripe
|
|
|
1614
1614
|
attr_reader :livemode
|
|
1615
1615
|
# Attribute for field mb_way
|
|
1616
1616
|
attr_reader :mb_way
|
|
1617
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
1617
|
+
# 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.
|
|
1618
1618
|
attr_reader :metadata
|
|
1619
1619
|
# Attribute for field mobilepay
|
|
1620
1620
|
attr_reader :mobilepay
|
|
@@ -1648,7 +1648,7 @@ module Stripe
|
|
|
1648
1648
|
attr_reader :promptpay
|
|
1649
1649
|
# Attribute for field qris
|
|
1650
1650
|
attr_reader :qris
|
|
1651
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
1651
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
1652
1652
|
attr_reader :radar_options
|
|
1653
1653
|
# Attribute for field rechnung
|
|
1654
1654
|
attr_reader :rechnung
|
|
@@ -1770,7 +1770,7 @@ module Stripe
|
|
|
1770
1770
|
)
|
|
1771
1771
|
end
|
|
1772
1772
|
|
|
1773
|
-
# Returns a list of
|
|
1773
|
+
# Returns a list of all PaymentMethods.
|
|
1774
1774
|
def self.list(params = {}, opts = {})
|
|
1775
1775
|
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
|
|
1776
1776
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.
|
|
6
6
|
#
|
|
7
|
-
# There are two types of PaymentMethodConfigurations. Which is used depends on the [charge type](https://stripe.com/
|
|
7
|
+
# There are two types of PaymentMethodConfigurations. Which is used depends on the [charge type](https://docs.stripe.com/connect/charges):
|
|
8
8
|
#
|
|
9
9
|
# **Direct** configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.
|
|
10
10
|
#
|
|
@@ -13,9 +13,9 @@ module Stripe
|
|
|
13
13
|
# Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API.
|
|
14
14
|
#
|
|
15
15
|
# Related guides:
|
|
16
|
-
# - [Payment Method Configurations API](https://stripe.com/
|
|
17
|
-
# - [Multiple configurations on dynamic payment methods](https://stripe.com/
|
|
18
|
-
# - [Multiple configurations for your Connect accounts](https://stripe.com/
|
|
16
|
+
# - [Payment Method Configurations API](https://docs.stripe.com/connect/payment-method-configurations)
|
|
17
|
+
# - [Multiple configurations on dynamic payment methods](https://docs.stripe.com/payments/multiple-payment-method-configs)
|
|
18
|
+
# - [Multiple configurations for your Connect accounts](https://docs.stripe.com/connect/multiple-payment-method-configurations)
|
|
19
19
|
class PaymentMethodConfiguration < APIResource
|
|
20
20
|
extend Stripe::APIOperations::Create
|
|
21
21
|
extend Stripe::APIOperations::List
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
# A payment method domain represents a web domain that you have registered with Stripe.
|
|
6
6
|
# Stripe Elements use registered payment method domains to control where certain payment methods are shown.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Payment method domains](https://stripe.com/
|
|
8
|
+
# Related guide: [Payment method domains](https://docs.stripe.com/payments/payment-methods/pmd-registration).
|
|
9
9
|
class PaymentMethodDomain < APIResource
|
|
10
10
|
extend Stripe::APIOperations::Create
|
|
11
11
|
extend Stripe::APIOperations::List
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
class Amount < ::Stripe::StripeObject
|
|
16
16
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
17
17
|
attr_reader :currency
|
|
18
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
18
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
19
19
|
attr_reader :value
|
|
20
20
|
|
|
21
21
|
def self.inner_class_types
|
|
@@ -30,7 +30,7 @@ module Stripe
|
|
|
30
30
|
class AmountAuthorized < ::Stripe::StripeObject
|
|
31
31
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
32
32
|
attr_reader :currency
|
|
33
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
33
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
34
34
|
attr_reader :value
|
|
35
35
|
|
|
36
36
|
def self.inner_class_types
|
|
@@ -45,7 +45,7 @@ module Stripe
|
|
|
45
45
|
class AmountCanceled < ::Stripe::StripeObject
|
|
46
46
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
47
47
|
attr_reader :currency
|
|
48
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
48
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
49
49
|
attr_reader :value
|
|
50
50
|
|
|
51
51
|
def self.inner_class_types
|
|
@@ -60,7 +60,7 @@ module Stripe
|
|
|
60
60
|
class AmountFailed < ::Stripe::StripeObject
|
|
61
61
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
62
62
|
attr_reader :currency
|
|
63
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
63
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
64
64
|
attr_reader :value
|
|
65
65
|
|
|
66
66
|
def self.inner_class_types
|
|
@@ -75,7 +75,7 @@ module Stripe
|
|
|
75
75
|
class AmountGuaranteed < ::Stripe::StripeObject
|
|
76
76
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
77
77
|
attr_reader :currency
|
|
78
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
78
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
79
79
|
attr_reader :value
|
|
80
80
|
|
|
81
81
|
def self.inner_class_types
|
|
@@ -90,7 +90,7 @@ module Stripe
|
|
|
90
90
|
class AmountRefunded < ::Stripe::StripeObject
|
|
91
91
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
92
92
|
attr_reader :currency
|
|
93
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
93
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
94
94
|
attr_reader :value
|
|
95
95
|
|
|
96
96
|
def self.inner_class_types
|
|
@@ -105,7 +105,7 @@ module Stripe
|
|
|
105
105
|
class AmountRequested < ::Stripe::StripeObject
|
|
106
106
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
107
107
|
attr_reader :currency
|
|
108
|
-
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/
|
|
108
|
+
# A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
109
109
|
attr_reader :value
|
|
110
110
|
|
|
111
111
|
def self.inner_class_types
|
|
@@ -182,6 +182,8 @@ module Stripe
|
|
|
182
182
|
class AcssDebit < ::Stripe::StripeObject
|
|
183
183
|
# Name of the bank associated with the bank account.
|
|
184
184
|
attr_reader :bank_name
|
|
185
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
186
|
+
attr_reader :expected_debit_date
|
|
185
187
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
186
188
|
attr_reader :fingerprint
|
|
187
189
|
# Institution number of the bank account
|
|
@@ -203,9 +205,9 @@ module Stripe
|
|
|
203
205
|
end
|
|
204
206
|
|
|
205
207
|
class Affirm < ::Stripe::StripeObject
|
|
206
|
-
# ID of the [location](https://stripe.com/
|
|
208
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
207
209
|
attr_reader :location
|
|
208
|
-
# ID of the [reader](https://stripe.com/
|
|
210
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
209
211
|
attr_reader :reader
|
|
210
212
|
# The Affirm transaction ID associated with this payment.
|
|
211
213
|
attr_reader :transaction_id
|
|
@@ -334,6 +336,8 @@ module Stripe
|
|
|
334
336
|
class AuBecsDebit < ::Stripe::StripeObject
|
|
335
337
|
# Bank-State-Branch number of the bank account.
|
|
336
338
|
attr_reader :bsb_number
|
|
339
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
340
|
+
attr_reader :expected_debit_date
|
|
337
341
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
338
342
|
attr_reader :fingerprint
|
|
339
343
|
# Last four digits of the bank account number.
|
|
@@ -351,6 +355,8 @@ module Stripe
|
|
|
351
355
|
end
|
|
352
356
|
|
|
353
357
|
class BacsDebit < ::Stripe::StripeObject
|
|
358
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
359
|
+
attr_reader :expected_debit_date
|
|
354
360
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
355
361
|
attr_reader :fingerprint
|
|
356
362
|
# Last four digits of the bank account number.
|
|
@@ -423,7 +429,7 @@ module Stripe
|
|
|
423
429
|
attr_reader :line2
|
|
424
430
|
# ZIP or postal code.
|
|
425
431
|
attr_reader :postal_code
|
|
426
|
-
# State, county, province, or region.
|
|
432
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
427
433
|
attr_reader :state
|
|
428
434
|
|
|
429
435
|
def self.inner_class_types
|
|
@@ -496,6 +502,35 @@ module Stripe
|
|
|
496
502
|
end
|
|
497
503
|
end
|
|
498
504
|
|
|
505
|
+
class Installments < ::Stripe::StripeObject
|
|
506
|
+
class Plan < ::Stripe::StripeObject
|
|
507
|
+
# For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
|
|
508
|
+
attr_reader :count
|
|
509
|
+
# For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. One of `month`.
|
|
510
|
+
attr_reader :interval
|
|
511
|
+
# Type of installment plan, one of `fixed_count`, `revolving`, or `bonus`.
|
|
512
|
+
attr_reader :type
|
|
513
|
+
|
|
514
|
+
def self.inner_class_types
|
|
515
|
+
@inner_class_types = {}
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
def self.field_remappings
|
|
519
|
+
@field_remappings = {}
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
# Attribute for field plan
|
|
523
|
+
attr_reader :plan
|
|
524
|
+
|
|
525
|
+
def self.inner_class_types
|
|
526
|
+
@inner_class_types = { plan: Plan }
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
def self.field_remappings
|
|
530
|
+
@field_remappings = {}
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
|
|
499
534
|
class NetworkToken < ::Stripe::StripeObject
|
|
500
535
|
# Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
|
501
536
|
attr_reader :used
|
|
@@ -568,6 +603,8 @@ module Stripe
|
|
|
568
603
|
@field_remappings = {}
|
|
569
604
|
end
|
|
570
605
|
end
|
|
606
|
+
# The authorization code of the payment.
|
|
607
|
+
attr_reader :authorization_code
|
|
571
608
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
572
609
|
attr_reader :brand
|
|
573
610
|
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
|
|
@@ -576,6 +613,8 @@ module Stripe
|
|
|
576
613
|
attr_reader :checks
|
|
577
614
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
578
615
|
attr_reader :country
|
|
616
|
+
# A high-level description of the type of cards issued in this range.
|
|
617
|
+
attr_reader :description
|
|
579
618
|
# Two-digit number representing the card's expiration month.
|
|
580
619
|
attr_reader :exp_month
|
|
581
620
|
# Four-digit number representing the card's expiration year.
|
|
@@ -586,16 +625,28 @@ module Stripe
|
|
|
586
625
|
attr_reader :fingerprint
|
|
587
626
|
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
588
627
|
attr_reader :funding
|
|
628
|
+
# Issuer identification number of the card.
|
|
629
|
+
attr_reader :iin
|
|
630
|
+
# Installment details for this payment.
|
|
631
|
+
attr_reader :installments
|
|
632
|
+
# The name of the card's issuing bank.
|
|
633
|
+
attr_reader :issuer
|
|
589
634
|
# The last four digits of the card.
|
|
590
635
|
attr_reader :last4
|
|
591
636
|
# True if this payment was marked as MOTO and out of scope for SCA.
|
|
592
637
|
attr_reader :moto
|
|
593
638
|
# Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
594
639
|
attr_reader :network
|
|
640
|
+
# Advice code from the card network for the failed payment.
|
|
641
|
+
attr_reader :network_advice_code
|
|
642
|
+
# Decline code from the card network for the failed payment.
|
|
643
|
+
attr_reader :network_decline_code
|
|
595
644
|
# If this card has network token credentials, this contains the details of the network token credentials.
|
|
596
645
|
attr_reader :network_token
|
|
597
646
|
# This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
598
647
|
attr_reader :network_transaction_id
|
|
648
|
+
# The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`.
|
|
649
|
+
attr_reader :stored_credential_usage
|
|
599
650
|
# Populated if this transaction used 3D Secure authentication.
|
|
600
651
|
attr_reader :three_d_secure
|
|
601
652
|
# If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
@@ -604,6 +655,7 @@ module Stripe
|
|
|
604
655
|
def self.inner_class_types
|
|
605
656
|
@inner_class_types = {
|
|
606
657
|
checks: Checks,
|
|
658
|
+
installments: Installments,
|
|
607
659
|
network_token: NetworkToken,
|
|
608
660
|
three_d_secure: ThreeDSecure,
|
|
609
661
|
wallet: Wallet,
|
|
@@ -702,7 +754,7 @@ module Stripe
|
|
|
702
754
|
attr_reader :generated_card
|
|
703
755
|
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
704
756
|
attr_reader :iin
|
|
705
|
-
# Whether this [PaymentIntent](https://stripe.com/
|
|
757
|
+
# Whether this [PaymentIntent](https://docs.stripe.com/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
|
706
758
|
attr_reader :incremental_authorization_supported
|
|
707
759
|
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
708
760
|
attr_reader :issuer
|
|
@@ -895,7 +947,7 @@ module Stripe
|
|
|
895
947
|
end
|
|
896
948
|
|
|
897
949
|
class Ideal < ::Stripe::StripeObject
|
|
898
|
-
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
950
|
+
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
899
951
|
attr_reader :bank
|
|
900
952
|
# The Bank Identifier Code of the customer's bank.
|
|
901
953
|
attr_reader :bic
|
|
@@ -1195,6 +1247,8 @@ module Stripe
|
|
|
1195
1247
|
attr_reader :bank_name
|
|
1196
1248
|
# The numeric code for the bank account's bank branch.
|
|
1197
1249
|
attr_reader :branch_code
|
|
1250
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
1251
|
+
attr_reader :expected_debit_date
|
|
1198
1252
|
# Last four digits of the bank account number.
|
|
1199
1253
|
attr_reader :last4
|
|
1200
1254
|
# The suffix of the bank account number.
|
|
@@ -1267,9 +1321,9 @@ module Stripe
|
|
|
1267
1321
|
end
|
|
1268
1322
|
|
|
1269
1323
|
class Paynow < ::Stripe::StripeObject
|
|
1270
|
-
# ID of the [location](https://stripe.com/
|
|
1324
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
1271
1325
|
attr_reader :location
|
|
1272
|
-
# ID of the [reader](https://stripe.com/
|
|
1326
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
1273
1327
|
attr_reader :reader
|
|
1274
1328
|
# Reference number associated with this PayNow payment
|
|
1275
1329
|
attr_reader :reference
|
|
@@ -1310,7 +1364,7 @@ module Stripe
|
|
|
1310
1364
|
attr_reader :line2
|
|
1311
1365
|
# ZIP or postal code.
|
|
1312
1366
|
attr_reader :postal_code
|
|
1313
|
-
# State, county, province, or region.
|
|
1367
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1314
1368
|
attr_reader :state
|
|
1315
1369
|
|
|
1316
1370
|
def self.inner_class_types
|
|
@@ -1333,7 +1387,7 @@ module Stripe
|
|
|
1333
1387
|
attr_reader :line2
|
|
1334
1388
|
# ZIP or postal code.
|
|
1335
1389
|
attr_reader :postal_code
|
|
1336
|
-
# State, county, province, or region.
|
|
1390
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1337
1391
|
attr_reader :state
|
|
1338
1392
|
|
|
1339
1393
|
def self.inner_class_types
|
|
@@ -1571,11 +1625,13 @@ module Stripe
|
|
|
1571
1625
|
attr_reader :branch_code
|
|
1572
1626
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
1573
1627
|
attr_reader :country
|
|
1628
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
1629
|
+
attr_reader :expected_debit_date
|
|
1574
1630
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
1575
1631
|
attr_reader :fingerprint
|
|
1576
1632
|
# Last four characters of the IBAN.
|
|
1577
1633
|
attr_reader :last4
|
|
1578
|
-
# Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/
|
|
1634
|
+
# Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
|
|
1579
1635
|
attr_reader :mandate
|
|
1580
1636
|
|
|
1581
1637
|
def self.inner_class_types
|
|
@@ -1687,6 +1743,8 @@ module Stripe
|
|
|
1687
1743
|
attr_reader :account_type
|
|
1688
1744
|
# Name of the bank associated with the bank account.
|
|
1689
1745
|
attr_reader :bank_name
|
|
1746
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
1747
|
+
attr_reader :expected_debit_date
|
|
1690
1748
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
1691
1749
|
attr_reader :fingerprint
|
|
1692
1750
|
# Last four digits of the bank account number.
|
|
@@ -1720,9 +1778,9 @@ module Stripe
|
|
|
1720
1778
|
class WechatPay < ::Stripe::StripeObject
|
|
1721
1779
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
|
1722
1780
|
attr_reader :fingerprint
|
|
1723
|
-
# ID of the [location](https://stripe.com/
|
|
1781
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
1724
1782
|
attr_reader :location
|
|
1725
|
-
# ID of the [reader](https://stripe.com/
|
|
1783
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
1726
1784
|
attr_reader :reader
|
|
1727
1785
|
# Transaction ID of this particular WeChat Pay transaction.
|
|
1728
1786
|
attr_reader :transaction_id
|
|
@@ -1873,7 +1931,7 @@ module Stripe
|
|
|
1873
1931
|
attr_reader :swish
|
|
1874
1932
|
# Attribute for field twint
|
|
1875
1933
|
attr_reader :twint
|
|
1876
|
-
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/
|
|
1934
|
+
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
|
|
1877
1935
|
# An additional hash is included on `payment_method_details` with a name matching this value.
|
|
1878
1936
|
# It contains information specific to the payment method.
|
|
1879
1937
|
attr_reader :type
|
|
@@ -2003,7 +2061,7 @@ module Stripe
|
|
|
2003
2061
|
attr_reader :line2
|
|
2004
2062
|
# ZIP or postal code.
|
|
2005
2063
|
attr_reader :postal_code
|
|
2006
|
-
# State, county, province, or region.
|
|
2064
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2007
2065
|
attr_reader :state
|
|
2008
2066
|
|
|
2009
2067
|
def self.inner_class_types
|
|
@@ -2059,7 +2117,7 @@ module Stripe
|
|
|
2059
2117
|
attr_reader :latest_payment_attempt_record
|
|
2060
2118
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
2061
2119
|
attr_reader :livemode
|
|
2062
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2120
|
+
# 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.
|
|
2063
2121
|
attr_reader :metadata
|
|
2064
2122
|
# String representing the object's type. Objects of the same type share the same value.
|
|
2065
2123
|
attr_reader :object
|
|
@@ -2067,6 +2125,8 @@ module Stripe
|
|
|
2067
2125
|
attr_reader :payment_method_details
|
|
2068
2126
|
# Processor information associated with this payment.
|
|
2069
2127
|
attr_reader :processor_details
|
|
2128
|
+
# Indicates who reported the payment.
|
|
2129
|
+
attr_reader :reported_by
|
|
2070
2130
|
# Shipping information for this payment.
|
|
2071
2131
|
attr_reader :shipping_details
|
|
2072
2132
|
|
|
@@ -9,7 +9,7 @@ module Stripe
|
|
|
9
9
|
# schedules](https://docs.stripe.com/docs/connect/manage-payout-schedule), depending on your country and
|
|
10
10
|
# industry.
|
|
11
11
|
#
|
|
12
|
-
# Related guide: [Receiving payouts](https://stripe.com/
|
|
12
|
+
# Related guide: [Receiving payouts](https://docs.stripe.com/payouts)
|
|
13
13
|
class Payout < APIResource
|
|
14
14
|
extend Stripe::APIOperations::Create
|
|
15
15
|
extend Stripe::APIOperations::List
|
|
@@ -36,13 +36,13 @@ module Stripe
|
|
|
36
36
|
end
|
|
37
37
|
# The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.
|
|
38
38
|
attr_reader :amount
|
|
39
|
-
# The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/
|
|
39
|
+
# The application fee (if any) for the payout. [See the Connect documentation](https://docs.stripe.com/connect/instant-payouts#monetization-and-fees) for details.
|
|
40
40
|
attr_reader :application_fee
|
|
41
|
-
# The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/
|
|
41
|
+
# The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://docs.stripe.com/connect/instant-payouts#monetization-and-fees) for details.
|
|
42
42
|
attr_reader :application_fee_amount
|
|
43
43
|
# Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays.
|
|
44
44
|
attr_reader :arrival_date
|
|
45
|
-
# Returns `true` if the payout is created by an [automated payout schedule](https://stripe.com/
|
|
45
|
+
# Returns `true` if the payout is created by an [automated payout schedule](https://docs.stripe.com/payouts#payout-schedule) and `false` if it's [requested manually](https://stripe.com/docs/payouts#manual-payouts).
|
|
46
46
|
attr_reader :automatic
|
|
47
47
|
# ID of the balance transaction that describes the impact of this payout on your account balance.
|
|
48
48
|
attr_reader :balance_transaction
|
|
@@ -56,7 +56,7 @@ module Stripe
|
|
|
56
56
|
attr_reader :destination
|
|
57
57
|
# If the payout fails or cancels, this is the ID of the balance transaction that reverses the initial balance transaction and returns the funds from the failed payout back in your balance.
|
|
58
58
|
attr_reader :failure_balance_transaction
|
|
59
|
-
# Error code that provides a reason for a payout failure, if available. View our [list of failure codes](https://stripe.com/
|
|
59
|
+
# Error code that provides a reason for a payout failure, if available. View our [list of failure codes](https://docs.stripe.com/api#payout_failures).
|
|
60
60
|
attr_reader :failure_code
|
|
61
61
|
# Message that provides the reason for a payout failure, if available.
|
|
62
62
|
attr_reader :failure_message
|
|
@@ -64,7 +64,7 @@ module Stripe
|
|
|
64
64
|
attr_reader :id
|
|
65
65
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
66
66
|
attr_reader :livemode
|
|
67
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
67
|
+
# 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.
|
|
68
68
|
attr_reader :metadata
|
|
69
69
|
# The method used to send this payout, which can be `standard` or `instant`. `instant` is supported for payouts to debit cards and bank accounts in certain countries. Learn more about [bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks).
|
|
70
70
|
attr_reader :method
|
|
@@ -74,7 +74,7 @@ module Stripe
|
|
|
74
74
|
attr_reader :original_payout
|
|
75
75
|
# ID of the v2 FinancialAccount the funds are sent to.
|
|
76
76
|
attr_reader :payout_method
|
|
77
|
-
# If `completed`, you can use the [Balance Transactions API](https://stripe.com/
|
|
77
|
+
# If `completed`, you can use the [Balance Transactions API](https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout) to list all balance transactions that are paid out in this payout.
|
|
78
78
|
attr_reader :reconciliation_status
|
|
79
79
|
# If the payout reverses, this is the ID of the payout that reverses this payout.
|
|
80
80
|
attr_reader :reversed_by
|