mangopay 3.5.0 → 3.6.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: b84828fb11033157bfa54765cb99dc5e9ba1c0a00fe7b9351dd8bf4d747d29f2
4
- data.tar.gz: 9f83683c46d13b2e6cf18532e4948ccd6daee09bdf4fdf590aee1d9da57e87f8
3
+ metadata.gz: bdb36f26dc6032401dfe30606b77d8368da58389fdae346d1a787971d0963357
4
+ data.tar.gz: 4d6ad1805512bfd56f6289bb2e482653b1b3167006d7d99d95cf7bb030724eb0
5
5
  SHA512:
6
- metadata.gz: e593d8cbe199ef24f65ca3a4388015a5cfca4e8b71012fdc3960389ede99e6eef9ad7a424cd136162d581bdc81fb344becf1cced30a5300f09ad1d4aefc49830
7
- data.tar.gz: 5d06c7d08de2d7fb8edb1d3ba28bd20643bc3f28c823e535af889b7b270316883134fe95af0fb573811173cbb311fde3ed716249f69269d7927d7350c19ff044
6
+ metadata.gz: 1344508c23d8b559c672ff2ff6e3e8739d53b7e9d6690f3a5cfdde733b0af8803e4a4adadeb3fe300e373ab0fc2d638707c4d68a48dfb355301db074cea1732e
7
+ data.tar.gz: 4dab1cab255b3eb58def8ac300c64551541f7ba3f96b3eda1e7bf690439e7ffe6f46167fd7ae80b715bcdc9d4f04bcb969c8c1a290c0f97ed66c3da8dd3cb8b9
@@ -0,0 +1,34 @@
1
+ name: mangopay2-net-ruby-cd
2
+
3
+ on:
4
+ push:
5
+ # Sequence of patterns matched against refs/tags
6
+ tags:
7
+ # It pushes any tags that contain a v. ex: v1.16.1
8
+ - '*'
9
+
10
+ jobs:
11
+ build:
12
+ name: Build + Publish
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ packages: write
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Set up Ruby 2.6
21
+ uses: actions/setup-ruby@v1
22
+ with:
23
+ ruby-version: 2.6.x
24
+
25
+ - name: Publish to RubyGems
26
+ run: |
27
+ mkdir -p $HOME/.gem
28
+ touch $HOME/.gem/credentials
29
+ chmod 0600 $HOME/.gem/credentials
30
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
31
+ gem build *.gemspec
32
+ gem push *.gem
33
+ env:
34
+ GEM_HOST_API_KEY: "${{secrets.GEM_HOST_API_KEY}}"
@@ -0,0 +1,34 @@
1
+ name: mangopay2-net-ruby-ci
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ # push on master branch
7
+ - master
8
+ # push on a feature branch
9
+ - feature/*
10
+ # push on a bugfix branch
11
+ - bugfix/*
12
+ pull_request:
13
+ branches: [ master ]
14
+
15
+ jobs:
16
+ build:
17
+ name: Build
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: read
21
+ packages: write
22
+
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ - name: Set up Ruby 2.6
26
+ uses: actions/setup-ruby@v1
27
+ with:
28
+ ruby-version: 2.6.x
29
+ - name: Install Rspec
30
+ run: |
31
+ gem install bundler
32
+ bundler install
33
+ - name: Test
34
+ run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [3.6.0] - 2021.08.10
2
+ ## Added
3
+
4
+ - You can now update and view a Recurring PayIn Registration object. To know more about this feature, please consult the documentation [here](https://docs.mangopay.com/guide/recurring-payments-introduction).
5
+ - To improve recurring payments, we have added new parameters for CIT : DebitedFunds & Fees. To know more about this feature, please consult the documentation [here](https://docs.mangopay.com/endpoints/v2.01/payins#e1053_create-a-recurring-payin-cit)
6
+
1
7
  ## [3.5.0] - 2021.06.10
2
8
  ## Added
3
9
 
@@ -104,7 +110,7 @@ The parameter `Applied3DSVersion` shows you the version of the 3DS protocol used
104
110
 
105
111
  ## [3.1.0]
106
112
  - 3DS2 integration with Shipping and Billing objects, including FirstName and LastName fields
107
- The objects Billing and Shipping may be included on all calls to the following endpoints:
113
+ The objects Billing and Shipping may be included on all calls to the following endpoints:
108
114
  - /preauthorizations/card/direct
109
115
  - /payins/card/direct
110
116
  - /payins/card/web
@@ -125,7 +131,7 @@ The objects Billing and Shipping may be included on all calls to the following e
125
131
  ## [3.0.35] - 2020-08-24
126
132
  - Improvement to Net::ReadTimeout handling
127
133
  - "User-agent" format in the headers changed, aligned to other assets 👤
128
-
134
+
129
135
  ## [3.0.34] - 2020-06-25
130
136
  ### Added
131
137
  - This SDK is now GooglePay-ready ! Feel free to ask our lovely support for more infos about its activation.
@@ -143,7 +149,7 @@ The objects Billing and Shipping may be included on all calls to the following e
143
149
 
144
150
  ## [3.0.33] - 2019-09-23
145
151
  ### Added
146
- - ApplePay `Payin` functions are now available. More info about activation to come in the following weeks...
152
+ - ApplePay `Payin` functions are now available. More info about activation to come in the following weeks...
147
153
  ### Changed
148
154
  - GET EMoney method now supports year and month parameters. More info on our [docs](https://docs.mangopay.com/endpoints/v2.01/user-emoney#e895_view-a-users-emoney)
149
155
 
@@ -157,4 +163,4 @@ The objects Billing and Shipping may be included on all calls to the following e
157
163
  - `APIKey` is now replacing `passphrase` property for credentials. You must update it by updating to 3.0.32 SDK version and upper ones.
158
164
 
159
165
 
160
-
166
+
@@ -3,9 +3,9 @@ module MangoPay
3
3
  # See parent class MangoPay::BankingAliases
4
4
  class BankingAliasesIBAN < BankingAliases
5
5
 
6
- def self.create(params, wallet_id)
6
+ def self.create(params, wallet_id, headers_or_idempotency_key = nil)
7
7
  url = "#{MangoPay.api_path}/wallets/#{wallet_id}/bankingaliases/iban"
8
- MangoPay.request(:post, url, params, {})
8
+ MangoPay.request(:post, url, params, {}, headers_or_idempotency_key)
9
9
  end
10
10
 
11
11
  def self.url(id = nil)
@@ -50,9 +50,9 @@ module MangoPay
50
50
  #####################################################
51
51
 
52
52
  # see https://docs.mangopay.com/api-references/disputes/repudiations/
53
- def fetch_repudiation(repudiation_id)
53
+ def fetch_repudiation(repudiation_id, idempotency_key = nil)
54
54
  url = "#{MangoPay.api_path}/repudiations/#{repudiation_id}"
55
- MangoPay.request(:get, url)
55
+ MangoPay.request(:get, url, {}, {}, idempotency_key)
56
56
  end
57
57
 
58
58
  # +params+: hash; see https://docs.mangopay.com/api-references/disputes/settlement-transfers/
@@ -39,12 +39,17 @@ module MangoPay
39
39
  @@res_confidential_params ||= [
40
40
  'access_token', 'AccessKey', 'IBAN', 'CardRegistrationURL',
41
41
  'PreregistrationData', 'RedirectURL', 'RegistrationData',
42
- 'SecureModeRedirectUrl', 'OwnerName', 'OwnerAddress', 'BIC'
42
+ 'SecureModeRedirectUrl', 'OwnerName', 'OwnerAddress', 'BIC',
43
+ 'FirstName', 'LastName', 'Email', 'AddressLine1',
44
+ 'AddressLine2',
43
45
  ].freeze
44
46
  end
45
47
 
46
48
  def self.req_confidential_params
47
- @@req_confidential_params ||= ['File', 'IBAN', 'OwnerName', 'OwnerAddress', 'BIC'].freeze
49
+ @@req_confidential_params ||= [
50
+ 'File', 'IBAN', 'OwnerName', 'OwnerAddress', 'BIC', 'FirstName',
51
+ 'LastName', 'Email', 'AddressLine1', 'AddressLine2',
52
+ ].freeze
48
53
  end
49
54
 
50
55
  end
@@ -130,8 +130,12 @@ module MangoPay
130
130
  class Recurring < Resource
131
131
  include HTTPCalls::Create
132
132
 
133
- def self.url(*)
134
- "#{MangoPay.api_path}/recurringpayinregistrations"
133
+ def self.url(*args)
134
+ if args.any?
135
+ "#{MangoPay.api_path}/recurringpayinregistrations/#{args.first}"
136
+ else
137
+ "#{MangoPay.api_path}/recurringpayinregistrations"
138
+ end
135
139
  end
136
140
  end
137
141
 
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.5.0'
2
+ VERSION = '3.6.0'
3
3
  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.5.0
4
+ version: 3.6.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-06-10 00:00:00.000000000 Z
12
+ date: 2021-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -63,9 +63,10 @@ executables:
63
63
  extensions: []
64
64
  extra_rdoc_files: []
65
65
  files:
66
+ - ".github/workflows/ruby_cd.yml"
67
+ - ".github/workflows/ruby_ci.yml"
66
68
  - ".gitignore"
67
69
  - ".rspec"
68
- - ".travis.yml"
69
70
  - CHANGELOG.md
70
71
  - Gemfile
71
72
  - LICENSE
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
167
  - !ruby/object:Gem::Version
167
168
  version: '0'
168
169
  requirements: []
169
- rubygems_version: 3.0.8
170
+ rubygems_version: 3.0.3.1
170
171
  signing_key:
171
172
  specification_version: 4
172
173
  summary: Ruby bindings for the version 2 of the MANGOPAY API
data/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- language: ruby
2
- rvm:
3
- # - 2.0.0
4
- # - 2.1
5
- # - 2.2
6
- # - 2.3
7
- # - 2.4
8
- - 2.5
9
- script:
10
- - if [ $TRAVIS_BRANCH != "release" ]; then bundle exec rspec; fi
11
- deploy:
12
- provider: rubygems
13
- api_key:
14
- secure: gvlnYEh9cyL+mYeudKzlD+2Po+LgIzCjHzggJH+WDcbtgxlGAFpxbVJOOm/KY8VKhMgIudNV7FJl4Gl4rrG8JjNxbb+qM57ypU3yyDcUesQ+uj0DnN+xszv7M+XtcRQMlhkStawoj/E0QMYBPkAAr1lBpPIFQdC17GDkdn5XvaQ=
15
- gem: mangopay
16
- on:
17
- tags: false
18
- repo: Mangopay/mangopay2-ruby-sdk
19
- branch: release