lib/ultracart_api/models/coupon.rb in ultracart_api-3.10.85 vs lib/ultracart_api/models/coupon.rb in ultracart_api-3.10.86

- old
+ new

@@ -91,14 +91,22 @@ attr_accessor :merchant_code # Internal notes about this coupon. These are not visible to customer. attr_accessor :merchant_notes + attr_accessor :more_loyalty_cashback + + attr_accessor :more_loyalty_points + attr_accessor :multiple_amounts_off_items attr_accessor :no_discount + attr_accessor :percent_more_loyalty_cashback + + attr_accessor :percent_more_loyalty_points + attr_accessor :percent_off_item_with_items_quantity_purchase attr_accessor :percent_off_items attr_accessor :percent_off_items_and_free_shipping @@ -189,12 +197,16 @@ :'free_shipping_with_items_purchase' => :'free_shipping_with_items_purchase', :'free_shipping_with_subtotal' => :'free_shipping_with_subtotal', :'hide_from_customer' => :'hide_from_customer', :'merchant_code' => :'merchant_code', :'merchant_notes' => :'merchant_notes', + :'more_loyalty_cashback' => :'more_loyalty_cashback', + :'more_loyalty_points' => :'more_loyalty_points', :'multiple_amounts_off_items' => :'multiple_amounts_off_items', :'no_discount' => :'no_discount', + :'percent_more_loyalty_cashback' => :'percent_more_loyalty_cashback', + :'percent_more_loyalty_points' => :'percent_more_loyalty_points', :'percent_off_item_with_items_quantity_purchase' => :'percent_off_item_with_items_quantity_purchase', :'percent_off_items' => :'percent_off_items', :'percent_off_items_and_free_shipping' => :'percent_off_items_and_free_shipping', :'percent_off_items_with_items_purchase' => :'percent_off_items_with_items_purchase', :'percent_off_msrp_items' => :'percent_off_msrp_items', @@ -256,12 +268,16 @@ :'free_shipping_with_items_purchase' => :'CouponFreeShippingWithItemsPurchase', :'free_shipping_with_subtotal' => :'CouponFreeShippingWithSubtotal', :'hide_from_customer' => :'BOOLEAN', :'merchant_code' => :'String', :'merchant_notes' => :'String', + :'more_loyalty_cashback' => :'CouponMoreLoyaltyCashback', + :'more_loyalty_points' => :'CouponMoreLoyaltyPoints', :'multiple_amounts_off_items' => :'CouponMultipleAmountsOffItems', :'no_discount' => :'CouponNoDiscount', + :'percent_more_loyalty_cashback' => :'CouponPercentMoreLoyaltyCashback', + :'percent_more_loyalty_points' => :'CouponPercentMoreLoyaltyPoints', :'percent_off_item_with_items_quantity_purchase' => :'CouponPercentOffItemWithItemsQuantityPurchase', :'percent_off_items' => :'CouponPercentOffItems', :'percent_off_items_and_free_shipping' => :'CouponPercentOffItemsAndFreeShipping', :'percent_off_items_with_items_purchase' => :'CouponPercentOffItemsWithItemsPurchase', :'percent_off_msrp_items' => :'CouponPercentOffMsrpItems', @@ -430,18 +446,34 @@ if attributes.has_key?(:'merchant_notes') self.merchant_notes = attributes[:'merchant_notes'] end + if attributes.has_key?(:'more_loyalty_cashback') + self.more_loyalty_cashback = attributes[:'more_loyalty_cashback'] + end + + if attributes.has_key?(:'more_loyalty_points') + self.more_loyalty_points = attributes[:'more_loyalty_points'] + end + if attributes.has_key?(:'multiple_amounts_off_items') self.multiple_amounts_off_items = attributes[:'multiple_amounts_off_items'] end if attributes.has_key?(:'no_discount') self.no_discount = attributes[:'no_discount'] end + if attributes.has_key?(:'percent_more_loyalty_cashback') + self.percent_more_loyalty_cashback = attributes[:'percent_more_loyalty_cashback'] + end + + if attributes.has_key?(:'percent_more_loyalty_points') + self.percent_more_loyalty_points = attributes[:'percent_more_loyalty_points'] + end + if attributes.has_key?(:'percent_off_item_with_items_quantity_purchase') self.percent_off_item_with_items_quantity_purchase = attributes[:'percent_off_item_with_items_quantity_purchase'] end if attributes.has_key?(:'percent_off_items') @@ -687,12 +719,16 @@ free_shipping_with_items_purchase == o.free_shipping_with_items_purchase && free_shipping_with_subtotal == o.free_shipping_with_subtotal && hide_from_customer == o.hide_from_customer && merchant_code == o.merchant_code && merchant_notes == o.merchant_notes && + more_loyalty_cashback == o.more_loyalty_cashback && + more_loyalty_points == o.more_loyalty_points && multiple_amounts_off_items == o.multiple_amounts_off_items && no_discount == o.no_discount && + percent_more_loyalty_cashback == o.percent_more_loyalty_cashback && + percent_more_loyalty_points == o.percent_more_loyalty_points && percent_off_item_with_items_quantity_purchase == o.percent_off_item_with_items_quantity_purchase && percent_off_items == o.percent_off_items && percent_off_items_and_free_shipping == o.percent_off_items_and_free_shipping && percent_off_items_with_items_purchase == o.percent_off_items_with_items_purchase && percent_off_msrp_items == o.percent_off_msrp_items && @@ -725,10 +761,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, amount_shipping_with_subtotal, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_items, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, tiered_percent_off_subtotal_based_on_msrp, usable_by].hash + [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, amount_shipping_with_subtotal, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, more_loyalty_cashback, more_loyalty_points, multiple_amounts_off_items, no_discount, percent_more_loyalty_cashback, percent_more_loyalty_points, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_items, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, tiered_percent_off_subtotal_based_on_msrp, usable_by].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself