stripe 18.1.0 → 18.2.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 +213 -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_core_health_event_generation_failure_resolved_event.rb +78 -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_created_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 +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +304 -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 +266 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -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 +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +129 -3
- data/lib/stripe/params/checkout/session_update_params.rb +141 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -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/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 +30 -1
- 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/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- 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_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +107 -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 +2061 -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 +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -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/quote_create_params.rb +801 -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 +4 -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 +809 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
- data/lib/stripe/params/setup_intent_create_params.rb +158 -3
- data/lib/stripe/params/setup_intent_update_params.rb +158 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +254 -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_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +237 -4
- 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/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -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 +77 -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_create_params.rb +251 -4
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
- 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_list_params.rb +19 -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_confirm_microdeposits_params.rb +22 -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_list_params.rb +22 -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_send_microdeposits_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_account_update_params.rb +20 -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 +62 -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 +110 -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 +79 -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 +89 -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/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +151 -0
- data/lib/stripe/resources/account.rb +182 -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/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +215 -1
- data/lib/stripe/resources/checkout/session.rb +104 -4
- data/lib/stripe/resources/confirmation_token.rb +133 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -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 +25 -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 +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +150 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -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 +66 -1
- data/lib/stripe/resources/mandate.rb +43 -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 +181 -1
- data/lib/stripe/resources/payment_intent.rb +737 -4
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- 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/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +88 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +230 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +196 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -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 +565 -3
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -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 +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources.rb +104 -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_intent_service.rb +37 -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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +9 -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/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -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 +75 -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 +65 -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/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 +3 -1
- data/lib/stripe/services.rb +55 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +425 -0
- 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 +54 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +93543 -33169
- metadata +314 -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
|
|
@@ -83,6 +111,8 @@ module Stripe
|
|
|
83
111
|
attr_accessor :expand
|
|
84
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.
|
|
85
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
|
|
86
116
|
# 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`.
|
|
87
117
|
attr_accessor :metadata
|
|
88
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://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.
|
|
@@ -114,6 +144,7 @@ module Stripe
|
|
|
114
144
|
discounts: nil,
|
|
115
145
|
expand: nil,
|
|
116
146
|
invoice: nil,
|
|
147
|
+
margins: nil,
|
|
117
148
|
metadata: nil,
|
|
118
149
|
period: nil,
|
|
119
150
|
price_data: nil,
|
|
@@ -134,6 +165,7 @@ module Stripe
|
|
|
134
165
|
@discounts = discounts
|
|
135
166
|
@expand = expand
|
|
136
167
|
@invoice = invoice
|
|
168
|
+
@margins = margins
|
|
137
169
|
@metadata = metadata
|
|
138
170
|
@period = period
|
|
139
171
|
@price_data = price_data
|
|
@@ -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://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`.
|
|
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://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.
|
|
@@ -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://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.
|
|
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://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.
|
|
@@ -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
|
|
@@ -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://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.
|
|
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://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.
|
|
@@ -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,6 +214,7 @@ module Stripe
|
|
|
168
214
|
end
|
|
169
215
|
end
|
|
170
216
|
|
|
217
|
+
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
171
218
|
class Konbini < ::Stripe::RequestParams; end
|
|
172
219
|
|
|
173
220
|
class Payto < ::Stripe::RequestParams
|
|
@@ -190,16 +237,54 @@ module Stripe
|
|
|
190
237
|
end
|
|
191
238
|
end
|
|
192
239
|
|
|
240
|
+
class Pix < ::Stripe::RequestParams
|
|
241
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
242
|
+
attr_accessor :amount_includes_iof
|
|
243
|
+
|
|
244
|
+
def initialize(amount_includes_iof: nil)
|
|
245
|
+
@amount_includes_iof = amount_includes_iof
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
193
249
|
class SepaDebit < ::Stripe::RequestParams; end
|
|
194
250
|
|
|
251
|
+
class Upi < ::Stripe::RequestParams
|
|
252
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
253
|
+
# Amount to be charged for future payments.
|
|
254
|
+
attr_accessor :amount
|
|
255
|
+
# 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.
|
|
256
|
+
attr_accessor :amount_type
|
|
257
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
258
|
+
attr_accessor :description
|
|
259
|
+
# 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.
|
|
260
|
+
attr_accessor :end_date
|
|
261
|
+
|
|
262
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
263
|
+
@amount = amount
|
|
264
|
+
@amount_type = amount_type
|
|
265
|
+
@description = description
|
|
266
|
+
@end_date = end_date
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
# Configuration options for setting up an eMandate
|
|
270
|
+
attr_accessor :mandate_options
|
|
271
|
+
|
|
272
|
+
def initialize(mandate_options: nil)
|
|
273
|
+
@mandate_options = mandate_options
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
195
277
|
class UsBankAccount < ::Stripe::RequestParams
|
|
196
278
|
class FinancialConnections < ::Stripe::RequestParams
|
|
197
279
|
class Filters < ::Stripe::RequestParams
|
|
198
280
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
199
281
|
attr_accessor :account_subcategories
|
|
282
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
283
|
+
attr_accessor :institution
|
|
200
284
|
|
|
201
|
-
def initialize(account_subcategories: nil)
|
|
285
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
202
286
|
@account_subcategories = account_subcategories
|
|
287
|
+
@institution = institution
|
|
203
288
|
end
|
|
204
289
|
end
|
|
205
290
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
@@ -233,12 +318,18 @@ module Stripe
|
|
|
233
318
|
attr_accessor :card
|
|
234
319
|
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
235
320
|
attr_accessor :customer_balance
|
|
321
|
+
# 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.
|
|
322
|
+
attr_accessor :id_bank_transfer
|
|
236
323
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
237
324
|
attr_accessor :konbini
|
|
238
325
|
# If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
239
326
|
attr_accessor :payto
|
|
327
|
+
# If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
|
|
328
|
+
attr_accessor :pix
|
|
240
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.
|
|
241
330
|
attr_accessor :sepa_debit
|
|
331
|
+
# If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
|
332
|
+
attr_accessor :upi
|
|
242
333
|
# 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.
|
|
243
334
|
attr_accessor :us_bank_account
|
|
244
335
|
|
|
@@ -247,18 +338,24 @@ module Stripe
|
|
|
247
338
|
bancontact: nil,
|
|
248
339
|
card: nil,
|
|
249
340
|
customer_balance: nil,
|
|
341
|
+
id_bank_transfer: nil,
|
|
250
342
|
konbini: nil,
|
|
251
343
|
payto: nil,
|
|
344
|
+
pix: nil,
|
|
252
345
|
sepa_debit: nil,
|
|
346
|
+
upi: nil,
|
|
253
347
|
us_bank_account: nil
|
|
254
348
|
)
|
|
255
349
|
@acss_debit = acss_debit
|
|
256
350
|
@bancontact = bancontact
|
|
257
351
|
@card = card
|
|
258
352
|
@customer_balance = customer_balance
|
|
353
|
+
@id_bank_transfer = id_bank_transfer
|
|
259
354
|
@konbini = konbini
|
|
260
355
|
@payto = payto
|
|
356
|
+
@pix = pix
|
|
261
357
|
@sepa_debit = sepa_debit
|
|
358
|
+
@upi = upi
|
|
262
359
|
@us_bank_account = us_bank_account
|
|
263
360
|
end
|
|
264
361
|
end
|
|
@@ -468,6 +565,8 @@ module Stripe
|
|
|
468
565
|
end
|
|
469
566
|
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
470
567
|
attr_accessor :account_tax_ids
|
|
568
|
+
# List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
569
|
+
attr_accessor :amounts_due
|
|
471
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).
|
|
472
571
|
attr_accessor :application_fee_amount
|
|
473
572
|
# Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice.
|
|
@@ -482,6 +581,8 @@ module Stripe
|
|
|
482
581
|
attr_accessor :custom_fields
|
|
483
582
|
# 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.
|
|
484
583
|
attr_accessor :days_until_due
|
|
584
|
+
# The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
585
|
+
attr_accessor :default_margins
|
|
485
586
|
# 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.
|
|
486
587
|
attr_accessor :default_payment_method
|
|
487
588
|
# 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.
|
|
@@ -523,6 +624,7 @@ module Stripe
|
|
|
523
624
|
|
|
524
625
|
def initialize(
|
|
525
626
|
account_tax_ids: nil,
|
|
627
|
+
amounts_due: nil,
|
|
526
628
|
application_fee_amount: nil,
|
|
527
629
|
auto_advance: nil,
|
|
528
630
|
automatic_tax: nil,
|
|
@@ -530,6 +632,7 @@ module Stripe
|
|
|
530
632
|
collection_method: nil,
|
|
531
633
|
custom_fields: nil,
|
|
532
634
|
days_until_due: nil,
|
|
635
|
+
default_margins: nil,
|
|
533
636
|
default_payment_method: nil,
|
|
534
637
|
default_source: nil,
|
|
535
638
|
default_tax_rates: nil,
|
|
@@ -551,6 +654,7 @@ module Stripe
|
|
|
551
654
|
transfer_data: nil
|
|
552
655
|
)
|
|
553
656
|
@account_tax_ids = account_tax_ids
|
|
657
|
+
@amounts_due = amounts_due
|
|
554
658
|
@application_fee_amount = application_fee_amount
|
|
555
659
|
@auto_advance = auto_advance
|
|
556
660
|
@automatic_tax = automatic_tax
|
|
@@ -558,6 +662,7 @@ module Stripe
|
|
|
558
662
|
@collection_method = collection_method
|
|
559
663
|
@custom_fields = custom_fields
|
|
560
664
|
@days_until_due = days_until_due
|
|
665
|
+
@default_margins = default_margins
|
|
561
666
|
@default_payment_method = default_payment_method
|
|
562
667
|
@default_source = default_source
|
|
563
668
|
@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://docs.stripe.com/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://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
|