Sha256: fd7bd93f2e7770c99730fdb152f2e6c79c563f0596ef798d5cb409096b4cd5d1
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module Gemgento module API module SOAP module Checkout class Coupon # Add Coupon code to a Magento Quote. # # @param quote [Gemgento::Quote] # @param coupon_code [String] # @return [Gemgento::MagentoResponse] def self.add(quote, coupon_code) message = { quote_id: quote.magento_id, coupon_code: coupon_code, store_id: quote.store.magento_id } MagentoApi.create_call(:shopping_cart_coupon_add, message) end # Remove coupon codes from a Magento Quote. # # @param quote [Gemgento::Quote] # @return [Gemgento::MagentoResponse] def self.remove(quote) message = { quote_id: quote.magento_id, store_id: quote.store.magento_id } MagentoApi.create_call(:shopping_cart_coupon_remove, message) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | lib/gemgento/api/soap/checkout/coupon.rb |