stripe 17.0.0 → 17.1.0.pre.beta.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/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +236 -0
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +58 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +4 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
- data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2217 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2245 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +169 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +234 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +2 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/invoice_payment.rb +2 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
- data/lib/stripe/resources/payment_intent.rb +848 -4
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +2208 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3851 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +116 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +44 -0
- data/lib/stripe/services/payment_record_service.rb +89 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +10 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +61 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +155102 -90522
- metadata +349 -3
@@ -4,16 +4,44 @@
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceItemCreateParams < Stripe::RequestParams
|
6
6
|
class Discount < Stripe::RequestParams
|
7
|
+
class DiscountEnd < Stripe::RequestParams
|
8
|
+
class Duration < Stripe::RequestParams
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
10
|
+
attr_accessor :interval
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
12
|
+
attr_accessor :interval_count
|
13
|
+
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
15
|
+
@interval = interval
|
16
|
+
@interval_count = interval_count
|
17
|
+
end
|
18
|
+
end
|
19
|
+
# Time span for the redeemed discount.
|
20
|
+
attr_accessor :duration
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
22
|
+
attr_accessor :timestamp
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
27
|
+
@duration = duration
|
28
|
+
@timestamp = timestamp
|
29
|
+
@type = type
|
30
|
+
end
|
31
|
+
end
|
7
32
|
# ID of the coupon to create a new discount for.
|
8
33
|
attr_accessor :coupon
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
10
35
|
attr_accessor :discount
|
36
|
+
# Details to determine how long the discount should be applied for.
|
37
|
+
attr_accessor :discount_end
|
11
38
|
# ID of the promotion code to create a new discount for.
|
12
39
|
attr_accessor :promotion_code
|
13
40
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
15
42
|
@coupon = coupon
|
16
43
|
@discount = discount
|
44
|
+
@discount_end = discount_end
|
17
45
|
@promotion_code = promotion_code
|
18
46
|
end
|
19
47
|
end
|
@@ -71,6 +99,8 @@ module Stripe
|
|
71
99
|
attr_accessor :currency
|
72
100
|
# The ID of the customer who will be billed when this invoice item is billed.
|
73
101
|
attr_accessor :customer
|
102
|
+
# The ID of the account who will be billed when this invoice item is billed.
|
103
|
+
attr_accessor :customer_account
|
74
104
|
# An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking.
|
75
105
|
attr_accessor :description
|
76
106
|
# Controls whether discounts apply to this invoice item. Defaults to false for prorations or negative invoice items, and true for all other invoice items.
|
@@ -81,6 +111,8 @@ module Stripe
|
|
81
111
|
attr_accessor :expand
|
82
112
|
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
|
83
113
|
attr_accessor :invoice
|
114
|
+
# The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
115
|
+
attr_accessor :margins
|
84
116
|
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
85
117
|
attr_accessor :metadata
|
86
118
|
# 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/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -106,11 +138,13 @@ module Stripe
|
|
106
138
|
amount: nil,
|
107
139
|
currency: nil,
|
108
140
|
customer: nil,
|
141
|
+
customer_account: nil,
|
109
142
|
description: nil,
|
110
143
|
discountable: nil,
|
111
144
|
discounts: nil,
|
112
145
|
expand: nil,
|
113
146
|
invoice: nil,
|
147
|
+
margins: nil,
|
114
148
|
metadata: nil,
|
115
149
|
period: nil,
|
116
150
|
price_data: nil,
|
@@ -125,11 +159,13 @@ module Stripe
|
|
125
159
|
@amount = amount
|
126
160
|
@currency = currency
|
127
161
|
@customer = customer
|
162
|
+
@customer_account = customer_account
|
128
163
|
@description = description
|
129
164
|
@discountable = discountable
|
130
165
|
@discounts = discounts
|
131
166
|
@expand = expand
|
132
167
|
@invoice = invoice
|
168
|
+
@margins = margins
|
133
169
|
@metadata = metadata
|
134
170
|
@period = period
|
135
171
|
@price_data = price_data
|
@@ -24,6 +24,8 @@ module Stripe
|
|
24
24
|
attr_accessor :created
|
25
25
|
# The identifier of the customer whose invoice items to return. If none is provided, all invoice items will be returned.
|
26
26
|
attr_accessor :customer
|
27
|
+
# The identifier of the account whose invoice items to return. If none is provided, all invoice items will be returned.
|
28
|
+
attr_accessor :customer_account
|
27
29
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
28
30
|
attr_accessor :ending_before
|
29
31
|
# Specifies which fields in the response should be expanded.
|
@@ -40,6 +42,7 @@ module Stripe
|
|
40
42
|
def initialize(
|
41
43
|
created: nil,
|
42
44
|
customer: nil,
|
45
|
+
customer_account: nil,
|
43
46
|
ending_before: nil,
|
44
47
|
expand: nil,
|
45
48
|
invoice: nil,
|
@@ -49,6 +52,7 @@ module Stripe
|
|
49
52
|
)
|
50
53
|
@created = created
|
51
54
|
@customer = customer
|
55
|
+
@customer_account = customer_account
|
52
56
|
@ending_before = ending_before
|
53
57
|
@expand = expand
|
54
58
|
@invoice = invoice
|
@@ -4,16 +4,44 @@
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceItemUpdateParams < Stripe::RequestParams
|
6
6
|
class Discount < Stripe::RequestParams
|
7
|
+
class DiscountEnd < Stripe::RequestParams
|
8
|
+
class Duration < Stripe::RequestParams
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
10
|
+
attr_accessor :interval
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
12
|
+
attr_accessor :interval_count
|
13
|
+
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
15
|
+
@interval = interval
|
16
|
+
@interval_count = interval_count
|
17
|
+
end
|
18
|
+
end
|
19
|
+
# Time span for the redeemed discount.
|
20
|
+
attr_accessor :duration
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
22
|
+
attr_accessor :timestamp
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
27
|
+
@duration = duration
|
28
|
+
@timestamp = timestamp
|
29
|
+
@type = type
|
30
|
+
end
|
31
|
+
end
|
7
32
|
# ID of the coupon to create a new discount for.
|
8
33
|
attr_accessor :coupon
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
10
35
|
attr_accessor :discount
|
36
|
+
# Details to determine how long the discount should be applied for.
|
37
|
+
attr_accessor :discount_end
|
11
38
|
# ID of the promotion code to create a new discount for.
|
12
39
|
attr_accessor :promotion_code
|
13
40
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
15
42
|
@coupon = coupon
|
16
43
|
@discount = discount
|
44
|
+
@discount_end = discount_end
|
17
45
|
@promotion_code = promotion_code
|
18
46
|
end
|
19
47
|
end
|
@@ -75,6 +103,8 @@ module Stripe
|
|
75
103
|
attr_accessor :discounts
|
76
104
|
# Specifies which fields in the response should be expanded.
|
77
105
|
attr_accessor :expand
|
106
|
+
# The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
107
|
+
attr_accessor :margins
|
78
108
|
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
79
109
|
attr_accessor :metadata
|
80
110
|
# 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/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -100,6 +130,7 @@ module Stripe
|
|
100
130
|
discountable: nil,
|
101
131
|
discounts: nil,
|
102
132
|
expand: nil,
|
133
|
+
margins: nil,
|
103
134
|
metadata: nil,
|
104
135
|
period: nil,
|
105
136
|
price_data: nil,
|
@@ -115,6 +146,7 @@ module Stripe
|
|
115
146
|
@discountable = discountable
|
116
147
|
@discounts = discounts
|
117
148
|
@expand = expand
|
149
|
+
@margins = margins
|
118
150
|
@metadata = metadata
|
119
151
|
@period = period
|
120
152
|
@price_data = price_data
|
@@ -4,16 +4,44 @@
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceLineItemUpdateParams < Stripe::RequestParams
|
6
6
|
class Discount < Stripe::RequestParams
|
7
|
+
class DiscountEnd < Stripe::RequestParams
|
8
|
+
class Duration < Stripe::RequestParams
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
10
|
+
attr_accessor :interval
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
12
|
+
attr_accessor :interval_count
|
13
|
+
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
15
|
+
@interval = interval
|
16
|
+
@interval_count = interval_count
|
17
|
+
end
|
18
|
+
end
|
19
|
+
# Time span for the redeemed discount.
|
20
|
+
attr_accessor :duration
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
22
|
+
attr_accessor :timestamp
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
27
|
+
@duration = duration
|
28
|
+
@timestamp = timestamp
|
29
|
+
@type = type
|
30
|
+
end
|
31
|
+
end
|
7
32
|
# ID of the coupon to create a new discount for.
|
8
33
|
attr_accessor :coupon
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
10
35
|
attr_accessor :discount
|
36
|
+
# Details to determine how long the discount should be applied for.
|
37
|
+
attr_accessor :discount_end
|
11
38
|
# ID of the promotion code to create a new discount for.
|
12
39
|
attr_accessor :promotion_code
|
13
40
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
15
42
|
@coupon = coupon
|
16
43
|
@discount = discount
|
44
|
+
@discount_end = discount_end
|
17
45
|
@promotion_code = promotion_code
|
18
46
|
end
|
19
47
|
end
|
@@ -171,6 +199,8 @@ module Stripe
|
|
171
199
|
attr_accessor :discounts
|
172
200
|
# Specifies which fields in the response should be expanded.
|
173
201
|
attr_accessor :expand
|
202
|
+
# 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
|
+
attr_accessor :margins
|
174
204
|
# Set of [key-value pairs](https://stripe.com/docs/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://stripe.com/docs/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.
|
175
205
|
attr_accessor :metadata
|
176
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/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -192,6 +222,7 @@ module Stripe
|
|
192
222
|
discountable: nil,
|
193
223
|
discounts: nil,
|
194
224
|
expand: nil,
|
225
|
+
margins: nil,
|
195
226
|
metadata: nil,
|
196
227
|
period: nil,
|
197
228
|
price_data: nil,
|
@@ -205,6 +236,7 @@ module Stripe
|
|
205
236
|
@discountable = discountable
|
206
237
|
@discounts = discounts
|
207
238
|
@expand = expand
|
239
|
+
@margins = margins
|
208
240
|
@metadata = metadata
|
209
241
|
@period = period
|
210
242
|
@price_data = price_data
|
@@ -44,6 +44,8 @@ module Stripe
|
|
44
44
|
attr_accessor :created
|
45
45
|
# Only return invoices for the customer specified by this customer ID.
|
46
46
|
attr_accessor :customer
|
47
|
+
# Only return invoices for the account specified by this account ID.
|
48
|
+
attr_accessor :customer_account
|
47
49
|
# Attribute for param field due_date
|
48
50
|
attr_accessor :due_date
|
49
51
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
@@ -63,6 +65,7 @@ module Stripe
|
|
63
65
|
collection_method: nil,
|
64
66
|
created: nil,
|
65
67
|
customer: nil,
|
68
|
+
customer_account: nil,
|
66
69
|
due_date: nil,
|
67
70
|
ending_before: nil,
|
68
71
|
expand: nil,
|
@@ -74,6 +77,7 @@ module Stripe
|
|
74
77
|
@collection_method = collection_method
|
75
78
|
@created = created
|
76
79
|
@customer = customer
|
80
|
+
@customer_account = customer_account
|
77
81
|
@due_date = due_date
|
78
82
|
@ending_before = ending_before
|
79
83
|
@expand = expand
|
@@ -6,11 +6,14 @@ module Stripe
|
|
6
6
|
class Payment < Stripe::RequestParams
|
7
7
|
# Only return invoice payments associated by this payment intent ID.
|
8
8
|
attr_accessor :payment_intent
|
9
|
+
# Only return invoice payments associated by this payment record ID.
|
10
|
+
attr_accessor :payment_record
|
9
11
|
# Only return invoice payments associated by this payment type.
|
10
12
|
attr_accessor :type
|
11
13
|
|
12
|
-
def initialize(payment_intent: nil, type: nil)
|
14
|
+
def initialize(payment_intent: nil, payment_record: nil, type: nil)
|
13
15
|
@payment_intent = payment_intent
|
16
|
+
@payment_record = payment_record
|
14
17
|
@type = type
|
15
18
|
end
|
16
19
|
end
|
@@ -5,16 +5,44 @@ module Stripe
|
|
5
5
|
class InvoiceUpdateLinesParams < Stripe::RequestParams
|
6
6
|
class Line < Stripe::RequestParams
|
7
7
|
class Discount < Stripe::RequestParams
|
8
|
+
class DiscountEnd < Stripe::RequestParams
|
9
|
+
class Duration < Stripe::RequestParams
|
10
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
11
|
+
attr_accessor :interval
|
12
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
13
|
+
attr_accessor :interval_count
|
14
|
+
|
15
|
+
def initialize(interval: nil, interval_count: nil)
|
16
|
+
@interval = interval
|
17
|
+
@interval_count = interval_count
|
18
|
+
end
|
19
|
+
end
|
20
|
+
# Time span for the redeemed discount.
|
21
|
+
attr_accessor :duration
|
22
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
23
|
+
attr_accessor :timestamp
|
24
|
+
# The type of calculation made to determine when the discount ends.
|
25
|
+
attr_accessor :type
|
26
|
+
|
27
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
28
|
+
@duration = duration
|
29
|
+
@timestamp = timestamp
|
30
|
+
@type = type
|
31
|
+
end
|
32
|
+
end
|
8
33
|
# ID of the coupon to create a new discount for.
|
9
34
|
attr_accessor :coupon
|
10
35
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
11
36
|
attr_accessor :discount
|
37
|
+
# Details to determine how long the discount should be applied for.
|
38
|
+
attr_accessor :discount_end
|
12
39
|
# ID of the promotion code to create a new discount for.
|
13
40
|
attr_accessor :promotion_code
|
14
41
|
|
15
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
42
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
16
43
|
@coupon = coupon
|
17
44
|
@discount = discount
|
45
|
+
@discount_end = discount_end
|
18
46
|
@promotion_code = promotion_code
|
19
47
|
end
|
20
48
|
end
|
@@ -172,6 +200,8 @@ module Stripe
|
|
172
200
|
attr_accessor :discounts
|
173
201
|
# ID of an existing line item on the invoice.
|
174
202
|
attr_accessor :id
|
203
|
+
# 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
|
+
attr_accessor :margins
|
175
205
|
# Set of [key-value pairs](https://stripe.com/docs/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://stripe.com/docs/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.
|
176
206
|
attr_accessor :metadata
|
177
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/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -193,6 +223,7 @@ module Stripe
|
|
193
223
|
discountable: nil,
|
194
224
|
discounts: nil,
|
195
225
|
id: nil,
|
226
|
+
margins: nil,
|
196
227
|
metadata: nil,
|
197
228
|
period: nil,
|
198
229
|
price_data: nil,
|
@@ -206,6 +237,7 @@ module Stripe
|
|
206
237
|
@discountable = discountable
|
207
238
|
@discounts = discounts
|
208
239
|
@id = id
|
240
|
+
@margins = margins
|
209
241
|
@metadata = metadata
|
210
242
|
@period = period
|
211
243
|
@price_data = price_data
|
@@ -3,6 +3,24 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceUpdateParams < Stripe::RequestParams
|
6
|
+
class AmountsDue < Stripe::RequestParams
|
7
|
+
# The amount in cents (or local equivalent).
|
8
|
+
attr_accessor :amount
|
9
|
+
# Number of days from when invoice is finalized until the payment is due.
|
10
|
+
attr_accessor :days_until_due
|
11
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
12
|
+
attr_accessor :description
|
13
|
+
# Date on which a payment plan’s payment is due.
|
14
|
+
attr_accessor :due_date
|
15
|
+
|
16
|
+
def initialize(amount: nil, days_until_due: nil, description: nil, due_date: nil)
|
17
|
+
@amount = amount
|
18
|
+
@days_until_due = days_until_due
|
19
|
+
@description = description
|
20
|
+
@due_date = due_date
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
6
24
|
class AutomaticTax < Stripe::RequestParams
|
7
25
|
class Liability < Stripe::RequestParams
|
8
26
|
# The connected account being referenced when `type` is `account`.
|
@@ -39,16 +57,44 @@ module Stripe
|
|
39
57
|
end
|
40
58
|
|
41
59
|
class Discount < Stripe::RequestParams
|
60
|
+
class DiscountEnd < Stripe::RequestParams
|
61
|
+
class Duration < Stripe::RequestParams
|
62
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
63
|
+
attr_accessor :interval
|
64
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
65
|
+
attr_accessor :interval_count
|
66
|
+
|
67
|
+
def initialize(interval: nil, interval_count: nil)
|
68
|
+
@interval = interval
|
69
|
+
@interval_count = interval_count
|
70
|
+
end
|
71
|
+
end
|
72
|
+
# Time span for the redeemed discount.
|
73
|
+
attr_accessor :duration
|
74
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
75
|
+
attr_accessor :timestamp
|
76
|
+
# The type of calculation made to determine when the discount ends.
|
77
|
+
attr_accessor :type
|
78
|
+
|
79
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
80
|
+
@duration = duration
|
81
|
+
@timestamp = timestamp
|
82
|
+
@type = type
|
83
|
+
end
|
84
|
+
end
|
42
85
|
# ID of the coupon to create a new discount for.
|
43
86
|
attr_accessor :coupon
|
44
87
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
45
88
|
attr_accessor :discount
|
89
|
+
# Details to determine how long the discount should be applied for.
|
90
|
+
attr_accessor :discount_end
|
46
91
|
# ID of the promotion code to create a new discount for.
|
47
92
|
attr_accessor :promotion_code
|
48
93
|
|
49
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
94
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
50
95
|
@coupon = coupon
|
51
96
|
@discount = discount
|
97
|
+
@discount_end = discount_end
|
52
98
|
@promotion_code = promotion_code
|
53
99
|
end
|
54
100
|
end
|
@@ -168,17 +214,57 @@ module Stripe
|
|
168
214
|
end
|
169
215
|
end
|
170
216
|
|
217
|
+
class IdBankTransfer < Stripe::RequestParams; end
|
171
218
|
class Konbini < Stripe::RequestParams; end
|
219
|
+
|
220
|
+
class Pix < Stripe::RequestParams
|
221
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
222
|
+
attr_accessor :amount_includes_iof
|
223
|
+
|
224
|
+
def initialize(amount_includes_iof: nil)
|
225
|
+
@amount_includes_iof = amount_includes_iof
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
172
229
|
class SepaDebit < Stripe::RequestParams; end
|
173
230
|
|
231
|
+
class Upi < Stripe::RequestParams
|
232
|
+
class MandateOptions < Stripe::RequestParams
|
233
|
+
# Amount to be charged for future payments.
|
234
|
+
attr_accessor :amount
|
235
|
+
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
236
|
+
attr_accessor :amount_type
|
237
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
238
|
+
attr_accessor :description
|
239
|
+
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
240
|
+
attr_accessor :end_date
|
241
|
+
|
242
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
243
|
+
@amount = amount
|
244
|
+
@amount_type = amount_type
|
245
|
+
@description = description
|
246
|
+
@end_date = end_date
|
247
|
+
end
|
248
|
+
end
|
249
|
+
# Configuration options for setting up an eMandate
|
250
|
+
attr_accessor :mandate_options
|
251
|
+
|
252
|
+
def initialize(mandate_options: nil)
|
253
|
+
@mandate_options = mandate_options
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
174
257
|
class UsBankAccount < Stripe::RequestParams
|
175
258
|
class FinancialConnections < Stripe::RequestParams
|
176
259
|
class Filters < Stripe::RequestParams
|
177
260
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
178
261
|
attr_accessor :account_subcategories
|
262
|
+
# ID of the institution to use to filter for selectable accounts.
|
263
|
+
attr_accessor :institution
|
179
264
|
|
180
|
-
def initialize(account_subcategories: nil)
|
265
|
+
def initialize(account_subcategories: nil, institution: nil)
|
181
266
|
@account_subcategories = account_subcategories
|
267
|
+
@institution = institution
|
182
268
|
end
|
183
269
|
end
|
184
270
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
@@ -212,10 +298,16 @@ module Stripe
|
|
212
298
|
attr_accessor :card
|
213
299
|
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
214
300
|
attr_accessor :customer_balance
|
301
|
+
# If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
302
|
+
attr_accessor :id_bank_transfer
|
215
303
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
216
304
|
attr_accessor :konbini
|
305
|
+
# If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
|
306
|
+
attr_accessor :pix
|
217
307
|
# 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.
|
218
308
|
attr_accessor :sepa_debit
|
309
|
+
# If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
310
|
+
attr_accessor :upi
|
219
311
|
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
220
312
|
attr_accessor :us_bank_account
|
221
313
|
|
@@ -224,16 +316,22 @@ module Stripe
|
|
224
316
|
bancontact: nil,
|
225
317
|
card: nil,
|
226
318
|
customer_balance: nil,
|
319
|
+
id_bank_transfer: nil,
|
227
320
|
konbini: nil,
|
321
|
+
pix: nil,
|
228
322
|
sepa_debit: nil,
|
323
|
+
upi: nil,
|
229
324
|
us_bank_account: nil
|
230
325
|
)
|
231
326
|
@acss_debit = acss_debit
|
232
327
|
@bancontact = bancontact
|
233
328
|
@card = card
|
234
329
|
@customer_balance = customer_balance
|
330
|
+
@id_bank_transfer = id_bank_transfer
|
235
331
|
@konbini = konbini
|
332
|
+
@pix = pix
|
236
333
|
@sepa_debit = sepa_debit
|
334
|
+
@upi = upi
|
237
335
|
@us_bank_account = us_bank_account
|
238
336
|
end
|
239
337
|
end
|
@@ -443,6 +541,8 @@ module Stripe
|
|
443
541
|
end
|
444
542
|
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
445
543
|
attr_accessor :account_tax_ids
|
544
|
+
# List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
545
|
+
attr_accessor :amounts_due
|
446
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/docs/billing/invoices/connect#collecting-fees).
|
447
547
|
attr_accessor :application_fee_amount
|
448
548
|
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice.
|
@@ -457,6 +557,8 @@ module Stripe
|
|
457
557
|
attr_accessor :custom_fields
|
458
558
|
# The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
|
459
559
|
attr_accessor :days_until_due
|
560
|
+
# The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
561
|
+
attr_accessor :default_margins
|
460
562
|
# ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
461
563
|
attr_accessor :default_payment_method
|
462
564
|
# ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
|
@@ -498,6 +600,7 @@ module Stripe
|
|
498
600
|
|
499
601
|
def initialize(
|
500
602
|
account_tax_ids: nil,
|
603
|
+
amounts_due: nil,
|
501
604
|
application_fee_amount: nil,
|
502
605
|
auto_advance: nil,
|
503
606
|
automatic_tax: nil,
|
@@ -505,6 +608,7 @@ module Stripe
|
|
505
608
|
collection_method: nil,
|
506
609
|
custom_fields: nil,
|
507
610
|
days_until_due: nil,
|
611
|
+
default_margins: nil,
|
508
612
|
default_payment_method: nil,
|
509
613
|
default_source: nil,
|
510
614
|
default_tax_rates: nil,
|
@@ -526,6 +630,7 @@ module Stripe
|
|
526
630
|
transfer_data: nil
|
527
631
|
)
|
528
632
|
@account_tax_ids = account_tax_ids
|
633
|
+
@amounts_due = amounts_due
|
529
634
|
@application_fee_amount = application_fee_amount
|
530
635
|
@auto_advance = auto_advance
|
531
636
|
@automatic_tax = automatic_tax
|
@@ -533,6 +638,7 @@ module Stripe
|
|
533
638
|
@collection_method = collection_method
|
534
639
|
@custom_fields = custom_fields
|
535
640
|
@days_until_due = days_until_due
|
641
|
+
@default_margins = default_margins
|
536
642
|
@default_payment_method = default_payment_method
|
537
643
|
@default_source = default_source
|
538
644
|
@default_tax_rates = default_tax_rates
|
@@ -194,7 +194,8 @@ module Stripe
|
|
194
194
|
attr_accessor :metadata
|
195
195
|
# The cardholder's name. This will be printed on cards issued to them. The maximum length of this field is 24 characters. This field cannot contain any special characters or numbers.
|
196
196
|
attr_accessor :name
|
197
|
-
# The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards.
|
197
|
+
# The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards.
|
198
|
+
# While phone number is optional if the cardholder will not be creating EU cards, note that this cardholder will not be eligible for 3DS without a phone number. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details.
|
198
199
|
attr_accessor :phone_number
|
199
200
|
# The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
|
200
201
|
# This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
|