processout 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/processout/card.rb +7 -7
- data/lib/processout/customer.rb +9 -9
- data/lib/processout/product.rb +0 -24
- data/lib/processout/transaction.rb +20 -0
- data/lib/processout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7985fd921d5623bedc7d113b903bcd9cb6433d
|
4
|
+
data.tar.gz: 4c1ccf76fa631b0ae8231695b5e5c1bd33f963f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4dfedb1e2b7d75bf507ad4de1322aba80adee74ae5a21064925227c5e70da5de64f0b2cda18e289ab5f3bc2a9662dcb2a33bbba8194a899e3dbe7ce101d5dd
|
7
|
+
data.tar.gz: a205c030187a0d55352b20d074efbe1e42e27ab5b2385cde13148d4ee4f2019a6f2b4d56492227d375693d13436ec9186560dc64d63a3cf0f709dd70b1a532fb
|
data/lib/processout/card.rb
CHANGED
@@ -26,7 +26,7 @@ module ProcessOut
|
|
26
26
|
attr_reader :address2
|
27
27
|
attr_reader :city
|
28
28
|
attr_reader :state
|
29
|
-
attr_reader :
|
29
|
+
attr_reader :country_code
|
30
30
|
attr_reader :zip
|
31
31
|
attr_reader :metadata
|
32
32
|
attr_reader :expires_soon
|
@@ -134,8 +134,8 @@ module ProcessOut
|
|
134
134
|
@state = val
|
135
135
|
end
|
136
136
|
|
137
|
-
def
|
138
|
-
@
|
137
|
+
def country_code=(val)
|
138
|
+
@country_code = val
|
139
139
|
end
|
140
140
|
|
141
141
|
def zip=(val)
|
@@ -185,7 +185,7 @@ module ProcessOut
|
|
185
185
|
self.address2 = data.fetch(:address2, nil)
|
186
186
|
self.city = data.fetch(:city, nil)
|
187
187
|
self.state = data.fetch(:state, nil)
|
188
|
-
self.
|
188
|
+
self.country_code = data.fetch(:country_code, nil)
|
189
189
|
self.zip = data.fetch(:zip, nil)
|
190
190
|
self.metadata = data.fetch(:metadata, nil)
|
191
191
|
self.expires_soon = data.fetch(:expires_soon, nil)
|
@@ -263,8 +263,8 @@ module ProcessOut
|
|
263
263
|
if data.include? "state"
|
264
264
|
self.state = data["state"]
|
265
265
|
end
|
266
|
-
if data.include? "
|
267
|
-
self.
|
266
|
+
if data.include? "country_code"
|
267
|
+
self.country_code = data["country_code"]
|
268
268
|
end
|
269
269
|
if data.include? "zip"
|
270
270
|
self.zip = data["zip"]
|
@@ -311,7 +311,7 @@ module ProcessOut
|
|
311
311
|
self.address2 = data.fetch(:address2, self.address2)
|
312
312
|
self.city = data.fetch(:city, self.city)
|
313
313
|
self.state = data.fetch(:state, self.state)
|
314
|
-
self.
|
314
|
+
self.country_code = data.fetch(:country_code, self.country_code)
|
315
315
|
self.zip = data.fetch(:zip, self.zip)
|
316
316
|
self.metadata = data.fetch(:metadata, self.metadata)
|
317
317
|
self.expires_soon = data.fetch(:expires_soon, self.expires_soon)
|
data/lib/processout/customer.rb
CHANGED
@@ -25,7 +25,7 @@ module ProcessOut
|
|
25
25
|
attr_reader :city
|
26
26
|
attr_reader :state
|
27
27
|
attr_reader :zip
|
28
|
-
attr_reader :
|
28
|
+
attr_reader :country_code
|
29
29
|
attr_reader :transactions_count
|
30
30
|
attr_reader :subscriptions_count
|
31
31
|
attr_reader :mrr_local
|
@@ -179,8 +179,8 @@ module ProcessOut
|
|
179
179
|
@zip = val
|
180
180
|
end
|
181
181
|
|
182
|
-
def
|
183
|
-
@
|
182
|
+
def country_code=(val)
|
183
|
+
@country_code = val
|
184
184
|
end
|
185
185
|
|
186
186
|
def transactions_count=(val)
|
@@ -237,7 +237,7 @@ module ProcessOut
|
|
237
237
|
self.city = data.fetch(:city, nil)
|
238
238
|
self.state = data.fetch(:state, nil)
|
239
239
|
self.zip = data.fetch(:zip, nil)
|
240
|
-
self.
|
240
|
+
self.country_code = data.fetch(:country_code, nil)
|
241
241
|
self.transactions_count = data.fetch(:transactions_count, nil)
|
242
242
|
self.subscriptions_count = data.fetch(:subscriptions_count, nil)
|
243
243
|
self.mrr_local = data.fetch(:mrr_local, nil)
|
@@ -314,8 +314,8 @@ module ProcessOut
|
|
314
314
|
if data.include? "zip"
|
315
315
|
self.zip = data["zip"]
|
316
316
|
end
|
317
|
-
if data.include? "
|
318
|
-
self.
|
317
|
+
if data.include? "country_code"
|
318
|
+
self.country_code = data["country_code"]
|
319
319
|
end
|
320
320
|
if data.include? "transactions_count"
|
321
321
|
self.transactions_count = data["transactions_count"]
|
@@ -367,7 +367,7 @@ module ProcessOut
|
|
367
367
|
self.city = data.fetch(:city, self.city)
|
368
368
|
self.state = data.fetch(:state, self.state)
|
369
369
|
self.zip = data.fetch(:zip, self.zip)
|
370
|
-
self.
|
370
|
+
self.country_code = data.fetch(:country_code, self.country_code)
|
371
371
|
self.transactions_count = data.fetch(:transactions_count, self.transactions_count)
|
372
372
|
self.subscriptions_count = data.fetch(:subscriptions_count, self.subscriptions_count)
|
373
373
|
self.mrr_local = data.fetch(:mrr_local, self.mrr_local)
|
@@ -565,7 +565,7 @@ module ProcessOut
|
|
565
565
|
"city" => @city,
|
566
566
|
"state" => @state,
|
567
567
|
"zip" => @zip,
|
568
|
-
"
|
568
|
+
"country_code" => @country_code,
|
569
569
|
"metadata" => @metadata
|
570
570
|
}
|
571
571
|
|
@@ -630,7 +630,7 @@ module ProcessOut
|
|
630
630
|
"city" => @city,
|
631
631
|
"state" => @state,
|
632
632
|
"zip" => @zip,
|
633
|
-
"
|
633
|
+
"country_code" => @country_code,
|
634
634
|
"metadata" => @metadata
|
635
635
|
}
|
636
636
|
|
data/lib/processout/product.rb
CHANGED
@@ -15,8 +15,6 @@ module ProcessOut
|
|
15
15
|
attr_reader :amount
|
16
16
|
attr_reader :currency
|
17
17
|
attr_reader :metadata
|
18
|
-
attr_reader :request_email
|
19
|
-
attr_reader :request_shipping
|
20
18
|
attr_reader :return_url
|
21
19
|
attr_reader :cancel_url
|
22
20
|
attr_reader :sandbox
|
@@ -67,14 +65,6 @@ module ProcessOut
|
|
67
65
|
@metadata = val
|
68
66
|
end
|
69
67
|
|
70
|
-
def request_email=(val)
|
71
|
-
@request_email = val
|
72
|
-
end
|
73
|
-
|
74
|
-
def request_shipping=(val)
|
75
|
-
@request_shipping = val
|
76
|
-
end
|
77
|
-
|
78
68
|
def return_url=(val)
|
79
69
|
@return_url = val
|
80
70
|
end
|
@@ -107,8 +97,6 @@ module ProcessOut
|
|
107
97
|
self.amount = data.fetch(:amount, nil)
|
108
98
|
self.currency = data.fetch(:currency, nil)
|
109
99
|
self.metadata = data.fetch(:metadata, nil)
|
110
|
-
self.request_email = data.fetch(:request_email, nil)
|
111
|
-
self.request_shipping = data.fetch(:request_shipping, nil)
|
112
100
|
self.return_url = data.fetch(:return_url, nil)
|
113
101
|
self.cancel_url = data.fetch(:cancel_url, nil)
|
114
102
|
self.sandbox = data.fetch(:sandbox, nil)
|
@@ -152,12 +140,6 @@ module ProcessOut
|
|
152
140
|
if data.include? "metadata"
|
153
141
|
self.metadata = data["metadata"]
|
154
142
|
end
|
155
|
-
if data.include? "request_email"
|
156
|
-
self.request_email = data["request_email"]
|
157
|
-
end
|
158
|
-
if data.include? "request_shipping"
|
159
|
-
self.request_shipping = data["request_shipping"]
|
160
|
-
end
|
161
143
|
if data.include? "return_url"
|
162
144
|
self.return_url = data["return_url"]
|
163
145
|
end
|
@@ -189,8 +171,6 @@ module ProcessOut
|
|
189
171
|
self.amount = data.fetch(:amount, self.amount)
|
190
172
|
self.currency = data.fetch(:currency, self.currency)
|
191
173
|
self.metadata = data.fetch(:metadata, self.metadata)
|
192
|
-
self.request_email = data.fetch(:request_email, self.request_email)
|
193
|
-
self.request_shipping = data.fetch(:request_shipping, self.request_shipping)
|
194
174
|
self.return_url = data.fetch(:return_url, self.return_url)
|
195
175
|
self.cancel_url = data.fetch(:cancel_url, self.cancel_url)
|
196
176
|
self.sandbox = data.fetch(:sandbox, self.sandbox)
|
@@ -266,8 +246,6 @@ module ProcessOut
|
|
266
246
|
"amount" => @amount,
|
267
247
|
"currency" => @currency,
|
268
248
|
"metadata" => @metadata,
|
269
|
-
"request_email" => @request_email,
|
270
|
-
"request_shipping" => @request_shipping,
|
271
249
|
"return_url" => @return_url,
|
272
250
|
"cancel_url" => @cancel_url
|
273
251
|
}
|
@@ -327,8 +305,6 @@ module ProcessOut
|
|
327
305
|
"amount" => @amount,
|
328
306
|
"currency" => @currency,
|
329
307
|
"metadata" => @metadata,
|
330
|
-
"request_email" => @request_email,
|
331
|
-
"request_shipping" => @request_shipping,
|
332
308
|
"return_url" => @return_url,
|
333
309
|
"cancel_url" => @cancel_url
|
334
310
|
}
|
@@ -23,9 +23,11 @@ module ProcessOut
|
|
23
23
|
attr_reader :operations
|
24
24
|
attr_reader :refunds
|
25
25
|
attr_reader :name
|
26
|
+
attr_reader :amount
|
26
27
|
attr_reader :authorized_amount
|
27
28
|
attr_reader :captured_amount
|
28
29
|
attr_reader :currency
|
30
|
+
attr_reader :error_code
|
29
31
|
attr_reader :status
|
30
32
|
attr_reader :authorized
|
31
33
|
attr_reader :captured
|
@@ -205,6 +207,10 @@ module ProcessOut
|
|
205
207
|
@name = val
|
206
208
|
end
|
207
209
|
|
210
|
+
def amount=(val)
|
211
|
+
@amount = val
|
212
|
+
end
|
213
|
+
|
208
214
|
def authorized_amount=(val)
|
209
215
|
@authorized_amount = val
|
210
216
|
end
|
@@ -217,6 +223,10 @@ module ProcessOut
|
|
217
223
|
@currency = val
|
218
224
|
end
|
219
225
|
|
226
|
+
def error_code=(val)
|
227
|
+
@error_code = val
|
228
|
+
end
|
229
|
+
|
220
230
|
def status=(val)
|
221
231
|
@status = val
|
222
232
|
end
|
@@ -277,9 +287,11 @@ module ProcessOut
|
|
277
287
|
self.operations = data.fetch(:operations, nil)
|
278
288
|
self.refunds = data.fetch(:refunds, nil)
|
279
289
|
self.name = data.fetch(:name, nil)
|
290
|
+
self.amount = data.fetch(:amount, nil)
|
280
291
|
self.authorized_amount = data.fetch(:authorized_amount, nil)
|
281
292
|
self.captured_amount = data.fetch(:captured_amount, nil)
|
282
293
|
self.currency = data.fetch(:currency, nil)
|
294
|
+
self.error_code = data.fetch(:error_code, nil)
|
283
295
|
self.status = data.fetch(:status, nil)
|
284
296
|
self.authorized = data.fetch(:authorized, nil)
|
285
297
|
self.captured = data.fetch(:captured, nil)
|
@@ -352,6 +364,9 @@ module ProcessOut
|
|
352
364
|
if data.include? "name"
|
353
365
|
self.name = data["name"]
|
354
366
|
end
|
367
|
+
if data.include? "amount"
|
368
|
+
self.amount = data["amount"]
|
369
|
+
end
|
355
370
|
if data.include? "authorized_amount"
|
356
371
|
self.authorized_amount = data["authorized_amount"]
|
357
372
|
end
|
@@ -361,6 +376,9 @@ module ProcessOut
|
|
361
376
|
if data.include? "currency"
|
362
377
|
self.currency = data["currency"]
|
363
378
|
end
|
379
|
+
if data.include? "error_code"
|
380
|
+
self.error_code = data["error_code"]
|
381
|
+
end
|
364
382
|
if data.include? "status"
|
365
383
|
self.status = data["status"]
|
366
384
|
end
|
@@ -415,9 +433,11 @@ module ProcessOut
|
|
415
433
|
self.operations = data.fetch(:operations, self.operations)
|
416
434
|
self.refunds = data.fetch(:refunds, self.refunds)
|
417
435
|
self.name = data.fetch(:name, self.name)
|
436
|
+
self.amount = data.fetch(:amount, self.amount)
|
418
437
|
self.authorized_amount = data.fetch(:authorized_amount, self.authorized_amount)
|
419
438
|
self.captured_amount = data.fetch(:captured_amount, self.captured_amount)
|
420
439
|
self.currency = data.fetch(:currency, self.currency)
|
440
|
+
self.error_code = data.fetch(:error_code, self.error_code)
|
421
441
|
self.status = data.fetch(:status, self.status)
|
422
442
|
self.authorized = data.fetch(:authorized, self.authorized)
|
423
443
|
self.captured = data.fetch(:captured, self.captured)
|
data/lib/processout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel HUEZ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|