processout 2.9.0 → 2.10.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: 0df250817a5e841c24b075f69e8a63f502954e82
4
- data.tar.gz: 2203137dd2a5445c87a9a59041fd69b1ca54ad2e
3
+ metadata.gz: ba44b37eeda481e648c0ce8e053cc1fffe01ef91
4
+ data.tar.gz: c5a93b413cc6b8558e908b3d6c3e92f1a881c5d1
5
5
  SHA512:
6
- metadata.gz: d8b977b5f9ac300b04470d985dedc9f367b68d6e33c6e0dd89215a0f57186ca4521b469c8509c504dd9db5b2df25ca08e908c886170aef21dac0ca1c638aa446
7
- data.tar.gz: 5cfbea506d1e37dd787aec71f719350243b712bbeba9e539475790e70ba0d7b886445647367e92eb412efd2aac0cd71e4b2ae428fdd8cc0139994ee7734661b9
6
+ metadata.gz: 9c702ab254ba06529dfc467f1d55b2203491d809b9aa08e1aa5b204ca55fa3fbf746548caccb6bcbfa1cc7175af6d2b9d83bca8e6d53de053a4fea309a76c80c
7
+ data.tar.gz: 3540d3899241a532f336e1241d5a5ae1715cc1e909402ea991873d4f92cb6b51d018c31b478b2fda403b14b583e509e94843527ab4343a999b0e17cc5f2568cf
@@ -581,7 +581,8 @@ module ProcessOut
581
581
  "ip_address" => @ip_address,
582
582
  "phone_number" => @phone_number,
583
583
  "legal_document" => @legal_document,
584
- "metadata" => @metadata
584
+ "metadata" => @metadata,
585
+ "id" => @id
585
586
  }
586
587
 
587
588
  response = Response.new(request.post(path, data, options))
@@ -31,6 +31,7 @@ module ProcessOut
31
31
  attr_reader :metadata
32
32
  attr_reader :return_url
33
33
  attr_reader :cancel_url
34
+ attr_reader :webhook_url
34
35
  attr_reader :sandbox
35
36
  attr_reader :created_at
36
37
 
@@ -207,6 +208,10 @@ module ProcessOut
207
208
  @cancel_url = val
208
209
  end
209
210
 
211
+ def webhook_url=(val)
212
+ @webhook_url = val
213
+ end
214
+
210
215
  def sandbox=(val)
211
216
  @sandbox = val
212
217
  end
@@ -247,6 +252,7 @@ module ProcessOut
247
252
  self.metadata = data.fetch(:metadata, nil)
248
253
  self.return_url = data.fetch(:return_url, nil)
249
254
  self.cancel_url = data.fetch(:cancel_url, nil)
255
+ self.webhook_url = data.fetch(:webhook_url, nil)
250
256
  self.sandbox = data.fetch(:sandbox, nil)
251
257
  self.created_at = data.fetch(:created_at, nil)
252
258
 
@@ -336,6 +342,9 @@ module ProcessOut
336
342
  if data.include? "cancel_url"
337
343
  self.cancel_url = data["cancel_url"]
338
344
  end
345
+ if data.include? "webhook_url"
346
+ self.webhook_url = data["webhook_url"]
347
+ end
339
348
  if data.include? "sandbox"
340
349
  self.sandbox = data["sandbox"]
341
350
  end
@@ -377,6 +386,7 @@ module ProcessOut
377
386
  self.metadata = data.fetch(:metadata, self.metadata)
378
387
  self.return_url = data.fetch(:return_url, self.return_url)
379
388
  self.cancel_url = data.fetch(:cancel_url, self.cancel_url)
389
+ self.webhook_url = data.fetch(:webhook_url, self.webhook_url)
380
390
  self.sandbox = data.fetch(:sandbox, self.sandbox)
381
391
  self.created_at = data.fetch(:created_at, self.created_at)
382
392
 
@@ -613,7 +623,8 @@ module ProcessOut
613
623
  "statement_descriptor_company" => @statement_descriptor_company,
614
624
  "statement_descriptor_url" => @statement_descriptor_url,
615
625
  "return_url" => @return_url,
616
- "cancel_url" => @cancel_url
626
+ "cancel_url" => @cancel_url,
627
+ "webhook_url" => @webhook_url
617
628
  }
618
629
 
619
630
  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.9.0"
16
+ req["User-Agent"] = "ProcessOut Ruby-Bindings/2.10.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.9.0"
2
+ VERSION = "2.10.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.9.0
4
+ version: 2.10.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-03-04 00:00:00.000000000 Z
11
+ date: 2019-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler