processout 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 240933d4f4a125a66e854a8987cd5da0503ab82d
4
- data.tar.gz: e2ed43d77e6f691d5f569c0a7639c2fdb7f5a033
3
+ metadata.gz: c5ca335c525fc82778d43a2f8c93e256db4c5f1d
4
+ data.tar.gz: 2dd7713a337a7bfc48021aca84de55cd034e082e
5
5
  SHA512:
6
- metadata.gz: 74041d1c0ab4cbdf61bf2d2cceabde302da8e566e0a883e3a7344660cad129a635fa6bd2805f734f2eb50a16fcb55c83aaec532bb25b8cfd7835e8a608cd3616
7
- data.tar.gz: d99ea61e24069f7431978116950af1cd6f3f7170da9a081d7e66c224cc06b8db34912a0b0f1ba882a56774a2cbb86b80a967b77ef5d993cd13dcd8fdda371d66
6
+ metadata.gz: e0716c9ee40bed0bd44231a1e66c7d28944dd3523694a0b676f73fcc9a2459d60253fb33e66171601ec9554b81549db91a9a1c65ce1d815a934e8d5d96f00cf5
7
+ data.tar.gz: 6dea4e6d81f6582aa9b9facfc215bae6d67ffcf52ee3206c7332048271bc1696e3df645c028d6edc62d5704d2061c806d983527b06f9e0d849da4f4b924050eb
@@ -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.6.0"
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, "")
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "2.6.0"
2
+ VERSION = "2.7.0"
3
3
  end
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.6.0
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-08-31 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler