paysafe 0.10.0 → 0.11.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/CHANGELOG.md +6 -0
- data/Gemfile.lock +6 -6
- data/lib/paysafe.rb +1 -0
- data/lib/paysafe/api/payments_api.rb +8 -0
- data/lib/paysafe/standalone_credit.rb +23 -0
- data/lib/paysafe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 043761f5f993734d6765c391951915b3e3ce890a99d5078873064b45d73bf658
|
4
|
+
data.tar.gz: d57305ba747c217bd60c1d113ba708818bee2dbb33812fcb6eb51db527dee3bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0240eabae75abf9b94e7dd938bdda6e6e691cd4dc6826b01e7731e64e1858cf1714f376742568f1e8ac08bd8d38e418368489a8c15f408a445d0fa105f0f32
|
7
|
+
data.tar.gz: 469a5a7dc581414847289a9d6634dec7e0af95f5aacda3654d47ab0362a4ec3a1995b4875fef7dfee050570c62c8d45634fb7a03ea4cc8ecb70879cfadd19a4c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
## 0.11.0 (2020-04-08)
|
5
|
+
|
6
|
+
* Added standalone credits support for Payments API:
|
7
|
+
* `client.payments.create_standalone_credit`
|
8
|
+
* `client.payments.get_standalone_credit`
|
9
|
+
|
4
10
|
## 0.10.0 (2020-02-24)
|
5
11
|
|
6
12
|
* Removed client configuration using a block.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paysafe (0.
|
4
|
+
paysafe (0.11.0)
|
5
5
|
http (>= 4, < 5)
|
6
6
|
|
7
7
|
GEM
|
@@ -20,15 +20,15 @@ GEM
|
|
20
20
|
ffi-compiler (1.0.1)
|
21
21
|
ffi (>= 1.0.0)
|
22
22
|
rake
|
23
|
-
hashdiff (1.0.
|
24
|
-
http (4.
|
23
|
+
hashdiff (1.0.1)
|
24
|
+
http (4.4.1)
|
25
25
|
addressable (~> 2.3)
|
26
26
|
http-cookie (~> 1.0)
|
27
27
|
http-form_data (~> 2.2)
|
28
28
|
http-parser (~> 1.2.0)
|
29
29
|
http-cookie (1.0.3)
|
30
30
|
domain_name (~> 0.5)
|
31
|
-
http-form_data (2.
|
31
|
+
http-form_data (2.3.0)
|
32
32
|
http-parser (1.2.1)
|
33
33
|
ffi-compiler (>= 1.0, < 2.0)
|
34
34
|
minitest (5.14.0)
|
@@ -44,9 +44,9 @@ GEM
|
|
44
44
|
safe_yaml (1.0.5)
|
45
45
|
unf (0.1.4)
|
46
46
|
unf_ext
|
47
|
-
unf_ext (0.0.7.
|
47
|
+
unf_ext (0.0.7.7)
|
48
48
|
vcr (5.1.0)
|
49
|
-
webmock (3.8.
|
49
|
+
webmock (3.8.3)
|
50
50
|
addressable (>= 2.3.6)
|
51
51
|
crack (>= 0.3.2)
|
52
52
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/lib/paysafe.rb
CHANGED
@@ -10,6 +10,7 @@ require "paysafe/gateway_response"
|
|
10
10
|
require "paysafe/payment_processor"
|
11
11
|
require "paysafe/payment_methods"
|
12
12
|
require "paysafe/payment_method"
|
13
|
+
require "paysafe/standalone_credit"
|
13
14
|
require "paysafe/birth_date"
|
14
15
|
require "paysafe/address"
|
15
16
|
require "paysafe/card"
|
@@ -10,10 +10,18 @@ module Paysafe
|
|
10
10
|
perform_post_with_object("/paymenthub/v1/payments", data, Payment)
|
11
11
|
end
|
12
12
|
|
13
|
+
def create_standalone_credit(**data)
|
14
|
+
perform_post_with_object("/paymenthub/v1/standalonecredits", data, StandaloneCredit)
|
15
|
+
end
|
16
|
+
|
13
17
|
def get_payment(id:)
|
14
18
|
perform_get_with_object("/paymenthub/v1/payments/#{id}", Payment)
|
15
19
|
end
|
16
20
|
|
21
|
+
def get_standalone_credit(id:)
|
22
|
+
perform_get_with_object("/paymenthub/v1/standalonecredits/#{id}", StandaloneCredit)
|
23
|
+
end
|
24
|
+
|
17
25
|
end
|
18
26
|
end
|
19
27
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'paysafe/result'
|
2
|
+
|
3
|
+
module Paysafe
|
4
|
+
class StandaloneCredit < Result
|
5
|
+
attributes :id,
|
6
|
+
:payment_type,
|
7
|
+
:payment_handle_token,
|
8
|
+
:merchant_ref_num,
|
9
|
+
:currency_code,
|
10
|
+
:txn_time,
|
11
|
+
:status,
|
12
|
+
:gateway_reconciliation_id,
|
13
|
+
:amount,
|
14
|
+
:live_mode,
|
15
|
+
:updated_time,
|
16
|
+
:status_time
|
17
|
+
|
18
|
+
object_attribute :Address, :billing_details
|
19
|
+
object_attribute :Customer, :profile
|
20
|
+
object_attribute :GatewayResponse, :gateway_response
|
21
|
+
object_attribute :PaymentProcessor, :sightline
|
22
|
+
end
|
23
|
+
end
|
data/lib/paysafe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paysafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/paysafe/rest/client.rb
|
186
186
|
- lib/paysafe/result.rb
|
187
187
|
- lib/paysafe/single_use_token.rb
|
188
|
+
- lib/paysafe/standalone_credit.rb
|
188
189
|
- lib/paysafe/verification.rb
|
189
190
|
- lib/paysafe/version.rb
|
190
191
|
- paysafe.gemspec
|