processout 2.12.0 → 2.13.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8593863f0a7ec4d99571878ebde67d93c4b2eda
|
4
|
+
data.tar.gz: 5eaef54475cf967ab8cd2b98271c4a1edde2126f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a2c4add75d72c200f3a85c265044511eeb6e2efafdce439f785e5dce9b51854c585a6ca9e597f3ca8a7d7453f657d369ad3dac96d98bb2dc00c3728c084640
|
7
|
+
data.tar.gz: 226e89146f82b210ee93778b73a3f84cafbdf94ec255445eb8779f9f67eca7aa49a9f4876a2ad93edfc15fadd1b87942fa621546e728dd90c6ddfb65c514caba
|
@@ -190,7 +190,7 @@ module ProcessOut
|
|
190
190
|
request = Request.new(@client)
|
191
191
|
path = "/gateway-configurations"
|
192
192
|
data = {
|
193
|
-
|
193
|
+
"expand_merchant_accounts" => options.fetch(:expand_merchant_accounts, nil)
|
194
194
|
}
|
195
195
|
|
196
196
|
response = Response.new(request.get(path, data, options))
|
data/lib/processout/invoice.rb
CHANGED
@@ -30,9 +30,11 @@ module ProcessOut
|
|
30
30
|
attr_reader :statement_descriptor_company
|
31
31
|
attr_reader :statement_descriptor_url
|
32
32
|
attr_reader :metadata
|
33
|
+
attr_reader :gateway_data
|
33
34
|
attr_reader :return_url
|
34
35
|
attr_reader :cancel_url
|
35
36
|
attr_reader :webhook_url
|
37
|
+
attr_reader :require_backend_capture
|
36
38
|
attr_reader :sandbox
|
37
39
|
attr_reader :created_at
|
38
40
|
attr_reader :risk
|
@@ -208,6 +210,10 @@ module ProcessOut
|
|
208
210
|
@metadata = val
|
209
211
|
end
|
210
212
|
|
213
|
+
def gateway_data=(val)
|
214
|
+
@gateway_data = val
|
215
|
+
end
|
216
|
+
|
211
217
|
def return_url=(val)
|
212
218
|
@return_url = val
|
213
219
|
end
|
@@ -220,6 +226,10 @@ module ProcessOut
|
|
220
226
|
@webhook_url = val
|
221
227
|
end
|
222
228
|
|
229
|
+
def require_backend_capture=(val)
|
230
|
+
@require_backend_capture = val
|
231
|
+
end
|
232
|
+
|
223
233
|
def sandbox=(val)
|
224
234
|
@sandbox = val
|
225
235
|
end
|
@@ -307,9 +317,11 @@ module ProcessOut
|
|
307
317
|
self.statement_descriptor_company = data.fetch(:statement_descriptor_company, nil)
|
308
318
|
self.statement_descriptor_url = data.fetch(:statement_descriptor_url, nil)
|
309
319
|
self.metadata = data.fetch(:metadata, nil)
|
320
|
+
self.gateway_data = data.fetch(:gateway_data, nil)
|
310
321
|
self.return_url = data.fetch(:return_url, nil)
|
311
322
|
self.cancel_url = data.fetch(:cancel_url, nil)
|
312
323
|
self.webhook_url = data.fetch(:webhook_url, nil)
|
324
|
+
self.require_backend_capture = data.fetch(:require_backend_capture, nil)
|
313
325
|
self.sandbox = data.fetch(:sandbox, nil)
|
314
326
|
self.created_at = data.fetch(:created_at, nil)
|
315
327
|
self.risk = data.fetch(:risk, nil)
|
@@ -399,6 +411,9 @@ module ProcessOut
|
|
399
411
|
if data.include? "metadata"
|
400
412
|
self.metadata = data["metadata"]
|
401
413
|
end
|
414
|
+
if data.include? "gateway_data"
|
415
|
+
self.gateway_data = data["gateway_data"]
|
416
|
+
end
|
402
417
|
if data.include? "return_url"
|
403
418
|
self.return_url = data["return_url"]
|
404
419
|
end
|
@@ -408,6 +423,9 @@ module ProcessOut
|
|
408
423
|
if data.include? "webhook_url"
|
409
424
|
self.webhook_url = data["webhook_url"]
|
410
425
|
end
|
426
|
+
if data.include? "require_backend_capture"
|
427
|
+
self.require_backend_capture = data["require_backend_capture"]
|
428
|
+
end
|
411
429
|
if data.include? "sandbox"
|
412
430
|
self.sandbox = data["sandbox"]
|
413
431
|
end
|
@@ -457,9 +475,11 @@ module ProcessOut
|
|
457
475
|
self.statement_descriptor_company = data.fetch(:statement_descriptor_company, self.statement_descriptor_company)
|
458
476
|
self.statement_descriptor_url = data.fetch(:statement_descriptor_url, self.statement_descriptor_url)
|
459
477
|
self.metadata = data.fetch(:metadata, self.metadata)
|
478
|
+
self.gateway_data = data.fetch(:gateway_data, self.gateway_data)
|
460
479
|
self.return_url = data.fetch(:return_url, self.return_url)
|
461
480
|
self.cancel_url = data.fetch(:cancel_url, self.cancel_url)
|
462
481
|
self.webhook_url = data.fetch(:webhook_url, self.webhook_url)
|
482
|
+
self.require_backend_capture = data.fetch(:require_backend_capture, self.require_backend_capture)
|
463
483
|
self.sandbox = data.fetch(:sandbox, self.sandbox)
|
464
484
|
self.created_at = data.fetch(:created_at, self.created_at)
|
465
485
|
self.risk = data.fetch(:risk, self.risk)
|
@@ -696,6 +716,7 @@ module ProcessOut
|
|
696
716
|
"name" => @name,
|
697
717
|
"amount" => @amount,
|
698
718
|
"currency" => @currency,
|
719
|
+
"gateway_data" => @gateway_data,
|
699
720
|
"metadata" => @metadata,
|
700
721
|
"details" => @details,
|
701
722
|
"merchant_initiator_type" => @merchant_initiator_type,
|
@@ -709,7 +730,8 @@ module ProcessOut
|
|
709
730
|
"webhook_url" => @webhook_url,
|
710
731
|
"risk" => @risk,
|
711
732
|
"shipping" => @shipping,
|
712
|
-
"device" => @device
|
733
|
+
"device" => @device,
|
734
|
+
"require_backend_capture" => @require_backend_capture
|
713
735
|
}
|
714
736
|
|
715
737
|
response = Response.new(request.post(path, data, options))
|
@@ -13,7 +13,7 @@ module ProcessOut
|
|
13
13
|
req.basic_auth @client.project_id, @client.project_secret
|
14
14
|
req.content_type = "application/json"
|
15
15
|
req["API-Version"] = "1.4.0.0"
|
16
|
-
req["User-Agent"] = "ProcessOut Ruby-Bindings/2.
|
16
|
+
req["User-Agent"] = "ProcessOut Ruby-Bindings/2.13.0"
|
17
17
|
|
18
18
|
unless options.nil?
|
19
19
|
req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
|
data/lib/processout/token.rb
CHANGED
@@ -17,6 +17,8 @@ module ProcessOut
|
|
17
17
|
attr_reader :type
|
18
18
|
attr_reader :metadata
|
19
19
|
attr_reader :is_subscription_only
|
20
|
+
attr_reader :return_url
|
21
|
+
attr_reader :cancel_url
|
20
22
|
attr_reader :is_default
|
21
23
|
attr_reader :is_chargeable
|
22
24
|
attr_reader :created_at
|
@@ -98,6 +100,14 @@ module ProcessOut
|
|
98
100
|
@is_subscription_only = val
|
99
101
|
end
|
100
102
|
|
103
|
+
def return_url=(val)
|
104
|
+
@return_url = val
|
105
|
+
end
|
106
|
+
|
107
|
+
def cancel_url=(val)
|
108
|
+
@cancel_url = val
|
109
|
+
end
|
110
|
+
|
101
111
|
def is_default=(val)
|
102
112
|
@is_default = val
|
103
113
|
end
|
@@ -128,6 +138,8 @@ module ProcessOut
|
|
128
138
|
self.type = data.fetch(:type, nil)
|
129
139
|
self.metadata = data.fetch(:metadata, nil)
|
130
140
|
self.is_subscription_only = data.fetch(:is_subscription_only, nil)
|
141
|
+
self.return_url = data.fetch(:return_url, nil)
|
142
|
+
self.cancel_url = data.fetch(:cancel_url, nil)
|
131
143
|
self.is_default = data.fetch(:is_default, nil)
|
132
144
|
self.is_chargeable = data.fetch(:is_chargeable, nil)
|
133
145
|
self.created_at = data.fetch(:created_at, nil)
|
@@ -176,6 +188,12 @@ module ProcessOut
|
|
176
188
|
if data.include? "is_subscription_only"
|
177
189
|
self.is_subscription_only = data["is_subscription_only"]
|
178
190
|
end
|
191
|
+
if data.include? "return_url"
|
192
|
+
self.return_url = data["return_url"]
|
193
|
+
end
|
194
|
+
if data.include? "cancel_url"
|
195
|
+
self.cancel_url = data["cancel_url"]
|
196
|
+
end
|
179
197
|
if data.include? "is_default"
|
180
198
|
self.is_default = data["is_default"]
|
181
199
|
end
|
@@ -206,6 +224,8 @@ module ProcessOut
|
|
206
224
|
self.type = data.fetch(:type, self.type)
|
207
225
|
self.metadata = data.fetch(:metadata, self.metadata)
|
208
226
|
self.is_subscription_only = data.fetch(:is_subscription_only, self.is_subscription_only)
|
227
|
+
self.return_url = data.fetch(:return_url, self.return_url)
|
228
|
+
self.cancel_url = data.fetch(:cancel_url, self.cancel_url)
|
209
229
|
self.is_default = data.fetch(:is_default, self.is_default)
|
210
230
|
self.is_chargeable = data.fetch(:is_chargeable, self.is_chargeable)
|
211
231
|
self.created_at = data.fetch(:created_at, self.created_at)
|
@@ -304,6 +324,8 @@ module ProcessOut
|
|
304
324
|
path = "/customers/" + CGI.escape(@customer_id) + "/tokens"
|
305
325
|
data = {
|
306
326
|
"metadata" => @metadata,
|
327
|
+
"return_url" => @return_url,
|
328
|
+
"cancel_url" => @cancel_url,
|
307
329
|
"source" => options.fetch(:source, nil),
|
308
330
|
"settings" => options.fetch(:settings, nil),
|
309
331
|
"target" => options.fetch(:target, nil),
|
@@ -14,6 +14,8 @@ module ProcessOut
|
|
14
14
|
attr_reader :token_id
|
15
15
|
attr_reader :card
|
16
16
|
attr_reader :card_id
|
17
|
+
attr_reader :gateway_configuration
|
18
|
+
attr_reader :gateway_configuration_id
|
17
19
|
attr_reader :amount
|
18
20
|
attr_reader :is_attempt
|
19
21
|
attr_reader :has_failed
|
@@ -94,6 +96,26 @@ module ProcessOut
|
|
94
96
|
@card_id = val
|
95
97
|
end
|
96
98
|
|
99
|
+
def gateway_configuration=(val)
|
100
|
+
if val.nil?
|
101
|
+
@gateway_configuration = val
|
102
|
+
return
|
103
|
+
end
|
104
|
+
|
105
|
+
if val.instance_of? GatewayConfiguration
|
106
|
+
@gateway_configuration = val
|
107
|
+
else
|
108
|
+
obj = GatewayConfiguration.new(@client)
|
109
|
+
obj.fill_with_data(val)
|
110
|
+
@gateway_configuration = obj
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
def gateway_configuration_id=(val)
|
116
|
+
@gateway_configuration_id = val
|
117
|
+
end
|
118
|
+
|
97
119
|
def amount=(val)
|
98
120
|
@amount = val
|
99
121
|
end
|
@@ -201,6 +223,8 @@ module ProcessOut
|
|
201
223
|
self.token_id = data.fetch(:token_id, nil)
|
202
224
|
self.card = data.fetch(:card, nil)
|
203
225
|
self.card_id = data.fetch(:card_id, nil)
|
226
|
+
self.gateway_configuration = data.fetch(:gateway_configuration, nil)
|
227
|
+
self.gateway_configuration_id = data.fetch(:gateway_configuration_id, nil)
|
204
228
|
self.amount = data.fetch(:amount, nil)
|
205
229
|
self.is_attempt = data.fetch(:is_attempt, nil)
|
206
230
|
self.has_failed = data.fetch(:has_failed, nil)
|
@@ -251,6 +275,12 @@ module ProcessOut
|
|
251
275
|
if data.include? "card_id"
|
252
276
|
self.card_id = data["card_id"]
|
253
277
|
end
|
278
|
+
if data.include? "gateway_configuration"
|
279
|
+
self.gateway_configuration = data["gateway_configuration"]
|
280
|
+
end
|
281
|
+
if data.include? "gateway_configuration_id"
|
282
|
+
self.gateway_configuration_id = data["gateway_configuration_id"]
|
283
|
+
end
|
254
284
|
if data.include? "amount"
|
255
285
|
self.amount = data["amount"]
|
256
286
|
end
|
@@ -311,6 +341,8 @@ module ProcessOut
|
|
311
341
|
self.token_id = data.fetch(:token_id, self.token_id)
|
312
342
|
self.card = data.fetch(:card, self.card)
|
313
343
|
self.card_id = data.fetch(:card_id, self.card_id)
|
344
|
+
self.gateway_configuration = data.fetch(:gateway_configuration, self.gateway_configuration)
|
345
|
+
self.gateway_configuration_id = data.fetch(:gateway_configuration_id, self.gateway_configuration_id)
|
314
346
|
self.amount = data.fetch(:amount, self.amount)
|
315
347
|
self.is_attempt = data.fetch(:is_attempt, self.is_attempt)
|
316
348
|
self.has_failed = data.fetch(:has_failed, self.has_failed)
|
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.13.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: 2019-
|
11
|
+
date: 2019-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|