Class: Peddler::APIs::Promotions20251201::Discount

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amount_offFloat? (readonly)

Returns the value of attribute amount_off.

Returns:

  • (Float, nil)


133
134
135
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 133

def amount_off
  @amount_off
end

#currency_codeString? (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String, nil)


134
135
136
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 134

def currency_code
  @currency_code
end

#percent_offFloat? (readonly)

Returns the value of attribute percent_off.

Returns:

  • (Float, nil)


135
136
137
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 135

def percent_off
  @percent_off
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


136
137
138
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 136

def type
  @type
end

Class Method Details

.[](type:, amount_off:, currency_code:, percent_off:) ⇒ Peddler::APIs::Promotions20251201::Discount .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::Discount

Overloads:



126
127
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 126

def self.[]: (type: String, ?amount_off: Float?, ?currency_code: String?, ?percent_off: Float?) -> Peddler::APIs::Promotions20251201::Discount
| (String, Float?, String?, Float?) -> Peddler::APIs::Promotions20251201::Discount

.members[ :type, :amount_off, :currency_code, :percent_off ]

Returns:

  • ([ :type, :amount_off, :currency_code, :percent_off ])


129
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 129

def self.members: () -> [ :type, :amount_off, :currency_code, :percent_off ]

.new(type:, amount_off:, currency_code:, percent_off:) ⇒ Peddler::APIs::Promotions20251201::Discount .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::Discount

Overloads:



124
125
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 124

def self.new: (type: String, ?amount_off: Float?, ?currency_code: String?, ?percent_off: Float?) -> Peddler::APIs::Promotions20251201::Discount
| (String, Float?, String?, Float?) -> Peddler::APIs::Promotions20251201::Discount

.parsePeddler::APIs::Promotions20251201::Discount

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :type, :amount_off, :currency_code, :percent_off ]

Returns:

  • ([ :type, :amount_off, :currency_code, :percent_off ])


138
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 138

def members: () -> [ :type, :amount_off, :currency_code, :percent_off ]

#to_h{ type: String, amount_off: Float?, currency_code: String?, percent_off: Float? }

Returns:

  • ({ type: String, amount_off: Float?, currency_code: String?, percent_off: Float? })


139
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 139

def to_h: () -> { type: String, amount_off: Float?, currency_code: String?, percent_off: Float? }