processout 2.24.0 → 2.25.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
  SHA256:
3
- metadata.gz: 3d280911eda6faab611f67131bfcb86fa143214033cb29b86e20ea03afc4324b
4
- data.tar.gz: c7e980553c880a3f46970cf860e7476754791e8fd504d3f5566dcfef31816922
3
+ metadata.gz: 26d663ed6ef8a31ef75caf74ae8354b08375f9b669d8987a84bbc368a5c2ac41
4
+ data.tar.gz: f31f393752b0fd082538cd5d10b80f48838c40e4e77a8e2cd730b0658ffd51da
5
5
  SHA512:
6
- metadata.gz: 76fe38fb62279b51207413862efb607f718c4ccf48302ba5a5d0b2c120438669bfb80bfb02f81e8dff58a91765e7f0af3dff1b8af37ca71797c7fd810fcf1170
7
- data.tar.gz: 0373ddbffac8ed98de2b084343a1ba96d94a7fd1f48c19062a6fc1d7c4edecc61a3819f728d7e8917452a3122ba05c4c9306ce78833022d15b39e326b5172c9a
6
+ metadata.gz: f630c230952233e42baa9c4a27e35c0b66118dee6479713c205c0e10cc9c836b27de1fd261abfed9ee87901540f09e947113e228d2d0a43f2a063bab2225c6b5
7
+ data.tar.gz: ee5b3950180827d37e0a5baeee20aaea907c8797a07d22dc6d3ea77aafe490d29d79f89010f2e3db93debd5156cff5d5cdf049f05b080988c8a66d3094251850
@@ -880,7 +880,8 @@ module ProcessOut
880
880
  request = Request.new(@client)
881
881
  path = "/invoices/" + CGI.escape(@id) + "/void"
882
882
  data = {
883
- "metadata" => options.fetch(:metadata, nil)
883
+ "metadata" => options.fetch(:metadata, nil),
884
+ "amount" => options.fetch(:amount, nil)
884
885
  }
885
886
 
886
887
  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.24.0"
16
+ req["User-Agent"] = "ProcessOut Ruby-Bindings/2.25.0"
17
17
 
18
18
  unless options.nil?
19
19
  req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
@@ -37,6 +37,8 @@ module ProcessOut
37
37
  attr_reader :refunded_amount_local
38
38
  attr_reader :available_amount
39
39
  attr_reader :available_amount_local
40
+ attr_reader :voided_amount
41
+ attr_reader :voided_amount_local
40
42
  attr_reader :currency
41
43
  attr_reader :error_code
42
44
  attr_reader :error_message
@@ -313,6 +315,14 @@ module ProcessOut
313
315
  @available_amount_local = val
314
316
  end
315
317
 
318
+ def voided_amount=(val)
319
+ @voided_amount = val
320
+ end
321
+
322
+ def voided_amount_local=(val)
323
+ @voided_amount_local = val
324
+ end
325
+
316
326
  def currency=(val)
317
327
  @currency = val
318
328
  end
@@ -482,6 +492,8 @@ module ProcessOut
482
492
  self.refunded_amount_local = data.fetch(:refunded_amount_local, nil)
483
493
  self.available_amount = data.fetch(:available_amount, nil)
484
494
  self.available_amount_local = data.fetch(:available_amount_local, nil)
495
+ self.voided_amount = data.fetch(:voided_amount, nil)
496
+ self.voided_amount_local = data.fetch(:voided_amount_local, nil)
485
497
  self.currency = data.fetch(:currency, nil)
486
498
  self.error_code = data.fetch(:error_code, nil)
487
499
  self.error_message = data.fetch(:error_message, nil)
@@ -552,6 +564,8 @@ module ProcessOut
552
564
  "refunded_amount_local": self.refunded_amount_local,
553
565
  "available_amount": self.available_amount,
554
566
  "available_amount_local": self.available_amount_local,
567
+ "voided_amount": self.voided_amount,
568
+ "voided_amount_local": self.voided_amount_local,
555
569
  "currency": self.currency,
556
570
  "error_code": self.error_code,
557
571
  "error_message": self.error_message,
@@ -679,6 +693,12 @@ module ProcessOut
679
693
  if data.include? "available_amount_local"
680
694
  self.available_amount_local = data["available_amount_local"]
681
695
  end
696
+ if data.include? "voided_amount"
697
+ self.voided_amount = data["voided_amount"]
698
+ end
699
+ if data.include? "voided_amount_local"
700
+ self.voided_amount_local = data["voided_amount_local"]
701
+ end
682
702
  if data.include? "currency"
683
703
  self.currency = data["currency"]
684
704
  end
@@ -809,6 +829,8 @@ module ProcessOut
809
829
  self.refunded_amount_local = data.fetch(:refunded_amount_local, self.refunded_amount_local)
810
830
  self.available_amount = data.fetch(:available_amount, self.available_amount)
811
831
  self.available_amount_local = data.fetch(:available_amount_local, self.available_amount_local)
832
+ self.voided_amount = data.fetch(:voided_amount, self.voided_amount)
833
+ self.voided_amount_local = data.fetch(:voided_amount_local, self.voided_amount_local)
812
834
  self.currency = data.fetch(:currency, self.currency)
813
835
  self.error_code = data.fetch(:error_code, self.error_code)
814
836
  self.error_message = data.fetch(:error_message, self.error_message)
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "2.24.0"
2
+ VERSION = "2.25.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.24.0
4
+ version: 2.25.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: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler