stripe 18.0.0 → 18.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 +209 -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_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 +54 -0
- data/lib/stripe/params/account_create_params.rb +317 -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 +279 -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 +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -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 +36 -2
- 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 +43 -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_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 +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 +3134 -100
- data/lib/stripe/params/payment_intent_create_params.rb +3126 -84
- 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_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 +3158 -85
- 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_list_params.rb +8 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -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/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/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 +2341 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2387 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -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_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -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_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 +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/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 +161 -0
- data/lib/stripe/resources/account.rb +184 -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 +237 -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 +38 -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/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 +203 -1
- data/lib/stripe/resources/payment_intent.rb +749 -4
- 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 +203 -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/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/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/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 +4209 -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/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +2 -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 +81 -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.rb +105 -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/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 +8 -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 +77 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- 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 +5 -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 +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/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 +56 -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 +156300 -79954
- metadata +325 -3
|
@@ -110,6 +110,8 @@ module Stripe
|
|
|
110
110
|
attr_accessor :name
|
|
111
111
|
# Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
|
|
112
112
|
attr_accessor :product_description
|
|
113
|
+
# A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
|
|
114
|
+
attr_accessor :specified_commercial_transactions_act_url
|
|
113
115
|
# A publicly available mailing address for sending support issues to.
|
|
114
116
|
attr_accessor :support_address
|
|
115
117
|
# A publicly available email address for sending support issues to.
|
|
@@ -129,6 +131,7 @@ module Stripe
|
|
|
129
131
|
monthly_estimated_revenue: nil,
|
|
130
132
|
name: nil,
|
|
131
133
|
product_description: nil,
|
|
134
|
+
specified_commercial_transactions_act_url: nil,
|
|
132
135
|
support_address: nil,
|
|
133
136
|
support_email: nil,
|
|
134
137
|
support_phone: nil,
|
|
@@ -142,6 +145,7 @@ module Stripe
|
|
|
142
145
|
@monthly_estimated_revenue = monthly_estimated_revenue
|
|
143
146
|
@name = name
|
|
144
147
|
@product_description = product_description
|
|
148
|
+
@specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
|
|
145
149
|
@support_address = support_address
|
|
146
150
|
@support_email = support_email
|
|
147
151
|
@support_phone = support_phone
|
|
@@ -205,6 +209,15 @@ module Stripe
|
|
|
205
209
|
end
|
|
206
210
|
end
|
|
207
211
|
|
|
212
|
+
class AutomaticIndirectTax < ::Stripe::RequestParams
|
|
213
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
214
|
+
attr_accessor :requested
|
|
215
|
+
|
|
216
|
+
def initialize(requested: nil)
|
|
217
|
+
@requested = requested
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
208
221
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
209
222
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
210
223
|
attr_accessor :requested
|
|
@@ -340,6 +353,15 @@ module Stripe
|
|
|
340
353
|
end
|
|
341
354
|
end
|
|
342
355
|
|
|
356
|
+
class GopayPayments < ::Stripe::RequestParams
|
|
357
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
358
|
+
attr_accessor :requested
|
|
359
|
+
|
|
360
|
+
def initialize(requested: nil)
|
|
361
|
+
@requested = requested
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
343
365
|
class GrabpayPayments < ::Stripe::RequestParams
|
|
344
366
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
345
367
|
attr_accessor :requested
|
|
@@ -349,6 +371,24 @@ module Stripe
|
|
|
349
371
|
end
|
|
350
372
|
end
|
|
351
373
|
|
|
374
|
+
class IdBankTransferPayments < ::Stripe::RequestParams
|
|
375
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
376
|
+
attr_accessor :requested
|
|
377
|
+
|
|
378
|
+
def initialize(requested: nil)
|
|
379
|
+
@requested = requested
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
class IdBankTransferPaymentsBca < ::Stripe::RequestParams
|
|
384
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
385
|
+
attr_accessor :requested
|
|
386
|
+
|
|
387
|
+
def initialize(requested: nil)
|
|
388
|
+
@requested = requested
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
352
392
|
class IdealPayments < ::Stripe::RequestParams
|
|
353
393
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
354
394
|
attr_accessor :requested
|
|
@@ -538,6 +578,33 @@ module Stripe
|
|
|
538
578
|
end
|
|
539
579
|
end
|
|
540
580
|
|
|
581
|
+
class PaypalPayments < ::Stripe::RequestParams
|
|
582
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
583
|
+
attr_accessor :requested
|
|
584
|
+
|
|
585
|
+
def initialize(requested: nil)
|
|
586
|
+
@requested = requested
|
|
587
|
+
end
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
591
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
592
|
+
attr_accessor :requested
|
|
593
|
+
|
|
594
|
+
def initialize(requested: nil)
|
|
595
|
+
@requested = requested
|
|
596
|
+
end
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
class PaytoPayments < ::Stripe::RequestParams
|
|
600
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
601
|
+
attr_accessor :requested
|
|
602
|
+
|
|
603
|
+
def initialize(requested: nil)
|
|
604
|
+
@requested = requested
|
|
605
|
+
end
|
|
606
|
+
end
|
|
607
|
+
|
|
541
608
|
class PixPayments < ::Stripe::RequestParams
|
|
542
609
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
543
610
|
attr_accessor :requested
|
|
@@ -556,6 +623,24 @@ module Stripe
|
|
|
556
623
|
end
|
|
557
624
|
end
|
|
558
625
|
|
|
626
|
+
class QrisPayments < ::Stripe::RequestParams
|
|
627
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
628
|
+
attr_accessor :requested
|
|
629
|
+
|
|
630
|
+
def initialize(requested: nil)
|
|
631
|
+
@requested = requested
|
|
632
|
+
end
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
class RechnungPayments < ::Stripe::RequestParams
|
|
636
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
637
|
+
attr_accessor :requested
|
|
638
|
+
|
|
639
|
+
def initialize(requested: nil)
|
|
640
|
+
@requested = requested
|
|
641
|
+
end
|
|
642
|
+
end
|
|
643
|
+
|
|
559
644
|
class RevolutPayPayments < ::Stripe::RequestParams
|
|
560
645
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
561
646
|
attr_accessor :requested
|
|
@@ -601,6 +686,15 @@ module Stripe
|
|
|
601
686
|
end
|
|
602
687
|
end
|
|
603
688
|
|
|
689
|
+
class ShopeepayPayments < ::Stripe::RequestParams
|
|
690
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
691
|
+
attr_accessor :requested
|
|
692
|
+
|
|
693
|
+
def initialize(requested: nil)
|
|
694
|
+
@requested = requested
|
|
695
|
+
end
|
|
696
|
+
end
|
|
697
|
+
|
|
604
698
|
class SofortPayments < ::Stripe::RequestParams
|
|
605
699
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
606
700
|
attr_accessor :requested
|
|
@@ -610,6 +704,15 @@ module Stripe
|
|
|
610
704
|
end
|
|
611
705
|
end
|
|
612
706
|
|
|
707
|
+
class StripeBalancePayments < ::Stripe::RequestParams
|
|
708
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
709
|
+
attr_accessor :requested
|
|
710
|
+
|
|
711
|
+
def initialize(requested: nil)
|
|
712
|
+
@requested = requested
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
613
716
|
class SwishPayments < ::Stripe::RequestParams
|
|
614
717
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
615
718
|
attr_accessor :requested
|
|
@@ -655,6 +758,33 @@ module Stripe
|
|
|
655
758
|
end
|
|
656
759
|
end
|
|
657
760
|
|
|
761
|
+
class TreasuryEvolve < ::Stripe::RequestParams
|
|
762
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
763
|
+
attr_accessor :requested
|
|
764
|
+
|
|
765
|
+
def initialize(requested: nil)
|
|
766
|
+
@requested = requested
|
|
767
|
+
end
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
class TreasuryFifthThird < ::Stripe::RequestParams
|
|
771
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
772
|
+
attr_accessor :requested
|
|
773
|
+
|
|
774
|
+
def initialize(requested: nil)
|
|
775
|
+
@requested = requested
|
|
776
|
+
end
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
class TreasuryGoldmanSachs < ::Stripe::RequestParams
|
|
780
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
781
|
+
attr_accessor :requested
|
|
782
|
+
|
|
783
|
+
def initialize(requested: nil)
|
|
784
|
+
@requested = requested
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
|
|
658
788
|
class TwintPayments < ::Stripe::RequestParams
|
|
659
789
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
660
790
|
attr_accessor :requested
|
|
@@ -702,6 +832,8 @@ module Stripe
|
|
|
702
832
|
attr_accessor :amazon_pay_payments
|
|
703
833
|
# The au_becs_debit_payments capability.
|
|
704
834
|
attr_accessor :au_becs_debit_payments
|
|
835
|
+
# The automatic_indirect_tax capability.
|
|
836
|
+
attr_accessor :automatic_indirect_tax
|
|
705
837
|
# The bacs_debit_payments capability.
|
|
706
838
|
attr_accessor :bacs_debit_payments
|
|
707
839
|
# The bancontact_payments capability.
|
|
@@ -732,8 +864,14 @@ module Stripe
|
|
|
732
864
|
attr_accessor :gb_bank_transfer_payments
|
|
733
865
|
# The giropay_payments capability.
|
|
734
866
|
attr_accessor :giropay_payments
|
|
867
|
+
# The gopay_payments capability.
|
|
868
|
+
attr_accessor :gopay_payments
|
|
735
869
|
# The grabpay_payments capability.
|
|
736
870
|
attr_accessor :grabpay_payments
|
|
871
|
+
# The id_bank_transfer_payments capability.
|
|
872
|
+
attr_accessor :id_bank_transfer_payments
|
|
873
|
+
# The id_bank_transfer_payments_bca capability.
|
|
874
|
+
attr_accessor :id_bank_transfer_payments_bca
|
|
737
875
|
# The ideal_payments capability.
|
|
738
876
|
attr_accessor :ideal_payments
|
|
739
877
|
# The india_international_payments capability.
|
|
@@ -776,10 +914,20 @@ module Stripe
|
|
|
776
914
|
attr_accessor :payco_payments
|
|
777
915
|
# The paynow_payments capability.
|
|
778
916
|
attr_accessor :paynow_payments
|
|
917
|
+
# The paypal_payments capability.
|
|
918
|
+
attr_accessor :paypal_payments
|
|
919
|
+
# The paypay_payments capability.
|
|
920
|
+
attr_accessor :paypay_payments
|
|
921
|
+
# The payto_payments capability.
|
|
922
|
+
attr_accessor :payto_payments
|
|
779
923
|
# The pix_payments capability.
|
|
780
924
|
attr_accessor :pix_payments
|
|
781
925
|
# The promptpay_payments capability.
|
|
782
926
|
attr_accessor :promptpay_payments
|
|
927
|
+
# The qris_payments capability.
|
|
928
|
+
attr_accessor :qris_payments
|
|
929
|
+
# The rechnung_payments capability.
|
|
930
|
+
attr_accessor :rechnung_payments
|
|
783
931
|
# The revolut_pay_payments capability.
|
|
784
932
|
attr_accessor :revolut_pay_payments
|
|
785
933
|
# The samsung_pay_payments capability.
|
|
@@ -790,8 +938,12 @@ module Stripe
|
|
|
790
938
|
attr_accessor :sepa_bank_transfer_payments
|
|
791
939
|
# The sepa_debit_payments capability.
|
|
792
940
|
attr_accessor :sepa_debit_payments
|
|
941
|
+
# The shopeepay_payments capability.
|
|
942
|
+
attr_accessor :shopeepay_payments
|
|
793
943
|
# The sofort_payments capability.
|
|
794
944
|
attr_accessor :sofort_payments
|
|
945
|
+
# The stripe_balance_payments capability.
|
|
946
|
+
attr_accessor :stripe_balance_payments
|
|
795
947
|
# The swish_payments capability.
|
|
796
948
|
attr_accessor :swish_payments
|
|
797
949
|
# The tax_reporting_us_1099_k capability.
|
|
@@ -802,6 +954,12 @@ module Stripe
|
|
|
802
954
|
attr_accessor :transfers
|
|
803
955
|
# The treasury capability.
|
|
804
956
|
attr_accessor :treasury
|
|
957
|
+
# The treasury_evolve capability.
|
|
958
|
+
attr_accessor :treasury_evolve
|
|
959
|
+
# The treasury_fifth_third capability.
|
|
960
|
+
attr_accessor :treasury_fifth_third
|
|
961
|
+
# The treasury_goldman_sachs capability.
|
|
962
|
+
attr_accessor :treasury_goldman_sachs
|
|
805
963
|
# The twint_payments capability.
|
|
806
964
|
attr_accessor :twint_payments
|
|
807
965
|
# The us_bank_account_ach_payments capability.
|
|
@@ -818,6 +976,7 @@ module Stripe
|
|
|
818
976
|
alma_payments: nil,
|
|
819
977
|
amazon_pay_payments: nil,
|
|
820
978
|
au_becs_debit_payments: nil,
|
|
979
|
+
automatic_indirect_tax: nil,
|
|
821
980
|
bacs_debit_payments: nil,
|
|
822
981
|
bancontact_payments: nil,
|
|
823
982
|
bank_transfer_payments: nil,
|
|
@@ -833,7 +992,10 @@ module Stripe
|
|
|
833
992
|
fpx_payments: nil,
|
|
834
993
|
gb_bank_transfer_payments: nil,
|
|
835
994
|
giropay_payments: nil,
|
|
995
|
+
gopay_payments: nil,
|
|
836
996
|
grabpay_payments: nil,
|
|
997
|
+
id_bank_transfer_payments: nil,
|
|
998
|
+
id_bank_transfer_payments_bca: nil,
|
|
837
999
|
ideal_payments: nil,
|
|
838
1000
|
india_international_payments: nil,
|
|
839
1001
|
jcb_payments: nil,
|
|
@@ -855,19 +1017,29 @@ module Stripe
|
|
|
855
1017
|
pay_by_bank_payments: nil,
|
|
856
1018
|
payco_payments: nil,
|
|
857
1019
|
paynow_payments: nil,
|
|
1020
|
+
paypal_payments: nil,
|
|
1021
|
+
paypay_payments: nil,
|
|
1022
|
+
payto_payments: nil,
|
|
858
1023
|
pix_payments: nil,
|
|
859
1024
|
promptpay_payments: nil,
|
|
1025
|
+
qris_payments: nil,
|
|
1026
|
+
rechnung_payments: nil,
|
|
860
1027
|
revolut_pay_payments: nil,
|
|
861
1028
|
samsung_pay_payments: nil,
|
|
862
1029
|
satispay_payments: nil,
|
|
863
1030
|
sepa_bank_transfer_payments: nil,
|
|
864
1031
|
sepa_debit_payments: nil,
|
|
1032
|
+
shopeepay_payments: nil,
|
|
865
1033
|
sofort_payments: nil,
|
|
1034
|
+
stripe_balance_payments: nil,
|
|
866
1035
|
swish_payments: nil,
|
|
867
1036
|
tax_reporting_us_1099_k: nil,
|
|
868
1037
|
tax_reporting_us_1099_misc: nil,
|
|
869
1038
|
transfers: nil,
|
|
870
1039
|
treasury: nil,
|
|
1040
|
+
treasury_evolve: nil,
|
|
1041
|
+
treasury_fifth_third: nil,
|
|
1042
|
+
treasury_goldman_sachs: nil,
|
|
871
1043
|
twint_payments: nil,
|
|
872
1044
|
us_bank_account_ach_payments: nil,
|
|
873
1045
|
us_bank_transfer_payments: nil,
|
|
@@ -879,6 +1051,7 @@ module Stripe
|
|
|
879
1051
|
@alma_payments = alma_payments
|
|
880
1052
|
@amazon_pay_payments = amazon_pay_payments
|
|
881
1053
|
@au_becs_debit_payments = au_becs_debit_payments
|
|
1054
|
+
@automatic_indirect_tax = automatic_indirect_tax
|
|
882
1055
|
@bacs_debit_payments = bacs_debit_payments
|
|
883
1056
|
@bancontact_payments = bancontact_payments
|
|
884
1057
|
@bank_transfer_payments = bank_transfer_payments
|
|
@@ -894,7 +1067,10 @@ module Stripe
|
|
|
894
1067
|
@fpx_payments = fpx_payments
|
|
895
1068
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
|
896
1069
|
@giropay_payments = giropay_payments
|
|
1070
|
+
@gopay_payments = gopay_payments
|
|
897
1071
|
@grabpay_payments = grabpay_payments
|
|
1072
|
+
@id_bank_transfer_payments = id_bank_transfer_payments
|
|
1073
|
+
@id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
|
|
898
1074
|
@ideal_payments = ideal_payments
|
|
899
1075
|
@india_international_payments = india_international_payments
|
|
900
1076
|
@jcb_payments = jcb_payments
|
|
@@ -916,19 +1092,29 @@ module Stripe
|
|
|
916
1092
|
@pay_by_bank_payments = pay_by_bank_payments
|
|
917
1093
|
@payco_payments = payco_payments
|
|
918
1094
|
@paynow_payments = paynow_payments
|
|
1095
|
+
@paypal_payments = paypal_payments
|
|
1096
|
+
@paypay_payments = paypay_payments
|
|
1097
|
+
@payto_payments = payto_payments
|
|
919
1098
|
@pix_payments = pix_payments
|
|
920
1099
|
@promptpay_payments = promptpay_payments
|
|
1100
|
+
@qris_payments = qris_payments
|
|
1101
|
+
@rechnung_payments = rechnung_payments
|
|
921
1102
|
@revolut_pay_payments = revolut_pay_payments
|
|
922
1103
|
@samsung_pay_payments = samsung_pay_payments
|
|
923
1104
|
@satispay_payments = satispay_payments
|
|
924
1105
|
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
|
|
925
1106
|
@sepa_debit_payments = sepa_debit_payments
|
|
1107
|
+
@shopeepay_payments = shopeepay_payments
|
|
926
1108
|
@sofort_payments = sofort_payments
|
|
1109
|
+
@stripe_balance_payments = stripe_balance_payments
|
|
927
1110
|
@swish_payments = swish_payments
|
|
928
1111
|
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
|
|
929
1112
|
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
|
|
930
1113
|
@transfers = transfers
|
|
931
1114
|
@treasury = treasury
|
|
1115
|
+
@treasury_evolve = treasury_evolve
|
|
1116
|
+
@treasury_fifth_third = treasury_fifth_third
|
|
1117
|
+
@treasury_goldman_sachs = treasury_goldman_sachs
|
|
932
1118
|
@twint_payments = twint_payments
|
|
933
1119
|
@us_bank_account_ach_payments = us_bank_account_ach_payments
|
|
934
1120
|
@us_bank_transfer_payments = us_bank_transfer_payments
|
|
@@ -1736,6 +1922,37 @@ module Stripe
|
|
|
1736
1922
|
end
|
|
1737
1923
|
end
|
|
1738
1924
|
|
|
1925
|
+
class RiskControls < ::Stripe::RequestParams
|
|
1926
|
+
class Charges < ::Stripe::RequestParams
|
|
1927
|
+
# To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
|
|
1928
|
+
# There can be a delay before the risk control is paused or unpaused.
|
|
1929
|
+
attr_accessor :pause_requested
|
|
1930
|
+
|
|
1931
|
+
def initialize(pause_requested: nil)
|
|
1932
|
+
@pause_requested = pause_requested
|
|
1933
|
+
end
|
|
1934
|
+
end
|
|
1935
|
+
|
|
1936
|
+
class Payouts < ::Stripe::RequestParams
|
|
1937
|
+
# To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
|
|
1938
|
+
# There can be a delay before the risk control is paused or unpaused.
|
|
1939
|
+
attr_accessor :pause_requested
|
|
1940
|
+
|
|
1941
|
+
def initialize(pause_requested: nil)
|
|
1942
|
+
@pause_requested = pause_requested
|
|
1943
|
+
end
|
|
1944
|
+
end
|
|
1945
|
+
# Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
1946
|
+
attr_accessor :charges
|
|
1947
|
+
# Represents the risk control status of payouts. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
1948
|
+
attr_accessor :payouts
|
|
1949
|
+
|
|
1950
|
+
def initialize(charges: nil, payouts: nil)
|
|
1951
|
+
@charges = charges
|
|
1952
|
+
@payouts = payouts
|
|
1953
|
+
end
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1739
1956
|
class Settings < ::Stripe::RequestParams
|
|
1740
1957
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
1741
1958
|
# The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
|
|
@@ -1746,6 +1963,18 @@ module Stripe
|
|
|
1746
1963
|
end
|
|
1747
1964
|
end
|
|
1748
1965
|
|
|
1966
|
+
class BankBcaOnboarding < ::Stripe::RequestParams
|
|
1967
|
+
# Bank BCA business account holder name
|
|
1968
|
+
attr_accessor :account_holder_name
|
|
1969
|
+
# Bank BCA business account number
|
|
1970
|
+
attr_accessor :business_account_number
|
|
1971
|
+
|
|
1972
|
+
def initialize(account_holder_name: nil, business_account_number: nil)
|
|
1973
|
+
@account_holder_name = account_holder_name
|
|
1974
|
+
@business_account_number = business_account_number
|
|
1975
|
+
end
|
|
1976
|
+
end
|
|
1977
|
+
|
|
1749
1978
|
class Branding < ::Stripe::RequestParams
|
|
1750
1979
|
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
|
1751
1980
|
attr_accessor :icon
|
|
@@ -1764,6 +1993,18 @@ module Stripe
|
|
|
1764
1993
|
end
|
|
1765
1994
|
end
|
|
1766
1995
|
|
|
1996
|
+
class Capital < ::Stripe::RequestParams
|
|
1997
|
+
# Per-currency mapping of user-selected destination accounts used to pay out loans.
|
|
1998
|
+
attr_accessor :payout_destination
|
|
1999
|
+
# Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
|
|
2000
|
+
attr_accessor :payout_destination_selector
|
|
2001
|
+
|
|
2002
|
+
def initialize(payout_destination: nil, payout_destination_selector: nil)
|
|
2003
|
+
@payout_destination = payout_destination
|
|
2004
|
+
@payout_destination_selector = payout_destination_selector
|
|
2005
|
+
end
|
|
2006
|
+
end
|
|
2007
|
+
|
|
1767
2008
|
class CardIssuing < ::Stripe::RequestParams
|
|
1768
2009
|
class TosAcceptance < ::Stripe::RequestParams
|
|
1769
2010
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
@@ -1897,6 +2138,24 @@ module Stripe
|
|
|
1897
2138
|
end
|
|
1898
2139
|
end
|
|
1899
2140
|
|
|
2141
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
2142
|
+
# Whether your business sells digital content or not.
|
|
2143
|
+
attr_accessor :goods_type
|
|
2144
|
+
|
|
2145
|
+
def initialize(goods_type: nil)
|
|
2146
|
+
@goods_type = goods_type
|
|
2147
|
+
end
|
|
2148
|
+
end
|
|
2149
|
+
|
|
2150
|
+
class TaxForms < ::Stripe::RequestParams
|
|
2151
|
+
# Whether the account opted out of receiving their tax forms by postal delivery.
|
|
2152
|
+
attr_accessor :consented_to_paperless_delivery
|
|
2153
|
+
|
|
2154
|
+
def initialize(consented_to_paperless_delivery: nil)
|
|
2155
|
+
@consented_to_paperless_delivery = consented_to_paperless_delivery
|
|
2156
|
+
end
|
|
2157
|
+
end
|
|
2158
|
+
|
|
1900
2159
|
class Treasury < ::Stripe::RequestParams
|
|
1901
2160
|
class TosAcceptance < ::Stripe::RequestParams
|
|
1902
2161
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
@@ -1921,8 +2180,12 @@ module Stripe
|
|
|
1921
2180
|
end
|
|
1922
2181
|
# Settings specific to Bacs Direct Debit payments.
|
|
1923
2182
|
attr_accessor :bacs_debit_payments
|
|
2183
|
+
# Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
|
|
2184
|
+
attr_accessor :bank_bca_onboarding
|
|
1924
2185
|
# Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
|
1925
2186
|
attr_accessor :branding
|
|
2187
|
+
# Settings specific to the account's use of the Capital product.
|
|
2188
|
+
attr_accessor :capital
|
|
1926
2189
|
# Settings specific to the account's use of the Card Issuing product.
|
|
1927
2190
|
attr_accessor :card_issuing
|
|
1928
2191
|
# Settings specific to card charging on the account.
|
|
@@ -1933,26 +2196,38 @@ module Stripe
|
|
|
1933
2196
|
attr_accessor :payments
|
|
1934
2197
|
# Settings specific to the account's payouts.
|
|
1935
2198
|
attr_accessor :payouts
|
|
2199
|
+
# Settings specific to the PayPay payments method.
|
|
2200
|
+
attr_accessor :paypay_payments
|
|
2201
|
+
# Settings specific to the account's tax forms.
|
|
2202
|
+
attr_accessor :tax_forms
|
|
1936
2203
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
1937
2204
|
attr_accessor :treasury
|
|
1938
2205
|
|
|
1939
2206
|
def initialize(
|
|
1940
2207
|
bacs_debit_payments: nil,
|
|
2208
|
+
bank_bca_onboarding: nil,
|
|
1941
2209
|
branding: nil,
|
|
2210
|
+
capital: nil,
|
|
1942
2211
|
card_issuing: nil,
|
|
1943
2212
|
card_payments: nil,
|
|
1944
2213
|
invoices: nil,
|
|
1945
2214
|
payments: nil,
|
|
1946
2215
|
payouts: nil,
|
|
2216
|
+
paypay_payments: nil,
|
|
2217
|
+
tax_forms: nil,
|
|
1947
2218
|
treasury: nil
|
|
1948
2219
|
)
|
|
1949
2220
|
@bacs_debit_payments = bacs_debit_payments
|
|
2221
|
+
@bank_bca_onboarding = bank_bca_onboarding
|
|
1950
2222
|
@branding = branding
|
|
2223
|
+
@capital = capital
|
|
1951
2224
|
@card_issuing = card_issuing
|
|
1952
2225
|
@card_payments = card_payments
|
|
1953
2226
|
@invoices = invoices
|
|
1954
2227
|
@payments = payments
|
|
1955
2228
|
@payouts = payouts
|
|
2229
|
+
@paypay_payments = paypay_payments
|
|
2230
|
+
@tax_forms = tax_forms
|
|
1956
2231
|
@treasury = treasury
|
|
1957
2232
|
end
|
|
1958
2233
|
end
|
|
@@ -2007,6 +2282,8 @@ module Stripe
|
|
|
2007
2282
|
attr_accessor :individual
|
|
2008
2283
|
# 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`.
|
|
2009
2284
|
attr_accessor :metadata
|
|
2285
|
+
# A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
2286
|
+
attr_accessor :risk_controls
|
|
2010
2287
|
# Options for customizing how the account functions within Stripe.
|
|
2011
2288
|
attr_accessor :settings
|
|
2012
2289
|
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
|
@@ -2026,6 +2303,7 @@ module Stripe
|
|
|
2026
2303
|
groups: nil,
|
|
2027
2304
|
individual: nil,
|
|
2028
2305
|
metadata: nil,
|
|
2306
|
+
risk_controls: nil,
|
|
2029
2307
|
settings: nil,
|
|
2030
2308
|
tos_acceptance: nil
|
|
2031
2309
|
)
|
|
@@ -2042,6 +2320,7 @@ module Stripe
|
|
|
2042
2320
|
@groups = groups
|
|
2043
2321
|
@individual = individual
|
|
2044
2322
|
@metadata = metadata
|
|
2323
|
+
@risk_controls = risk_controls
|
|
2045
2324
|
@settings = settings
|
|
2046
2325
|
@tos_acceptance = tos_acceptance
|
|
2047
2326
|
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
class MeterUsageRetrieveParams < ::Stripe::RequestParams
|
|
8
|
+
class Meter < ::Stripe::RequestParams
|
|
9
|
+
# Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
|
|
10
|
+
attr_accessor :dimension_filters
|
|
11
|
+
# List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
|
|
12
|
+
attr_accessor :dimension_group_by_keys
|
|
13
|
+
# Meter id to query usage for.
|
|
14
|
+
attr_accessor :meter
|
|
15
|
+
# Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
|
|
16
|
+
attr_accessor :tenant_filters
|
|
17
|
+
|
|
18
|
+
def initialize(
|
|
19
|
+
dimension_filters: nil,
|
|
20
|
+
dimension_group_by_keys: nil,
|
|
21
|
+
meter: nil,
|
|
22
|
+
tenant_filters: nil
|
|
23
|
+
)
|
|
24
|
+
@dimension_filters = dimension_filters
|
|
25
|
+
@dimension_group_by_keys = dimension_group_by_keys
|
|
26
|
+
@meter = meter
|
|
27
|
+
@tenant_filters = tenant_filters
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# The customer id to fetch meter usage data for.
|
|
31
|
+
attr_accessor :customer
|
|
32
|
+
# The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
|
33
|
+
attr_accessor :ends_at
|
|
34
|
+
# Specifies which fields in the response should be expanded.
|
|
35
|
+
attr_accessor :expand
|
|
36
|
+
# An array of meter parameters to specify which meters to include in the usage data. If not specified, usage across all meters for the customer is included.
|
|
37
|
+
attr_accessor :meters
|
|
38
|
+
# The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
|
39
|
+
attr_accessor :starts_at
|
|
40
|
+
# The timezone to use for the start and end times. Defaults to UTC if not specified.
|
|
41
|
+
attr_accessor :timezone
|
|
42
|
+
# Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range.
|
|
43
|
+
attr_accessor :value_grouping_window
|
|
44
|
+
|
|
45
|
+
def initialize(
|
|
46
|
+
customer: nil,
|
|
47
|
+
ends_at: nil,
|
|
48
|
+
expand: nil,
|
|
49
|
+
meters: nil,
|
|
50
|
+
starts_at: nil,
|
|
51
|
+
timezone: nil,
|
|
52
|
+
value_grouping_window: nil
|
|
53
|
+
)
|
|
54
|
+
@customer = customer
|
|
55
|
+
@ends_at = ends_at
|
|
56
|
+
@expand = expand
|
|
57
|
+
@meters = meters
|
|
58
|
+
@starts_at = starts_at
|
|
59
|
+
@timezone = timezone
|
|
60
|
+
@value_grouping_window = value_grouping_window
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -39,13 +39,16 @@ module Stripe
|
|
|
39
39
|
end
|
|
40
40
|
# The customer for which to fetch credit balance summary.
|
|
41
41
|
attr_accessor :customer
|
|
42
|
+
# The account for which to fetch credit balance summary.
|
|
43
|
+
attr_accessor :customer_account
|
|
42
44
|
# Specifies which fields in the response should be expanded.
|
|
43
45
|
attr_accessor :expand
|
|
44
46
|
# The filter criteria for the credit balance summary.
|
|
45
47
|
attr_accessor :filter
|
|
46
48
|
|
|
47
|
-
def initialize(customer: nil, expand: nil, filter: nil)
|
|
49
|
+
def initialize(customer: nil, customer_account: nil, expand: nil, filter: nil)
|
|
48
50
|
@customer = customer
|
|
51
|
+
@customer_account = customer_account
|
|
49
52
|
@expand = expand
|
|
50
53
|
@filter = filter
|
|
51
54
|
end
|
|
@@ -8,6 +8,8 @@ module Stripe
|
|
|
8
8
|
attr_accessor :credit_grant
|
|
9
9
|
# The customer for which to fetch credit balance transactions.
|
|
10
10
|
attr_accessor :customer
|
|
11
|
+
# The account for which to fetch credit balance transactions.
|
|
12
|
+
attr_accessor :customer_account
|
|
11
13
|
# 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.
|
|
12
14
|
attr_accessor :ending_before
|
|
13
15
|
# Specifies which fields in the response should be expanded.
|
|
@@ -20,6 +22,7 @@ module Stripe
|
|
|
20
22
|
def initialize(
|
|
21
23
|
credit_grant: nil,
|
|
22
24
|
customer: nil,
|
|
25
|
+
customer_account: nil,
|
|
23
26
|
ending_before: nil,
|
|
24
27
|
expand: nil,
|
|
25
28
|
limit: nil,
|
|
@@ -27,6 +30,7 @@ module Stripe
|
|
|
27
30
|
)
|
|
28
31
|
@credit_grant = credit_grant
|
|
29
32
|
@customer = customer
|
|
33
|
+
@customer_account = customer_account
|
|
30
34
|
@ending_before = ending_before
|
|
31
35
|
@expand = expand
|
|
32
36
|
@limit = limit
|
|
@@ -62,6 +62,8 @@ module Stripe
|
|
|
62
62
|
attr_accessor :category
|
|
63
63
|
# ID of the customer to receive the billing credits.
|
|
64
64
|
attr_accessor :customer
|
|
65
|
+
# ID of the account to receive the billing credits.
|
|
66
|
+
attr_accessor :customer_account
|
|
65
67
|
# The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
|
|
66
68
|
attr_accessor :effective_at
|
|
67
69
|
# Specifies which fields in the response should be expanded.
|
|
@@ -80,6 +82,7 @@ module Stripe
|
|
|
80
82
|
applicability_config: nil,
|
|
81
83
|
category: nil,
|
|
82
84
|
customer: nil,
|
|
85
|
+
customer_account: nil,
|
|
83
86
|
effective_at: nil,
|
|
84
87
|
expand: nil,
|
|
85
88
|
expires_at: nil,
|
|
@@ -91,6 +94,7 @@ module Stripe
|
|
|
91
94
|
@applicability_config = applicability_config
|
|
92
95
|
@category = category
|
|
93
96
|
@customer = customer
|
|
97
|
+
@customer_account = customer_account
|
|
94
98
|
@effective_at = effective_at
|
|
95
99
|
@expand = expand
|
|
96
100
|
@expires_at = expires_at
|