mangopay 3.23.0 → 3.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/mangopay/pay_in.rb +16 -0
- data/lib/mangopay/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: 7321bd891306f53afcbd49ecb871a872f7899d2ee039688392b076ee64c45142
|
4
|
+
data.tar.gz: c93e03ce101e31b67def7784e6a1d9490ca4cf5d4254f312f6cda02d32f528ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889df791bf8d890fedbaca69373b91f7f14bb332b9bd2bda09524bfe8d5438c04c0189aea216627c097ccfb1453c1b8f5f4fcb53f6c90d328c04b143e47b75bb
|
7
|
+
data.tar.gz: 91c75bf32947a0eb9023d309164a5e416fb80744ca9516da1843b51dff4fdf01b7136c3c3489a3d50aecfa868c735c7f65330eebfe8f1e9ee37cbbaf79ad98de
|
data/CHANGELOG.md
CHANGED
data/lib/mangopay/pay_in.rb
CHANGED
@@ -21,6 +21,7 @@ module MangoPay
|
|
21
21
|
# See http://docs.mangopay.com/api-references/payins/payins-card-web/
|
22
22
|
class Web < Resource
|
23
23
|
include HTTPCalls::Create
|
24
|
+
|
24
25
|
def self.url(*)
|
25
26
|
"#{MangoPay.api_path}/payins/card/#{CGI.escape(class_name.downcase)}"
|
26
27
|
end
|
@@ -40,6 +41,7 @@ module MangoPay
|
|
40
41
|
# See http://docs.mangopay.com/api-references/payins/payindirectcard/
|
41
42
|
class Direct < Resource
|
42
43
|
include HTTPCalls::Create
|
44
|
+
|
43
45
|
def self.url(*)
|
44
46
|
"#{MangoPay.api_path}/payins/card/#{CGI.escape(class_name.downcase)}"
|
45
47
|
end
|
@@ -52,6 +54,7 @@ module MangoPay
|
|
52
54
|
# See http://docs.mangopay.com/api-references/payins/preauthorized-payin/
|
53
55
|
class Direct < Resource
|
54
56
|
include HTTPCalls::Create
|
57
|
+
|
55
58
|
def self.url(*)
|
56
59
|
"#{MangoPay.api_path}/payins/preauthorized/direct"
|
57
60
|
end
|
@@ -68,6 +71,7 @@ module MangoPay
|
|
68
71
|
# See http://docs.mangopay.com/api-references/payins/payinbankwire/
|
69
72
|
class Direct < Resource
|
70
73
|
include HTTPCalls::Create
|
74
|
+
|
71
75
|
def self.url(*)
|
72
76
|
"#{MangoPay.api_path}/payins/bankwire/direct"
|
73
77
|
end
|
@@ -83,6 +87,7 @@ module MangoPay
|
|
83
87
|
# See http://docs.mangopay.com/api-references/payins/direct-debit-pay-in-web/
|
84
88
|
class Web < Resource
|
85
89
|
include HTTPCalls::Create
|
90
|
+
|
86
91
|
def self.url(*)
|
87
92
|
"#{MangoPay.api_path}/payins/directdebit/#{CGI.escape(class_name.downcase)}"
|
88
93
|
end
|
@@ -91,6 +96,7 @@ module MangoPay
|
|
91
96
|
# See https://docs.mangopay.com/api-references/payins/direct-debit-pay-in-direct/
|
92
97
|
class Direct < Resource
|
93
98
|
include HTTPCalls::Create
|
99
|
+
|
94
100
|
def self.url(*)
|
95
101
|
"#{MangoPay.api_path}/payins/directdebit/#{CGI.escape(class_name.downcase)}"
|
96
102
|
end
|
@@ -105,6 +111,7 @@ module MangoPay
|
|
105
111
|
# Please use the 'create_v2' function - MangoPay::PayIn::PayPal::Web.create_new(params)
|
106
112
|
class Web < Resource
|
107
113
|
include HTTPCalls::Create
|
114
|
+
|
108
115
|
def self.url(*)
|
109
116
|
"#{MangoPay.api_path}/payins/paypal/#{CGI.escape(class_name.downcase)}"
|
110
117
|
end
|
@@ -112,6 +119,14 @@ module MangoPay
|
|
112
119
|
def self.create_v2(params, idempotency_key = nil)
|
113
120
|
MangoPay.request(:post, "#{MangoPay.api_path}/payins/payment-methods/paypal", params, {}, idempotency_key)
|
114
121
|
end
|
122
|
+
|
123
|
+
# Add tracking information to a PayPal PayIn (add the tracking number and carrier for LineItems shipments.)
|
124
|
+
# Caution – Tracking information cannot be edited
|
125
|
+
# You can’t modify the TrackingNumber, Carrier, or NotifyBuyer once added.
|
126
|
+
# You can only send a unique tracking number once.
|
127
|
+
def self.add_paypal_tracking_information(pay_in_id, params, idempotency_key = nil)
|
128
|
+
MangoPay.request(:put, "#{MangoPay.api_path}/payins/#{pay_in_id}/trackings", params, {}, idempotency_key)
|
129
|
+
end
|
115
130
|
end
|
116
131
|
|
117
132
|
end
|
@@ -120,6 +135,7 @@ module MangoPay
|
|
120
135
|
|
121
136
|
class Web < Resource
|
122
137
|
include HTTPCalls::Create
|
138
|
+
|
123
139
|
def self.url(*)
|
124
140
|
"#{MangoPay.api_path}/payins/payconiq/#{CGI.escape(class_name.downcase)}"
|
125
141
|
end
|
data/lib/mangopay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangopay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffroy Lorieux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|