Class: Peddler::APIs::ShippingV2::ChargeComponent

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountPeddler::Money? (readonly)

Returns the value of attribute amount.

Returns:



321
322
323
# File 'sig/peddler/apis/shipping_v2.rbs', line 321

def amount
  @amount
end

#charge_typeString? (readonly)

Returns the value of attribute charge_type.

Returns:

  • (String, nil)


322
323
324
# File 'sig/peddler/apis/shipping_v2.rbs', line 322

def charge_type
  @charge_type
end

Class Method Details

.[](amount:, charge_type:) ⇒ Peddler::APIs::ShippingV2::ChargeComponent .[](arg0, arg1) ⇒ Peddler::APIs::ShippingV2::ChargeComponent

Overloads:



314
315
# File 'sig/peddler/apis/shipping_v2.rbs', line 314

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

.members[ :amount, :charge_type ]

Returns:

  • ([ :amount, :charge_type ])


317
# File 'sig/peddler/apis/shipping_v2.rbs', line 317

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

.new(amount:, charge_type:) ⇒ Peddler::APIs::ShippingV2::ChargeComponent .new(arg0, arg1) ⇒ Peddler::APIs::ShippingV2::ChargeComponent

Overloads:



312
313
# File 'sig/peddler/apis/shipping_v2.rbs', line 312

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

.parsePeddler::APIs::ShippingV2::ChargeComponent

Parameters:

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

Returns:



319
# File 'sig/peddler/apis/shipping_v2.rbs', line 319

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

Instance Method Details

#members[ :amount, :charge_type ]

Returns:

  • ([ :amount, :charge_type ])


324
# File 'sig/peddler/apis/shipping_v2.rbs', line 324

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

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

Returns:



325
# File 'sig/peddler/apis/shipping_v2.rbs', line 325

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