stripe 16.0.0 → 16.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 +35 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +236 -0
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +58 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +4 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
- data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2217 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2245 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +169 -0
- data/lib/stripe/request_options.rb +3 -1
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +234 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +2 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/invoice_payment.rb +2 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
- data/lib/stripe/resources/payment_intent.rb +848 -4
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +2208 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3851 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +116 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +44 -0
- data/lib/stripe/services/payment_record_service.rb +89 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +10 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +61 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_object.rb +9 -9
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +155102 -90522
- metadata +351 -5
@@ -0,0 +1,134 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class ExternalAccountCreateParams < Stripe::RequestParams
|
6
|
+
class BankAccount < Stripe::RequestParams
|
7
|
+
# Attribute for param field object
|
8
|
+
attr_accessor :object
|
9
|
+
# The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
|
10
|
+
attr_accessor :account_holder_name
|
11
|
+
# The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
|
12
|
+
attr_accessor :account_holder_type
|
13
|
+
# The account number for the bank account, in string form. Must be a checking account.
|
14
|
+
attr_accessor :account_number
|
15
|
+
# The country in which the bank account is located.
|
16
|
+
attr_accessor :country
|
17
|
+
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
18
|
+
attr_accessor :currency
|
19
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
20
|
+
attr_accessor :routing_number
|
21
|
+
|
22
|
+
def initialize(
|
23
|
+
object: nil,
|
24
|
+
account_holder_name: nil,
|
25
|
+
account_holder_type: nil,
|
26
|
+
account_number: nil,
|
27
|
+
country: nil,
|
28
|
+
currency: nil,
|
29
|
+
routing_number: nil
|
30
|
+
)
|
31
|
+
@object = object
|
32
|
+
@account_holder_name = account_holder_name
|
33
|
+
@account_holder_type = account_holder_type
|
34
|
+
@account_number = account_number
|
35
|
+
@country = country
|
36
|
+
@currency = currency
|
37
|
+
@routing_number = routing_number
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
class Card < Stripe::RequestParams
|
42
|
+
# Attribute for param field object
|
43
|
+
attr_accessor :object
|
44
|
+
# Attribute for param field address_city
|
45
|
+
attr_accessor :address_city
|
46
|
+
# Attribute for param field address_country
|
47
|
+
attr_accessor :address_country
|
48
|
+
# Attribute for param field address_line1
|
49
|
+
attr_accessor :address_line1
|
50
|
+
# Attribute for param field address_line2
|
51
|
+
attr_accessor :address_line2
|
52
|
+
# Attribute for param field address_state
|
53
|
+
attr_accessor :address_state
|
54
|
+
# Attribute for param field address_zip
|
55
|
+
attr_accessor :address_zip
|
56
|
+
# Attribute for param field currency
|
57
|
+
attr_accessor :currency
|
58
|
+
# Attribute for param field cvc
|
59
|
+
attr_accessor :cvc
|
60
|
+
# Attribute for param field exp_month
|
61
|
+
attr_accessor :exp_month
|
62
|
+
# Attribute for param field exp_year
|
63
|
+
attr_accessor :exp_year
|
64
|
+
# Attribute for param field name
|
65
|
+
attr_accessor :name
|
66
|
+
# Attribute for param field number
|
67
|
+
attr_accessor :number
|
68
|
+
# 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.
|
69
|
+
attr_accessor :metadata
|
70
|
+
|
71
|
+
def initialize(
|
72
|
+
object: nil,
|
73
|
+
address_city: nil,
|
74
|
+
address_country: nil,
|
75
|
+
address_line1: nil,
|
76
|
+
address_line2: nil,
|
77
|
+
address_state: nil,
|
78
|
+
address_zip: nil,
|
79
|
+
currency: nil,
|
80
|
+
cvc: nil,
|
81
|
+
exp_month: nil,
|
82
|
+
exp_year: nil,
|
83
|
+
name: nil,
|
84
|
+
number: nil,
|
85
|
+
metadata: nil
|
86
|
+
)
|
87
|
+
@object = object
|
88
|
+
@address_city = address_city
|
89
|
+
@address_country = address_country
|
90
|
+
@address_line1 = address_line1
|
91
|
+
@address_line2 = address_line2
|
92
|
+
@address_state = address_state
|
93
|
+
@address_zip = address_zip
|
94
|
+
@currency = currency
|
95
|
+
@cvc = cvc
|
96
|
+
@exp_month = exp_month
|
97
|
+
@exp_year = exp_year
|
98
|
+
@name = name
|
99
|
+
@number = number
|
100
|
+
@metadata = metadata
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
class CardToken < Stripe::RequestParams
|
105
|
+
# Attribute for param field object
|
106
|
+
attr_accessor :object
|
107
|
+
# Attribute for param field currency
|
108
|
+
attr_accessor :currency
|
109
|
+
# Attribute for param field token
|
110
|
+
attr_accessor :token
|
111
|
+
|
112
|
+
def initialize(object: nil, currency: nil, token: nil)
|
113
|
+
@object = object
|
114
|
+
@currency = currency
|
115
|
+
@token = token
|
116
|
+
end
|
117
|
+
end
|
118
|
+
# When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
|
119
|
+
attr_accessor :default_for_currency
|
120
|
+
# Specifies which fields in the response should be expanded.
|
121
|
+
attr_accessor :expand
|
122
|
+
# Either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary containing a user’s external account details (with the options shown below).
|
123
|
+
attr_accessor :external_account
|
124
|
+
# 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`.
|
125
|
+
attr_accessor :metadata
|
126
|
+
|
127
|
+
def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil)
|
128
|
+
@default_for_currency = default_for_currency
|
129
|
+
@expand = expand
|
130
|
+
@external_account = external_account
|
131
|
+
@metadata = metadata
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class ExternalAccountListParams < Stripe::RequestParams
|
6
|
+
# 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.
|
7
|
+
attr_accessor :ending_before
|
8
|
+
# Specifies which fields in the response should be expanded.
|
9
|
+
attr_accessor :expand
|
10
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
11
|
+
attr_accessor :limit
|
12
|
+
# Filter external accounts according to a particular object type.
|
13
|
+
attr_accessor :object
|
14
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
15
|
+
attr_accessor :starting_after
|
16
|
+
|
17
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, object: nil, starting_after: nil)
|
18
|
+
@ending_before = ending_before
|
19
|
+
@expand = expand
|
20
|
+
@limit = limit
|
21
|
+
@object = object
|
22
|
+
@starting_after = starting_after
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class ExternalAccountRetrieveParams < Stripe::RequestParams
|
6
|
+
# Specifies which fields in the response should be expanded.
|
7
|
+
attr_accessor :expand
|
8
|
+
|
9
|
+
def initialize(expand: nil)
|
10
|
+
@expand = expand
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class ExternalAccountUpdateParams < Stripe::RequestParams
|
6
|
+
class Documents < Stripe::RequestParams
|
7
|
+
class BankAccountOwnershipVerification < Stripe::RequestParams
|
8
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
9
|
+
attr_accessor :files
|
10
|
+
|
11
|
+
def initialize(files: nil)
|
12
|
+
@files = files
|
13
|
+
end
|
14
|
+
end
|
15
|
+
# One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
|
16
|
+
attr_accessor :bank_account_ownership_verification
|
17
|
+
|
18
|
+
def initialize(bank_account_ownership_verification: nil)
|
19
|
+
@bank_account_ownership_verification = bank_account_ownership_verification
|
20
|
+
end
|
21
|
+
end
|
22
|
+
# The name of the person or business that owns the bank account.
|
23
|
+
attr_accessor :account_holder_name
|
24
|
+
# The type of entity that holds the account. This can be either `individual` or `company`.
|
25
|
+
attr_accessor :account_holder_type
|
26
|
+
# The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
|
27
|
+
attr_accessor :account_type
|
28
|
+
# City/District/Suburb/Town/Village.
|
29
|
+
attr_accessor :address_city
|
30
|
+
# Billing address country, if provided when creating card.
|
31
|
+
attr_accessor :address_country
|
32
|
+
# Address line 1 (Street address/PO Box/Company name).
|
33
|
+
attr_accessor :address_line1
|
34
|
+
# Address line 2 (Apartment/Suite/Unit/Building).
|
35
|
+
attr_accessor :address_line2
|
36
|
+
# State/County/Province/Region.
|
37
|
+
attr_accessor :address_state
|
38
|
+
# ZIP or postal code.
|
39
|
+
attr_accessor :address_zip
|
40
|
+
# When set to true, this becomes the default external account for its currency.
|
41
|
+
attr_accessor :default_for_currency
|
42
|
+
# Documents that may be submitted to satisfy various informational requests.
|
43
|
+
attr_accessor :documents
|
44
|
+
# Two digit number representing the card’s expiration month.
|
45
|
+
attr_accessor :exp_month
|
46
|
+
# Four digit number representing the card’s expiration year.
|
47
|
+
attr_accessor :exp_year
|
48
|
+
# Specifies which fields in the response should be expanded.
|
49
|
+
attr_accessor :expand
|
50
|
+
# 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`.
|
51
|
+
attr_accessor :metadata
|
52
|
+
# Cardholder name.
|
53
|
+
attr_accessor :name
|
54
|
+
|
55
|
+
def initialize(
|
56
|
+
account_holder_name: nil,
|
57
|
+
account_holder_type: nil,
|
58
|
+
account_type: nil,
|
59
|
+
address_city: nil,
|
60
|
+
address_country: nil,
|
61
|
+
address_line1: nil,
|
62
|
+
address_line2: nil,
|
63
|
+
address_state: nil,
|
64
|
+
address_zip: nil,
|
65
|
+
default_for_currency: nil,
|
66
|
+
documents: nil,
|
67
|
+
exp_month: nil,
|
68
|
+
exp_year: nil,
|
69
|
+
expand: nil,
|
70
|
+
metadata: nil,
|
71
|
+
name: nil
|
72
|
+
)
|
73
|
+
@account_holder_name = account_holder_name
|
74
|
+
@account_holder_type = account_holder_type
|
75
|
+
@account_type = account_type
|
76
|
+
@address_city = address_city
|
77
|
+
@address_country = address_country
|
78
|
+
@address_line1 = address_line1
|
79
|
+
@address_line2 = address_line2
|
80
|
+
@address_state = address_state
|
81
|
+
@address_zip = address_zip
|
82
|
+
@default_for_currency = default_for_currency
|
83
|
+
@documents = documents
|
84
|
+
@exp_month = exp_month
|
85
|
+
@exp_year = exp_year
|
86
|
+
@expand = expand
|
87
|
+
@metadata = metadata
|
88
|
+
@name = name
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module FinancialConnections
|
6
|
+
class AccountInferredBalanceListParams < Stripe::RequestParams
|
7
|
+
# 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.
|
8
|
+
attr_accessor :ending_before
|
9
|
+
# Specifies which fields in the response should be expanded.
|
10
|
+
attr_accessor :expand
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
12
|
+
attr_accessor :limit
|
13
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
14
|
+
attr_accessor :starting_after
|
15
|
+
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
17
|
+
@ending_before = ending_before
|
18
|
+
@expand = expand
|
19
|
+
@limit = limit
|
20
|
+
@starting_after = starting_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -9,10 +9,13 @@ module Stripe
|
|
9
9
|
attr_accessor :account
|
10
10
|
# The ID of the Stripe customer whose accounts will be retrieved.
|
11
11
|
attr_accessor :customer
|
12
|
+
# The Account ID of the Stripe customer whose accounts will be retrieved.
|
13
|
+
attr_accessor :customer_account
|
12
14
|
|
13
|
-
def initialize(account: nil, customer: nil)
|
15
|
+
def initialize(account: nil, customer: nil, customer_account: nil)
|
14
16
|
@account = account
|
15
17
|
@customer = customer
|
18
|
+
@customer_account = customer_account
|
16
19
|
end
|
17
20
|
end
|
18
21
|
# If present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive.
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module FinancialConnections
|
6
|
+
class InstitutionListParams < Stripe::RequestParams
|
7
|
+
# 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.
|
8
|
+
attr_accessor :ending_before
|
9
|
+
# Specifies which fields in the response should be expanded.
|
10
|
+
attr_accessor :expand
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
12
|
+
attr_accessor :limit
|
13
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
14
|
+
attr_accessor :starting_after
|
15
|
+
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
17
|
+
@ending_before = ending_before
|
18
|
+
@expand = expand
|
19
|
+
@limit = limit
|
20
|
+
@starting_after = starting_after
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module FinancialConnections
|
6
|
+
class InstitutionRetrieveParams < Stripe::RequestParams
|
7
|
+
# Specifies which fields in the response should be expanded.
|
8
|
+
attr_accessor :expand
|
9
|
+
|
10
|
+
def initialize(expand: nil)
|
11
|
+
@expand = expand
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -9,12 +9,15 @@ module Stripe
|
|
9
9
|
attr_accessor :account
|
10
10
|
# The ID of the Stripe customer whose accounts will be retrieved. Should only be present if `type` is `customer`.
|
11
11
|
attr_accessor :customer
|
12
|
+
# The ID of the Stripe customer Account whose accounts will be retrieved. Should only be present if `type` is `customer`.
|
13
|
+
attr_accessor :customer_account
|
12
14
|
# Type of account holder to collect accounts for.
|
13
15
|
attr_accessor :type
|
14
16
|
|
15
|
-
def initialize(account: nil, customer: nil, type: nil)
|
17
|
+
def initialize(account: nil, customer: nil, customer_account: nil, type: nil)
|
16
18
|
@account = account
|
17
19
|
@customer = customer
|
20
|
+
@customer_account = customer_account
|
18
21
|
@type = type
|
19
22
|
end
|
20
23
|
end
|
@@ -24,10 +27,31 @@ module Stripe
|
|
24
27
|
attr_accessor :account_subcategories
|
25
28
|
# List of countries from which to collect accounts.
|
26
29
|
attr_accessor :countries
|
30
|
+
# Stripe ID of the institution with which the customer should be directed to log in.
|
31
|
+
attr_accessor :institution
|
27
32
|
|
28
|
-
def initialize(account_subcategories: nil, countries: nil)
|
33
|
+
def initialize(account_subcategories: nil, countries: nil, institution: nil)
|
29
34
|
@account_subcategories = account_subcategories
|
30
35
|
@countries = countries
|
36
|
+
@institution = institution
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class Limits < Stripe::RequestParams
|
41
|
+
# The number of accounts that can be linked in this Session.
|
42
|
+
attr_accessor :accounts
|
43
|
+
|
44
|
+
def initialize(accounts: nil)
|
45
|
+
@accounts = accounts
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
class ManualEntry < Stripe::RequestParams
|
50
|
+
# Whether manual entry will be handled by Stripe during the Session.
|
51
|
+
attr_accessor :mode
|
52
|
+
|
53
|
+
def initialize(mode: nil)
|
54
|
+
@mode = mode
|
31
55
|
end
|
32
56
|
end
|
33
57
|
# The account holder to link accounts for.
|
@@ -36,6 +60,10 @@ module Stripe
|
|
36
60
|
attr_accessor :expand
|
37
61
|
# Filters to restrict the kinds of accounts to collect.
|
38
62
|
attr_accessor :filters
|
63
|
+
# Settings for configuring Session-specific limits.
|
64
|
+
attr_accessor :limits
|
65
|
+
# Customize manual entry behavior
|
66
|
+
attr_accessor :manual_entry
|
39
67
|
# List of data features that you would like to request access to.
|
40
68
|
#
|
41
69
|
# Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
|
@@ -49,6 +77,8 @@ module Stripe
|
|
49
77
|
account_holder: nil,
|
50
78
|
expand: nil,
|
51
79
|
filters: nil,
|
80
|
+
limits: nil,
|
81
|
+
manual_entry: nil,
|
52
82
|
permissions: nil,
|
53
83
|
prefetch: nil,
|
54
84
|
return_url: nil
|
@@ -56,6 +86,8 @@ module Stripe
|
|
56
86
|
@account_holder = account_holder
|
57
87
|
@expand = expand
|
58
88
|
@filters = filters
|
89
|
+
@limits = limits
|
90
|
+
@manual_entry = manual_entry
|
59
91
|
@permissions = permissions
|
60
92
|
@prefetch = prefetch
|
61
93
|
@return_url = return_url
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class FxQuoteCreateParams < Stripe::RequestParams
|
6
|
+
class Usage < Stripe::RequestParams
|
7
|
+
class Payment < Stripe::RequestParams
|
8
|
+
# The Stripe account ID that the funds will be transferred to.
|
9
|
+
#
|
10
|
+
# This field should match the account ID that would be used in the PaymentIntent’s transfer_data[destination] field.
|
11
|
+
attr_accessor :destination
|
12
|
+
# The Stripe account ID that these funds are intended for.
|
13
|
+
#
|
14
|
+
# This field should match the account ID that would be used in the PaymentIntent’s on_behalf_of field.
|
15
|
+
attr_accessor :on_behalf_of
|
16
|
+
|
17
|
+
def initialize(destination: nil, on_behalf_of: nil)
|
18
|
+
@destination = destination
|
19
|
+
@on_behalf_of = on_behalf_of
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class Transfer < Stripe::RequestParams
|
24
|
+
# The Stripe account ID that the funds will be transferred to.
|
25
|
+
#
|
26
|
+
# This field should match the account ID that would be used in the Transfer’s destination field.
|
27
|
+
attr_accessor :destination
|
28
|
+
|
29
|
+
def initialize(destination: nil)
|
30
|
+
@destination = destination
|
31
|
+
end
|
32
|
+
end
|
33
|
+
# The payment transaction details that are intended for the FX Quote.
|
34
|
+
attr_accessor :payment
|
35
|
+
# The transfer transaction details that are intended for the FX Quote.
|
36
|
+
attr_accessor :transfer
|
37
|
+
# Which transaction the FX Quote will be used for
|
38
|
+
#
|
39
|
+
# Can be “payment” | “transfer”
|
40
|
+
attr_accessor :type
|
41
|
+
|
42
|
+
def initialize(payment: nil, transfer: nil, type: nil)
|
43
|
+
@payment = payment
|
44
|
+
@transfer = transfer
|
45
|
+
@type = type
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# Specifies which fields in the response should be expanded.
|
49
|
+
attr_accessor :expand
|
50
|
+
# A list of three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be [supported currencies](https://stripe.com/docs/currencies).
|
51
|
+
attr_accessor :from_currencies
|
52
|
+
# The duration that you wish the quote to be locked for. The quote will be usable for the duration specified. The default is `none`. The maximum is 1 day.
|
53
|
+
attr_accessor :lock_duration
|
54
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
55
|
+
attr_accessor :to_currency
|
56
|
+
# The usage specific information for the quote.
|
57
|
+
attr_accessor :usage
|
58
|
+
|
59
|
+
def initialize(
|
60
|
+
expand: nil,
|
61
|
+
from_currencies: nil,
|
62
|
+
lock_duration: nil,
|
63
|
+
to_currency: nil,
|
64
|
+
usage: nil
|
65
|
+
)
|
66
|
+
@expand = expand
|
67
|
+
@from_currencies = from_currencies
|
68
|
+
@lock_duration = lock_duration
|
69
|
+
@to_currency = to_currency
|
70
|
+
@usage = usage
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class FxQuoteListParams < Stripe::RequestParams
|
6
|
+
# 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.
|
7
|
+
attr_accessor :ending_before
|
8
|
+
# Specifies which fields in the response should be expanded.
|
9
|
+
attr_accessor :expand
|
10
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
11
|
+
attr_accessor :limit
|
12
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
13
|
+
attr_accessor :starting_after
|
14
|
+
|
15
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
16
|
+
@ending_before = ending_before
|
17
|
+
@expand = expand
|
18
|
+
@limit = limit
|
19
|
+
@starting_after = starting_after
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class FxQuoteRetrieveParams < Stripe::RequestParams
|
6
|
+
# Specifies which fields in the response should be expanded.
|
7
|
+
attr_accessor :expand
|
8
|
+
|
9
|
+
def initialize(expand: nil)
|
10
|
+
@expand = expand
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -70,6 +70,8 @@ module Stripe
|
|
70
70
|
attr_accessor :provided_details
|
71
71
|
# Customer ID
|
72
72
|
attr_accessor :related_customer
|
73
|
+
# Token referencing a Customer Account resource.
|
74
|
+
attr_accessor :related_customer_account
|
73
75
|
# Tokens referencing a Person resource and it's associated account.
|
74
76
|
attr_accessor :related_person
|
75
77
|
# The URL that the user will be redirected to upon completing the verification flow.
|
@@ -86,6 +88,7 @@ module Stripe
|
|
86
88
|
options: nil,
|
87
89
|
provided_details: nil,
|
88
90
|
related_customer: nil,
|
91
|
+
related_customer_account: nil,
|
89
92
|
related_person: nil,
|
90
93
|
return_url: nil,
|
91
94
|
type: nil,
|
@@ -97,6 +100,7 @@ module Stripe
|
|
97
100
|
@options = options
|
98
101
|
@provided_details = provided_details
|
99
102
|
@related_customer = related_customer
|
103
|
+
@related_customer_account = related_customer_account
|
100
104
|
@related_person = related_person
|
101
105
|
@return_url = return_url
|
102
106
|
@type = type
|
@@ -33,6 +33,8 @@ module Stripe
|
|
33
33
|
attr_accessor :limit
|
34
34
|
# Attribute for param field related_customer
|
35
35
|
attr_accessor :related_customer
|
36
|
+
# Attribute for param field related_customer_account
|
37
|
+
attr_accessor :related_customer_account
|
36
38
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
37
39
|
attr_accessor :starting_after
|
38
40
|
# Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
@@ -45,6 +47,7 @@ module Stripe
|
|
45
47
|
expand: nil,
|
46
48
|
limit: nil,
|
47
49
|
related_customer: nil,
|
50
|
+
related_customer_account: nil,
|
48
51
|
starting_after: nil,
|
49
52
|
status: nil
|
50
53
|
)
|
@@ -54,6 +57,7 @@ module Stripe
|
|
54
57
|
@expand = expand
|
55
58
|
@limit = limit
|
56
59
|
@related_customer = related_customer
|
60
|
+
@related_customer_account = related_customer_account
|
57
61
|
@starting_after = starting_after
|
58
62
|
@status = status
|
59
63
|
end
|
@@ -5,16 +5,44 @@ module Stripe
|
|
5
5
|
class InvoiceAddLinesParams < Stripe::RequestParams
|
6
6
|
class Line < Stripe::RequestParams
|
7
7
|
class Discount < Stripe::RequestParams
|
8
|
+
class DiscountEnd < Stripe::RequestParams
|
9
|
+
class Duration < Stripe::RequestParams
|
10
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
11
|
+
attr_accessor :interval
|
12
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
13
|
+
attr_accessor :interval_count
|
14
|
+
|
15
|
+
def initialize(interval: nil, interval_count: nil)
|
16
|
+
@interval = interval
|
17
|
+
@interval_count = interval_count
|
18
|
+
end
|
19
|
+
end
|
20
|
+
# Time span for the redeemed discount.
|
21
|
+
attr_accessor :duration
|
22
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
23
|
+
attr_accessor :timestamp
|
24
|
+
# The type of calculation made to determine when the discount ends.
|
25
|
+
attr_accessor :type
|
26
|
+
|
27
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
28
|
+
@duration = duration
|
29
|
+
@timestamp = timestamp
|
30
|
+
@type = type
|
31
|
+
end
|
32
|
+
end
|
8
33
|
# ID of the coupon to create a new discount for.
|
9
34
|
attr_accessor :coupon
|
10
35
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
11
36
|
attr_accessor :discount
|
37
|
+
# Details to determine how long the discount should be applied for.
|
38
|
+
attr_accessor :discount_end
|
12
39
|
# ID of the promotion code to create a new discount for.
|
13
40
|
attr_accessor :promotion_code
|
14
41
|
|
15
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
42
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
16
43
|
@coupon = coupon
|
17
44
|
@discount = discount
|
45
|
+
@discount_end = discount_end
|
18
46
|
@promotion_code = promotion_code
|
19
47
|
end
|
20
48
|
end
|
@@ -172,6 +200,8 @@ module Stripe
|
|
172
200
|
attr_accessor :discounts
|
173
201
|
# ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
174
202
|
attr_accessor :invoice_item
|
203
|
+
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
204
|
+
attr_accessor :margins
|
175
205
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
176
206
|
attr_accessor :metadata
|
177
207
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -193,6 +223,7 @@ module Stripe
|
|
193
223
|
discountable: nil,
|
194
224
|
discounts: nil,
|
195
225
|
invoice_item: nil,
|
226
|
+
margins: nil,
|
196
227
|
metadata: nil,
|
197
228
|
period: nil,
|
198
229
|
price_data: nil,
|
@@ -206,6 +237,7 @@ module Stripe
|
|
206
237
|
@discountable = discountable
|
207
238
|
@discounts = discounts
|
208
239
|
@invoice_item = invoice_item
|
240
|
+
@margins = margins
|
209
241
|
@metadata = metadata
|
210
242
|
@period = period
|
211
243
|
@price_data = price_data
|