zaui_zapi 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/zaui.rb +4 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4027bdfbf857f351ffd2aca9f7d0fff0e3c2b859
4
- data.tar.gz: b07d37b5df5fbafd45f6b9ea2deed109bf2f9cb5
3
+ metadata.gz: 28a5f967905ef9acf8bcc023923cc0bf3e3cdc02
4
+ data.tar.gz: 545e96bd6999491c663791491db4bc1408ad6a4e
5
5
  SHA512:
6
- metadata.gz: cd5c769d5f9df7b60139323f1669fac59be5cb8e3943b2e0d8b94e490824f0efcd9fd2d84bb7c901ea1fff699c7f97f2d4ba8e3e811a1f0d82c3b5cfbc9856c3
7
- data.tar.gz: b5f735c0c804418dcb2d7accd2f652935e74887bfae9393621935ac5a4e52a5a193762f6e0ab67ebdfb975329dd59bcaf7f9d44572d7f55a2b2184b17ec6397f
6
+ metadata.gz: 577d3194c72ee66c29a5a209403a73d06f87582c9df9940343a5babe8b09565061f886f36ecc1b18d9047afd1edfaf005c0be0c27abebf8477c78d8494a29bfc
7
+ data.tar.gz: f6944005b3d1ef6f9fa94c32377e7143d920dc698caf1bd7f097404d7355d0e3903c0a5df87965bb5f5db5f34fd7976556724f0eaac2efa5e30f6b0537ad6fa5
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '0.1.4'
1
+ VERSION = '0.1.5'
data/lib/zaui.rb CHANGED
@@ -51,6 +51,10 @@ class Zaui
51
51
  raw = _zapi(request)
52
52
  end
53
53
 
54
+ def promotion_code_apply code:
55
+ raw = _zapi(xml.promotion_code_apply(promo_code: code))
56
+ end
57
+
54
58
  def process_cart_with_payment hash: {}
55
59
  cart_data = {
56
60
  name_on_card: hash[:name_on_card],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaui_zapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Kretzmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-17 00:00:00.000000000 Z
11
+ date: 2015-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest