Class: MethodRuby::Models::PaymentCreateParams::Fee

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/payment_create_params.rb,
sig/method_ruby/models/payment_create_params.rbs

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(amount: nil, type: nil) ⇒ Object

Optional fee configuration for the payment.

Parameters:



# File 'lib/method_ruby/models/payment_create_params.rb', line 113

Instance Attribute Details

#amount ⇒ Integer?

Fee amount in cents.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


105
# File 'lib/method_ruby/models/payment_create_params.rb', line 105

optional :amount, Integer

#type ⇒ Symbol, ...

The fee type.



111
# File 'lib/method_ruby/models/payment_create_params.rb', line 111

optional :type, enum: -> { MethodRuby::PaymentCreateParams::Fee::Type }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


112
# File 'sig/method_ruby/models/payment_create_params.rbs', line 112

def to_hash: -> {