stripe 19.2.0 → 19.3.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 +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -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_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_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_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_created_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 +63 -0
- data/lib/stripe/events/v2_money_management_transaction_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/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -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 +336 -0
- 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 +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -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/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/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 +64 -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/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -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 +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -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_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 +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- 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 +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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 +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -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/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -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 +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -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 +67 -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 +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- 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 +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -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/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +78 -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 +4 -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 +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -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 +58 -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 +37 -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/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/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/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 +102 -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 +92 -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 +88 -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/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/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 +426 -0
- data/lib/stripe/resources/account.rb +259 -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/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 +142 -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 +2 -0
- data/lib/stripe/resources/charge.rb +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -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_session.rb +36 -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 +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -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/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 +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 +1561 -8
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -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/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -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 +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.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 +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_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 +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -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/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -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 +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -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 +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -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.rb +417 -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/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/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -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 +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -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/batch_job_service.rb +43 -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 +3 -1
- 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_service.rb +15 -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/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 +75 -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 +66 -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/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/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 +8 -1
- data/lib/stripe/services.rb +209 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +582 -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 +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -285,6 +285,8 @@ module Stripe
|
|
|
285
285
|
class Card < ::Stripe::StripeObject
|
|
286
286
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
287
287
|
attr_reader :brand
|
|
288
|
+
# 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.)
|
|
289
|
+
attr_reader :brand_product
|
|
288
290
|
# 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.
|
|
289
291
|
attr_reader :country
|
|
290
292
|
# Two-digit number representing the card's expiration month.
|
|
@@ -919,6 +921,16 @@ module Stripe
|
|
|
919
921
|
end
|
|
920
922
|
end
|
|
921
923
|
|
|
924
|
+
class Gopay < ::Stripe::StripeObject
|
|
925
|
+
def self.inner_class_types
|
|
926
|
+
@inner_class_types = {}
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
def self.field_remappings
|
|
930
|
+
@field_remappings = {}
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
|
|
922
934
|
class Grabpay < ::Stripe::StripeObject
|
|
923
935
|
# Unique transaction id generated by GrabPay
|
|
924
936
|
attr_reader :transaction_id
|
|
@@ -932,6 +944,27 @@ module Stripe
|
|
|
932
944
|
end
|
|
933
945
|
end
|
|
934
946
|
|
|
947
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
948
|
+
# Account number of the bank account to transfer funds to.
|
|
949
|
+
attr_reader :account_number
|
|
950
|
+
# Bank where the account is located.
|
|
951
|
+
attr_reader :bank
|
|
952
|
+
# Local bank code of the bank.
|
|
953
|
+
attr_reader :bank_code
|
|
954
|
+
# Name of the bank associated with the bank account.
|
|
955
|
+
attr_reader :bank_name
|
|
956
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
957
|
+
attr_reader :display_name
|
|
958
|
+
|
|
959
|
+
def self.inner_class_types
|
|
960
|
+
@inner_class_types = {}
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
def self.field_remappings
|
|
964
|
+
@field_remappings = {}
|
|
965
|
+
end
|
|
966
|
+
end
|
|
967
|
+
|
|
935
968
|
class Ideal < ::Stripe::StripeObject
|
|
936
969
|
# The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
937
970
|
attr_reader :bank
|
|
@@ -1340,6 +1373,52 @@ module Stripe
|
|
|
1340
1373
|
@field_remappings = {}
|
|
1341
1374
|
end
|
|
1342
1375
|
end
|
|
1376
|
+
|
|
1377
|
+
class Shipping < ::Stripe::StripeObject
|
|
1378
|
+
# City, district, suburb, town, or village.
|
|
1379
|
+
attr_reader :city
|
|
1380
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1381
|
+
attr_reader :country
|
|
1382
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1383
|
+
attr_reader :line1
|
|
1384
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1385
|
+
attr_reader :line2
|
|
1386
|
+
# ZIP or postal code.
|
|
1387
|
+
attr_reader :postal_code
|
|
1388
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1389
|
+
attr_reader :state
|
|
1390
|
+
|
|
1391
|
+
def self.inner_class_types
|
|
1392
|
+
@inner_class_types = {}
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
def self.field_remappings
|
|
1396
|
+
@field_remappings = {}
|
|
1397
|
+
end
|
|
1398
|
+
end
|
|
1399
|
+
|
|
1400
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1401
|
+
# City, district, suburb, town, or village.
|
|
1402
|
+
attr_reader :city
|
|
1403
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1404
|
+
attr_reader :country
|
|
1405
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1406
|
+
attr_reader :line1
|
|
1407
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1408
|
+
attr_reader :line2
|
|
1409
|
+
# ZIP or postal code.
|
|
1410
|
+
attr_reader :postal_code
|
|
1411
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1412
|
+
attr_reader :state
|
|
1413
|
+
|
|
1414
|
+
def self.inner_class_types
|
|
1415
|
+
@inner_class_types = {}
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
def self.field_remappings
|
|
1419
|
+
@field_remappings = {}
|
|
1420
|
+
end
|
|
1421
|
+
end
|
|
1343
1422
|
# 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.
|
|
1344
1423
|
attr_reader :country
|
|
1345
1424
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1352,11 +1431,39 @@ module Stripe
|
|
|
1352
1431
|
attr_reader :payer_name
|
|
1353
1432
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1354
1433
|
attr_reader :seller_protection
|
|
1434
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1435
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1436
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1437
|
+
attr_reader :shipping
|
|
1355
1438
|
# A unique ID generated by PayPal for this transaction.
|
|
1356
1439
|
attr_reader :transaction_id
|
|
1440
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1441
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1442
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1443
|
+
attr_reader :verified_address
|
|
1444
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1445
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1446
|
+
attr_reader :verified_email
|
|
1447
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
1448
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1449
|
+
attr_reader :verified_name
|
|
1450
|
+
|
|
1451
|
+
def self.inner_class_types
|
|
1452
|
+
@inner_class_types = {
|
|
1453
|
+
seller_protection: SellerProtection,
|
|
1454
|
+
shipping: Shipping,
|
|
1455
|
+
verified_address: VerifiedAddress,
|
|
1456
|
+
}
|
|
1457
|
+
end
|
|
1458
|
+
|
|
1459
|
+
def self.field_remappings
|
|
1460
|
+
@field_remappings = {}
|
|
1461
|
+
end
|
|
1462
|
+
end
|
|
1357
1463
|
|
|
1464
|
+
class Paypay < ::Stripe::StripeObject
|
|
1358
1465
|
def self.inner_class_types
|
|
1359
|
-
@inner_class_types = {
|
|
1466
|
+
@inner_class_types = {}
|
|
1360
1467
|
end
|
|
1361
1468
|
|
|
1362
1469
|
def self.field_remappings
|
|
@@ -1411,11 +1518,36 @@ module Stripe
|
|
|
1411
1518
|
end
|
|
1412
1519
|
end
|
|
1413
1520
|
|
|
1521
|
+
class Qris < ::Stripe::StripeObject
|
|
1522
|
+
def self.inner_class_types
|
|
1523
|
+
@inner_class_types = {}
|
|
1524
|
+
end
|
|
1525
|
+
|
|
1526
|
+
def self.field_remappings
|
|
1527
|
+
@field_remappings = {}
|
|
1528
|
+
end
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1532
|
+
# Payment portal URL.
|
|
1533
|
+
attr_reader :payment_portal_url
|
|
1534
|
+
|
|
1535
|
+
def self.inner_class_types
|
|
1536
|
+
@inner_class_types = {}
|
|
1537
|
+
end
|
|
1538
|
+
|
|
1539
|
+
def self.field_remappings
|
|
1540
|
+
@field_remappings = {}
|
|
1541
|
+
end
|
|
1542
|
+
end
|
|
1543
|
+
|
|
1414
1544
|
class RevolutPay < ::Stripe::StripeObject
|
|
1415
1545
|
class Funding < ::Stripe::StripeObject
|
|
1416
1546
|
class Card < ::Stripe::StripeObject
|
|
1417
1547
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1418
1548
|
attr_reader :brand
|
|
1549
|
+
# 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.)
|
|
1550
|
+
attr_reader :brand_product
|
|
1419
1551
|
# 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.
|
|
1420
1552
|
attr_reader :country
|
|
1421
1553
|
# Two-digit number representing the card's expiration month.
|
|
@@ -1545,6 +1677,16 @@ module Stripe
|
|
|
1545
1677
|
end
|
|
1546
1678
|
end
|
|
1547
1679
|
|
|
1680
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1681
|
+
def self.inner_class_types
|
|
1682
|
+
@inner_class_types = {}
|
|
1683
|
+
end
|
|
1684
|
+
|
|
1685
|
+
def self.field_remappings
|
|
1686
|
+
@field_remappings = {}
|
|
1687
|
+
end
|
|
1688
|
+
end
|
|
1689
|
+
|
|
1548
1690
|
class Sofort < ::Stripe::StripeObject
|
|
1549
1691
|
# Bank code of bank associated with the bank account.
|
|
1550
1692
|
attr_reader :bank_code
|
|
@@ -1584,6 +1726,19 @@ module Stripe
|
|
|
1584
1726
|
end
|
|
1585
1727
|
end
|
|
1586
1728
|
|
|
1729
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
1730
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1731
|
+
attr_reader :account
|
|
1732
|
+
|
|
1733
|
+
def self.inner_class_types
|
|
1734
|
+
@inner_class_types = {}
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1737
|
+
def self.field_remappings
|
|
1738
|
+
@field_remappings = {}
|
|
1739
|
+
end
|
|
1740
|
+
end
|
|
1741
|
+
|
|
1587
1742
|
class Sunbit < ::Stripe::StripeObject
|
|
1588
1743
|
# The Sunbit transaction ID associated with this payment.
|
|
1589
1744
|
attr_reader :transaction_id
|
|
@@ -1759,8 +1914,12 @@ module Stripe
|
|
|
1759
1914
|
attr_reader :fpx
|
|
1760
1915
|
# Attribute for field giropay
|
|
1761
1916
|
attr_reader :giropay
|
|
1917
|
+
# Attribute for field gopay
|
|
1918
|
+
attr_reader :gopay
|
|
1762
1919
|
# Attribute for field grabpay
|
|
1763
1920
|
attr_reader :grabpay
|
|
1921
|
+
# Attribute for field id_bank_transfer
|
|
1922
|
+
attr_reader :id_bank_transfer
|
|
1764
1923
|
# Attribute for field ideal
|
|
1765
1924
|
attr_reader :ideal
|
|
1766
1925
|
# Attribute for field interac_present
|
|
@@ -1799,12 +1958,18 @@ module Stripe
|
|
|
1799
1958
|
attr_reader :paynow
|
|
1800
1959
|
# Attribute for field paypal
|
|
1801
1960
|
attr_reader :paypal
|
|
1961
|
+
# Attribute for field paypay
|
|
1962
|
+
attr_reader :paypay
|
|
1802
1963
|
# Attribute for field payto
|
|
1803
1964
|
attr_reader :payto
|
|
1804
1965
|
# Attribute for field pix
|
|
1805
1966
|
attr_reader :pix
|
|
1806
1967
|
# Attribute for field promptpay
|
|
1807
1968
|
attr_reader :promptpay
|
|
1969
|
+
# Attribute for field qris
|
|
1970
|
+
attr_reader :qris
|
|
1971
|
+
# Attribute for field rechnung
|
|
1972
|
+
attr_reader :rechnung
|
|
1808
1973
|
# Attribute for field revolut_pay
|
|
1809
1974
|
attr_reader :revolut_pay
|
|
1810
1975
|
# Attribute for field samsung_pay
|
|
@@ -1817,10 +1982,14 @@ module Stripe
|
|
|
1817
1982
|
attr_reader :sepa_credit_transfer
|
|
1818
1983
|
# Attribute for field sepa_debit
|
|
1819
1984
|
attr_reader :sepa_debit
|
|
1985
|
+
# Attribute for field shopeepay
|
|
1986
|
+
attr_reader :shopeepay
|
|
1820
1987
|
# Attribute for field sofort
|
|
1821
1988
|
attr_reader :sofort
|
|
1822
1989
|
# Attribute for field stripe_account
|
|
1823
1990
|
attr_reader :stripe_account
|
|
1991
|
+
# Attribute for field stripe_balance
|
|
1992
|
+
attr_reader :stripe_balance
|
|
1824
1993
|
# Attribute for field sunbit
|
|
1825
1994
|
attr_reader :sunbit
|
|
1826
1995
|
# Attribute for field swish
|
|
@@ -1869,7 +2038,9 @@ module Stripe
|
|
|
1869
2038
|
eps: Eps,
|
|
1870
2039
|
fpx: Fpx,
|
|
1871
2040
|
giropay: Giropay,
|
|
2041
|
+
gopay: Gopay,
|
|
1872
2042
|
grabpay: Grabpay,
|
|
2043
|
+
id_bank_transfer: IdBankTransfer,
|
|
1873
2044
|
ideal: Ideal,
|
|
1874
2045
|
interac_present: InteracPresent,
|
|
1875
2046
|
kakao_pay: KakaoPay,
|
|
@@ -1888,17 +2059,22 @@ module Stripe
|
|
|
1888
2059
|
payco: Payco,
|
|
1889
2060
|
paynow: Paynow,
|
|
1890
2061
|
paypal: Paypal,
|
|
2062
|
+
paypay: Paypay,
|
|
1891
2063
|
payto: Payto,
|
|
1892
2064
|
pix: Pix,
|
|
1893
2065
|
promptpay: Promptpay,
|
|
2066
|
+
qris: Qris,
|
|
2067
|
+
rechnung: Rechnung,
|
|
1894
2068
|
revolut_pay: RevolutPay,
|
|
1895
2069
|
samsung_pay: SamsungPay,
|
|
1896
2070
|
satispay: Satispay,
|
|
1897
2071
|
scalapay: Scalapay,
|
|
1898
2072
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
1899
2073
|
sepa_debit: SepaDebit,
|
|
2074
|
+
shopeepay: Shopeepay,
|
|
1900
2075
|
sofort: Sofort,
|
|
1901
2076
|
stripe_account: StripeAccount,
|
|
2077
|
+
stripe_balance: StripeBalance,
|
|
1902
2078
|
sunbit: Sunbit,
|
|
1903
2079
|
swish: Swish,
|
|
1904
2080
|
twint: Twint,
|
|
@@ -114,6 +114,23 @@ module Stripe
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
+
class MigrateTo < ::Stripe::StripeObject
|
|
118
|
+
# The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
119
|
+
attr_reader :behavior
|
|
120
|
+
# The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
121
|
+
attr_reader :effective_after
|
|
122
|
+
# The id of the price being migrated to
|
|
123
|
+
attr_reader :price
|
|
124
|
+
|
|
125
|
+
def self.inner_class_types
|
|
126
|
+
@inner_class_types = {}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def self.field_remappings
|
|
130
|
+
@field_remappings = {}
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
117
134
|
class Recurring < ::Stripe::StripeObject
|
|
118
135
|
# The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
|
|
119
136
|
attr_reader :interval
|
|
@@ -199,6 +216,8 @@ module Stripe
|
|
|
199
216
|
attr_reader :lookup_key
|
|
200
217
|
# 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.
|
|
201
218
|
attr_reader :metadata
|
|
219
|
+
# Subscriptions using this price will be migrated to use the new referenced price.
|
|
220
|
+
attr_reader :migrate_to
|
|
202
221
|
# A brief description of the price, hidden from customers.
|
|
203
222
|
attr_reader :nickname
|
|
204
223
|
# String representing the object's type. Objects of the same type share the same value.
|
|
@@ -254,6 +273,7 @@ module Stripe
|
|
|
254
273
|
@inner_class_types = {
|
|
255
274
|
currency_options: CurrencyOptions,
|
|
256
275
|
custom_unit_amount: CustomUnitAmount,
|
|
276
|
+
migrate_to: MigrateTo,
|
|
257
277
|
recurring: Recurring,
|
|
258
278
|
tiers: Tier,
|
|
259
279
|
transform_quantity: TransformQuantity,
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
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
|
+
# The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list.
|
|
66
|
+
attr_reader :validation_errors
|
|
67
|
+
|
|
68
|
+
# You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
69
|
+
#
|
|
70
|
+
# Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
71
|
+
def cancel(params = {}, opts = {})
|
|
72
|
+
request_stripe_object(
|
|
73
|
+
method: :post,
|
|
74
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(self["id"]) }),
|
|
75
|
+
params: params,
|
|
76
|
+
opts: opts
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
81
|
+
#
|
|
82
|
+
# Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
83
|
+
def self.cancel(job, params = {}, opts = {})
|
|
84
|
+
request_stripe_object(
|
|
85
|
+
method: :post,
|
|
86
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
|
|
87
|
+
params: params,
|
|
88
|
+
opts: opts
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Creates a redaction job. When a job is created, it will start to validate.
|
|
93
|
+
def self.create(params = {}, opts = {})
|
|
94
|
+
request_stripe_object(
|
|
95
|
+
method: :post,
|
|
96
|
+
path: "/v1/privacy/redaction_jobs",
|
|
97
|
+
params: params,
|
|
98
|
+
opts: opts
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Returns a list of redaction jobs.
|
|
103
|
+
def self.list(params = {}, opts = {})
|
|
104
|
+
request_stripe_object(
|
|
105
|
+
method: :get,
|
|
106
|
+
path: "/v1/privacy/redaction_jobs",
|
|
107
|
+
params: params,
|
|
108
|
+
opts: opts
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Run a redaction job in a ready status.
|
|
113
|
+
#
|
|
114
|
+
# When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
115
|
+
#
|
|
116
|
+
# 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.
|
|
117
|
+
def run(params = {}, opts = {})
|
|
118
|
+
request_stripe_object(
|
|
119
|
+
method: :post,
|
|
120
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(self["id"]) }),
|
|
121
|
+
params: params,
|
|
122
|
+
opts: opts
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Run a redaction job in a ready status.
|
|
127
|
+
#
|
|
128
|
+
# When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
129
|
+
#
|
|
130
|
+
# 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.
|
|
131
|
+
def self.run(job, params = {}, opts = {})
|
|
132
|
+
request_stripe_object(
|
|
133
|
+
method: :post,
|
|
134
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
|
|
135
|
+
params: params,
|
|
136
|
+
opts: opts
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Updates the properties of a redaction job without running or canceling the job.
|
|
141
|
+
#
|
|
142
|
+
# 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.
|
|
143
|
+
def self.update(job, params = {}, opts = {})
|
|
144
|
+
request_stripe_object(
|
|
145
|
+
method: :post,
|
|
146
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
|
|
147
|
+
params: params,
|
|
148
|
+
opts: opts
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Validate a redaction job when it is in a failed status.
|
|
153
|
+
#
|
|
154
|
+
# 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.
|
|
155
|
+
#
|
|
156
|
+
# 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.
|
|
157
|
+
def validate(params = {}, opts = {})
|
|
158
|
+
request_stripe_object(
|
|
159
|
+
method: :post,
|
|
160
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(self["id"]) }),
|
|
161
|
+
params: params,
|
|
162
|
+
opts: opts
|
|
163
|
+
)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Validate a redaction job when it is in a failed status.
|
|
167
|
+
#
|
|
168
|
+
# 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.
|
|
169
|
+
#
|
|
170
|
+
# 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.
|
|
171
|
+
def self.validate(job, params = {}, opts = {})
|
|
172
|
+
request_stripe_object(
|
|
173
|
+
method: :post,
|
|
174
|
+
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
|
|
175
|
+
params: params,
|
|
176
|
+
opts: opts
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def self.inner_class_types
|
|
181
|
+
@inner_class_types = { objects: Objects }
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def self.field_remappings
|
|
185
|
+
@field_remappings = {}
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
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
|
|
@@ -56,6 +56,21 @@ module Stripe
|
|
|
56
56
|
@field_remappings = {}
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
|
+
|
|
60
|
+
class TaxDetails < ::Stripe::StripeObject
|
|
61
|
+
# The performance location.
|
|
62
|
+
attr_reader :performance_location
|
|
63
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
64
|
+
attr_reader :tax_code
|
|
65
|
+
|
|
66
|
+
def self.inner_class_types
|
|
67
|
+
@inner_class_types = {}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def self.field_remappings
|
|
71
|
+
@field_remappings = {}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
59
74
|
# Whether the product is currently available for purchase.
|
|
60
75
|
attr_reader :active
|
|
61
76
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
@@ -88,6 +103,8 @@ module Stripe
|
|
|
88
103
|
attr_reader :statement_descriptor
|
|
89
104
|
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
90
105
|
attr_reader :tax_code
|
|
106
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
107
|
+
attr_reader :tax_details
|
|
91
108
|
# The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans.
|
|
92
109
|
attr_reader :type
|
|
93
110
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
@@ -149,6 +166,7 @@ module Stripe
|
|
|
149
166
|
@inner_class_types = {
|
|
150
167
|
marketing_features: MarketingFeature,
|
|
151
168
|
package_dimensions: PackageDimensions,
|
|
169
|
+
tax_details: TaxDetails,
|
|
152
170
|
}
|
|
153
171
|
end
|
|
154
172
|
|