Class: Gemgento::API::SOAP::GiftCard

Inherits:
Object
  • Object
show all
Defined in:
lib/gemgento/api/soap/gift_card.rb

Class Method Summary collapse

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)
  message = { quote_id: quote_id, code: code, store_id: store_id }
  MagentoApi.create_call(:giftcard_quote_add, message)
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)
  message = { quote_id: quote_id, code: code }
  MagentoApi.create_call(:giftcard_quote_remove, message)
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