Class: Peddler::APIs::FinancesV0::Promotion

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

#promotion_amountPeddler::Money? (readonly)

Returns the value of attribute promotion_amount.

Returns:



707
708
709
# File 'sig/peddler/apis/finances_v0.rbs', line 707

def promotion_amount
  @promotion_amount
end

#promotion_idString? (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String, nil)


708
709
710
# File 'sig/peddler/apis/finances_v0.rbs', line 708

def promotion_id
  @promotion_id
end

#promotion_typeString? (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String, nil)


709
710
711
# File 'sig/peddler/apis/finances_v0.rbs', line 709

def promotion_type
  @promotion_type
end

Class Method Details

.[](promotion_amount:, promotion_id:, promotion_type:) ⇒ Peddler::APIs::FinancesV0::Promotion .[](arg0, arg1, arg2) ⇒ Peddler::APIs::FinancesV0::Promotion

Overloads:



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

def self.[]: (?promotion_amount: Peddler::Money?, ?promotion_id: String?, ?promotion_type: String?) -> Peddler::APIs::FinancesV0::Promotion
| (Peddler::Money?, String?, String?) -> Peddler::APIs::FinancesV0::Promotion

.members[ :promotion_amount, :promotion_id, :promotion_type ]

Returns:

  • ([ :promotion_amount, :promotion_id, :promotion_type ])


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

def self.members: () -> [ :promotion_amount, :promotion_id, :promotion_type ]

.new(promotion_amount:, promotion_id:, promotion_type:) ⇒ Peddler::APIs::FinancesV0::Promotion .new(arg0, arg1, arg2) ⇒ Peddler::APIs::FinancesV0::Promotion

Overloads:



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

def self.new: (?promotion_amount: Peddler::Money?, ?promotion_id: String?, ?promotion_type: String?) -> Peddler::APIs::FinancesV0::Promotion
| (Peddler::Money?, String?, String?) -> Peddler::APIs::FinancesV0::Promotion

.parsePeddler::APIs::FinancesV0::Promotion

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :promotion_amount, :promotion_id, :promotion_type ]

Returns:

  • ([ :promotion_amount, :promotion_id, :promotion_type ])


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

def members: () -> [ :promotion_amount, :promotion_id, :promotion_type ]

#to_h{ promotion_amount: Peddler::Money?, promotion_id: String?, promotion_type: String? }

Returns:

  • ({ promotion_amount: Peddler::Money?, promotion_id: String?, promotion_type: String? })


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

def to_h: () -> { promotion_amount: Peddler::Money?, promotion_id: String?, promotion_type: String? }