stripe 17.1.0 → 17.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +233 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +55 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +715 -0
- data/lib/stripe/params/charge_update_params.rb +715 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
- data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +164 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +237 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +789 -4
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3906 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +112 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +58 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +145086 -86712
- metadata +337 -3
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
# Represents a record from the card network of a money movement or change in state for an Issuing dispute. These records are included in the settlement reports that we receive from networks and expose to users as Settlement objects.
|
|
7
|
+
class DisputeSettlementDetail < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "issuing.dispute_settlement_detail"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"issuing.dispute_settlement_detail"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class NetworkData < ::Stripe::StripeObject
|
|
16
|
+
# The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network.
|
|
17
|
+
attr_reader :processing_date
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# Disputed amount in the card’s currency and in the smallest currency unit. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
|
|
28
|
+
attr_reader :amount
|
|
29
|
+
# The card used to make the original transaction.
|
|
30
|
+
attr_reader :card
|
|
31
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
attr_reader :created
|
|
33
|
+
# The currency the original transaction was made in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
34
|
+
attr_reader :currency
|
|
35
|
+
# The ID of the linked dispute.
|
|
36
|
+
attr_reader :dispute
|
|
37
|
+
# The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle.
|
|
38
|
+
attr_reader :event_type
|
|
39
|
+
# Unique identifier for the object.
|
|
40
|
+
attr_reader :id
|
|
41
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
42
|
+
attr_reader :livemode
|
|
43
|
+
# The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"]
|
|
44
|
+
attr_reader :network
|
|
45
|
+
# Details about the transaction, such as processing dates, set by the card network.
|
|
46
|
+
attr_reader :network_data
|
|
47
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
48
|
+
attr_reader :object
|
|
49
|
+
# The ID of the linked card network settlement.
|
|
50
|
+
attr_reader :settlement
|
|
51
|
+
|
|
52
|
+
# Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
|
53
|
+
def self.list(params = {}, opts = {})
|
|
54
|
+
request_stripe_object(
|
|
55
|
+
method: :get,
|
|
56
|
+
path: "/v1/issuing/dispute_settlement_details",
|
|
57
|
+
params: params,
|
|
58
|
+
opts: opts
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def self.inner_class_types
|
|
63
|
+
@inner_class_types = { network_data: NetworkData }
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self.field_remappings
|
|
67
|
+
@field_remappings = {}
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
# A fraud liability debit occurs when Stripe debits a platform's account for fraud losses on Issuing transactions.
|
|
7
|
+
class FraudLiabilityDebit < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "issuing.fraud_liability_debit"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"issuing.fraud_liability_debit"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Debited amount. This is equal to the disputed amount and is given in the card’s currency and in the smallest currency unit.
|
|
16
|
+
attr_reader :amount
|
|
17
|
+
# ID of the [balance transaction](https://stripe.com/docs/api/balance_transactions) associated with this debit.
|
|
18
|
+
attr_reader :balance_transaction
|
|
19
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
20
|
+
attr_reader :created
|
|
21
|
+
# The currency of the debit. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
22
|
+
attr_reader :currency
|
|
23
|
+
# The ID of the linked dispute.
|
|
24
|
+
attr_reader :dispute
|
|
25
|
+
# Unique identifier for the object.
|
|
26
|
+
attr_reader :id
|
|
27
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
28
|
+
attr_reader :livemode
|
|
29
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
30
|
+
attr_reader :object
|
|
31
|
+
|
|
32
|
+
# Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
|
33
|
+
def self.list(params = {}, opts = {})
|
|
34
|
+
request_stripe_object(
|
|
35
|
+
method: :get,
|
|
36
|
+
path: "/v1/issuing/fraud_liability_debits",
|
|
37
|
+
params: params,
|
|
38
|
+
opts: opts
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.inner_class_types
|
|
43
|
+
@inner_class_types = {}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.field_remappings
|
|
47
|
+
@field_remappings = {}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
# When a non-stripe BIN is used, any use of an [issued card](https://stripe.com/docs/issuing) must be settled directly with the card network. The net amount owed is represented by an Issuing `Settlement` object.
|
|
7
|
+
class Settlement < APIResource
|
|
8
|
+
OBJECT_NAME = "issuing.settlement"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"issuing.settlement"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# The Bank Identification Number reflecting this settlement record.
|
|
14
|
+
attr_reader :bin
|
|
15
|
+
# The date that the transactions are cleared and posted to user's accounts.
|
|
16
|
+
attr_reader :clearing_date
|
|
17
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
18
|
+
attr_reader :created
|
|
19
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
20
|
+
attr_reader :currency
|
|
21
|
+
# Unique identifier for the object.
|
|
22
|
+
attr_reader :id
|
|
23
|
+
# The total interchange received as reimbursement for the transactions.
|
|
24
|
+
attr_reader :interchange_fees_amount
|
|
25
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
26
|
+
attr_reader :livemode
|
|
27
|
+
# 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.
|
|
28
|
+
attr_reader :metadata
|
|
29
|
+
# The total net amount required to settle with the network.
|
|
30
|
+
attr_reader :net_total_amount
|
|
31
|
+
# The card network for this settlement report. One of ["visa", "maestro"]
|
|
32
|
+
attr_reader :network
|
|
33
|
+
# The total amount of fees owed to the network.
|
|
34
|
+
attr_reader :network_fees_amount
|
|
35
|
+
# The Settlement Identification Number assigned by the network.
|
|
36
|
+
attr_reader :network_settlement_identifier
|
|
37
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
38
|
+
attr_reader :object
|
|
39
|
+
# The total amount of any additional fees assessed by the card network.
|
|
40
|
+
attr_reader :other_fees_amount
|
|
41
|
+
# The total number of additional fees assessed by the card network.
|
|
42
|
+
attr_reader :other_fees_count
|
|
43
|
+
# One of `international` or `uk_national_net`.
|
|
44
|
+
attr_reader :settlement_service
|
|
45
|
+
# The current processing status of this settlement.
|
|
46
|
+
attr_reader :status
|
|
47
|
+
# The total transaction amount reflected in this settlement.
|
|
48
|
+
attr_reader :transaction_amount
|
|
49
|
+
# The total number of transactions reflected in this settlement.
|
|
50
|
+
attr_reader :transaction_count
|
|
51
|
+
|
|
52
|
+
def self.inner_class_types
|
|
53
|
+
@inner_class_types = {}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def self.field_remappings
|
|
57
|
+
@field_remappings = {}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -357,6 +357,8 @@ module Stripe
|
|
|
357
357
|
attr_reader :object
|
|
358
358
|
# Additional purchase information that is optionally provided by the merchant.
|
|
359
359
|
attr_reader :purchase_details
|
|
360
|
+
# The ID of the [settlement](https://stripe.com/docs/api/issuing/settlements) to which this transaction belongs.
|
|
361
|
+
attr_reader :settlement
|
|
360
362
|
# [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
|
|
361
363
|
attr_reader :token
|
|
362
364
|
# [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
|
|
@@ -9,6 +9,23 @@ module Stripe
|
|
|
9
9
|
"item"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class AdjustableQuantity < ::Stripe::StripeObject
|
|
13
|
+
# Attribute for field enabled
|
|
14
|
+
attr_reader :enabled
|
|
15
|
+
# Attribute for field maximum
|
|
16
|
+
attr_reader :maximum
|
|
17
|
+
# Attribute for field minimum
|
|
18
|
+
attr_reader :minimum
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
12
29
|
class Discount < ::Stripe::StripeObject
|
|
13
30
|
# The amount discounted.
|
|
14
31
|
attr_reader :amount
|
|
@@ -27,6 +44,38 @@ module Stripe
|
|
|
27
44
|
end
|
|
28
45
|
end
|
|
29
46
|
|
|
47
|
+
class Display < ::Stripe::StripeObject
|
|
48
|
+
# Attribute for field description
|
|
49
|
+
attr_reader :description
|
|
50
|
+
# Attribute for field images
|
|
51
|
+
attr_reader :images
|
|
52
|
+
# Attribute for field name
|
|
53
|
+
attr_reader :name
|
|
54
|
+
|
|
55
|
+
def self.inner_class_types
|
|
56
|
+
@inner_class_types = {}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def self.field_remappings
|
|
60
|
+
@field_remappings = {}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
class TaxCalculationReference < ::Stripe::StripeObject
|
|
65
|
+
# The calculation identifier for tax calculation response.
|
|
66
|
+
attr_reader :calculation_id
|
|
67
|
+
# The calculation identifier for tax calculation response line item.
|
|
68
|
+
attr_reader :calculation_item_id
|
|
69
|
+
|
|
70
|
+
def self.inner_class_types
|
|
71
|
+
@inner_class_types = {}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def self.field_remappings
|
|
75
|
+
@field_remappings = {}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
30
79
|
class Tax < ::Stripe::StripeObject
|
|
31
80
|
# Amount of tax applied for this rate.
|
|
32
81
|
attr_reader :amount
|
|
@@ -47,6 +96,8 @@ module Stripe
|
|
|
47
96
|
@field_remappings = {}
|
|
48
97
|
end
|
|
49
98
|
end
|
|
99
|
+
# Attribute for field adjustable_quantity
|
|
100
|
+
attr_reader :adjustable_quantity
|
|
50
101
|
# Total discount amount applied. If no discounts were applied, defaults to 0.
|
|
51
102
|
attr_reader :amount_discount
|
|
52
103
|
# Total before any discounts or taxes are applied.
|
|
@@ -61,19 +112,35 @@ module Stripe
|
|
|
61
112
|
attr_reader :description
|
|
62
113
|
# The discounts applied to the line item.
|
|
63
114
|
attr_reader :discounts
|
|
115
|
+
# Attribute for field display
|
|
116
|
+
attr_reader :display
|
|
64
117
|
# Unique identifier for the object.
|
|
65
118
|
attr_reader :id
|
|
119
|
+
# 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.
|
|
120
|
+
attr_reader :metadata
|
|
66
121
|
# String representing the object's type. Objects of the same type share the same value.
|
|
67
122
|
attr_reader :object
|
|
68
123
|
# The price used to generate the line item.
|
|
69
124
|
attr_reader :price
|
|
125
|
+
# The ID of the product for this line item.
|
|
126
|
+
#
|
|
127
|
+
# This will always be the same as `price.product`.
|
|
128
|
+
attr_reader :product
|
|
70
129
|
# The quantity of products being purchased.
|
|
71
130
|
attr_reader :quantity
|
|
131
|
+
# The tax calculation identifiers of the line item.
|
|
132
|
+
attr_reader :tax_calculation_reference
|
|
72
133
|
# The taxes applied to the line item.
|
|
73
134
|
attr_reader :taxes
|
|
74
135
|
|
|
75
136
|
def self.inner_class_types
|
|
76
|
-
@inner_class_types = {
|
|
137
|
+
@inner_class_types = {
|
|
138
|
+
adjustable_quantity: AdjustableQuantity,
|
|
139
|
+
discounts: Discount,
|
|
140
|
+
display: Display,
|
|
141
|
+
tax_calculation_reference: TaxCalculationReference,
|
|
142
|
+
taxes: Tax,
|
|
143
|
+
}
|
|
77
144
|
end
|
|
78
145
|
|
|
79
146
|
def self.field_remappings
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# A Mandate is a record of the permission that your customer gives you to debit their payment method.
|
|
6
6
|
class Mandate < APIResource
|
|
7
|
+
extend Stripe::APIOperations::List
|
|
8
|
+
|
|
7
9
|
OBJECT_NAME = "mandate"
|
|
8
10
|
def self.object_name
|
|
9
11
|
"mandate"
|
|
@@ -53,6 +55,11 @@ module Stripe
|
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
class MultiUse < ::Stripe::StripeObject
|
|
58
|
+
# The amount of the payment on a multi use mandate.
|
|
59
|
+
attr_reader :amount
|
|
60
|
+
# The currency of the payment on a multi use mandate.
|
|
61
|
+
attr_reader :currency
|
|
62
|
+
|
|
56
63
|
def self.inner_class_types
|
|
57
64
|
@inner_class_types = {}
|
|
58
65
|
end
|
|
@@ -207,8 +214,61 @@ module Stripe
|
|
|
207
214
|
class Paypal < ::Stripe::StripeObject
|
|
208
215
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
209
216
|
attr_reader :billing_agreement_id
|
|
217
|
+
# Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
218
|
+
attr_reader :fingerprint
|
|
210
219
|
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
211
220
|
attr_reader :payer_id
|
|
221
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
222
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
223
|
+
attr_reader :verified_email
|
|
224
|
+
|
|
225
|
+
def self.inner_class_types
|
|
226
|
+
@inner_class_types = {}
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
def self.field_remappings
|
|
230
|
+
@field_remappings = {}
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
class Payto < ::Stripe::StripeObject
|
|
235
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
236
|
+
attr_reader :amount
|
|
237
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
238
|
+
attr_reader :amount_type
|
|
239
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
240
|
+
attr_reader :end_date
|
|
241
|
+
# The periodicity at which payments will be collected.
|
|
242
|
+
attr_reader :payment_schedule
|
|
243
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
244
|
+
attr_reader :payments_per_period
|
|
245
|
+
# The purpose for which payments are made. Defaults to retail.
|
|
246
|
+
attr_reader :purpose
|
|
247
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
248
|
+
attr_reader :start_date
|
|
249
|
+
|
|
250
|
+
def self.inner_class_types
|
|
251
|
+
@inner_class_types = {}
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
def self.field_remappings
|
|
255
|
+
@field_remappings = {}
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
class Pix < ::Stripe::StripeObject
|
|
260
|
+
# Determines if the amount includes the IOF tax.
|
|
261
|
+
attr_reader :amount_includes_iof
|
|
262
|
+
# Type of amount.
|
|
263
|
+
attr_reader :amount_type
|
|
264
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
265
|
+
attr_reader :end_date
|
|
266
|
+
# Schedule at which the future payments will be charged.
|
|
267
|
+
attr_reader :payment_schedule
|
|
268
|
+
# Subscription name displayed to buyers in their bank app.
|
|
269
|
+
attr_reader :reference
|
|
270
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
|
271
|
+
attr_reader :start_date
|
|
212
272
|
|
|
213
273
|
def self.inner_class_types
|
|
214
274
|
@inner_class_types = {}
|
|
@@ -282,6 +342,10 @@ module Stripe
|
|
|
282
342
|
attr_reader :nz_bank_account
|
|
283
343
|
# Attribute for field paypal
|
|
284
344
|
attr_reader :paypal
|
|
345
|
+
# Attribute for field payto
|
|
346
|
+
attr_reader :payto
|
|
347
|
+
# Attribute for field pix
|
|
348
|
+
attr_reader :pix
|
|
285
349
|
# Attribute for field revolut_pay
|
|
286
350
|
attr_reader :revolut_pay
|
|
287
351
|
# Attribute for field sepa_debit
|
|
@@ -306,6 +370,8 @@ module Stripe
|
|
|
306
370
|
naver_pay: NaverPay,
|
|
307
371
|
nz_bank_account: NzBankAccount,
|
|
308
372
|
paypal: Paypal,
|
|
373
|
+
payto: Payto,
|
|
374
|
+
pix: Pix,
|
|
309
375
|
revolut_pay: RevolutPay,
|
|
310
376
|
sepa_debit: SepaDebit,
|
|
311
377
|
us_bank_account: UsBankAccount,
|
|
@@ -354,6 +420,11 @@ module Stripe
|
|
|
354
420
|
# The type of the mandate.
|
|
355
421
|
attr_reader :type
|
|
356
422
|
|
|
423
|
+
# Retrieves a list of Mandates for a given PaymentMethod.
|
|
424
|
+
def self.list(params = {}, opts = {})
|
|
425
|
+
request_stripe_object(method: :get, path: "/v1/mandates", params: params, opts: opts)
|
|
426
|
+
end
|
|
427
|
+
|
|
357
428
|
def self.inner_class_types
|
|
358
429
|
@inner_class_types = {
|
|
359
430
|
customer_acceptance: CustomerAcceptance,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who
|
|
6
|
+
# resell products and services and earn a discount (margin) for doing so.
|
|
7
|
+
class Margin < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
extend Stripe::APIOperations::List
|
|
10
|
+
include Stripe::APIOperations::Save
|
|
11
|
+
|
|
12
|
+
OBJECT_NAME = "margin"
|
|
13
|
+
def self.object_name
|
|
14
|
+
"margin"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.
|
|
18
|
+
attr_reader :active
|
|
19
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
20
|
+
attr_reader :created
|
|
21
|
+
# Unique identifier for the object.
|
|
22
|
+
attr_reader :id
|
|
23
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
24
|
+
attr_reader :livemode
|
|
25
|
+
# 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.
|
|
26
|
+
attr_reader :metadata
|
|
27
|
+
# Name of the margin that's displayed on, for example, invoices.
|
|
28
|
+
attr_reader :name
|
|
29
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
30
|
+
attr_reader :object
|
|
31
|
+
# Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.
|
|
32
|
+
attr_reader :percent_off
|
|
33
|
+
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
34
|
+
attr_reader :updated
|
|
35
|
+
|
|
36
|
+
# Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
|
|
37
|
+
def self.create(params = {}, opts = {})
|
|
38
|
+
request_stripe_object(method: :post, path: "/v1/billing/margins", params: params, opts: opts)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Retrieve a list of your margins.
|
|
42
|
+
def self.list(params = {}, opts = {})
|
|
43
|
+
request_stripe_object(method: :get, path: "/v1/billing/margins", params: params, opts: opts)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Update the specified margin object. Certain fields of the margin object are not editable.
|
|
47
|
+
def self.update(margin, params = {}, opts = {})
|
|
48
|
+
request_stripe_object(
|
|
49
|
+
method: :post,
|
|
50
|
+
path: format("/v1/billing/margins/%<margin>s", { margin: CGI.escape(margin) }),
|
|
51
|
+
params: params,
|
|
52
|
+
opts: opts
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|