processout 2.6.0 → 2.7.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 +4 -4
- data/lib/processout/customer.rb +24 -0
- data/lib/processout/networking/request.rb +1 -1
- 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: c5ca335c525fc82778d43a2f8c93e256db4c5f1d
|
4
|
+
data.tar.gz: 2dd7713a337a7bfc48021aca84de55cd034e082e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0716c9ee40bed0bd44231a1e66c7d28944dd3523694a0b676f73fcc9a2459d60253fb33e66171601ec9554b81549db91a9a1c65ce1d815a934e8d5d96f00cf5
|
7
|
+
data.tar.gz: 6dea4e6d81f6582aa9b9facfc215bae6d67ffcf52ee3206c7332048271bc1696e3df645c028d6edc62d5704d2061c806d983527b06f9e0d849da4f4b924050eb
|
data/lib/processout/customer.rb
CHANGED
@@ -27,6 +27,8 @@ module ProcessOut
|
|
27
27
|
attr_reader :zip
|
28
28
|
attr_reader :country_code
|
29
29
|
attr_reader :ip_address
|
30
|
+
attr_reader :phone_number
|
31
|
+
attr_reader :legal_document
|
30
32
|
attr_reader :transactions_count
|
31
33
|
attr_reader :subscriptions_count
|
32
34
|
attr_reader :mrr_local
|
@@ -188,6 +190,14 @@ module ProcessOut
|
|
188
190
|
@ip_address = val
|
189
191
|
end
|
190
192
|
|
193
|
+
def phone_number=(val)
|
194
|
+
@phone_number = val
|
195
|
+
end
|
196
|
+
|
197
|
+
def legal_document=(val)
|
198
|
+
@legal_document = val
|
199
|
+
end
|
200
|
+
|
191
201
|
def transactions_count=(val)
|
192
202
|
@transactions_count = val
|
193
203
|
end
|
@@ -244,6 +254,8 @@ module ProcessOut
|
|
244
254
|
self.zip = data.fetch(:zip, nil)
|
245
255
|
self.country_code = data.fetch(:country_code, nil)
|
246
256
|
self.ip_address = data.fetch(:ip_address, nil)
|
257
|
+
self.phone_number = data.fetch(:phone_number, nil)
|
258
|
+
self.legal_document = data.fetch(:legal_document, nil)
|
247
259
|
self.transactions_count = data.fetch(:transactions_count, nil)
|
248
260
|
self.subscriptions_count = data.fetch(:subscriptions_count, nil)
|
249
261
|
self.mrr_local = data.fetch(:mrr_local, nil)
|
@@ -326,6 +338,12 @@ module ProcessOut
|
|
326
338
|
if data.include? "ip_address"
|
327
339
|
self.ip_address = data["ip_address"]
|
328
340
|
end
|
341
|
+
if data.include? "phone_number"
|
342
|
+
self.phone_number = data["phone_number"]
|
343
|
+
end
|
344
|
+
if data.include? "legal_document"
|
345
|
+
self.legal_document = data["legal_document"]
|
346
|
+
end
|
329
347
|
if data.include? "transactions_count"
|
330
348
|
self.transactions_count = data["transactions_count"]
|
331
349
|
end
|
@@ -378,6 +396,8 @@ module ProcessOut
|
|
378
396
|
self.zip = data.fetch(:zip, self.zip)
|
379
397
|
self.country_code = data.fetch(:country_code, self.country_code)
|
380
398
|
self.ip_address = data.fetch(:ip_address, self.ip_address)
|
399
|
+
self.phone_number = data.fetch(:phone_number, self.phone_number)
|
400
|
+
self.legal_document = data.fetch(:legal_document, self.legal_document)
|
381
401
|
self.transactions_count = data.fetch(:transactions_count, self.transactions_count)
|
382
402
|
self.subscriptions_count = data.fetch(:subscriptions_count, self.subscriptions_count)
|
383
403
|
self.mrr_local = data.fetch(:mrr_local, self.mrr_local)
|
@@ -577,6 +597,8 @@ module ProcessOut
|
|
577
597
|
"zip" => @zip,
|
578
598
|
"country_code" => @country_code,
|
579
599
|
"ip_address" => @ip_address,
|
600
|
+
"phone_number" => @phone_number,
|
601
|
+
"legal_document" => @legal_document,
|
580
602
|
"metadata" => @metadata
|
581
603
|
}
|
582
604
|
|
@@ -643,6 +665,8 @@ module ProcessOut
|
|
643
665
|
"zip" => @zip,
|
644
666
|
"country_code" => @country_code,
|
645
667
|
"ip_address" => @ip_address,
|
668
|
+
"phone_number" => @phone_number,
|
669
|
+
"legal_document" => @legal_document,
|
646
670
|
"metadata" => @metadata
|
647
671
|
}
|
648
672
|
|
@@ -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.7.0"
|
17
17
|
|
18
18
|
unless options.nil?
|
19
19
|
req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
|
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.7.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: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|