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
|
@@ -60,18 +60,28 @@ module Stripe
|
|
|
60
60
|
|
|
61
61
|
class PriceData < ::Stripe::RequestParams
|
|
62
62
|
class ProductData < ::Stripe::RequestParams
|
|
63
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
64
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
65
|
+
attr_accessor :tax_code
|
|
66
|
+
|
|
67
|
+
def initialize(tax_code: nil)
|
|
68
|
+
@tax_code = tax_code
|
|
69
|
+
end
|
|
70
|
+
end
|
|
63
71
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
64
72
|
attr_accessor :description
|
|
65
73
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
66
74
|
attr_accessor :images
|
|
67
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
75
|
+
# 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`.
|
|
68
76
|
attr_accessor :metadata
|
|
69
77
|
# The product's name, meant to be displayable to the customer.
|
|
70
78
|
attr_accessor :name
|
|
71
|
-
# A [tax code](https://stripe.com/
|
|
79
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
72
80
|
attr_accessor :tax_code
|
|
73
81
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
74
82
|
attr_accessor :unit_label
|
|
83
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
84
|
+
attr_accessor :tax_details
|
|
75
85
|
|
|
76
86
|
def initialize(
|
|
77
87
|
description: nil,
|
|
@@ -79,7 +89,8 @@ module Stripe
|
|
|
79
89
|
metadata: nil,
|
|
80
90
|
name: nil,
|
|
81
91
|
tax_code: nil,
|
|
82
|
-
unit_label: nil
|
|
92
|
+
unit_label: nil,
|
|
93
|
+
tax_details: nil
|
|
83
94
|
)
|
|
84
95
|
@description = description
|
|
85
96
|
@images = images
|
|
@@ -87,6 +98,7 @@ module Stripe
|
|
|
87
98
|
@name = name
|
|
88
99
|
@tax_code = tax_code
|
|
89
100
|
@unit_label = unit_label
|
|
101
|
+
@tax_details = tax_details
|
|
90
102
|
end
|
|
91
103
|
end
|
|
92
104
|
# 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).
|
|
@@ -95,7 +107,7 @@ module Stripe
|
|
|
95
107
|
attr_accessor :product
|
|
96
108
|
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
|
97
109
|
attr_accessor :product_data
|
|
98
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
110
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
99
111
|
attr_accessor :tax_behavior
|
|
100
112
|
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
|
101
113
|
attr_accessor :unit_amount
|
|
@@ -201,17 +213,17 @@ module Stripe
|
|
|
201
213
|
attr_accessor :expand
|
|
202
214
|
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
203
215
|
attr_accessor :margins
|
|
204
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
216
|
+
# 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
205
217
|
attr_accessor :metadata
|
|
206
|
-
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/
|
|
218
|
+
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
207
219
|
attr_accessor :period
|
|
208
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
220
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
|
|
209
221
|
attr_accessor :price_data
|
|
210
222
|
# The pricing information for the invoice item.
|
|
211
223
|
attr_accessor :pricing
|
|
212
224
|
# Non-negative integer. The quantity of units for the line item.
|
|
213
225
|
attr_accessor :quantity
|
|
214
|
-
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/
|
|
226
|
+
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
|
|
215
227
|
attr_accessor :tax_amounts
|
|
216
228
|
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
|
|
217
229
|
attr_accessor :tax_rates
|
|
@@ -46,7 +46,7 @@ module Stripe
|
|
|
46
46
|
attr_accessor :created
|
|
47
47
|
# Only return invoices for the customer specified by this customer ID.
|
|
48
48
|
attr_accessor :customer
|
|
49
|
-
# Only return invoices for the account specified by this account ID.
|
|
49
|
+
# Only return invoices for the account representing the customer specified by this account ID.
|
|
50
50
|
attr_accessor :customer_account
|
|
51
51
|
# Attribute for param field due_date
|
|
52
52
|
attr_accessor :due_date
|
|
@@ -58,7 +58,7 @@ module Stripe
|
|
|
58
58
|
attr_accessor :limit
|
|
59
59
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
60
60
|
attr_accessor :starting_after
|
|
61
|
-
# The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/
|
|
61
|
+
# The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
|
|
62
62
|
attr_accessor :status
|
|
63
63
|
# Only return invoices for the subscription specified by this subscription ID.
|
|
64
64
|
attr_accessor :subscription
|
|
@@ -16,7 +16,7 @@ module Stripe
|
|
|
16
16
|
end
|
|
17
17
|
# Specifies which fields in the response should be expanded.
|
|
18
18
|
attr_accessor :expand
|
|
19
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
19
|
+
# 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`.
|
|
20
20
|
attr_accessor :invoice_metadata
|
|
21
21
|
# The line items to remove.
|
|
22
22
|
attr_accessor :lines
|
|
@@ -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 invoices](https://docs.stripe.com/search#query-fields-for-invoices).
|
|
13
13
|
attr_accessor :query
|
|
14
14
|
|
|
15
15
|
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|
|
@@ -61,18 +61,28 @@ module Stripe
|
|
|
61
61
|
|
|
62
62
|
class PriceData < ::Stripe::RequestParams
|
|
63
63
|
class ProductData < ::Stripe::RequestParams
|
|
64
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
65
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
66
|
+
attr_accessor :tax_code
|
|
67
|
+
|
|
68
|
+
def initialize(tax_code: nil)
|
|
69
|
+
@tax_code = tax_code
|
|
70
|
+
end
|
|
71
|
+
end
|
|
64
72
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
65
73
|
attr_accessor :description
|
|
66
74
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
67
75
|
attr_accessor :images
|
|
68
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
76
|
+
# 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`.
|
|
69
77
|
attr_accessor :metadata
|
|
70
78
|
# The product's name, meant to be displayable to the customer.
|
|
71
79
|
attr_accessor :name
|
|
72
|
-
# A [tax code](https://stripe.com/
|
|
80
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
73
81
|
attr_accessor :tax_code
|
|
74
82
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
75
83
|
attr_accessor :unit_label
|
|
84
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
85
|
+
attr_accessor :tax_details
|
|
76
86
|
|
|
77
87
|
def initialize(
|
|
78
88
|
description: nil,
|
|
@@ -80,7 +90,8 @@ module Stripe
|
|
|
80
90
|
metadata: nil,
|
|
81
91
|
name: nil,
|
|
82
92
|
tax_code: nil,
|
|
83
|
-
unit_label: nil
|
|
93
|
+
unit_label: nil,
|
|
94
|
+
tax_details: nil
|
|
84
95
|
)
|
|
85
96
|
@description = description
|
|
86
97
|
@images = images
|
|
@@ -88,6 +99,7 @@ module Stripe
|
|
|
88
99
|
@name = name
|
|
89
100
|
@tax_code = tax_code
|
|
90
101
|
@unit_label = unit_label
|
|
102
|
+
@tax_details = tax_details
|
|
91
103
|
end
|
|
92
104
|
end
|
|
93
105
|
# 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).
|
|
@@ -96,7 +108,7 @@ module Stripe
|
|
|
96
108
|
attr_accessor :product
|
|
97
109
|
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
|
98
110
|
attr_accessor :product_data
|
|
99
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
111
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
100
112
|
attr_accessor :tax_behavior
|
|
101
113
|
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
|
102
114
|
attr_accessor :unit_amount
|
|
@@ -202,17 +214,17 @@ module Stripe
|
|
|
202
214
|
attr_accessor :id
|
|
203
215
|
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
204
216
|
attr_accessor :margins
|
|
205
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
217
|
+
# 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
206
218
|
attr_accessor :metadata
|
|
207
|
-
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/
|
|
219
|
+
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
208
220
|
attr_accessor :period
|
|
209
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
221
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
|
|
210
222
|
attr_accessor :price_data
|
|
211
223
|
# The pricing information for the invoice item.
|
|
212
224
|
attr_accessor :pricing
|
|
213
225
|
# Non-negative integer. The quantity of units for the line item.
|
|
214
226
|
attr_accessor :quantity
|
|
215
|
-
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/
|
|
227
|
+
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
|
|
216
228
|
attr_accessor :tax_amounts
|
|
217
229
|
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
|
|
218
230
|
attr_accessor :tax_rates
|
|
@@ -249,7 +261,7 @@ module Stripe
|
|
|
249
261
|
end
|
|
250
262
|
# Specifies which fields in the response should be expanded.
|
|
251
263
|
attr_accessor :expand
|
|
252
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
264
|
+
# 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
253
265
|
attr_accessor :invoice_metadata
|
|
254
266
|
# The line items to update.
|
|
255
267
|
attr_accessor :lines
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
@type = type
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
|
-
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/
|
|
36
|
+
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
37
37
|
attr_accessor :enabled
|
|
38
38
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
39
39
|
attr_accessor :liability
|
|
@@ -172,9 +172,9 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
# Installment configuration for payments attempted on this invoice.
|
|
174
174
|
#
|
|
175
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
175
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
176
176
|
attr_accessor :installments
|
|
177
|
-
# 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/
|
|
177
|
+
# 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. 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.
|
|
178
178
|
attr_accessor :request_three_d_secure
|
|
179
179
|
|
|
180
180
|
def initialize(installments: nil, request_three_d_secure: nil)
|
|
@@ -217,6 +217,26 @@ module Stripe
|
|
|
217
217
|
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
218
218
|
class Konbini < ::Stripe::RequestParams; end
|
|
219
219
|
|
|
220
|
+
class Payto < ::Stripe::RequestParams
|
|
221
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
222
|
+
# The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
|
|
223
|
+
attr_accessor :amount
|
|
224
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
225
|
+
attr_accessor :purpose
|
|
226
|
+
|
|
227
|
+
def initialize(amount: nil, purpose: nil)
|
|
228
|
+
@amount = amount
|
|
229
|
+
@purpose = purpose
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
# Additional fields for Mandate creation.
|
|
233
|
+
attr_accessor :mandate_options
|
|
234
|
+
|
|
235
|
+
def initialize(mandate_options: nil)
|
|
236
|
+
@mandate_options = mandate_options
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
220
240
|
class Pix < ::Stripe::RequestParams
|
|
221
241
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
222
242
|
attr_accessor :amount_includes_iof
|
|
@@ -302,6 +322,8 @@ module Stripe
|
|
|
302
322
|
attr_accessor :id_bank_transfer
|
|
303
323
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
304
324
|
attr_accessor :konbini
|
|
325
|
+
# If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
326
|
+
attr_accessor :payto
|
|
305
327
|
# If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
|
|
306
328
|
attr_accessor :pix
|
|
307
329
|
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
|
@@ -318,6 +340,7 @@ module Stripe
|
|
|
318
340
|
customer_balance: nil,
|
|
319
341
|
id_bank_transfer: nil,
|
|
320
342
|
konbini: nil,
|
|
343
|
+
payto: nil,
|
|
321
344
|
pix: nil,
|
|
322
345
|
sepa_debit: nil,
|
|
323
346
|
upi: nil,
|
|
@@ -329,6 +352,7 @@ module Stripe
|
|
|
329
352
|
@customer_balance = customer_balance
|
|
330
353
|
@id_bank_transfer = id_bank_transfer
|
|
331
354
|
@konbini = konbini
|
|
355
|
+
@payto = payto
|
|
332
356
|
@pix = pix
|
|
333
357
|
@sepa_debit = sepa_debit
|
|
334
358
|
@upi = upi
|
|
@@ -445,11 +469,11 @@ module Stripe
|
|
|
445
469
|
attr_accessor :display_name
|
|
446
470
|
# Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
447
471
|
attr_accessor :fixed_amount
|
|
448
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
472
|
+
# 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`.
|
|
449
473
|
attr_accessor :metadata
|
|
450
474
|
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
451
475
|
attr_accessor :tax_behavior
|
|
452
|
-
# A [tax code](https://stripe.com/
|
|
476
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
453
477
|
attr_accessor :tax_code
|
|
454
478
|
# The type of calculation to use on the shipping rate.
|
|
455
479
|
attr_accessor :type
|
|
@@ -495,7 +519,7 @@ module Stripe
|
|
|
495
519
|
attr_accessor :line2
|
|
496
520
|
# ZIP or postal code.
|
|
497
521
|
attr_accessor :postal_code
|
|
498
|
-
# State, county, province, or region.
|
|
522
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
499
523
|
attr_accessor :state
|
|
500
524
|
|
|
501
525
|
def initialize(
|
|
@@ -543,9 +567,9 @@ module Stripe
|
|
|
543
567
|
attr_accessor :account_tax_ids
|
|
544
568
|
# List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
545
569
|
attr_accessor :amounts_due
|
|
546
|
-
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/
|
|
570
|
+
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
547
571
|
attr_accessor :application_fee_amount
|
|
548
|
-
# Controls whether Stripe performs [automatic collection](https://stripe.com/
|
|
572
|
+
# Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice.
|
|
549
573
|
attr_accessor :auto_advance
|
|
550
574
|
# Settings for automatic tax lookup for this invoice.
|
|
551
575
|
attr_accessor :automatic_tax
|
|
@@ -579,11 +603,11 @@ module Stripe
|
|
|
579
603
|
attr_accessor :footer
|
|
580
604
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
581
605
|
attr_accessor :issuer
|
|
582
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
606
|
+
# 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`.
|
|
583
607
|
attr_accessor :metadata
|
|
584
608
|
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
|
|
585
609
|
attr_accessor :number
|
|
586
|
-
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/
|
|
610
|
+
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
|
|
587
611
|
attr_accessor :on_behalf_of
|
|
588
612
|
# Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
|
|
589
613
|
attr_accessor :payment_settings
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Issuing
|
|
6
6
|
class AuthorizationApproveParams < ::Stripe::RequestParams
|
|
7
|
-
# If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/
|
|
7
|
+
# If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://docs.stripe.com/api/issuing/authorizations/decline) to decline an authorization request).
|
|
8
8
|
attr_accessor :amount
|
|
9
9
|
# Specifies which fields in the response should be expanded.
|
|
10
10
|
attr_accessor :expand
|
|
11
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
11
|
+
# 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`.
|
|
12
12
|
attr_accessor :metadata
|
|
13
13
|
|
|
14
14
|
def initialize(amount: nil, expand: nil, metadata: nil)
|
|
@@ -240,7 +240,7 @@ module Stripe
|
|
|
240
240
|
@reference = reference
|
|
241
241
|
end
|
|
242
242
|
end
|
|
243
|
-
# The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
243
|
+
# The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
244
244
|
attr_accessor :capture_amount
|
|
245
245
|
# Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
|
|
246
246
|
attr_accessor :close_authorization
|
|
@@ -137,7 +137,7 @@ module Stripe
|
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
class MerchantData < ::Stripe::RequestParams
|
|
140
|
-
# A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/
|
|
140
|
+
# A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
|
141
141
|
attr_accessor :category
|
|
142
142
|
# City where the seller is located
|
|
143
143
|
attr_accessor :city
|
|
@@ -295,9 +295,9 @@ module Stripe
|
|
|
295
295
|
@three_d_secure = three_d_secure
|
|
296
296
|
end
|
|
297
297
|
end
|
|
298
|
-
# The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/
|
|
298
|
+
# The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
299
299
|
attr_accessor :amount
|
|
300
|
-
# Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/
|
|
300
|
+
# Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
301
301
|
attr_accessor :amount_details
|
|
302
302
|
# How the card details were provided. Defaults to online.
|
|
303
303
|
attr_accessor :authorization_method
|
|
@@ -313,9 +313,9 @@ module Stripe
|
|
|
313
313
|
attr_accessor :fraud_disputability_likelihood
|
|
314
314
|
# Information about fuel that was purchased with this transaction.
|
|
315
315
|
attr_accessor :fuel
|
|
316
|
-
# If set `true`, you may provide [amount](https://stripe.com/
|
|
316
|
+
# If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
|
317
317
|
attr_accessor :is_amount_controllable
|
|
318
|
-
# The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://stripe.com/
|
|
318
|
+
# The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
319
319
|
attr_accessor :merchant_amount
|
|
320
320
|
# The currency of the authorization. If not provided, defaults to the currency of the card. 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).
|
|
321
321
|
attr_accessor :merchant_currency
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
class AuthorizationDeclineParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
9
|
+
# 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`.
|
|
10
10
|
attr_accessor :metadata
|
|
11
11
|
|
|
12
12
|
def initialize(expand: nil, metadata: nil)
|
|
@@ -125,7 +125,7 @@ module Stripe
|
|
|
125
125
|
end
|
|
126
126
|
# Specifies which fields in the response should be expanded.
|
|
127
127
|
attr_accessor :expand
|
|
128
|
-
# The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
128
|
+
# The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
129
129
|
attr_accessor :final_amount
|
|
130
130
|
# Fleet-specific information for authorizations using Fleet cards.
|
|
131
131
|
attr_accessor :fleet
|
|
@@ -6,9 +6,9 @@ module Stripe
|
|
|
6
6
|
class AuthorizationIncrementParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
|
-
# The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
9
|
+
# The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
10
10
|
attr_accessor :increment_amount
|
|
11
|
-
# If set `true`, you may provide [amount](https://stripe.com/
|
|
11
|
+
# If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
|
12
12
|
attr_accessor :is_amount_controllable
|
|
13
13
|
|
|
14
14
|
def initialize(expand: nil, increment_amount: nil, is_amount_controllable: nil)
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
class AuthorizationReverseParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
|
-
# The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
9
|
+
# The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
10
10
|
attr_accessor :reverse_amount
|
|
11
11
|
|
|
12
12
|
def initialize(expand: nil, reverse_amount: nil)
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
class AuthorizationUpdateParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
9
|
+
# 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`.
|
|
10
10
|
attr_accessor :metadata
|
|
11
11
|
|
|
12
12
|
def initialize(expand: nil, metadata: nil)
|
|
@@ -25,7 +25,7 @@ module Stripe
|
|
|
25
25
|
attr_accessor :line2
|
|
26
26
|
# ZIP or postal code.
|
|
27
27
|
attr_accessor :postal_code
|
|
28
|
-
# State, county, province, or region.
|
|
28
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
29
29
|
attr_accessor :state
|
|
30
30
|
|
|
31
31
|
def initialize(
|
|
@@ -104,7 +104,7 @@ module Stripe
|
|
|
104
104
|
class SpendingLimit < ::Stripe::RequestParams
|
|
105
105
|
# Maximum amount allowed to spend per interval.
|
|
106
106
|
attr_accessor :amount
|
|
107
|
-
# Array of strings containing [categories](https://stripe.com/
|
|
107
|
+
# Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
|
|
108
108
|
attr_accessor :categories
|
|
109
109
|
# Interval (or event) to which the amount applies.
|
|
110
110
|
attr_accessor :interval
|
|
@@ -115,11 +115,11 @@ module Stripe
|
|
|
115
115
|
@interval = interval
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
|
-
# Array of strings containing [categories](https://stripe.com/
|
|
118
|
+
# Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
|
119
119
|
attr_accessor :allowed_categories
|
|
120
120
|
# Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
|
|
121
121
|
attr_accessor :allowed_merchant_countries
|
|
122
|
-
# Array of strings containing [categories](https://stripe.com/
|
|
122
|
+
# Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`.
|
|
123
123
|
attr_accessor :blocked_categories
|
|
124
124
|
# Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control.
|
|
125
125
|
attr_accessor :blocked_merchant_countries
|
|
@@ -140,7 +140,7 @@ module Stripe
|
|
|
140
140
|
@spending_limits = spending_limits
|
|
141
141
|
end
|
|
142
142
|
end
|
|
143
|
-
# The [Cardholder](https://stripe.com/
|
|
143
|
+
# The [Cardholder](https://docs.stripe.com/api#issuing_cardholder_object) object with which the card will be associated.
|
|
144
144
|
attr_accessor :cardholder
|
|
145
145
|
# The currency for the card.
|
|
146
146
|
attr_accessor :currency
|
|
@@ -152,7 +152,7 @@ module Stripe
|
|
|
152
152
|
attr_accessor :expand
|
|
153
153
|
# The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
|
|
154
154
|
attr_accessor :financial_account
|
|
155
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
155
|
+
# 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`.
|
|
156
156
|
attr_accessor :metadata
|
|
157
157
|
# The personalization design object belonging to this card.
|
|
158
158
|
attr_accessor :personalization_design
|
|
@@ -166,7 +166,7 @@ module Stripe
|
|
|
166
166
|
attr_accessor :second_line
|
|
167
167
|
# The address where the card will be shipped.
|
|
168
168
|
attr_accessor :shipping
|
|
169
|
-
# Rules that control spending for this card. Refer to our [documentation](https://stripe.com/
|
|
169
|
+
# Rules that control spending for this card. Refer to our [documentation](https://docs.stripe.com/issuing/controls/spending-controls) for more details.
|
|
170
170
|
attr_accessor :spending_controls
|
|
171
171
|
# Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
|
|
172
172
|
attr_accessor :status
|
|
@@ -21,6 +21,35 @@ module Stripe
|
|
|
21
21
|
@lte = lte
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
class Wallets < ::Stripe::RequestParams
|
|
26
|
+
class ApplePay < ::Stripe::RequestParams
|
|
27
|
+
# Query by Apple Pay primary account identifier.
|
|
28
|
+
attr_accessor :primary_account_identifier
|
|
29
|
+
|
|
30
|
+
def initialize(primary_account_identifier: nil)
|
|
31
|
+
@primary_account_identifier = primary_account_identifier
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class GooglePay < ::Stripe::RequestParams
|
|
36
|
+
# Query by Google Pay primary account identifier.
|
|
37
|
+
attr_accessor :primary_account_identifier
|
|
38
|
+
|
|
39
|
+
def initialize(primary_account_identifier: nil)
|
|
40
|
+
@primary_account_identifier = primary_account_identifier
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Filter cards by Apple Pay wallet details.
|
|
44
|
+
attr_accessor :apple_pay
|
|
45
|
+
# Filter cards by Google Pay wallet details.
|
|
46
|
+
attr_accessor :google_pay
|
|
47
|
+
|
|
48
|
+
def initialize(apple_pay: nil, google_pay: nil)
|
|
49
|
+
@apple_pay = apple_pay
|
|
50
|
+
@google_pay = google_pay
|
|
51
|
+
end
|
|
52
|
+
end
|
|
24
53
|
# Only return cards belonging to the Cardholder with the provided ID.
|
|
25
54
|
attr_accessor :cardholder
|
|
26
55
|
# Only return cards that were issued during the given date interval.
|
|
@@ -45,6 +74,8 @@ module Stripe
|
|
|
45
74
|
attr_accessor :status
|
|
46
75
|
# Only return cards that have the given type. One of `virtual` or `physical`.
|
|
47
76
|
attr_accessor :type
|
|
77
|
+
# Filter cards by wallet settings.
|
|
78
|
+
attr_accessor :wallets
|
|
48
79
|
|
|
49
80
|
def initialize(
|
|
50
81
|
cardholder: nil,
|
|
@@ -58,7 +89,8 @@ module Stripe
|
|
|
58
89
|
personalization_design: nil,
|
|
59
90
|
starting_after: nil,
|
|
60
91
|
status: nil,
|
|
61
|
-
type: nil
|
|
92
|
+
type: nil,
|
|
93
|
+
wallets: nil
|
|
62
94
|
)
|
|
63
95
|
@cardholder = cardholder
|
|
64
96
|
@created = created
|
|
@@ -72,6 +104,7 @@ module Stripe
|
|
|
72
104
|
@starting_after = starting_after
|
|
73
105
|
@status = status
|
|
74
106
|
@type = type
|
|
107
|
+
@wallets = wallets
|
|
75
108
|
end
|
|
76
109
|
end
|
|
77
110
|
end
|