class NetSuite::Records::PromotionCode

Attributes

external_id[RW]
internal_id[R]

TODO custom records need to be implemented field :currency_list, PromotionCodeCurrencyList field :apply_discount_to, PromotionCodeApplyDiscountTo field :items_list, PromotionCodeItemsList field :partners_list, PromotionCodePartnersList field :use_type, PromotionCodeUseType

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/netsuite/records/promotion_code.rb, line 30
def initialize(attributes = {})
  @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
  @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
  initialize_from_attributes_hash(attributes)
end