stripe 17.1.0 → 17.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 +233 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +55 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +715 -0
- data/lib/stripe/params/charge_update_params.rb +715 -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 +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
- data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -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 +1237 -5
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2248 -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_update_params.rb +2294 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_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/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +164 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +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 +789 -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/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3906 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +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/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +112 -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/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +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 +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +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 +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +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/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +58 -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 +145086 -86712
- metadata +337 -3
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
|
|
6
|
+
#
|
|
7
|
+
# See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
|
|
8
|
+
class AccountNotice < APIResource
|
|
9
|
+
extend Stripe::APIOperations::List
|
|
10
|
+
include Stripe::APIOperations::Save
|
|
11
|
+
|
|
12
|
+
OBJECT_NAME = "account_notice"
|
|
13
|
+
def self.object_name
|
|
14
|
+
"account_notice"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Email < ::Stripe::StripeObject
|
|
18
|
+
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
|
|
19
|
+
attr_reader :plain_text
|
|
20
|
+
# Email address of the recipient.
|
|
21
|
+
attr_reader :recipient
|
|
22
|
+
# Subject of the email.
|
|
23
|
+
attr_reader :subject
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = {}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.field_remappings
|
|
30
|
+
@field_remappings = {}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
class LinkedObjects < ::Stripe::StripeObject
|
|
35
|
+
# Associated [Capability](https://stripe.com/docs/api/capabilities)
|
|
36
|
+
attr_reader :capability
|
|
37
|
+
# Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record)
|
|
38
|
+
attr_reader :issuing_credit_underwriting_record
|
|
39
|
+
# Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes)
|
|
40
|
+
attr_reader :issuing_dispute
|
|
41
|
+
|
|
42
|
+
def self.inner_class_types
|
|
43
|
+
@inner_class_types = {}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.field_remappings
|
|
47
|
+
@field_remappings = {}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
51
|
+
attr_reader :created
|
|
52
|
+
# When present, the deadline for sending the notice to meet the relevant regulations.
|
|
53
|
+
attr_reader :deadline
|
|
54
|
+
# Information about the email when sent.
|
|
55
|
+
attr_reader :email
|
|
56
|
+
# Unique identifier for the object.
|
|
57
|
+
attr_reader :id
|
|
58
|
+
# Information about objects related to the notice.
|
|
59
|
+
attr_reader :linked_objects
|
|
60
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
61
|
+
attr_reader :livemode
|
|
62
|
+
# 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.
|
|
63
|
+
attr_reader :metadata
|
|
64
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
65
|
+
attr_reader :object
|
|
66
|
+
# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
|
|
67
|
+
attr_reader :reason
|
|
68
|
+
# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
|
|
69
|
+
attr_reader :sent_at
|
|
70
|
+
|
|
71
|
+
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
|
72
|
+
def self.list(params = {}, opts = {})
|
|
73
|
+
request_stripe_object(method: :get, path: "/v1/account_notices", params: params, opts: opts)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Updates an AccountNotice object.
|
|
77
|
+
def self.update(account_notice, params = {}, opts = {})
|
|
78
|
+
request_stripe_object(
|
|
79
|
+
method: :post,
|
|
80
|
+
path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
|
|
81
|
+
params: params,
|
|
82
|
+
opts: opts
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def self.inner_class_types
|
|
87
|
+
@inner_class_types = { email: Email, linked_objects: LinkedObjects }
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def self.field_remappings
|
|
91
|
+
@field_remappings = {}
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -111,6 +111,78 @@ module Stripe
|
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
class CapitalFinancing < ::Stripe::StripeObject
|
|
115
|
+
class Features < ::Stripe::StripeObject
|
|
116
|
+
def self.inner_class_types
|
|
117
|
+
@inner_class_types = {}
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
def self.field_remappings
|
|
121
|
+
@field_remappings = {}
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
# Whether the embedded component is enabled.
|
|
125
|
+
attr_reader :enabled
|
|
126
|
+
# Attribute for field features
|
|
127
|
+
attr_reader :features
|
|
128
|
+
|
|
129
|
+
def self.inner_class_types
|
|
130
|
+
@inner_class_types = { features: Features }
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
def self.field_remappings
|
|
134
|
+
@field_remappings = {}
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class CapitalFinancingApplication < ::Stripe::StripeObject
|
|
139
|
+
class Features < ::Stripe::StripeObject
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {}
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.field_remappings
|
|
145
|
+
@field_remappings = {}
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
# Whether the embedded component is enabled.
|
|
149
|
+
attr_reader :enabled
|
|
150
|
+
# Attribute for field features
|
|
151
|
+
attr_reader :features
|
|
152
|
+
|
|
153
|
+
def self.inner_class_types
|
|
154
|
+
@inner_class_types = { features: Features }
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def self.field_remappings
|
|
158
|
+
@field_remappings = {}
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
class CapitalFinancingPromotion < ::Stripe::StripeObject
|
|
163
|
+
class Features < ::Stripe::StripeObject
|
|
164
|
+
def self.inner_class_types
|
|
165
|
+
@inner_class_types = {}
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def self.field_remappings
|
|
169
|
+
@field_remappings = {}
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
# Whether the embedded component is enabled.
|
|
173
|
+
attr_reader :enabled
|
|
174
|
+
# Attribute for field features
|
|
175
|
+
attr_reader :features
|
|
176
|
+
|
|
177
|
+
def self.inner_class_types
|
|
178
|
+
@inner_class_types = { features: Features }
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def self.field_remappings
|
|
182
|
+
@field_remappings = {}
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
114
186
|
class DisputesList < ::Stripe::StripeObject
|
|
115
187
|
class Features < ::Stripe::StripeObject
|
|
116
188
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
|
@@ -589,6 +661,12 @@ module Stripe
|
|
|
589
661
|
attr_reader :account_onboarding
|
|
590
662
|
# Attribute for field balances
|
|
591
663
|
attr_reader :balances
|
|
664
|
+
# Attribute for field capital_financing
|
|
665
|
+
attr_reader :capital_financing
|
|
666
|
+
# Attribute for field capital_financing_application
|
|
667
|
+
attr_reader :capital_financing_application
|
|
668
|
+
# Attribute for field capital_financing_promotion
|
|
669
|
+
attr_reader :capital_financing_promotion
|
|
592
670
|
# Attribute for field disputes_list
|
|
593
671
|
attr_reader :disputes_list
|
|
594
672
|
# Attribute for field documents
|
|
@@ -627,6 +705,9 @@ module Stripe
|
|
|
627
705
|
account_management: AccountManagement,
|
|
628
706
|
account_onboarding: AccountOnboarding,
|
|
629
707
|
balances: Balances,
|
|
708
|
+
capital_financing: CapitalFinancing,
|
|
709
|
+
capital_financing_application: CapitalFinancingApplication,
|
|
710
|
+
capital_financing_promotion: CapitalFinancingPromotion,
|
|
630
711
|
disputes_list: DisputesList,
|
|
631
712
|
documents: Documents,
|
|
632
713
|
financial_account: FinancialAccount,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
# A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
|
|
8
|
+
class MeterUsage < SingletonAPIResource
|
|
9
|
+
OBJECT_NAME = "billing.analytics.meter_usage"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"billing.analytics.meter_usage"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
15
|
+
attr_reader :livemode
|
|
16
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
attr_reader :object
|
|
18
|
+
# The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
|
|
19
|
+
attr_reader :refreshed_at
|
|
20
|
+
# Attribute for field rows
|
|
21
|
+
attr_reader :rows
|
|
22
|
+
|
|
23
|
+
def self.inner_class_types
|
|
24
|
+
@inner_class_types = {}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.field_remappings
|
|
28
|
+
@field_remappings = {}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
class MeterUsageRow < APIResource
|
|
8
|
+
OBJECT_NAME = "billing.analytics.meter_usage_row"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"billing.analytics.meter_usage_row"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# A set of key-value pairs representing the dimensions of the meter usage.
|
|
14
|
+
attr_reader :dimensions
|
|
15
|
+
# Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
|
|
16
|
+
attr_reader :ends_at
|
|
17
|
+
# Unique identifier for the object.
|
|
18
|
+
attr_reader :id
|
|
19
|
+
# The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
|
|
20
|
+
attr_reader :meter
|
|
21
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
22
|
+
attr_reader :object
|
|
23
|
+
# Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
|
|
24
|
+
attr_reader :starts_at
|
|
25
|
+
# The aggregated meter usage value for the specified bucket.
|
|
26
|
+
attr_reader :value
|
|
27
|
+
|
|
28
|
+
def self.inner_class_types
|
|
29
|
+
@inner_class_types = {}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.field_remappings
|
|
33
|
+
@field_remappings = {}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -85,6 +85,8 @@ module Stripe
|
|
|
85
85
|
attr_reader :balances
|
|
86
86
|
# The customer the balance is for.
|
|
87
87
|
attr_reader :customer
|
|
88
|
+
# The account the balance is for.
|
|
89
|
+
attr_reader :customer_account
|
|
88
90
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
89
91
|
attr_reader :livemode
|
|
90
92
|
# String representing the object's type. Objects of the same type share the same value.
|
|
@@ -93,6 +93,8 @@ module Stripe
|
|
|
93
93
|
attr_reader :created
|
|
94
94
|
# ID of the customer receiving the billing credits.
|
|
95
95
|
attr_reader :customer
|
|
96
|
+
# ID of the account receiving the billing credits
|
|
97
|
+
attr_reader :customer_account
|
|
96
98
|
# The time when the billing credits become effective-when they're eligible for use.
|
|
97
99
|
attr_reader :effective_at
|
|
98
100
|
# The time when the billing credits expire. If not present, the billing credits don't expire.
|
|
@@ -199,6 +199,8 @@ module Stripe
|
|
|
199
199
|
attr_reader :created
|
|
200
200
|
# The ID of the customer for this session.
|
|
201
201
|
attr_reader :customer
|
|
202
|
+
# The ID of the account for this session.
|
|
203
|
+
attr_reader :customer_account
|
|
202
204
|
# Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
|
|
203
205
|
attr_reader :flow
|
|
204
206
|
# Unique identifier for the object.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# This is an object representing an offer of financing from
|
|
7
|
+
# Stripe Capital to a Connect subaccount.
|
|
8
|
+
class FinancingOffer < APIResource
|
|
9
|
+
extend Stripe::APIOperations::List
|
|
10
|
+
|
|
11
|
+
OBJECT_NAME = "capital.financing_offer"
|
|
12
|
+
def self.object_name
|
|
13
|
+
"capital.financing_offer"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class AcceptedTerms < ::Stripe::StripeObject
|
|
17
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
18
|
+
attr_reader :advance_amount
|
|
19
|
+
# Currency that the financing offer is transacted in. For example, `usd`.
|
|
20
|
+
attr_reader :currency
|
|
21
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
22
|
+
attr_reader :fee_amount
|
|
23
|
+
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
24
|
+
# Represents the discount amount on remaining premium for the existing loan at payout time.
|
|
25
|
+
attr_reader :previous_financing_fee_discount_amount
|
|
26
|
+
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
27
|
+
attr_reader :withhold_rate
|
|
28
|
+
|
|
29
|
+
def self.inner_class_types
|
|
30
|
+
@inner_class_types = {}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.field_remappings
|
|
34
|
+
@field_remappings = {}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class OfferedTerms < ::Stripe::StripeObject
|
|
39
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
40
|
+
attr_reader :advance_amount
|
|
41
|
+
# Describes the type of user the offer is being extended to.
|
|
42
|
+
attr_reader :campaign_type
|
|
43
|
+
# Currency that the financing offer is transacted in. For example, `usd`.
|
|
44
|
+
attr_reader :currency
|
|
45
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
46
|
+
attr_reader :fee_amount
|
|
47
|
+
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
48
|
+
# Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
|
|
49
|
+
# is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
|
|
50
|
+
# and the remaining fee.
|
|
51
|
+
attr_reader :previous_financing_fee_discount_rate
|
|
52
|
+
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
53
|
+
attr_reader :withhold_rate
|
|
54
|
+
|
|
55
|
+
def self.inner_class_types
|
|
56
|
+
@inner_class_types = {}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def self.field_remappings
|
|
60
|
+
@field_remappings = {}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
# This is an object representing the terms of an offer of financing from
|
|
64
|
+
# Stripe Capital to a Connected account. This resource represents
|
|
65
|
+
# the terms accepted by the Connected account, which may differ from those
|
|
66
|
+
# offered.
|
|
67
|
+
attr_reader :accepted_terms
|
|
68
|
+
# The ID of the merchant associated with this financing object.
|
|
69
|
+
attr_reader :account
|
|
70
|
+
# The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
|
|
71
|
+
attr_reader :charged_off_at
|
|
72
|
+
# Time at which the offer was created. Given in seconds since unix epoch.
|
|
73
|
+
attr_reader :created
|
|
74
|
+
# Time at which the offer expires. Given in seconds since unix epoch.
|
|
75
|
+
attr_reader :expires_after
|
|
76
|
+
# The type of financing being offered.
|
|
77
|
+
attr_reader :financing_type
|
|
78
|
+
# A unique identifier for the financing object.
|
|
79
|
+
attr_reader :id
|
|
80
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
81
|
+
attr_reader :livemode
|
|
82
|
+
# 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.
|
|
83
|
+
attr_reader :metadata
|
|
84
|
+
# The object type: financing_offer.
|
|
85
|
+
attr_reader :object
|
|
86
|
+
# This is an object representing the terms of an offer of financing from
|
|
87
|
+
# Stripe Capital to a Connected account. This resource represents
|
|
88
|
+
# both the terms offered to the Connected account.
|
|
89
|
+
attr_reader :offered_terms
|
|
90
|
+
# Financing product identifier.
|
|
91
|
+
attr_reader :product_type
|
|
92
|
+
# The ID of the financing offer that replaced this offer.
|
|
93
|
+
attr_reader :replacement
|
|
94
|
+
# The ID of the financing offer that this offer is a replacement for.
|
|
95
|
+
attr_reader :replacement_for
|
|
96
|
+
# The current status of the offer.
|
|
97
|
+
attr_reader :status
|
|
98
|
+
# See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
|
|
99
|
+
attr_reader :type
|
|
100
|
+
|
|
101
|
+
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
|
102
|
+
def self.list(params = {}, opts = {})
|
|
103
|
+
request_stripe_object(
|
|
104
|
+
method: :get,
|
|
105
|
+
path: "/v1/capital/financing_offers",
|
|
106
|
+
params: params,
|
|
107
|
+
opts: opts
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Acknowledges that platform has received and delivered the financing_offer to
|
|
112
|
+
# the intended merchant recipient.
|
|
113
|
+
def mark_delivered(params = {}, opts = {})
|
|
114
|
+
request_stripe_object(
|
|
115
|
+
method: :post,
|
|
116
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
|
117
|
+
params: params,
|
|
118
|
+
opts: opts
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Acknowledges that platform has received and delivered the financing_offer to
|
|
123
|
+
# the intended merchant recipient.
|
|
124
|
+
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
|
125
|
+
request_stripe_object(
|
|
126
|
+
method: :post,
|
|
127
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
|
128
|
+
params: params,
|
|
129
|
+
opts: opts
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
def self.inner_class_types
|
|
134
|
+
@inner_class_types = { accepted_terms: AcceptedTerms, offered_terms: OfferedTerms }
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def self.field_remappings
|
|
138
|
+
@field_remappings = {}
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# A financing object describes an account's current financing state. Used by Connect
|
|
7
|
+
# platforms to read the state of Capital offered to their connected accounts.
|
|
8
|
+
class FinancingSummary < SingletonAPIResource
|
|
9
|
+
OBJECT_NAME = "capital.financing_summary"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"capital.financing_summary"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Details < ::Stripe::StripeObject
|
|
15
|
+
class CurrentRepaymentInterval < ::Stripe::StripeObject
|
|
16
|
+
# The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
|
|
17
|
+
# Given in seconds since unix epoch.
|
|
18
|
+
attr_reader :due_at
|
|
19
|
+
# The amount that has already been paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
|
20
|
+
attr_reader :paid_amount
|
|
21
|
+
# The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
|
22
|
+
attr_reader :remaining_amount
|
|
23
|
+
|
|
24
|
+
def self.inner_class_types
|
|
25
|
+
@inner_class_types = {}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.field_remappings
|
|
29
|
+
@field_remappings = {}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
33
|
+
attr_reader :advance_amount
|
|
34
|
+
# The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
|
|
35
|
+
attr_reader :advance_paid_out_at
|
|
36
|
+
# Currency that the financing offer is transacted in. For example, `usd`.
|
|
37
|
+
attr_reader :currency
|
|
38
|
+
# The chronologically current repayment interval for the financing offer.
|
|
39
|
+
attr_reader :current_repayment_interval
|
|
40
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
41
|
+
attr_reader :fee_amount
|
|
42
|
+
# The amount the Connected account has paid toward the financing debt so far, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
43
|
+
attr_reader :paid_amount
|
|
44
|
+
# The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
45
|
+
attr_reader :remaining_amount
|
|
46
|
+
# The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
|
|
47
|
+
attr_reader :repayments_begin_at
|
|
48
|
+
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
49
|
+
attr_reader :withhold_rate
|
|
50
|
+
|
|
51
|
+
def self.inner_class_types
|
|
52
|
+
@inner_class_types = { current_repayment_interval: CurrentRepaymentInterval }
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def self.field_remappings
|
|
56
|
+
@field_remappings = {}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
# Additional information about the financing summary. Describes currency, advance amount,
|
|
60
|
+
# fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
|
|
61
|
+
# repayment start date, and advance payout date.
|
|
62
|
+
attr_reader :details
|
|
63
|
+
# The Financing Offer ID this Financing Summary corresponds to
|
|
64
|
+
attr_reader :financing_offer
|
|
65
|
+
# The object type: financing_summary
|
|
66
|
+
attr_reader :object
|
|
67
|
+
# Status of the Connected Account's financing. [/v1/capital/financing_summary](https://stripe.com/docs/api/capital/financing_summary) will only return `details` for `paid_out` financing.
|
|
68
|
+
attr_reader :status
|
|
69
|
+
|
|
70
|
+
def self.inner_class_types
|
|
71
|
+
@inner_class_types = { details: Details }
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def self.field_remappings
|
|
75
|
+
@field_remappings = {}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# This is an object representing the details of a transaction on a Capital financing object.
|
|
7
|
+
class FinancingTransaction < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "capital.financing_transaction"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"capital.financing_transaction"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class Details < ::Stripe::StripeObject
|
|
16
|
+
class Transaction < ::Stripe::StripeObject
|
|
17
|
+
# The linked payment ID.
|
|
18
|
+
attr_reader :charge
|
|
19
|
+
# The linked Treasury Financing Transaction ID.
|
|
20
|
+
attr_reader :treasury_transaction
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# The advance amount being repaid, paid out, or reversed in minor units.
|
|
31
|
+
attr_reader :advance_amount
|
|
32
|
+
# The currency of the financing transaction.
|
|
33
|
+
attr_reader :currency
|
|
34
|
+
# The fee amount being repaid, paid out, or reversed in minor units.
|
|
35
|
+
attr_reader :fee_amount
|
|
36
|
+
# The linked payment for the transaction. This field only applies to financing transactions of type `paydown` and reason `automatic_withholding`.
|
|
37
|
+
attr_reader :linked_payment
|
|
38
|
+
# The reason for the financing transaction (if applicable).
|
|
39
|
+
attr_reader :reason
|
|
40
|
+
# The reversed transaction. This field only applies to financing
|
|
41
|
+
# transactions of type `reversal`.
|
|
42
|
+
attr_reader :reversed_transaction
|
|
43
|
+
# The advance and fee amount being repaid, paid out, or reversed in minor units.
|
|
44
|
+
attr_reader :total_amount
|
|
45
|
+
# This is an object representing a linked transaction on a Capital Financing Transaction.
|
|
46
|
+
attr_reader :transaction
|
|
47
|
+
|
|
48
|
+
def self.inner_class_types
|
|
49
|
+
@inner_class_types = { transaction: Transaction }
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def self.field_remappings
|
|
53
|
+
@field_remappings = {}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
# The ID of the merchant associated with this financing transaction.
|
|
57
|
+
attr_reader :account
|
|
58
|
+
# Time at which the financing transaction was created. Given in seconds since unix epoch.
|
|
59
|
+
attr_reader :created_at
|
|
60
|
+
# This is an object representing a transaction on a Capital financing offer.
|
|
61
|
+
attr_reader :details
|
|
62
|
+
# The Capital financing offer for this financing transaction.
|
|
63
|
+
attr_reader :financing_offer
|
|
64
|
+
# A unique identifier for the financing transaction object.
|
|
65
|
+
attr_reader :id
|
|
66
|
+
# The Capital transaction object that predates the Financing Transactions API and
|
|
67
|
+
# corresponds with the balance transaction that was created as a result of this
|
|
68
|
+
# financing transaction.
|
|
69
|
+
attr_reader :legacy_balance_transaction_source
|
|
70
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
71
|
+
attr_reader :livemode
|
|
72
|
+
# The object type: financing_transaction
|
|
73
|
+
attr_reader :object
|
|
74
|
+
# The type of the financing transaction.
|
|
75
|
+
attr_reader :type
|
|
76
|
+
# A human-friendly description of the financing transaction.
|
|
77
|
+
attr_reader :user_facing_description
|
|
78
|
+
|
|
79
|
+
# Returns a list of financing transactions. The transactions are returned in sorted order,
|
|
80
|
+
# with the most recent transactions appearing first.
|
|
81
|
+
def self.list(params = {}, opts = {})
|
|
82
|
+
request_stripe_object(
|
|
83
|
+
method: :get,
|
|
84
|
+
path: "/v1/capital/financing_transactions",
|
|
85
|
+
params: params,
|
|
86
|
+
opts: opts
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def self.inner_class_types
|
|
91
|
+
@inner_class_types = { details: Details }
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def self.field_remappings
|
|
95
|
+
@field_remappings = {}
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -53,6 +53,8 @@ module Stripe
|
|
|
53
53
|
attr_reader :available_payout_methods
|
|
54
54
|
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
55
55
|
attr_reader :brand
|
|
56
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
57
|
+
attr_reader :brand_product
|
|
56
58
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
57
59
|
attr_reader :country
|
|
58
60
|
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available when returned as an [External Account](/api/external_account_cards/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`.
|
|
@@ -27,6 +27,8 @@ module Stripe
|
|
|
27
27
|
attr_reader :available
|
|
28
28
|
# The ID of the customer whose cash balance this object represents.
|
|
29
29
|
attr_reader :customer
|
|
30
|
+
# The ID of the account whose cash balance this object represents.
|
|
31
|
+
attr_reader :customer_account
|
|
30
32
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
31
33
|
attr_reader :livemode
|
|
32
34
|
# String representing the object's type. Objects of the same type share the same value.
|