Class: Peddler::APIs::Promotions20251201::VariableFee

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

#fee_cap_amountPeddler::Money? (readonly)

Returns the value of attribute fee_cap_amount.

Returns:



690
691
692
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 690

def fee_cap_amount
  @fee_cap_amount
end

#sales_percentageFloat (readonly)

Returns the value of attribute sales_percentage.

Returns:

  • (Float)


691
692
693
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 691

def sales_percentage
  @sales_percentage
end

Class Method Details

.[](sales_percentage:, fee_cap_amount:) ⇒ Peddler::APIs::Promotions20251201::VariableFee .[](arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::VariableFee

Overloads:



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

def self.[]: (sales_percentage: Float, ?fee_cap_amount: Peddler::Money?) -> Peddler::APIs::Promotions20251201::VariableFee
| (Float, Peddler::Money?) -> Peddler::APIs::Promotions20251201::VariableFee

.members[ :sales_percentage, :fee_cap_amount ]

Returns:

  • ([ :sales_percentage, :fee_cap_amount ])


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

def self.members: () -> [ :sales_percentage, :fee_cap_amount ]

.new(sales_percentage:, fee_cap_amount:) ⇒ Peddler::APIs::Promotions20251201::VariableFee .new(arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::VariableFee

Overloads:



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

def self.new: (sales_percentage: Float, ?fee_cap_amount: Peddler::Money?) -> Peddler::APIs::Promotions20251201::VariableFee
| (Float, Peddler::Money?) -> Peddler::APIs::Promotions20251201::VariableFee

.parsePeddler::APIs::Promotions20251201::VariableFee

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :sales_percentage, :fee_cap_amount ]

Returns:

  • ([ :sales_percentage, :fee_cap_amount ])


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

def members: () -> [ :sales_percentage, :fee_cap_amount ]

#to_h{ sales_percentage: Float, fee_cap_amount: Peddler::Money? }

Returns:



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

def to_h: () -> { sales_percentage: Float, fee_cap_amount: Peddler::Money? }