paydunya 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/paydunya/checkout/redirect_invoice.rb +14 -1
- data/lib/paydunya/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 934287e1133d4eca514300827903dbfa939cd6fa
|
4
|
+
data.tar.gz: 0a68264701e40790096e062b37ac15fcfbf8baef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b11aeb96277f4e239c46228f69779c752cd282076c810873f9c0fba24c121f6c5dd2ddeb1dc3afb4e8437ab8cf3bae3ecadfdd36d5f9bb8450071e60dcb94297
|
7
|
+
data.tar.gz: e0e2287526cae31db3138d3f1cbc39138239aeccc18a8258b79930ce5606ae1ce1ebeff22b1d869e02219283c77822e1cc8b77632442752033d53bab040f572c
|
@@ -8,6 +8,7 @@ module Paydunya
|
|
8
8
|
def initialize
|
9
9
|
@items = {}
|
10
10
|
@taxes = {}
|
11
|
+
@channels = []
|
11
12
|
@custom_data = {}
|
12
13
|
@customer = {}
|
13
14
|
@total_amount = 0.0
|
@@ -41,6 +42,17 @@ module Paydunya
|
|
41
42
|
})
|
42
43
|
end
|
43
44
|
|
45
|
+
def add_channel(channel)
|
46
|
+
@channels << channel
|
47
|
+
end
|
48
|
+
|
49
|
+
def add_channels(channels)
|
50
|
+
@channels = []
|
51
|
+
channels.each do |channel|
|
52
|
+
@channels << channels
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
44
56
|
def add_custom_data(key,value)
|
45
57
|
@custom_data["#{key}"] = value
|
46
58
|
end
|
@@ -96,6 +108,7 @@ module Paydunya
|
|
96
108
|
{ :invoice => {
|
97
109
|
:items => @items,
|
98
110
|
:taxes => @taxes,
|
111
|
+
:channels => @channels,
|
99
112
|
:total_amount => @total_amount,
|
100
113
|
:description => description
|
101
114
|
},
|
@@ -145,4 +158,4 @@ module Paydunya
|
|
145
158
|
end
|
146
159
|
end
|
147
160
|
end
|
148
|
-
end
|
161
|
+
end
|
data/lib/paydunya/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paydunya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PAYDUNYA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.6.8
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Ruby client bindings for the PAYDUNYA API
|