lib/purecloud/models/quote.rb in purecloud-0.18.0 vs lib/purecloud/models/quote.rb in purecloud-0.25.0

- old
+ new

@@ -45,10 +45,12 @@ attr_accessor :discount_codes attr_accessor :sales_partner_code + attr_accessor :is_annual_prepay + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -94,10 +96,12 @@ :'discount_codes' => :'discountCodes', :'sales_partner_code' => :'salesPartnerCode', + :'is_annual_prepay' => :'isAnnualPrepay', + :'self_uri' => :'selfUri' } end @@ -123,10 +127,11 @@ :'charges' => :'Array<QuoteCharge>', :'edge_control_model' => :'String', :'referral_codes' => :'Array<String>', :'discount_codes' => :'Array<String>', :'sales_partner_code' => :'String', + :'is_annual_prepay' => :'BOOLEAN', :'self_uri' => :'String' } end @@ -233,10 +238,16 @@ if attributes[:'salesPartnerCode'] self.sales_partner_code = attributes[:'salesPartnerCode'] end + if attributes[:'isAnnualPrepay'] + self.is_annual_prepay = attributes[:'isAnnualPrepay'] + else + self.is_annual_prepay = false + end + if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end @@ -282,20 +293,21 @@ charges == o.charges && edge_control_model == o.edge_control_model && referral_codes == o.referral_codes && discount_codes == o.discount_codes && sales_partner_code == o.sales_partner_code && + is_annual_prepay == o.is_annual_prepay && self_uri == o.self_uri end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, purchase_order, type, status, is_submitted, is_pending, is_frozen, currency, created_date, last_updated_date, billing_contact_email, billing_contact_first_name, billing_contact_last_name, billing_contact_phone, include_voice_charges, charges, edge_control_model, referral_codes, discount_codes, sales_partner_code, self_uri].hash + [id, name, purchase_order, type, status, is_submitted, is_pending, is_frozen, currency, created_date, last_updated_date, billing_contact_email, billing_contact_first_name, billing_contact_last_name, billing_contact_phone, include_voice_charges, charges, edge_control_model, referral_codes, discount_codes, sales_partner_code, is_annual_prepay, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)