stripe 20.1.0 → 20.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 +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_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_under_review_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_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_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +53 -0
- data/lib/stripe/params/account_create_params.rb +299 -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 +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/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/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- 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_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -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 +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
- data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +116 -5
- 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/registration_create_params.rb +13 -1
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -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_payment_create_params.rb +19 -0
- 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 +257 -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 +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- 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 +112 -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_disable_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/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +364 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +144 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +149 -0
- data/lib/stripe/resources/invoice.rb +106 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- 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 +18 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1588 -10
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- 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_payment.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 +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +341 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -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/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_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/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -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_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_plan_service.rb +50 -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/promotion_code_service.rb +29 -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/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +45 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -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 +69 -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/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +181 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +133319 -66595
- metadata +331 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenRevokeParams < ::Stripe::RequestParams
|
|
8
|
+
# Specifies which fields in the response should be expanded.
|
|
9
|
+
attr_accessor :expand
|
|
10
|
+
|
|
11
|
+
def initialize(expand: nil)
|
|
12
|
+
@expand = expand
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -30,6 +30,26 @@ module Stripe
|
|
|
30
30
|
@us_bank_account = us_bank_account
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
|
|
34
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
35
|
+
class Ach < ::Stripe::RequestParams
|
|
36
|
+
# ACH Addenda record
|
|
37
|
+
attr_accessor :addenda
|
|
38
|
+
|
|
39
|
+
def initialize(addenda: nil)
|
|
40
|
+
@addenda = addenda
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Optional fields for `ach`.
|
|
44
|
+
attr_accessor :ach
|
|
45
|
+
# The type of flow that originated the ReceivedCredit.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
def initialize(ach: nil, type: nil)
|
|
49
|
+
@ach = ach
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
33
53
|
# Amount (in cents) to be transferred.
|
|
34
54
|
attr_accessor :amount
|
|
35
55
|
# 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).
|
|
@@ -44,6 +64,8 @@ module Stripe
|
|
|
44
64
|
attr_accessor :initiating_payment_method_details
|
|
45
65
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
46
66
|
attr_accessor :network
|
|
67
|
+
# Details about the network used for the ReceivedCredit.
|
|
68
|
+
attr_accessor :network_details
|
|
47
69
|
|
|
48
70
|
def initialize(
|
|
49
71
|
amount: nil,
|
|
@@ -52,7 +74,8 @@ module Stripe
|
|
|
52
74
|
expand: nil,
|
|
53
75
|
financial_account: nil,
|
|
54
76
|
initiating_payment_method_details: nil,
|
|
55
|
-
network: nil
|
|
77
|
+
network: nil,
|
|
78
|
+
network_details: nil
|
|
56
79
|
)
|
|
57
80
|
@amount = amount
|
|
58
81
|
@currency = currency
|
|
@@ -61,6 +84,7 @@ module Stripe
|
|
|
61
84
|
@financial_account = financial_account
|
|
62
85
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
63
86
|
@network = network
|
|
87
|
+
@network_details = network_details
|
|
64
88
|
end
|
|
65
89
|
end
|
|
66
90
|
end
|
|
@@ -30,6 +30,26 @@ module Stripe
|
|
|
30
30
|
@us_bank_account = us_bank_account
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
|
|
34
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
35
|
+
class Ach < ::Stripe::RequestParams
|
|
36
|
+
# Addenda record data associated with this ReceivedDebit.
|
|
37
|
+
attr_accessor :addenda
|
|
38
|
+
|
|
39
|
+
def initialize(addenda: nil)
|
|
40
|
+
@addenda = addenda
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Optional fields for `ach`.
|
|
44
|
+
attr_accessor :ach
|
|
45
|
+
# The type of flow that originated the ReceivedDebit.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
def initialize(ach: nil, type: nil)
|
|
49
|
+
@ach = ach
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
33
53
|
# Amount (in cents) to be transferred.
|
|
34
54
|
attr_accessor :amount
|
|
35
55
|
# 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).
|
|
@@ -44,6 +64,8 @@ module Stripe
|
|
|
44
64
|
attr_accessor :initiating_payment_method_details
|
|
45
65
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
46
66
|
attr_accessor :network
|
|
67
|
+
# Details about the network used for the ReceivedDebit.
|
|
68
|
+
attr_accessor :network_details
|
|
47
69
|
|
|
48
70
|
def initialize(
|
|
49
71
|
amount: nil,
|
|
@@ -52,7 +74,8 @@ module Stripe
|
|
|
52
74
|
expand: nil,
|
|
53
75
|
financial_account: nil,
|
|
54
76
|
initiating_payment_method_details: nil,
|
|
55
|
-
network: nil
|
|
77
|
+
network: nil,
|
|
78
|
+
network_details: nil
|
|
56
79
|
)
|
|
57
80
|
@amount = amount
|
|
58
81
|
@currency = currency
|
|
@@ -61,6 +84,7 @@ module Stripe
|
|
|
61
84
|
@financial_account = financial_account
|
|
62
85
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
63
86
|
@network = network
|
|
87
|
+
@network_details = network_details
|
|
64
88
|
end
|
|
65
89
|
end
|
|
66
90
|
end
|
|
@@ -13,6 +13,8 @@ module Stripe
|
|
|
13
13
|
attr_accessor :destination
|
|
14
14
|
# Specifies which fields in the response should be expanded.
|
|
15
15
|
attr_accessor :expand
|
|
16
|
+
# The FX rate in the quote is validated and used to convert the transfer amount to the destination currency.
|
|
17
|
+
attr_accessor :fx_quote
|
|
16
18
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
17
19
|
attr_accessor :metadata
|
|
18
20
|
# You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability) for details.
|
|
@@ -28,6 +30,7 @@ module Stripe
|
|
|
28
30
|
description: nil,
|
|
29
31
|
destination: nil,
|
|
30
32
|
expand: nil,
|
|
33
|
+
fx_quote: nil,
|
|
31
34
|
metadata: nil,
|
|
32
35
|
source_transaction: nil,
|
|
33
36
|
source_type: nil,
|
|
@@ -38,6 +41,7 @@ module Stripe
|
|
|
38
41
|
@description = description
|
|
39
42
|
@destination = destination
|
|
40
43
|
@expand = expand
|
|
44
|
+
@fx_quote = fx_quote
|
|
41
45
|
@metadata = metadata
|
|
42
46
|
@source_transaction = source_transaction
|
|
43
47
|
@source_type = source_type
|
|
@@ -25,10 +25,13 @@ module Stripe
|
|
|
25
25
|
|
|
26
26
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
27
27
|
class Aba < ::Stripe::RequestParams
|
|
28
|
+
# Requested bank partner
|
|
29
|
+
attr_accessor :bank
|
|
28
30
|
# Whether the FinancialAccount should have the Feature.
|
|
29
31
|
attr_accessor :requested
|
|
30
32
|
|
|
31
|
-
def initialize(requested: nil)
|
|
33
|
+
def initialize(bank: nil, requested: nil)
|
|
34
|
+
@bank = bank
|
|
32
35
|
@requested = requested
|
|
33
36
|
end
|
|
34
37
|
end
|
|
@@ -168,6 +171,8 @@ module Stripe
|
|
|
168
171
|
@outbound_flows = outbound_flows
|
|
169
172
|
end
|
|
170
173
|
end
|
|
174
|
+
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
175
|
+
attr_accessor :display_name
|
|
171
176
|
# Specifies which fields in the response should be expanded.
|
|
172
177
|
attr_accessor :expand
|
|
173
178
|
# Encodes whether a FinancialAccount has access to a particular feature. Stripe or the platform can control features via the requested field.
|
|
@@ -182,6 +187,7 @@ module Stripe
|
|
|
182
187
|
attr_accessor :supported_currencies
|
|
183
188
|
|
|
184
189
|
def initialize(
|
|
190
|
+
display_name: nil,
|
|
185
191
|
expand: nil,
|
|
186
192
|
features: nil,
|
|
187
193
|
metadata: nil,
|
|
@@ -189,6 +195,7 @@ module Stripe
|
|
|
189
195
|
platform_restrictions: nil,
|
|
190
196
|
supported_currencies: nil
|
|
191
197
|
)
|
|
198
|
+
@display_name = display_name
|
|
192
199
|
@expand = expand
|
|
193
200
|
@features = features
|
|
194
201
|
@metadata = metadata
|
|
@@ -24,10 +24,13 @@ module Stripe
|
|
|
24
24
|
|
|
25
25
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
26
26
|
class Aba < ::Stripe::RequestParams
|
|
27
|
+
# Requested bank partner
|
|
28
|
+
attr_accessor :bank
|
|
27
29
|
# Whether the FinancialAccount should have the Feature.
|
|
28
30
|
attr_accessor :requested
|
|
29
31
|
|
|
30
|
-
def initialize(requested: nil)
|
|
32
|
+
def initialize(bank: nil, requested: nil)
|
|
33
|
+
@bank = bank
|
|
31
34
|
@requested = requested
|
|
32
35
|
end
|
|
33
36
|
end
|
|
@@ -24,10 +24,13 @@ module Stripe
|
|
|
24
24
|
|
|
25
25
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
26
26
|
class Aba < ::Stripe::RequestParams
|
|
27
|
+
# Requested bank partner
|
|
28
|
+
attr_accessor :bank
|
|
27
29
|
# Whether the FinancialAccount should have the Feature.
|
|
28
30
|
attr_accessor :requested
|
|
29
31
|
|
|
30
|
-
def initialize(requested: nil)
|
|
32
|
+
def initialize(bank: nil, requested: nil)
|
|
33
|
+
@bank = bank
|
|
31
34
|
@requested = requested
|
|
32
35
|
end
|
|
33
36
|
end
|
|
@@ -25,10 +25,13 @@ module Stripe
|
|
|
25
25
|
|
|
26
26
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
27
27
|
class Aba < ::Stripe::RequestParams
|
|
28
|
+
# Requested bank partner
|
|
29
|
+
attr_accessor :bank
|
|
28
30
|
# Whether the FinancialAccount should have the Feature.
|
|
29
31
|
attr_accessor :requested
|
|
30
32
|
|
|
31
|
-
def initialize(requested: nil)
|
|
33
|
+
def initialize(bank: nil, requested: nil)
|
|
34
|
+
@bank = bank
|
|
32
35
|
@requested = requested
|
|
33
36
|
end
|
|
34
37
|
end
|
|
@@ -183,6 +186,8 @@ module Stripe
|
|
|
183
186
|
@outbound_flows = outbound_flows
|
|
184
187
|
end
|
|
185
188
|
end
|
|
189
|
+
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
190
|
+
attr_accessor :display_name
|
|
186
191
|
# Specifies which fields in the response should be expanded.
|
|
187
192
|
attr_accessor :expand
|
|
188
193
|
# Encodes whether a FinancialAccount has access to a particular feature, with a status enum and associated `status_details`. Stripe or the platform may control features via the requested field.
|
|
@@ -197,6 +202,7 @@ module Stripe
|
|
|
197
202
|
attr_accessor :platform_restrictions
|
|
198
203
|
|
|
199
204
|
def initialize(
|
|
205
|
+
display_name: nil,
|
|
200
206
|
expand: nil,
|
|
201
207
|
features: nil,
|
|
202
208
|
forwarding_settings: nil,
|
|
@@ -204,6 +210,7 @@ module Stripe
|
|
|
204
210
|
nickname: nil,
|
|
205
211
|
platform_restrictions: nil
|
|
206
212
|
)
|
|
213
|
+
@display_name = display_name
|
|
207
214
|
@expand = expand
|
|
208
215
|
@features = features
|
|
209
216
|
@forwarding_settings = forwarding_settings
|
|
@@ -54,12 +54,25 @@ module Stripe
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
class UsBankAccount < ::Stripe::RequestParams
|
|
57
|
+
class ExternalToken < ::Stripe::RequestParams
|
|
58
|
+
# The Plaid processor token to use for this bank account.
|
|
59
|
+
attr_accessor :plaid_processor_token
|
|
60
|
+
# The type of external token.
|
|
61
|
+
attr_accessor :type
|
|
62
|
+
|
|
63
|
+
def initialize(plaid_processor_token: nil, type: nil)
|
|
64
|
+
@plaid_processor_token = plaid_processor_token
|
|
65
|
+
@type = type
|
|
66
|
+
end
|
|
67
|
+
end
|
|
57
68
|
# Account holder type: individual or company.
|
|
58
69
|
attr_accessor :account_holder_type
|
|
59
70
|
# Account number of the bank account.
|
|
60
71
|
attr_accessor :account_number
|
|
61
72
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
62
73
|
attr_accessor :account_type
|
|
74
|
+
# An external token used to create a payment method.
|
|
75
|
+
attr_accessor :external_token
|
|
63
76
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
64
77
|
attr_accessor :financial_connections_account
|
|
65
78
|
# Routing number of the bank account.
|
|
@@ -69,12 +82,14 @@ module Stripe
|
|
|
69
82
|
account_holder_type: nil,
|
|
70
83
|
account_number: nil,
|
|
71
84
|
account_type: nil,
|
|
85
|
+
external_token: nil,
|
|
72
86
|
financial_connections_account: nil,
|
|
73
87
|
routing_number: nil
|
|
74
88
|
)
|
|
75
89
|
@account_holder_type = account_holder_type
|
|
76
90
|
@account_number = account_number
|
|
77
91
|
@account_type = account_type
|
|
92
|
+
@external_token = external_token
|
|
78
93
|
@financial_connections_account = financial_connections_account
|
|
79
94
|
@routing_number = routing_number
|
|
80
95
|
end
|
|
@@ -155,6 +170,8 @@ module Stripe
|
|
|
155
170
|
attr_accessor :financial_account
|
|
156
171
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
157
172
|
attr_accessor :metadata
|
|
173
|
+
# The purpose of the OutboundPayment, if applicable. This list is not exhaustive, do not specify this parameter if your purpose does not match any that are provided.
|
|
174
|
+
attr_accessor :purpose
|
|
158
175
|
# The description that appears on the receiving end for this OutboundPayment (for example, bank statement for external bank transfer). Maximum 10 characters for `ach` payments, 140 characters for `us_domestic_wire` payments, or 500 characters for `stripe` network transfers. Can only include -#.$&*, spaces, and alphanumeric characters. The default value is "payment".
|
|
159
176
|
attr_accessor :statement_descriptor
|
|
160
177
|
|
|
@@ -170,6 +187,7 @@ module Stripe
|
|
|
170
187
|
expand: nil,
|
|
171
188
|
financial_account: nil,
|
|
172
189
|
metadata: nil,
|
|
190
|
+
purpose: nil,
|
|
173
191
|
statement_descriptor: nil
|
|
174
192
|
)
|
|
175
193
|
@amount = amount
|
|
@@ -183,6 +201,7 @@ module Stripe
|
|
|
183
201
|
@expand = expand
|
|
184
202
|
@financial_account = financial_account
|
|
185
203
|
@metadata = metadata
|
|
204
|
+
@purpose = purpose
|
|
186
205
|
@statement_descriptor = statement_descriptor
|
|
187
206
|
end
|
|
188
207
|
end
|
|
@@ -32,6 +32,26 @@ module Stripe
|
|
|
32
32
|
@us_bank_account = us_bank_account
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
37
|
+
class Ach < ::Stripe::RequestParams
|
|
38
|
+
# Addenda record data associated with this OutboundTransfer.
|
|
39
|
+
attr_accessor :addenda
|
|
40
|
+
|
|
41
|
+
def initialize(addenda: nil)
|
|
42
|
+
@addenda = addenda
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# Optional fields for `ach`.
|
|
46
|
+
attr_accessor :ach
|
|
47
|
+
# The type of flow that originated the OutboundTransfer.
|
|
48
|
+
attr_accessor :type
|
|
49
|
+
|
|
50
|
+
def initialize(ach: nil, type: nil)
|
|
51
|
+
@ach = ach
|
|
52
|
+
@type = type
|
|
53
|
+
end
|
|
54
|
+
end
|
|
35
55
|
# Amount (in cents) to be transferred.
|
|
36
56
|
attr_accessor :amount
|
|
37
57
|
# 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).
|
|
@@ -50,6 +70,8 @@ module Stripe
|
|
|
50
70
|
attr_accessor :financial_account
|
|
51
71
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
52
72
|
attr_accessor :metadata
|
|
73
|
+
# Details about the network used for the OutboundTransfer.
|
|
74
|
+
attr_accessor :network_details
|
|
53
75
|
# Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer". Can only include -#.$&*, spaces, and alphanumeric characters.
|
|
54
76
|
attr_accessor :statement_descriptor
|
|
55
77
|
|
|
@@ -63,6 +85,7 @@ module Stripe
|
|
|
63
85
|
expand: nil,
|
|
64
86
|
financial_account: nil,
|
|
65
87
|
metadata: nil,
|
|
88
|
+
network_details: nil,
|
|
66
89
|
statement_descriptor: nil
|
|
67
90
|
)
|
|
68
91
|
@amount = amount
|
|
@@ -74,6 +97,7 @@ module Stripe
|
|
|
74
97
|
@expand = expand
|
|
75
98
|
@financial_account = financial_account
|
|
76
99
|
@metadata = metadata
|
|
100
|
+
@network_details = network_details
|
|
77
101
|
@statement_descriptor = statement_descriptor
|
|
78
102
|
end
|
|
79
103
|
end
|
|
@@ -29,6 +29,26 @@ module Stripe
|
|
|
29
29
|
@us_bank_account = us_bank_account
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
34
|
+
class Ach < ::Stripe::RequestParams
|
|
35
|
+
# ACH Addenda record
|
|
36
|
+
attr_accessor :addenda
|
|
37
|
+
|
|
38
|
+
def initialize(addenda: nil)
|
|
39
|
+
@addenda = addenda
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Optional fields for `ach`.
|
|
43
|
+
attr_accessor :ach
|
|
44
|
+
# The type of flow that originated the ReceivedCredit.
|
|
45
|
+
attr_accessor :type
|
|
46
|
+
|
|
47
|
+
def initialize(ach: nil, type: nil)
|
|
48
|
+
@ach = ach
|
|
49
|
+
@type = type
|
|
50
|
+
end
|
|
51
|
+
end
|
|
32
52
|
# Amount (in cents) to be transferred.
|
|
33
53
|
attr_accessor :amount
|
|
34
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).
|
|
@@ -43,6 +63,8 @@ module Stripe
|
|
|
43
63
|
attr_accessor :initiating_payment_method_details
|
|
44
64
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
45
65
|
attr_accessor :network
|
|
66
|
+
# Details about the network used for the ReceivedCredit.
|
|
67
|
+
attr_accessor :network_details
|
|
46
68
|
|
|
47
69
|
def initialize(
|
|
48
70
|
amount: nil,
|
|
@@ -51,7 +73,8 @@ module Stripe
|
|
|
51
73
|
expand: nil,
|
|
52
74
|
financial_account: nil,
|
|
53
75
|
initiating_payment_method_details: nil,
|
|
54
|
-
network: nil
|
|
76
|
+
network: nil,
|
|
77
|
+
network_details: nil
|
|
55
78
|
)
|
|
56
79
|
@amount = amount
|
|
57
80
|
@currency = currency
|
|
@@ -60,6 +83,7 @@ module Stripe
|
|
|
60
83
|
@financial_account = financial_account
|
|
61
84
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
62
85
|
@network = network
|
|
86
|
+
@network_details = network_details
|
|
63
87
|
end
|
|
64
88
|
end
|
|
65
89
|
end
|
|
@@ -29,6 +29,26 @@ module Stripe
|
|
|
29
29
|
@us_bank_account = us_bank_account
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
34
|
+
class Ach < ::Stripe::RequestParams
|
|
35
|
+
# Addenda record data associated with this ReceivedDebit.
|
|
36
|
+
attr_accessor :addenda
|
|
37
|
+
|
|
38
|
+
def initialize(addenda: nil)
|
|
39
|
+
@addenda = addenda
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Optional fields for `ach`.
|
|
43
|
+
attr_accessor :ach
|
|
44
|
+
# The type of flow that originated the ReceivedDebit.
|
|
45
|
+
attr_accessor :type
|
|
46
|
+
|
|
47
|
+
def initialize(ach: nil, type: nil)
|
|
48
|
+
@ach = ach
|
|
49
|
+
@type = type
|
|
50
|
+
end
|
|
51
|
+
end
|
|
32
52
|
# Amount (in cents) to be transferred.
|
|
33
53
|
attr_accessor :amount
|
|
34
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).
|
|
@@ -43,6 +63,8 @@ module Stripe
|
|
|
43
63
|
attr_accessor :initiating_payment_method_details
|
|
44
64
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
45
65
|
attr_accessor :network
|
|
66
|
+
# Details about the network used for the ReceivedDebit.
|
|
67
|
+
attr_accessor :network_details
|
|
46
68
|
|
|
47
69
|
def initialize(
|
|
48
70
|
amount: nil,
|
|
@@ -51,7 +73,8 @@ module Stripe
|
|
|
51
73
|
expand: nil,
|
|
52
74
|
financial_account: nil,
|
|
53
75
|
initiating_payment_method_details: nil,
|
|
54
|
-
network: nil
|
|
76
|
+
network: nil,
|
|
77
|
+
network_details: nil
|
|
55
78
|
)
|
|
56
79
|
@amount = amount
|
|
57
80
|
@currency = currency
|
|
@@ -60,6 +83,7 @@ module Stripe
|
|
|
60
83
|
@financial_account = financial_account
|
|
61
84
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
62
85
|
@network = network
|
|
86
|
+
@network_details = network_details
|
|
63
87
|
end
|
|
64
88
|
end
|
|
65
89
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class BillSettingCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class Calculation < ::Stripe::RequestParams
|
|
9
|
+
class Tax < ::Stripe::RequestParams
|
|
10
|
+
# Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
|
|
11
|
+
attr_accessor :type
|
|
12
|
+
|
|
13
|
+
def initialize(type: nil)
|
|
14
|
+
@type = type
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
# Settings for calculating tax.
|
|
18
|
+
attr_accessor :tax
|
|
19
|
+
|
|
20
|
+
def initialize(tax: nil)
|
|
21
|
+
@tax = tax
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class Invoice < ::Stripe::RequestParams
|
|
26
|
+
class TimeUntilDue < ::Stripe::RequestParams
|
|
27
|
+
# The interval unit for the time until due.
|
|
28
|
+
attr_accessor :interval
|
|
29
|
+
# The number of interval units. For example, if interval=day and interval_count=30,
|
|
30
|
+
# the invoice is due in 30 days.
|
|
31
|
+
attr_accessor :interval_count
|
|
32
|
+
|
|
33
|
+
def initialize(interval: nil, interval_count: nil)
|
|
34
|
+
@interval = interval
|
|
35
|
+
@interval_count = interval_count
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The amount of time until the invoice is overdue for payment.
|
|
39
|
+
attr_accessor :time_until_due
|
|
40
|
+
|
|
41
|
+
def initialize(time_until_due: nil)
|
|
42
|
+
@time_until_due = time_until_due
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# Settings related to calculating a bill.
|
|
46
|
+
attr_accessor :calculation
|
|
47
|
+
# An optional customer-facing display name for the CollectionSetting object.
|
|
48
|
+
# Maximum length of 250 characters.
|
|
49
|
+
attr_accessor :display_name
|
|
50
|
+
# Settings related to invoice behavior.
|
|
51
|
+
attr_accessor :invoice
|
|
52
|
+
# The ID of the invoice rendering template to be used when generating invoices.
|
|
53
|
+
attr_accessor :invoice_rendering_template
|
|
54
|
+
# A lookup key used to retrieve settings dynamically from a static string.
|
|
55
|
+
# This may be up to 200 characters.
|
|
56
|
+
attr_accessor :lookup_key
|
|
57
|
+
|
|
58
|
+
def initialize(
|
|
59
|
+
calculation: nil,
|
|
60
|
+
display_name: nil,
|
|
61
|
+
invoice: nil,
|
|
62
|
+
invoice_rendering_template: nil,
|
|
63
|
+
lookup_key: nil
|
|
64
|
+
)
|
|
65
|
+
@calculation = calculation
|
|
66
|
+
@display_name = display_name
|
|
67
|
+
@invoice = invoice
|
|
68
|
+
@invoice_rendering_template = invoice_rendering_template
|
|
69
|
+
@lookup_key = lookup_key
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class BillSettingListParams < ::Stripe::RequestParams
|
|
8
|
+
# Optionally set the maximum number of results per page. Defaults to 20.
|
|
9
|
+
attr_accessor :limit
|
|
10
|
+
# Only return the settings with these lookup_keys, if any exist.
|
|
11
|
+
# You can specify up to 10 lookup_keys.
|
|
12
|
+
attr_accessor :lookup_keys
|
|
13
|
+
|
|
14
|
+
def initialize(limit: nil, lookup_keys: nil)
|
|
15
|
+
@limit = limit
|
|
16
|
+
@lookup_keys = lookup_keys
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class BillSettingUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
class Calculation < ::Stripe::RequestParams
|
|
9
|
+
class Tax < ::Stripe::RequestParams
|
|
10
|
+
# Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
|
|
11
|
+
attr_accessor :type
|
|
12
|
+
|
|
13
|
+
def initialize(type: nil)
|
|
14
|
+
@type = type
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
# Settings for calculating tax.
|
|
18
|
+
attr_accessor :tax
|
|
19
|
+
|
|
20
|
+
def initialize(tax: nil)
|
|
21
|
+
@tax = tax
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class Invoice < ::Stripe::RequestParams
|
|
26
|
+
class TimeUntilDue < ::Stripe::RequestParams
|
|
27
|
+
# The interval unit for the time until due.
|
|
28
|
+
attr_accessor :interval
|
|
29
|
+
# The number of interval units. For example, if interval=day and interval_count=30,
|
|
30
|
+
# the invoice is due in 30 days.
|
|
31
|
+
attr_accessor :interval_count
|
|
32
|
+
|
|
33
|
+
def initialize(interval: nil, interval_count: nil)
|
|
34
|
+
@interval = interval
|
|
35
|
+
@interval_count = interval_count
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The amount of time until the invoice is overdue for payment.
|
|
39
|
+
attr_accessor :time_until_due
|
|
40
|
+
|
|
41
|
+
def initialize(time_until_due: nil)
|
|
42
|
+
@time_until_due = time_until_due
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# Settings related to calculating a bill.
|
|
46
|
+
attr_accessor :calculation
|
|
47
|
+
# An optional customer-facing display name for the BillSetting object.
|
|
48
|
+
# To remove the display name, set it to an empty string in the request.
|
|
49
|
+
# Maximum length of 250 characters.
|
|
50
|
+
attr_accessor :display_name
|
|
51
|
+
# Settings related to invoice behavior.
|
|
52
|
+
attr_accessor :invoice
|
|
53
|
+
# The ID of the invoice rendering template to be used when generating invoices.
|
|
54
|
+
attr_accessor :invoice_rendering_template
|
|
55
|
+
# Optionally change the live version of the BillSetting. Providing `live_version = "latest"` sets the
|
|
56
|
+
# BillSetting' `live_version` to its latest version.
|
|
57
|
+
attr_accessor :live_version
|
|
58
|
+
# A lookup key used to retrieve settings dynamically from a static string.
|
|
59
|
+
# This may be up to 200 characters.
|
|
60
|
+
attr_accessor :lookup_key
|
|
61
|
+
|
|
62
|
+
def initialize(
|
|
63
|
+
calculation: nil,
|
|
64
|
+
display_name: nil,
|
|
65
|
+
invoice: nil,
|
|
66
|
+
invoice_rendering_template: nil,
|
|
67
|
+
live_version: nil,
|
|
68
|
+
lookup_key: nil
|
|
69
|
+
)
|
|
70
|
+
@calculation = calculation
|
|
71
|
+
@display_name = display_name
|
|
72
|
+
@invoice = invoice
|
|
73
|
+
@invoice_rendering_template = invoice_rendering_template
|
|
74
|
+
@live_version = live_version
|
|
75
|
+
@lookup_key = lookup_key
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|