Class: Peddler::APIs::FinancesV0::ChargeComponent

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/finances_v0.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#charge_amountPeddler::Money? (readonly)

Returns the value of attribute charge_amount.

Returns:



139
140
141
# File 'sig/peddler/apis/finances_v0.rbs', line 139

def charge_amount
  @charge_amount
end

#charge_typeString? (readonly)

Returns the value of attribute charge_type.

Returns:

  • (String, nil)


140
141
142
# File 'sig/peddler/apis/finances_v0.rbs', line 140

def charge_type
  @charge_type
end

Class Method Details

.[](charge_amount:, charge_type:) ⇒ Peddler::APIs::FinancesV0::ChargeComponent .[](arg0, arg1) ⇒ Peddler::APIs::FinancesV0::ChargeComponent

Overloads:



132
133
# File 'sig/peddler/apis/finances_v0.rbs', line 132

def self.[]: (?charge_amount: Peddler::Money?, ?charge_type: String?) -> Peddler::APIs::FinancesV0::ChargeComponent
| (Peddler::Money?, String?) -> Peddler::APIs::FinancesV0::ChargeComponent

.members[ :charge_amount, :charge_type ]

Returns:

  • ([ :charge_amount, :charge_type ])


135
# File 'sig/peddler/apis/finances_v0.rbs', line 135

def self.members: () -> [ :charge_amount, :charge_type ]

.new(charge_amount:, charge_type:) ⇒ Peddler::APIs::FinancesV0::ChargeComponent .new(arg0, arg1) ⇒ Peddler::APIs::FinancesV0::ChargeComponent

Overloads:



130
131
# File 'sig/peddler/apis/finances_v0.rbs', line 130

def self.new: (?charge_amount: Peddler::Money?, ?charge_type: String?) -> Peddler::APIs::FinancesV0::ChargeComponent
| (Peddler::Money?, String?) -> Peddler::APIs::FinancesV0::ChargeComponent

.parsePeddler::APIs::FinancesV0::ChargeComponent

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



137
# File 'sig/peddler/apis/finances_v0.rbs', line 137

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::FinancesV0::ChargeComponent

Instance Method Details

#members[ :charge_amount, :charge_type ]

Returns:

  • ([ :charge_amount, :charge_type ])


142
# File 'sig/peddler/apis/finances_v0.rbs', line 142

def members: () -> [ :charge_amount, :charge_type ]

#to_h{ charge_amount: Peddler::Money?, charge_type: String? }

Returns:



143
# File 'sig/peddler/apis/finances_v0.rbs', line 143

def to_h: () -> { charge_amount: Peddler::Money?, charge_type: String? }