mangopay 3.7.0 → 3.8.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
  SHA256:
3
- metadata.gz: 508461f85b104c5fc4670347ca07dd80fceaa1783a46339d26d98332f00b7030
4
- data.tar.gz: 32d29746e95fb843ed856cb3a7cbe2513bf62e3f5f3145eebff249f8c756934a
3
+ metadata.gz: 16def874b468b39fb00308d965802ef6a6fdb42ba9cb7d18a3a422a687d1d1fa
4
+ data.tar.gz: 18f0e0c679919c7e5849ac5052fb2490bc619142901c11fee81ccc4e3dd46e33
5
5
  SHA512:
6
- metadata.gz: 6258fcdfec472aaf69a5a1107e68dbdef041bb4f0dc1dc0ed5e09cc8e211d47e5d79c8ca21ab3a2560cb02c969478081d221a27cb4b0be2fcfb0fb68b3361ef1
7
- data.tar.gz: 3083417ce359cbe42ce2be77a2051c5f4b8cae8fd0ae8d386b3899581b812ded7e6318508dd16d2f1d8ed103cac2dd6fe748953c9429b09d9b5ae006d9803696
6
+ metadata.gz: b0678869fba9e64e0cbf5ed3c4ca2d9fb579aa99b99ade388e2e314d32ee277c53d49f784f225e098a1dda540ace70f08dbd0da2fe4a08e62d8d639db4a912c6
7
+ data.tar.gz: aac5ed97bc8e8e7aef927489c221a9428c54683e037c4059083f64b2003757761f511a74d84776c0a54e492754843d79eec2332a8c712768f3ec6e1863d5103d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [3.8.0] - 2021.10.20
2
+ ## Added
3
+
4
+ You can now change the status to "ENDED" for a recurring payment.
5
+
6
+ ## Fixed
7
+
8
+ - "Status" is now available in the response when you request a recurring payment registration.
9
+
10
+
1
11
  ## [3.7.0] - 2021.10.11
2
12
  ## Added
3
13
 
@@ -140,6 +140,8 @@ module MangoPay
140
140
  module RecurringPayments
141
141
  class Recurring < Resource
142
142
  include HTTPCalls::Create
143
+ include HTTPCalls::Fetch
144
+ include HTTPCalls::Update
143
145
 
144
146
  def self.url(*args)
145
147
  if args.any?
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.7.0'
2
+ VERSION = '3.8.0'
3
3
  end
@@ -40,6 +40,12 @@ describe MangoPay::PayIn::RecurringPayments, type: :feature do
40
40
  }
41
41
  )
42
42
  expect(recurring).not_to be_nil
43
+ expect(recurring['Status']).not_to be_nil
44
+ expect(recurring['Id']).not_to be_nil
45
+ id = recurring['Id']
46
+
47
+ get = MangoPay::PayIn::RecurringPayments::Recurring.fetch(id)
48
+ expect(get).not_to be_nil
43
49
 
44
50
  cit = MangoPay::PayIn::RecurringPayments::CIT.create(
45
51
  RecurringPayinRegistrationId: recurring['Id'],
@@ -61,6 +67,12 @@ describe MangoPay::PayIn::RecurringPayments, type: :feature do
61
67
  )
62
68
 
63
69
  expect(cit).not_to be_nil
70
+
71
+ update = MangoPay::PayIn::RecurringPayments::Recurring.update(id, {
72
+ Status: 'Ended'
73
+ })
74
+
75
+ expect(update).not_to be_nil
64
76
  end
65
77
  end
66
78
  end
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.7.0
4
+ version: 3.8.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: 2021-10-11 00:00:00.000000000 Z
12
+ date: 2021-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json