Class: Gemgento::API::SOAP::GiftCard
- Inherits:
-
Object
- Object
- Gemgento::API::SOAP::GiftCard
- Defined in:
- lib/gemgento/api/soap/gift_card.rb
Class Method Summary collapse
- .check(code) ⇒ Object
- .create(data) ⇒ Object
- .history(code) ⇒ Object
- .quote_add(quote_id, code, store_id) ⇒ Object
- .quote_remove(quote_id, code, store_id) ⇒ Object
- .update(code, data) ⇒ Object
Class Method Details
.check(code) ⇒ Object
6 7 8 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 6 def self.check(code) MagentoApi.create_call(:giftcard_check, code: code) end |
.create(data) ⇒ Object
14 15 16 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 14 def self.create(data) MagentoApi.create_call(:giftcard_create, data: data) end |
.history(code) ⇒ Object
10 11 12 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 10 def self.history(code) MagentoApi.create_call(:giftcard_history, code: code) end |
.quote_add(quote_id, code, store_id) ⇒ Object
22 23 24 25 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 22 def self.quote_add(quote_id, code, store_id) = { quote_id: quote_id, code: code, store_id: store_id } MagentoApi.create_call(:giftcard_quote_add, ) end |
.quote_remove(quote_id, code, store_id) ⇒ Object
27 28 29 30 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 27 def self.quote_remove(quote_id, code, store_id) = { quote_id: quote_id, code: code } MagentoApi.create_call(:giftcard_quote_remove, ) end |
.update(code, data) ⇒ Object
18 19 20 |
# File 'lib/gemgento/api/soap/gift_card.rb', line 18 def self.update(code, data) MagentoApi.create_call(:giftcard_update, code: code, data: data) end |