stripe 17.1.0 → 17.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +233 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +55 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +715 -0
- data/lib/stripe/params/charge_update_params.rb +715 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
- data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +164 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +237 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +789 -4
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3906 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +112 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +58 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +145086 -86712
- metadata +337 -3
|
@@ -283,6 +283,8 @@ module Stripe
|
|
|
283
283
|
class Card < ::Stripe::StripeObject
|
|
284
284
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
285
285
|
attr_reader :brand
|
|
286
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
287
|
+
attr_reader :brand_product
|
|
286
288
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
287
289
|
attr_reader :country
|
|
288
290
|
# Two-digit number representing the card's expiration month.
|
|
@@ -848,6 +850,16 @@ module Stripe
|
|
|
848
850
|
end
|
|
849
851
|
end
|
|
850
852
|
|
|
853
|
+
class Gopay < ::Stripe::StripeObject
|
|
854
|
+
def self.inner_class_types
|
|
855
|
+
@inner_class_types = {}
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
def self.field_remappings
|
|
859
|
+
@field_remappings = {}
|
|
860
|
+
end
|
|
861
|
+
end
|
|
862
|
+
|
|
851
863
|
class Grabpay < ::Stripe::StripeObject
|
|
852
864
|
# Unique transaction id generated by GrabPay
|
|
853
865
|
attr_reader :transaction_id
|
|
@@ -861,6 +873,27 @@ module Stripe
|
|
|
861
873
|
end
|
|
862
874
|
end
|
|
863
875
|
|
|
876
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
877
|
+
# Account number of the bank account to transfer funds to.
|
|
878
|
+
attr_reader :account_number
|
|
879
|
+
# Bank where the account is located.
|
|
880
|
+
attr_reader :bank
|
|
881
|
+
# Local bank code of the bank.
|
|
882
|
+
attr_reader :bank_code
|
|
883
|
+
# Name of the bank associated with the bank account.
|
|
884
|
+
attr_reader :bank_name
|
|
885
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
886
|
+
attr_reader :display_name
|
|
887
|
+
|
|
888
|
+
def self.inner_class_types
|
|
889
|
+
@inner_class_types = {}
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
def self.field_remappings
|
|
893
|
+
@field_remappings = {}
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
|
|
864
897
|
class Ideal < ::Stripe::StripeObject
|
|
865
898
|
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
866
899
|
attr_reader :bank
|
|
@@ -1263,6 +1296,52 @@ module Stripe
|
|
|
1263
1296
|
@field_remappings = {}
|
|
1264
1297
|
end
|
|
1265
1298
|
end
|
|
1299
|
+
|
|
1300
|
+
class Shipping < ::Stripe::StripeObject
|
|
1301
|
+
# City, district, suburb, town, or village.
|
|
1302
|
+
attr_reader :city
|
|
1303
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1304
|
+
attr_reader :country
|
|
1305
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1306
|
+
attr_reader :line1
|
|
1307
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1308
|
+
attr_reader :line2
|
|
1309
|
+
# ZIP or postal code.
|
|
1310
|
+
attr_reader :postal_code
|
|
1311
|
+
# State, county, province, or region.
|
|
1312
|
+
attr_reader :state
|
|
1313
|
+
|
|
1314
|
+
def self.inner_class_types
|
|
1315
|
+
@inner_class_types = {}
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
def self.field_remappings
|
|
1319
|
+
@field_remappings = {}
|
|
1320
|
+
end
|
|
1321
|
+
end
|
|
1322
|
+
|
|
1323
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1324
|
+
# City, district, suburb, town, or village.
|
|
1325
|
+
attr_reader :city
|
|
1326
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1327
|
+
attr_reader :country
|
|
1328
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1329
|
+
attr_reader :line1
|
|
1330
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1331
|
+
attr_reader :line2
|
|
1332
|
+
# ZIP or postal code.
|
|
1333
|
+
attr_reader :postal_code
|
|
1334
|
+
# State, county, province, or region.
|
|
1335
|
+
attr_reader :state
|
|
1336
|
+
|
|
1337
|
+
def self.inner_class_types
|
|
1338
|
+
@inner_class_types = {}
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
def self.field_remappings
|
|
1342
|
+
@field_remappings = {}
|
|
1343
|
+
end
|
|
1344
|
+
end
|
|
1266
1345
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1267
1346
|
attr_reader :country
|
|
1268
1347
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1275,11 +1354,58 @@ module Stripe
|
|
|
1275
1354
|
attr_reader :payer_name
|
|
1276
1355
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1277
1356
|
attr_reader :seller_protection
|
|
1357
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1358
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1359
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1360
|
+
attr_reader :shipping
|
|
1278
1361
|
# A unique ID generated by PayPal for this transaction.
|
|
1279
1362
|
attr_reader :transaction_id
|
|
1363
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1364
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1365
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1366
|
+
attr_reader :verified_address
|
|
1367
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1368
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1369
|
+
attr_reader :verified_email
|
|
1370
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
1371
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1372
|
+
attr_reader :verified_name
|
|
1373
|
+
|
|
1374
|
+
def self.inner_class_types
|
|
1375
|
+
@inner_class_types = {
|
|
1376
|
+
seller_protection: SellerProtection,
|
|
1377
|
+
shipping: Shipping,
|
|
1378
|
+
verified_address: VerifiedAddress,
|
|
1379
|
+
}
|
|
1380
|
+
end
|
|
1381
|
+
|
|
1382
|
+
def self.field_remappings
|
|
1383
|
+
@field_remappings = {}
|
|
1384
|
+
end
|
|
1385
|
+
end
|
|
1280
1386
|
|
|
1387
|
+
class Paypay < ::Stripe::StripeObject
|
|
1281
1388
|
def self.inner_class_types
|
|
1282
|
-
@inner_class_types = {
|
|
1389
|
+
@inner_class_types = {}
|
|
1390
|
+
end
|
|
1391
|
+
|
|
1392
|
+
def self.field_remappings
|
|
1393
|
+
@field_remappings = {}
|
|
1394
|
+
end
|
|
1395
|
+
end
|
|
1396
|
+
|
|
1397
|
+
class Payto < ::Stripe::StripeObject
|
|
1398
|
+
# Bank-State-Branch number of the bank account.
|
|
1399
|
+
attr_reader :bsb_number
|
|
1400
|
+
# Last four digits of the bank account number.
|
|
1401
|
+
attr_reader :last4
|
|
1402
|
+
# ID of the mandate used to make this payment.
|
|
1403
|
+
attr_reader :mandate
|
|
1404
|
+
# The PayID alias for the bank account.
|
|
1405
|
+
attr_reader :pay_id
|
|
1406
|
+
|
|
1407
|
+
def self.inner_class_types
|
|
1408
|
+
@inner_class_types = {}
|
|
1283
1409
|
end
|
|
1284
1410
|
|
|
1285
1411
|
def self.field_remappings
|
|
@@ -1290,6 +1416,8 @@ module Stripe
|
|
|
1290
1416
|
class Pix < ::Stripe::StripeObject
|
|
1291
1417
|
# Unique transaction id generated by BCB
|
|
1292
1418
|
attr_reader :bank_transaction_id
|
|
1419
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
|
1420
|
+
attr_reader :mandate
|
|
1293
1421
|
|
|
1294
1422
|
def self.inner_class_types
|
|
1295
1423
|
@inner_class_types = {}
|
|
@@ -1313,11 +1441,36 @@ module Stripe
|
|
|
1313
1441
|
end
|
|
1314
1442
|
end
|
|
1315
1443
|
|
|
1444
|
+
class Qris < ::Stripe::StripeObject
|
|
1445
|
+
def self.inner_class_types
|
|
1446
|
+
@inner_class_types = {}
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
def self.field_remappings
|
|
1450
|
+
@field_remappings = {}
|
|
1451
|
+
end
|
|
1452
|
+
end
|
|
1453
|
+
|
|
1454
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1455
|
+
# Payment portal URL.
|
|
1456
|
+
attr_reader :payment_portal_url
|
|
1457
|
+
|
|
1458
|
+
def self.inner_class_types
|
|
1459
|
+
@inner_class_types = {}
|
|
1460
|
+
end
|
|
1461
|
+
|
|
1462
|
+
def self.field_remappings
|
|
1463
|
+
@field_remappings = {}
|
|
1464
|
+
end
|
|
1465
|
+
end
|
|
1466
|
+
|
|
1316
1467
|
class RevolutPay < ::Stripe::StripeObject
|
|
1317
1468
|
class Funding < ::Stripe::StripeObject
|
|
1318
1469
|
class Card < ::Stripe::StripeObject
|
|
1319
1470
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1320
1471
|
attr_reader :brand
|
|
1472
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
1473
|
+
attr_reader :brand_product
|
|
1321
1474
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
1322
1475
|
attr_reader :country
|
|
1323
1476
|
# Two-digit number representing the card's expiration month.
|
|
@@ -1432,6 +1585,16 @@ module Stripe
|
|
|
1432
1585
|
end
|
|
1433
1586
|
end
|
|
1434
1587
|
|
|
1588
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1589
|
+
def self.inner_class_types
|
|
1590
|
+
@inner_class_types = {}
|
|
1591
|
+
end
|
|
1592
|
+
|
|
1593
|
+
def self.field_remappings
|
|
1594
|
+
@field_remappings = {}
|
|
1595
|
+
end
|
|
1596
|
+
end
|
|
1597
|
+
|
|
1435
1598
|
class Sofort < ::Stripe::StripeObject
|
|
1436
1599
|
# Bank code of bank associated with the bank account.
|
|
1437
1600
|
attr_reader :bank_code
|
|
@@ -1473,6 +1636,21 @@ module Stripe
|
|
|
1473
1636
|
end
|
|
1474
1637
|
end
|
|
1475
1638
|
|
|
1639
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
1640
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1641
|
+
attr_reader :account
|
|
1642
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1643
|
+
attr_reader :source_type
|
|
1644
|
+
|
|
1645
|
+
def self.inner_class_types
|
|
1646
|
+
@inner_class_types = {}
|
|
1647
|
+
end
|
|
1648
|
+
|
|
1649
|
+
def self.field_remappings
|
|
1650
|
+
@field_remappings = {}
|
|
1651
|
+
end
|
|
1652
|
+
end
|
|
1653
|
+
|
|
1476
1654
|
class Swish < ::Stripe::StripeObject
|
|
1477
1655
|
# Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
|
|
1478
1656
|
attr_reader :fingerprint
|
|
@@ -1615,8 +1793,12 @@ module Stripe
|
|
|
1615
1793
|
attr_reader :fpx
|
|
1616
1794
|
# Attribute for field giropay
|
|
1617
1795
|
attr_reader :giropay
|
|
1796
|
+
# Attribute for field gopay
|
|
1797
|
+
attr_reader :gopay
|
|
1618
1798
|
# Attribute for field grabpay
|
|
1619
1799
|
attr_reader :grabpay
|
|
1800
|
+
# Attribute for field id_bank_transfer
|
|
1801
|
+
attr_reader :id_bank_transfer
|
|
1620
1802
|
# Attribute for field ideal
|
|
1621
1803
|
attr_reader :ideal
|
|
1622
1804
|
# Attribute for field interac_present
|
|
@@ -1655,10 +1837,18 @@ module Stripe
|
|
|
1655
1837
|
attr_reader :paynow
|
|
1656
1838
|
# Attribute for field paypal
|
|
1657
1839
|
attr_reader :paypal
|
|
1840
|
+
# Attribute for field paypay
|
|
1841
|
+
attr_reader :paypay
|
|
1842
|
+
# Attribute for field payto
|
|
1843
|
+
attr_reader :payto
|
|
1658
1844
|
# Attribute for field pix
|
|
1659
1845
|
attr_reader :pix
|
|
1660
1846
|
# Attribute for field promptpay
|
|
1661
1847
|
attr_reader :promptpay
|
|
1848
|
+
# Attribute for field qris
|
|
1849
|
+
attr_reader :qris
|
|
1850
|
+
# Attribute for field rechnung
|
|
1851
|
+
attr_reader :rechnung
|
|
1662
1852
|
# Attribute for field revolut_pay
|
|
1663
1853
|
attr_reader :revolut_pay
|
|
1664
1854
|
# Attribute for field samsung_pay
|
|
@@ -1669,10 +1859,14 @@ module Stripe
|
|
|
1669
1859
|
attr_reader :sepa_credit_transfer
|
|
1670
1860
|
# Attribute for field sepa_debit
|
|
1671
1861
|
attr_reader :sepa_debit
|
|
1862
|
+
# Attribute for field shopeepay
|
|
1863
|
+
attr_reader :shopeepay
|
|
1672
1864
|
# Attribute for field sofort
|
|
1673
1865
|
attr_reader :sofort
|
|
1674
1866
|
# Attribute for field stripe_account
|
|
1675
1867
|
attr_reader :stripe_account
|
|
1868
|
+
# Attribute for field stripe_balance
|
|
1869
|
+
attr_reader :stripe_balance
|
|
1676
1870
|
# Attribute for field swish
|
|
1677
1871
|
attr_reader :swish
|
|
1678
1872
|
# Attribute for field twint
|
|
@@ -1716,7 +1910,9 @@ module Stripe
|
|
|
1716
1910
|
eps: Eps,
|
|
1717
1911
|
fpx: Fpx,
|
|
1718
1912
|
giropay: Giropay,
|
|
1913
|
+
gopay: Gopay,
|
|
1719
1914
|
grabpay: Grabpay,
|
|
1915
|
+
id_bank_transfer: IdBankTransfer,
|
|
1720
1916
|
ideal: Ideal,
|
|
1721
1917
|
interac_present: InteracPresent,
|
|
1722
1918
|
kakao_pay: KakaoPay,
|
|
@@ -1735,15 +1931,21 @@ module Stripe
|
|
|
1735
1931
|
payco: Payco,
|
|
1736
1932
|
paynow: Paynow,
|
|
1737
1933
|
paypal: Paypal,
|
|
1934
|
+
paypay: Paypay,
|
|
1935
|
+
payto: Payto,
|
|
1738
1936
|
pix: Pix,
|
|
1739
1937
|
promptpay: Promptpay,
|
|
1938
|
+
qris: Qris,
|
|
1939
|
+
rechnung: Rechnung,
|
|
1740
1940
|
revolut_pay: RevolutPay,
|
|
1741
1941
|
samsung_pay: SamsungPay,
|
|
1742
1942
|
satispay: Satispay,
|
|
1743
1943
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
1744
1944
|
sepa_debit: SepaDebit,
|
|
1945
|
+
shopeepay: Shopeepay,
|
|
1745
1946
|
sofort: Sofort,
|
|
1746
1947
|
stripe_account: StripeAccount,
|
|
1948
|
+
stripe_balance: StripeBalance,
|
|
1747
1949
|
swish: Swish,
|
|
1748
1950
|
twint: Twint,
|
|
1749
1951
|
us_bank_account: UsBankAccount,
|
|
@@ -94,6 +94,23 @@ module Stripe
|
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
class MigrateTo < ::Stripe::StripeObject
|
|
98
|
+
# The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
99
|
+
attr_reader :behavior
|
|
100
|
+
# The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
101
|
+
attr_reader :effective_after
|
|
102
|
+
# The id of the price being migrated to
|
|
103
|
+
attr_reader :price
|
|
104
|
+
|
|
105
|
+
def self.inner_class_types
|
|
106
|
+
@inner_class_types = {}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
def self.field_remappings
|
|
110
|
+
@field_remappings = {}
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
97
114
|
class Recurring < ::Stripe::StripeObject
|
|
98
115
|
# The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
|
|
99
116
|
attr_reader :interval
|
|
@@ -170,6 +187,8 @@ module Stripe
|
|
|
170
187
|
attr_reader :lookup_key
|
|
171
188
|
# 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.
|
|
172
189
|
attr_reader :metadata
|
|
190
|
+
# Subscriptions using this price will be migrated to use the new referenced price.
|
|
191
|
+
attr_reader :migrate_to
|
|
173
192
|
# A brief description of the price, hidden from customers.
|
|
174
193
|
attr_reader :nickname
|
|
175
194
|
# String representing the object's type. Objects of the same type share the same value.
|
|
@@ -227,6 +246,7 @@ module Stripe
|
|
|
227
246
|
@inner_class_types = {
|
|
228
247
|
currency_options: CurrencyOptions,
|
|
229
248
|
custom_unit_amount: CustomUnitAmount,
|
|
249
|
+
migrate_to: MigrateTo,
|
|
230
250
|
recurring: Recurring,
|
|
231
251
|
tiers: Tier,
|
|
232
252
|
transform_quantity: TransformQuantity,
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
# The Redaction Job object redacts Stripe objects. You can use it
|
|
7
|
+
# to coordinate the removal of personal information from selected
|
|
8
|
+
# objects, making them permanently inaccessible in the Stripe Dashboard
|
|
9
|
+
# and API.
|
|
10
|
+
class RedactionJob < APIResource
|
|
11
|
+
extend Stripe::APIOperations::Create
|
|
12
|
+
extend Stripe::APIOperations::List
|
|
13
|
+
extend Stripe::APIOperations::NestedResource
|
|
14
|
+
include Stripe::APIOperations::Save
|
|
15
|
+
|
|
16
|
+
OBJECT_NAME = "privacy.redaction_job"
|
|
17
|
+
def self.object_name
|
|
18
|
+
"privacy.redaction_job"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
nested_resource_class_methods :validation_error, operations: %i[list]
|
|
22
|
+
|
|
23
|
+
class Objects < ::Stripe::StripeObject
|
|
24
|
+
# Charge object identifiers usually starting with `ch_`
|
|
25
|
+
attr_reader :charges
|
|
26
|
+
# CheckoutSession object identifiers starting with `cs_`
|
|
27
|
+
attr_reader :checkout_sessions
|
|
28
|
+
# Customer object identifiers starting with `cus_`
|
|
29
|
+
attr_reader :customers
|
|
30
|
+
# Identity VerificationSessions object identifiers starting with `vs_`
|
|
31
|
+
attr_reader :identity_verification_sessions
|
|
32
|
+
# Invoice object identifiers starting with `in_`
|
|
33
|
+
attr_reader :invoices
|
|
34
|
+
# Issuing Cardholder object identifiers starting with `ich_`
|
|
35
|
+
attr_reader :issuing_cardholders
|
|
36
|
+
# PaymentIntent object identifiers starting with `pi_`
|
|
37
|
+
attr_reader :payment_intents
|
|
38
|
+
# Fraud ValueListItem object identifiers starting with `rsli_`
|
|
39
|
+
attr_reader :radar_value_list_items
|
|
40
|
+
# SetupIntent object identifiers starting with `seti_`
|
|
41
|
+
attr_reader :setup_intents
|
|
42
|
+
|
|
43
|
+
def self.inner_class_types
|
|
44
|
+
@inner_class_types = {}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.field_remappings
|
|
48
|
+
@field_remappings = {}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
52
|
+
attr_reader :created
|
|
53
|
+
# Unique identifier for the object.
|
|
54
|
+
attr_reader :id
|
|
55
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
56
|
+
attr_reader :livemode
|
|
57
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
58
|
+
attr_reader :object
|
|
59
|
+
# The objects to redact in this job.
|
|
60
|
+
attr_reader :objects
|
|
61
|
+
# The status of the job.
|
|
62
|
+
attr_reader :status
|
|
63
|
+
# Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`.
|
|
64
|
+
attr_reader :validation_behavior
|
|
65
|
+
|
|
66
|
+
# You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
67
|
+
#
|
|
68
|
+
# Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
69
|
+
def cancel(params = {}, opts = {})
|
|
70
|
+
request_stripe_object(
|
|
71
|
+
method: :post,
|
|
72
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(self["id"]) }),
|
|
73
|
+
params: params,
|
|
74
|
+
opts: opts
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
79
|
+
#
|
|
80
|
+
# Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
81
|
+
def self.cancel(job, params = {}, opts = {})
|
|
82
|
+
request_stripe_object(
|
|
83
|
+
method: :post,
|
|
84
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
|
|
85
|
+
params: params,
|
|
86
|
+
opts: opts
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Creates a redaction job. When a job is created, it will start to validate.
|
|
91
|
+
def self.create(params = {}, opts = {})
|
|
92
|
+
request_stripe_object(
|
|
93
|
+
method: :post,
|
|
94
|
+
path: "/v1/privacy/redaction_jobs",
|
|
95
|
+
params: params,
|
|
96
|
+
opts: opts
|
|
97
|
+
)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Returns a list of redaction jobs.
|
|
101
|
+
def self.list(params = {}, opts = {})
|
|
102
|
+
request_stripe_object(
|
|
103
|
+
method: :get,
|
|
104
|
+
path: "/v1/privacy/redaction_jobs",
|
|
105
|
+
params: params,
|
|
106
|
+
opts: opts
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Run a redaction job in a ready status.
|
|
111
|
+
#
|
|
112
|
+
# When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
113
|
+
#
|
|
114
|
+
# The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
|
|
115
|
+
def run(params = {}, opts = {})
|
|
116
|
+
request_stripe_object(
|
|
117
|
+
method: :post,
|
|
118
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(self["id"]) }),
|
|
119
|
+
params: params,
|
|
120
|
+
opts: opts
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Run a redaction job in a ready status.
|
|
125
|
+
#
|
|
126
|
+
# When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
127
|
+
#
|
|
128
|
+
# The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
|
|
129
|
+
def self.run(job, params = {}, opts = {})
|
|
130
|
+
request_stripe_object(
|
|
131
|
+
method: :post,
|
|
132
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
|
|
133
|
+
params: params,
|
|
134
|
+
opts: opts
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Updates the properties of a redaction job without running or canceling the job.
|
|
139
|
+
#
|
|
140
|
+
# If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
|
|
141
|
+
def self.update(job, params = {}, opts = {})
|
|
142
|
+
request_stripe_object(
|
|
143
|
+
method: :post,
|
|
144
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
|
|
145
|
+
params: params,
|
|
146
|
+
opts: opts
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Validate a redaction job when it is in a failed status.
|
|
151
|
+
#
|
|
152
|
+
# When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
|
|
153
|
+
#
|
|
154
|
+
# The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
|
|
155
|
+
def validate(params = {}, opts = {})
|
|
156
|
+
request_stripe_object(
|
|
157
|
+
method: :post,
|
|
158
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(self["id"]) }),
|
|
159
|
+
params: params,
|
|
160
|
+
opts: opts
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Validate a redaction job when it is in a failed status.
|
|
165
|
+
#
|
|
166
|
+
# When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
|
|
167
|
+
#
|
|
168
|
+
# The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
|
|
169
|
+
def self.validate(job, params = {}, opts = {})
|
|
170
|
+
request_stripe_object(
|
|
171
|
+
method: :post,
|
|
172
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
|
|
173
|
+
params: params,
|
|
174
|
+
opts: opts
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
def self.inner_class_types
|
|
179
|
+
@inner_class_types = { objects: Objects }
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
def self.field_remappings
|
|
183
|
+
@field_remappings = {}
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
# The Redaction Job validation error object contains information about
|
|
7
|
+
# errors that affect the ability to redact a specific object in a
|
|
8
|
+
# redaction job.
|
|
9
|
+
class RedactionJobValidationError < APIResource
|
|
10
|
+
OBJECT_NAME = "privacy.redaction_job_validation_error"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"privacy.redaction_job_validation_error"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class ErroringObject < ::Stripe::StripeObject
|
|
16
|
+
# Unique identifier for the object.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# Erroring object type
|
|
19
|
+
attr_reader :object_type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# A code indicating the reason for the error.
|
|
30
|
+
attr_reader :code
|
|
31
|
+
# If the error is related to a specific object, this field includes the object's identifier and object type.
|
|
32
|
+
attr_reader :erroring_object
|
|
33
|
+
# Unique identifier for the object.
|
|
34
|
+
attr_reader :id
|
|
35
|
+
# A human-readable message providing more details about the error.
|
|
36
|
+
attr_reader :message
|
|
37
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
38
|
+
attr_reader :object
|
|
39
|
+
|
|
40
|
+
def self.inner_class_types
|
|
41
|
+
@inner_class_types = { erroring_object: ErroringObject }
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def self.field_remappings
|
|
45
|
+
@field_remappings = {}
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -70,6 +70,8 @@ module Stripe
|
|
|
70
70
|
attr_reader :created
|
|
71
71
|
# The customer that this promotion code can be used by.
|
|
72
72
|
attr_reader :customer
|
|
73
|
+
# The account that this promotion code can be used by.
|
|
74
|
+
attr_reader :customer_account
|
|
73
75
|
# Date at which the promotion code can no longer be redeemed.
|
|
74
76
|
attr_reader :expires_at
|
|
75
77
|
# Unique identifier for the object.
|