Method: VoucherifySdk::LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderTotalAmount#initialize

Defined in:
lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_total_amount.rb

#initialize(attributes = {}) ⇒ LoyaltiesEarningRulesCreateRequestBodyItemLoyaltyOrderTotalAmount

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_loyalty_order_total_amount.rb', line 56

def initialize(attributes = {})
  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    h[k.to_sym] = v
  }

  if attributes.key?(:'every')
    self.every = attributes[:'every']
  end

  if attributes.key?(:'points')
    self.points = attributes[:'points']
  end
end