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 +4 -4
- data/lib/processout/invoice.rb +2 -1
- data/lib/processout/networking/request.rb +1 -1
- data/lib/processout/transaction.rb +22 -0
- data/lib/processout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26d663ed6ef8a31ef75caf74ae8354b08375f9b669d8987a84bbc368a5c2ac41
|
4
|
+
data.tar.gz: f31f393752b0fd082538cd5d10b80f48838c40e4e77a8e2cd730b0658ffd51da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f630c230952233e42baa9c4a27e35c0b66118dee6479713c205c0e10cc9c836b27de1fd261abfed9ee87901540f09e947113e228d2d0a43f2a063bab2225c6b5
|
7
|
+
data.tar.gz: ee5b3950180827d37e0a5baeee20aaea907c8797a07d22dc6d3ea77aafe490d29d79f89010f2e3db93debd5156cff5d5cdf049f05b080988c8a66d3094251850
|
data/lib/processout/invoice.rb
CHANGED
@@ -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.
|
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)
|
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.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-
|
11
|
+
date: 2023-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|