Module: MethodRuby::Models::PaymentCreateParams::MethodVersion

Extended by:
Internal::Type::Enum
Defined in:
lib/method_ruby/models/payment_create_params.rb

Constant Summary collapse

METHOD_VERSION_2025_12_01 =
:"2025-12-01"

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(amount:, description:, destination:, source:, method_version:, dry_run: nil, fee: nil, metadata: nil, reversal_account: nil, idempotency_key: nil, request_options: {}) ⇒ Object

Parameters:

  • amount (Integer)

    Payment amount in cents.

  • description (String)

    Human-readable description for the payment.

  • destination (String)

    The destination account ID.

  • source (String)

    The source account ID.

  • method_version (Symbol, MethodRuby::Models::PaymentCreateParams::MethodVersion)
  • dry_run (Boolean) (defaults to: nil)

    Validate the payment request without moving funds.

  • fee (MethodRuby::Models::PaymentCreateParams::Fee) (defaults to: nil)

    Optional fee configuration for the payment.

  • metadata (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Arbitrary key-value metadata attached to the resource.

  • reversal_account (String) (defaults to: nil)

    Account ID to use for the reversal leg of the payment, if applicable.

  • idempotency_key (String) (defaults to: nil)
  • request_options (MethodRuby::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


91
92
93
94
95
96
97
98
# File 'lib/method_ruby/models/payment_create_params.rb', line 91

module MethodVersion
  extend MethodRuby::Internal::Type::Enum

  METHOD_VERSION_2025_12_01 = :"2025-12-01"

  # @!method self.values
  #   @return [Array<Symbol>]
end