stripe 18.1.0.pre.alpha.1 → 18.1.0.pre.alpha.2
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/event_types.rb +8 -565
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +15 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
- data/lib/stripe/events/{v1_sigma_scheduled_query_run_created_event.rb → v2_payments_off_session_payment_attempt_failed_event.rb} +7 -7
- data/lib/stripe/events/{v1_radar_early_fraud_warning_created_event.rb → v2_payments_off_session_payment_attempt_started_event.rb} +9 -7
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -6
- data/lib/stripe/params/quote_create_params.rb +15 -3
- data/lib/stripe/params/quote_update_params.rb +15 -3
- data/lib/stripe/params/subscription_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_update_params.rb +17 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +15 -3
- data/lib/stripe/params/subscription_schedule_create_params.rb +10 -2
- data/lib/stripe/params/subscription_schedule_update_params.rb +10 -2
- data/lib/stripe/params/subscription_update_params.rb +17 -1
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +24 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +118 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +119 -4
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +5 -9
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +13 -89
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +15 -1
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/quote.rb +8 -118
- data/lib/stripe/resources/quote_line.rb +6 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +7 -87
- data/lib/stripe/resources/subscription.rb +3 -87
- data/lib/stripe/resources/subscription_item.rb +24 -1
- data/lib/stripe/resources/subscription_schedule.rb +7 -87
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
- data/lib/stripe/resources/v2/billing/service_action.rb +32 -2
- data/lib/stripe/resources/v2/core/account.rb +341 -10
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +0 -2
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +49 -1
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +46 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +61 -3
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +46 -2
- data/lib/stripe/resources/v2/money_management/received_credit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +23 -79
- data/lib/stripe/resources.rb +5 -186
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +2 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services.rb +3 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +5579 -1470
- metadata +17 -188
- data/lib/stripe/events/v1_account_updated_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
- data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
- data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
- data/lib/stripe/events/v1_customer_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v1_file_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payout_created_event.rb +0 -44
- data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
- data/lib/stripe/events/v1_person_created_event.rb +0 -44
- data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_person_updated_event.rb +0 -44
- data/lib/stripe/events/v1_plan_created_event.rb +0 -44
- data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v1_price_created_event.rb +0 -44
- data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_price_updated_event.rb +0 -44
- data/lib/stripe/events/v1_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_product_updated_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
- data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
- data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_quote_created_event.rb +0 -44
- data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
- data/lib/stripe/events/v1_refund_created_event.rb +0 -44
- data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
- data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_review_closed_event.rb +0 -44
- data/lib/stripe/events/v1_review_opened_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
- data/lib/stripe/events/v1_source_failed_event.rb +0 -44
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
- data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_topup_created_event.rb +0 -44
- data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on.
|
|
8
|
+
class CurrencyConversion < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.currency_conversion"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.currency_conversion"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class From < ::Stripe::StripeObject
|
|
15
|
+
class Amount < ::Stripe::StripeObject
|
|
16
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
17
|
+
attr_reader :value
|
|
18
|
+
# 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).
|
|
19
|
+
attr_reader :currency
|
|
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
|
+
# Amount object.
|
|
30
|
+
attr_reader :amount
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = { amount: Amount }
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.field_remappings
|
|
37
|
+
@field_remappings = {}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class To < ::Stripe::StripeObject
|
|
42
|
+
class Amount < ::Stripe::StripeObject
|
|
43
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
44
|
+
attr_reader :value
|
|
45
|
+
# 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).
|
|
46
|
+
attr_reader :currency
|
|
47
|
+
|
|
48
|
+
def self.inner_class_types
|
|
49
|
+
@inner_class_types = {}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def self.field_remappings
|
|
53
|
+
@field_remappings = {}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
# Amount object.
|
|
57
|
+
attr_reader :amount
|
|
58
|
+
|
|
59
|
+
def self.inner_class_types
|
|
60
|
+
@inner_class_types = { amount: Amount }
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def self.field_remappings
|
|
64
|
+
@field_remappings = {}
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
# The time the CurrencyConversion was created at.
|
|
68
|
+
attr_reader :created
|
|
69
|
+
# The exchange rate used when processing the CurrencyConversion.
|
|
70
|
+
attr_reader :exchange_rate
|
|
71
|
+
# The FinancialAccount the CurrencyConversion was performed on.
|
|
72
|
+
attr_reader :financial_account
|
|
73
|
+
# The from block containing what was debited.
|
|
74
|
+
attr_reader :from
|
|
75
|
+
# The id of the CurrencyConversion.
|
|
76
|
+
attr_reader :id
|
|
77
|
+
# If the CurrencyConversion was performed in livemode or not.
|
|
78
|
+
attr_reader :livemode
|
|
79
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
80
|
+
attr_reader :object
|
|
81
|
+
# The to block containing what was credited.
|
|
82
|
+
attr_reader :to
|
|
83
|
+
|
|
84
|
+
def self.inner_class_types
|
|
85
|
+
@inner_class_types = { from: From, to: To }
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.field_remappings
|
|
89
|
+
@field_remappings = {}
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -12,6 +12,50 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
class Balance < ::Stripe::StripeObject
|
|
15
|
+
class Available < ::Stripe::StripeObject
|
|
16
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
17
|
+
attr_reader :value
|
|
18
|
+
# 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).
|
|
19
|
+
attr_reader :currency
|
|
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
|
+
|
|
30
|
+
class InboundPending < ::Stripe::StripeObject
|
|
31
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
32
|
+
attr_reader :value
|
|
33
|
+
# 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
|
+
|
|
36
|
+
def self.inner_class_types
|
|
37
|
+
@inner_class_types = {}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.field_remappings
|
|
41
|
+
@field_remappings = {}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class OutboundPending < ::Stripe::StripeObject
|
|
46
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
47
|
+
attr_reader :value
|
|
48
|
+
# 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).
|
|
49
|
+
attr_reader :currency
|
|
50
|
+
|
|
51
|
+
def self.inner_class_types
|
|
52
|
+
@inner_class_types = {}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def self.field_remappings
|
|
56
|
+
@field_remappings = {}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
15
59
|
# Balance that can be used for money movement.
|
|
16
60
|
attr_reader :available
|
|
17
61
|
# Balance of inbound funds that will later transition to the `available` balance.
|
|
@@ -20,7 +64,11 @@ module Stripe
|
|
|
20
64
|
attr_reader :outbound_pending
|
|
21
65
|
|
|
22
66
|
def self.inner_class_types
|
|
23
|
-
@inner_class_types = {
|
|
67
|
+
@inner_class_types = {
|
|
68
|
+
available: Available,
|
|
69
|
+
inbound_pending: InboundPending,
|
|
70
|
+
outbound_pending: OutboundPending,
|
|
71
|
+
}
|
|
24
72
|
end
|
|
25
73
|
|
|
26
74
|
def self.field_remappings
|
|
@@ -12,7 +12,37 @@ module Stripe
|
|
|
12
12
|
"v2.money_management.inbound_transfer"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class Amount < ::Stripe::StripeObject
|
|
16
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
17
|
+
attr_reader :value
|
|
18
|
+
# 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).
|
|
19
|
+
attr_reader :currency
|
|
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
|
+
|
|
15
30
|
class From < ::Stripe::StripeObject
|
|
31
|
+
class Debited < ::Stripe::StripeObject
|
|
32
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
33
|
+
attr_reader :value
|
|
34
|
+
# 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).
|
|
35
|
+
attr_reader :currency
|
|
36
|
+
|
|
37
|
+
def self.inner_class_types
|
|
38
|
+
@inner_class_types = {}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.field_remappings
|
|
42
|
+
@field_remappings = {}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
16
46
|
class PaymentMethod < ::Stripe::StripeObject
|
|
17
47
|
# The type of object this destination represents. For a us bank account, we expect us_bank_account.
|
|
18
48
|
attr_reader :type
|
|
@@ -33,7 +63,7 @@ module Stripe
|
|
|
33
63
|
attr_reader :payment_method
|
|
34
64
|
|
|
35
65
|
def self.inner_class_types
|
|
36
|
-
@inner_class_types = { payment_method: PaymentMethod }
|
|
66
|
+
@inner_class_types = { debited: Debited, payment_method: PaymentMethod }
|
|
37
67
|
end
|
|
38
68
|
|
|
39
69
|
def self.field_remappings
|
|
@@ -42,13 +72,27 @@ module Stripe
|
|
|
42
72
|
end
|
|
43
73
|
|
|
44
74
|
class To < ::Stripe::StripeObject
|
|
75
|
+
class Credited < ::Stripe::StripeObject
|
|
76
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
77
|
+
attr_reader :value
|
|
78
|
+
# 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).
|
|
79
|
+
attr_reader :currency
|
|
80
|
+
|
|
81
|
+
def self.inner_class_types
|
|
82
|
+
@inner_class_types = {}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def self.field_remappings
|
|
86
|
+
@field_remappings = {}
|
|
87
|
+
end
|
|
88
|
+
end
|
|
45
89
|
# The amount by which the FinancialAccount balance is credited.
|
|
46
90
|
attr_reader :credited
|
|
47
91
|
# The FinancialAccount that funds will land in.
|
|
48
92
|
attr_reader :financial_account
|
|
49
93
|
|
|
50
94
|
def self.inner_class_types
|
|
51
|
-
@inner_class_types = {}
|
|
95
|
+
@inner_class_types = { credited: Credited }
|
|
52
96
|
end
|
|
53
97
|
|
|
54
98
|
def self.field_remappings
|
|
@@ -136,7 +180,12 @@ module Stripe
|
|
|
136
180
|
attr_reader :livemode
|
|
137
181
|
|
|
138
182
|
def self.inner_class_types
|
|
139
|
-
@inner_class_types = {
|
|
183
|
+
@inner_class_types = {
|
|
184
|
+
amount: Amount,
|
|
185
|
+
from: From,
|
|
186
|
+
to: To,
|
|
187
|
+
transfer_history: TransferHistory,
|
|
188
|
+
}
|
|
140
189
|
end
|
|
141
190
|
|
|
142
191
|
def self.field_remappings
|
|
@@ -11,6 +11,21 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.outbound_payment"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
|
|
14
29
|
class DeliveryOptions < ::Stripe::StripeObject
|
|
15
30
|
# Open Enum. Method for bank account.
|
|
16
31
|
attr_reader :bank_account
|
|
@@ -25,13 +40,27 @@ module Stripe
|
|
|
25
40
|
end
|
|
26
41
|
|
|
27
42
|
class From < ::Stripe::StripeObject
|
|
43
|
+
class Debited < ::Stripe::StripeObject
|
|
44
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
45
|
+
attr_reader :value
|
|
46
|
+
# 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).
|
|
47
|
+
attr_reader :currency
|
|
48
|
+
|
|
49
|
+
def self.inner_class_types
|
|
50
|
+
@inner_class_types = {}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.field_remappings
|
|
54
|
+
@field_remappings = {}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
28
57
|
# The monetary amount debited from the sender, only set on responses.
|
|
29
58
|
attr_reader :debited
|
|
30
59
|
# The FinancialAccount that funds were pulled from.
|
|
31
60
|
attr_reader :financial_account
|
|
32
61
|
|
|
33
62
|
def self.inner_class_types
|
|
34
|
-
@inner_class_types = {}
|
|
63
|
+
@inner_class_types = { debited: Debited }
|
|
35
64
|
end
|
|
36
65
|
|
|
37
66
|
def self.field_remappings
|
|
@@ -117,6 +146,20 @@ module Stripe
|
|
|
117
146
|
end
|
|
118
147
|
|
|
119
148
|
class To < ::Stripe::StripeObject
|
|
149
|
+
class Credited < ::Stripe::StripeObject
|
|
150
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
151
|
+
attr_reader :value
|
|
152
|
+
# 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).
|
|
153
|
+
attr_reader :currency
|
|
154
|
+
|
|
155
|
+
def self.inner_class_types
|
|
156
|
+
@inner_class_types = {}
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
def self.field_remappings
|
|
160
|
+
@field_remappings = {}
|
|
161
|
+
end
|
|
162
|
+
end
|
|
120
163
|
# The monetary amount being credited to the destination.
|
|
121
164
|
attr_reader :credited
|
|
122
165
|
# The payout method which the OutboundPayment uses to send payout.
|
|
@@ -125,7 +168,7 @@ module Stripe
|
|
|
125
168
|
attr_reader :recipient
|
|
126
169
|
|
|
127
170
|
def self.inner_class_types
|
|
128
|
-
@inner_class_types = {}
|
|
171
|
+
@inner_class_types = { credited: Credited }
|
|
129
172
|
end
|
|
130
173
|
|
|
131
174
|
def self.field_remappings
|
|
@@ -200,6 +243,7 @@ module Stripe
|
|
|
200
243
|
|
|
201
244
|
def self.inner_class_types
|
|
202
245
|
@inner_class_types = {
|
|
246
|
+
amount: Amount,
|
|
203
247
|
delivery_options: DeliveryOptions,
|
|
204
248
|
from: From,
|
|
205
249
|
recipient_notification: RecipientNotification,
|
|
@@ -11,6 +11,21 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.outbound_payment_quote"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
|
|
14
29
|
class DeliveryOptions < ::Stripe::StripeObject
|
|
15
30
|
# Open Enum. Method for bank account.
|
|
16
31
|
attr_reader :bank_account
|
|
@@ -25,13 +40,27 @@ module Stripe
|
|
|
25
40
|
end
|
|
26
41
|
|
|
27
42
|
class EstimatedFee < ::Stripe::StripeObject
|
|
43
|
+
class Amount < ::Stripe::StripeObject
|
|
44
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
45
|
+
attr_reader :value
|
|
46
|
+
# 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).
|
|
47
|
+
attr_reader :currency
|
|
48
|
+
|
|
49
|
+
def self.inner_class_types
|
|
50
|
+
@inner_class_types = {}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.field_remappings
|
|
54
|
+
@field_remappings = {}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
28
57
|
# The fee amount for corresponding fee type.
|
|
29
58
|
attr_reader :amount
|
|
30
59
|
# The fee type.
|
|
31
60
|
attr_reader :type
|
|
32
61
|
|
|
33
62
|
def self.inner_class_types
|
|
34
|
-
@inner_class_types = {}
|
|
63
|
+
@inner_class_types = { amount: Amount }
|
|
35
64
|
end
|
|
36
65
|
|
|
37
66
|
def self.field_remappings
|
|
@@ -40,13 +69,27 @@ module Stripe
|
|
|
40
69
|
end
|
|
41
70
|
|
|
42
71
|
class From < ::Stripe::StripeObject
|
|
72
|
+
class Debited < ::Stripe::StripeObject
|
|
73
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
74
|
+
attr_reader :value
|
|
75
|
+
# 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).
|
|
76
|
+
attr_reader :currency
|
|
77
|
+
|
|
78
|
+
def self.inner_class_types
|
|
79
|
+
@inner_class_types = {}
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def self.field_remappings
|
|
83
|
+
@field_remappings = {}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
43
86
|
# The monetary amount debited from the sender, only set on responses.
|
|
44
87
|
attr_reader :debited
|
|
45
88
|
# The FinancialAccount that funds were pulled from.
|
|
46
89
|
attr_reader :financial_account
|
|
47
90
|
|
|
48
91
|
def self.inner_class_types
|
|
49
|
-
@inner_class_types = {}
|
|
92
|
+
@inner_class_types = { debited: Debited }
|
|
50
93
|
end
|
|
51
94
|
|
|
52
95
|
def self.field_remappings
|
|
@@ -88,6 +131,20 @@ module Stripe
|
|
|
88
131
|
end
|
|
89
132
|
|
|
90
133
|
class To < ::Stripe::StripeObject
|
|
134
|
+
class Credited < ::Stripe::StripeObject
|
|
135
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
136
|
+
attr_reader :value
|
|
137
|
+
# 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).
|
|
138
|
+
attr_reader :currency
|
|
139
|
+
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {}
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.field_remappings
|
|
145
|
+
@field_remappings = {}
|
|
146
|
+
end
|
|
147
|
+
end
|
|
91
148
|
# The monetary amount being credited to the destination.
|
|
92
149
|
attr_reader :credited
|
|
93
150
|
# The payout method which the OutboundPayment uses to send payout.
|
|
@@ -96,7 +153,7 @@ module Stripe
|
|
|
96
153
|
attr_reader :recipient
|
|
97
154
|
|
|
98
155
|
def self.inner_class_types
|
|
99
|
-
@inner_class_types = {}
|
|
156
|
+
@inner_class_types = { credited: Credited }
|
|
100
157
|
end
|
|
101
158
|
|
|
102
159
|
def self.field_remappings
|
|
@@ -127,6 +184,7 @@ module Stripe
|
|
|
127
184
|
|
|
128
185
|
def self.inner_class_types
|
|
129
186
|
@inner_class_types = {
|
|
187
|
+
amount: Amount,
|
|
130
188
|
delivery_options: DeliveryOptions,
|
|
131
189
|
estimated_fees: EstimatedFee,
|
|
132
190
|
from: From,
|
|
@@ -11,6 +11,21 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.outbound_transfer"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
|
|
14
29
|
class DeliveryOptions < ::Stripe::StripeObject
|
|
15
30
|
# Open Enum. Method for bank account.
|
|
16
31
|
attr_reader :bank_account
|
|
@@ -25,13 +40,27 @@ module Stripe
|
|
|
25
40
|
end
|
|
26
41
|
|
|
27
42
|
class From < ::Stripe::StripeObject
|
|
43
|
+
class Debited < ::Stripe::StripeObject
|
|
44
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
45
|
+
attr_reader :value
|
|
46
|
+
# 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).
|
|
47
|
+
attr_reader :currency
|
|
48
|
+
|
|
49
|
+
def self.inner_class_types
|
|
50
|
+
@inner_class_types = {}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.field_remappings
|
|
54
|
+
@field_remappings = {}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
28
57
|
# The monetary amount debited from the sender, only set on responses.
|
|
29
58
|
attr_reader :debited
|
|
30
59
|
# The FinancialAccount that funds were pulled from.
|
|
31
60
|
attr_reader :financial_account
|
|
32
61
|
|
|
33
62
|
def self.inner_class_types
|
|
34
|
-
@inner_class_types = {}
|
|
63
|
+
@inner_class_types = { debited: Debited }
|
|
35
64
|
end
|
|
36
65
|
|
|
37
66
|
def self.field_remappings
|
|
@@ -103,13 +132,27 @@ module Stripe
|
|
|
103
132
|
end
|
|
104
133
|
|
|
105
134
|
class To < ::Stripe::StripeObject
|
|
135
|
+
class Credited < ::Stripe::StripeObject
|
|
136
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
137
|
+
attr_reader :value
|
|
138
|
+
# 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).
|
|
139
|
+
attr_reader :currency
|
|
140
|
+
|
|
141
|
+
def self.inner_class_types
|
|
142
|
+
@inner_class_types = {}
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def self.field_remappings
|
|
146
|
+
@field_remappings = {}
|
|
147
|
+
end
|
|
148
|
+
end
|
|
106
149
|
# The monetary amount being credited to the destination.
|
|
107
150
|
attr_reader :credited
|
|
108
151
|
# The payout method which the OutboundTransfer uses to send payout.
|
|
109
152
|
attr_reader :payout_method
|
|
110
153
|
|
|
111
154
|
def self.inner_class_types
|
|
112
|
-
@inner_class_types = {}
|
|
155
|
+
@inner_class_types = { credited: Credited }
|
|
113
156
|
end
|
|
114
157
|
|
|
115
158
|
def self.field_remappings
|
|
@@ -180,6 +223,7 @@ module Stripe
|
|
|
180
223
|
|
|
181
224
|
def self.inner_class_types
|
|
182
225
|
@inner_class_types = {
|
|
226
|
+
amount: Amount,
|
|
183
227
|
delivery_options: DeliveryOptions,
|
|
184
228
|
from: From,
|
|
185
229
|
status_details: StatusDetails,
|
|
@@ -11,6 +11,36 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.received_credit"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
|
|
29
|
+
class ExternalAmount < ::Stripe::StripeObject
|
|
30
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
31
|
+
attr_reader :value
|
|
32
|
+
# 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).
|
|
33
|
+
attr_reader :currency
|
|
34
|
+
|
|
35
|
+
def self.inner_class_types
|
|
36
|
+
@inner_class_types = {}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.field_remappings
|
|
40
|
+
@field_remappings = {}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
14
44
|
class StatusDetails < ::Stripe::StripeObject
|
|
15
45
|
class Failed < ::Stripe::StripeObject
|
|
16
46
|
# Open Enum. The `failed` status reason.
|
|
@@ -214,6 +244,8 @@ module Stripe
|
|
|
214
244
|
|
|
215
245
|
def self.inner_class_types
|
|
216
246
|
@inner_class_types = {
|
|
247
|
+
amount: Amount,
|
|
248
|
+
external_amount: ExternalAmount,
|
|
217
249
|
status_details: StatusDetails,
|
|
218
250
|
status_transitions: StatusTransitions,
|
|
219
251
|
balance_transfer: BalanceTransfer,
|
|
@@ -11,6 +11,36 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.received_debit"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
|
|
29
|
+
class ExternalAmount < ::Stripe::StripeObject
|
|
30
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
31
|
+
attr_reader :value
|
|
32
|
+
# 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).
|
|
33
|
+
attr_reader :currency
|
|
34
|
+
|
|
35
|
+
def self.inner_class_types
|
|
36
|
+
@inner_class_types = {}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.field_remappings
|
|
40
|
+
@field_remappings = {}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
14
44
|
class StatusDetails < ::Stripe::StripeObject
|
|
15
45
|
class Failed < ::Stripe::StripeObject
|
|
16
46
|
# Open Enum. The reason for the failure of the ReceivedDebit.
|
|
@@ -125,6 +155,8 @@ module Stripe
|
|
|
125
155
|
|
|
126
156
|
def self.inner_class_types
|
|
127
157
|
@inner_class_types = {
|
|
158
|
+
amount: Amount,
|
|
159
|
+
external_amount: ExternalAmount,
|
|
128
160
|
status_details: StatusDetails,
|
|
129
161
|
status_transitions: StatusTransitions,
|
|
130
162
|
bank_transfer: BankTransfer,
|