mollie-api-ruby 4.13.0 → 4.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58916be713b9cf5128476188f1b0e61dc51f04d9e41b48b09c053b923e9daf39
4
- data.tar.gz: 2f514f685d55211565be7197d5b9b36e587894582bdc515f4eb75ce19c481f10
3
+ metadata.gz: 727393f8a67630c11c052da7b282456a2ca751cbbd23b39825bca74bbbe5192d
4
+ data.tar.gz: c0c66af4d34388f7ce8648d33a1cb94b8ff0ac433e419ce2996aa55b1f727b0f
5
5
  SHA512:
6
- metadata.gz: f3dd1ed54bf737169dbd652f3314ce258c03a87d3b73ed0f8e2473ff2acfef1c08cd5b06349d370f564ee318964a78757978fc948d975f6e0733b1d60a69ff52
7
- data.tar.gz: cad4e544c9cb525bbc94d1a4caf5585590456345ec1bd74fe08f4fe73a5292d4c721b7df2226f6721311487f3ef319bc69d8664863ca864792399cd48f067669
6
+ metadata.gz: 9d99d066f8f1a02e06158680e5bdef30f329fada43091e49eda123534cb9e7449a0792ae30a30a2ffc0efe1b7c0da587dba14c6bf82e8bd4810cdd025038e93d
7
+ data.tar.gz: 2f6998f5f91999f5c794d2d3479c26552e6487f006221b9e51149f165ec80b7ea392c636e3f2b328e8e0bd13e47bdbcfcc967e5fed67257f33b7ad321ff88768
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
15
+ ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
16
16
 
17
17
  name: Ruby (${{ matrix.ruby-version }})
18
18
  steps:
data/CHANGELOG.md CHANGED
@@ -4,7 +4,15 @@
4
4
 
5
5
  All notable changes to this project will be documented in this file.
6
6
 
7
- ## 4.13.0 - 2023-05-22
7
+ ## 4.14.0 - 2024-11-02
8
+
9
+ - (0876f2b) Add Payment Links API
10
+ - (9ab5e1b) Fix dependency warnings (#176)
11
+ - (87a6c9a) Update supported payment methods
12
+ - (afb6251) IMP-610: Use correct authorize URL
13
+ - (002708c) changelog_uri to gemspec
14
+
15
+ ## 4.13.0 - 2024-05-22
8
16
 
9
17
  - (09489be) Add HTTP response details to RequestError
10
18
  - (fe5d114) Add Terminals API
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  <p align="center">
2
- <img src="https://info.mollie.com/hubfs/github/ruby/logo.png" width="128" height="128"/>
2
+ <img src="https://github.com/mollie/mollie-api-ruby/assets/39294/5d35df48-e5c0-4de6-8541-159d9d8aa6f6.png" width="128" height="128"/>
3
3
  </p>
4
4
  <h1 align="center">Mollie API client for Ruby</h1>
5
5
 
6
- <img src="https://info.mollie.com/hubfs/github/ruby/editor.png" />
6
+ <img src="https://github.com/mollie/mollie-api-ruby/assets/39294/4838e149-4707-41c7-9aeb-bb86e68adc2c.png" />
7
7
 
8
8
  > LOOKING FOR VERSION v2.2.X README? [CLICK HERE](https://github.com/mollie/mollie-api-ruby/tree/v2.2.1)
9
9
 
@@ -24,11 +24,11 @@ To use the Mollie API client, the following things are required:
24
24
 
25
25
  ## Installation
26
26
 
27
- By far the easiest way to install the Mollie API client is to install it with [gem](http://rubygems.org/). Note: v4.8.0 and higher are not published on rubygems.org, see [GH-140](https://github.com/mollie/mollie-api-ruby/issues/140) for details.
27
+ By far the easiest way to install the Mollie API client is to install it with [gem](http://rubygems.org/).
28
28
 
29
29
  ```
30
30
  # Gemfile
31
- gem "mollie-api-ruby", github: "mollie/mollie-api-ruby", tag: "v4.11.0"
31
+ gem "mollie-api-ruby"
32
32
 
33
33
  $ gem install mollie-api-ruby
34
34
  ```
@@ -5,7 +5,7 @@ client = Rack::OAuth2::Client.new(
5
5
  secret: secret,
6
6
  state: 'some_state',
7
7
  redirect_uri: redirect_url,
8
- authorization_endpoint: 'https://www.mollie.com/oauth2/authorize',
8
+ authorization_endpoint: 'https://my.mollie.com/oauth2/authorize',
9
9
  token_endpoint: 'https://api.mollie.com/oauth2/tokens'
10
10
  )
11
11
 
@@ -5,7 +5,7 @@ client = Rack::OAuth2::Client.new(
5
5
  secret: secret,
6
6
  state: 'some_state',
7
7
  redirect_uri: redirect_url,
8
- authorization_endpoint: 'https://www.mollie.com/oauth2/authorize',
8
+ authorization_endpoint: 'https://my.mollie.com/oauth2/authorize',
9
9
  token_endpoint: 'https://api.mollie.com/oauth2/tokens'
10
10
  )
11
11
 
@@ -0,0 +1,5 @@
1
+ payment_link = Mollie::PaymentLink.create(
2
+ description: "Bicycle tires",
3
+ amount: { currency: "EUR", value: "24.95" }
4
+ )
5
+
@@ -0,0 +1 @@
1
+ Mollie::PaymentLink.delete("pl_4Y0eZitmBnQ6IDoMqZQKh")
@@ -0,0 +1 @@
1
+ payment_link = Mollie::PaymentLink.get("pl_4Y0eZitmBnQ6IDoMqZQKh")
@@ -0,0 +1,2 @@
1
+ payment_link = Mollie::PaymentLink.get("pl_4Y0eZitmBnQ6IDoMqZQKh")
2
+ payments = payment_link.payments
@@ -0,0 +1 @@
1
+ payment_links = Mollie::PaymentLink.all
@@ -0,0 +1,5 @@
1
+ payment_link = Mollie::PaymentLink.update(
2
+ "pl_4Y0eZitmBnQ6IDoMqZQKh",
3
+ description: "Bicycle tires",
4
+ archived: true
5
+ )
data/lib/mollie/base.rb CHANGED
@@ -71,6 +71,8 @@ module Mollie
71
71
  path.last
72
72
  end
73
73
  end
74
+
75
+ alias_method :embedded_resource_name, :resource_name
74
76
  end
75
77
 
76
78
  def update(data = {})
data/lib/mollie/list.rb CHANGED
@@ -9,7 +9,7 @@ module Mollie
9
9
  @klass = klass
10
10
 
11
11
  list_attributes['items'] ||= if list_attributes['_embedded']
12
- list_attributes['_embedded'].fetch(klass.resource_name, [])
12
+ list_attributes['_embedded'].fetch(klass.embedded_resource_name, [])
13
13
  else
14
14
  []
15
15
  end
data/lib/mollie/method.rb CHANGED
@@ -1,21 +1,33 @@
1
1
  module Mollie
2
2
  class Method < Base
3
+ ALMA = 'alma'.freeze
3
4
  APPLEPAY = 'applepay'.freeze
4
5
  BANCONTACT = 'bancontact'.freeze
6
+ BANCOMAT_PAY = 'bancomatpay'.freeze
5
7
  BANKTRANSFER = 'banktransfer'.freeze
6
8
  BELFIUS = 'belfius'.freeze
9
+ BILLIE = 'billie'.freeze
10
+ BLIK = 'bilk'.freeze
7
11
  CREDITCARD = 'creditcard'.freeze
8
12
  DIRECTDEBIT = 'directdebit'.freeze
9
13
  EPS = 'eps'.freeze
10
14
  GIFTCARD = 'giftcard'.freeze
11
15
  GIROPAY = 'giropay'.freeze
12
16
  IDEAL = 'ideal'.freeze
17
+ IN3 = 'in3'.freeze
13
18
  INGHOMEPAY = 'inghomepay'.freeze
14
19
  KBC = 'kbc'.freeze
20
+ MYBANK = 'mybank'.freeze
15
21
  PAYPAL = 'paypal'.freeze
16
22
  PAYSAFECARD = 'paysafecard'.freeze
17
23
  PRZELEWY24 = 'przelewy24'.freeze
24
+ RIVERTY = 'riverty'.freeze
18
25
  SOFORT = 'sofort'.freeze
26
+ SATISPAY = 'satispay'.freeze
27
+ TRUSTLY = 'trustly'.freeze
28
+ TWINT = 'twint'.freeze
29
+ VOUCHER = 'voucher'.freeze
30
+ KLARNA = 'klarna'.freeze
19
31
  KLARNASLICEIT = 'klarnasliceit'.freeze
20
32
  KLARNAPAYLATER = 'klarnapaylater'.freeze
21
33
 
@@ -0,0 +1,70 @@
1
+ module Mollie
2
+ class PaymentLink < Base
3
+ attr_accessor :id,
4
+ :mode,
5
+ :description,
6
+ :archived,
7
+ :redirect_url,
8
+ :webhook_url,
9
+ :profile_id,
10
+ :_links
11
+
12
+ attr_reader :amount,
13
+ :created_at,
14
+ :paid_at,
15
+ :updated_at,
16
+ :expires_at
17
+
18
+ alias_method :links, :_links
19
+
20
+ def self.embedded_resource_name(_parent_id = nil)
21
+ "payment_links"
22
+ end
23
+
24
+ def self.resource_name(_parent_id = nil)
25
+ "payment-links"
26
+ end
27
+
28
+ def amount=(amount)
29
+ @amount = Mollie::Amount.new(amount)
30
+ end
31
+
32
+ def archived?
33
+ archived
34
+ end
35
+
36
+ def created_at=(created_at)
37
+ @created_at = Time.parse(created_at.to_s)
38
+ end
39
+
40
+ def paid_at=(paid_at)
41
+ @paid_at = Time.parse(paid_at.to_s)
42
+ rescue
43
+ nil
44
+ end
45
+
46
+ def updated_at=(updated_at)
47
+ @updated_at = Time.parse(updated_at.to_s)
48
+ rescue
49
+ nil
50
+ end
51
+
52
+ def expires_at=(expires_at)
53
+ @expires_at = Time.parse(expires_at.to_s)
54
+ rescue
55
+ nil
56
+ end
57
+
58
+ def payment_link
59
+ Util.extract_url(links, "payment_link")
60
+ end
61
+
62
+ def payments(options = {})
63
+ resource_url = Util.extract_url(links, "self")
64
+ payments_url = File.join(resource_url, "/payments")
65
+
66
+ response = Mollie::Client.instance.perform_http_call("GET", payments_url, nil, {}, options)
67
+ Mollie::List.new(response, Mollie::Payment)
68
+ end
69
+ end
70
+ end
@@ -1,3 +1,3 @@
1
1
  module Mollie
2
- VERSION = '4.13.0'.freeze
2
+ VERSION = '4.14.0'.freeze
3
3
  end
data/lib/mollie.rb CHANGED
@@ -23,6 +23,7 @@ require 'mollie/order'
23
23
  require 'mollie/organization'
24
24
  require 'mollie/partner'
25
25
  require 'mollie/payment'
26
+ require 'mollie/payment_link'
26
27
  require 'mollie/permission'
27
28
  require 'mollie/profile'
28
29
  require 'mollie/refund'
@@ -16,11 +16,18 @@ Gem::Specification.new do |s|
16
16
  s.email = ['info@mollie.com']
17
17
  s.homepage = 'https://github.com/mollie/mollie-api-ruby'
18
18
  s.license = 'BSD'
19
- s.required_ruby_version = '>= 2.3.8'
19
+ s.metadata = {
20
+ 'changelog_uri' => 'https://github.com/mollie/mollie-api-ruby/blob/master/CHANGELOG.md'
21
+ }
22
+
23
+ s.required_ruby_version = '>= 2.5'
20
24
 
21
25
  s.files = `git ls-files`.split("\n")
22
26
  s.test_files = Dir['test/**/*']
23
27
 
28
+ s.add_dependency('ostruct', '~> 0.6.0')
29
+ s.add_dependency('bigdecimal', '~> 3.1', '>= 3.1.8')
30
+
24
31
  s.add_development_dependency('rake')
25
32
  s.add_development_dependency('rubocop', '~> 0.57.2')
26
33
  s.add_development_dependency('test-unit')
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "Bicycle tires",
3
+ "amount": {
4
+ "currency": "EUR",
5
+ "value": "24.95"
6
+ }
7
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "resource": "payment-link",
3
+ "id": "pl_4Y0eZitmBnQ6IDoMqZQKh",
4
+ "mode": "test",
5
+ "description": "Bicycle tires",
6
+ "archived": false,
7
+ "profile_id": "pfl_QkEhN94Ba",
8
+ "amount": {
9
+ "currency": "EUR",
10
+ "value": "24.95"
11
+ },
12
+ "webhook_url": "https://webshop.example.org/payment-links/webhook",
13
+ "redirect_url": "https://webshop.example.org/thanks",
14
+ "created_at": "2024-09-24T12:16:44+00:00",
15
+ "paid_at": null,
16
+ "updated_at": null,
17
+ "expires_at": null,
18
+ "_links": {
19
+ "self": {
20
+ "href": "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh",
21
+ "type": "application/hal+json"
22
+ },
23
+ "paymentLink": {
24
+ "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh",
25
+ "type": "text/html"
26
+ },
27
+ "documentation": {
28
+ "href": "https://docs.mollie.com/reference/v2/payment-links-api/get-payment-link",
29
+ "type": "text/html"
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "count": 3,
3
+ "_embedded": {
4
+ "payments": [
5
+ {
6
+ "resource": "payment",
7
+ "id": "tr_one"
8
+ },
9
+ {
10
+ "resource": "payment",
11
+ "id": "tr_two"
12
+ },
13
+ {
14
+ "resource": "payment",
15
+ "id": "tr_three"
16
+ }
17
+ ]
18
+ },
19
+ "_links": {
20
+ "self": {
21
+ "href": "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh/payments?limit=50",
22
+ "type": "application/hal+json"
23
+ },
24
+ "previous": null,
25
+ "next": null,
26
+ "documentation": {
27
+ "href": "https://docs.mollie.com/reference/get-payment-link-payments",
28
+ "type": "text/html"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "count": 3,
3
+ "_embedded": {
4
+ "payment_links": [
5
+ {
6
+ "resource": "payment-link",
7
+ "id": "pl_one"
8
+ },
9
+ {
10
+ "resource": "payment-link",
11
+ "id": "pl_two"
12
+ },
13
+ {
14
+ "resource": "payment-link",
15
+ "id": "pl_three"
16
+ }
17
+ ]
18
+ },
19
+ "_links": {
20
+ "self": {
21
+ "href": "https://api.mollie.com/v2/payment-links?limit=50",
22
+ "type": "application/hal+json"
23
+ },
24
+ "previous": null,
25
+ "next": null,
26
+ "documentation": {
27
+ "href": "https://docs.mollie.com/reference/v2/payment-links-api/list-payment-links",
28
+ "type": "text/html"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "description": "Car tires",
3
+ "archived": true
4
+ }
@@ -0,0 +1,100 @@
1
+ require "helper"
2
+
3
+ module Mollie
4
+ class PaymentLinkTest < Test::Unit::TestCase
5
+ CREATE_PAYMENT_LINK = read_fixture("payment_links/create.json")
6
+ GET_PAYMENT_LINK = read_fixture("payment_links/get.json")
7
+ UPDATE_PAYMENT_LINK = read_fixture("payment_links/update.json")
8
+ LIST_PAYMENT_LINKS = read_fixture("payment_links/list.json")
9
+ LIST_PAYMENT_LINK_PAYMENTS = read_fixture("payment_links/list-payments.json")
10
+
11
+ def test_archived?
12
+ assert PaymentLink.new(archived: true).archived?
13
+ assert_false PaymentLink.new(archived: false).archived?
14
+ end
15
+
16
+ def test_create_payment
17
+ minified_body = JSON.parse(CREATE_PAYMENT_LINK).to_json
18
+ stub_request(:post, "https://api.mollie.com/v2/payment-links")
19
+ .with(body: minified_body)
20
+ .to_return(status: 201, body: GET_PAYMENT_LINK, headers: {})
21
+
22
+ payment_link = PaymentLink.create(
23
+ description: "Bicycle tires",
24
+ amount: {currency: "EUR", value: "24.95"}
25
+ )
26
+
27
+ assert_kind_of PaymentLink, payment_link
28
+ assert_equal "pl_4Y0eZitmBnQ6IDoMqZQKh", payment_link.id
29
+ end
30
+
31
+ def test_get_payment_link
32
+ stub_request(:get, "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh")
33
+ .to_return(status: 200, body: GET_PAYMENT_LINK, headers: {})
34
+
35
+ payment_link = PaymentLink.get("pl_4Y0eZitmBnQ6IDoMqZQKh")
36
+
37
+ assert_equal "pl_4Y0eZitmBnQ6IDoMqZQKh", payment_link.id
38
+ assert_equal "test", payment_link.mode
39
+ assert_equal "Bicycle tires", payment_link.description
40
+ assert_false payment_link.archived
41
+ assert_equal "pfl_QkEhN94Ba", payment_link.profile_id
42
+ assert_equal 24.95, payment_link.amount.value
43
+ assert_equal "EUR", payment_link.amount.currency
44
+ assert_equal "https://webshop.example.org/payment-links/webhook", payment_link.webhook_url
45
+ assert_equal "https://webshop.example.org/thanks", payment_link.redirect_url
46
+ assert_equal Time.parse("2024-09-24T12:16:44+00:00"), payment_link.created_at
47
+ assert_equal "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", payment_link.payment_link
48
+ assert_nil payment_link.paid_at
49
+ assert_nil payment_link.updated_at
50
+ assert_nil payment_link.expires_at
51
+ end
52
+
53
+ def test_update_payment_link
54
+ minified_body = JSON.parse(UPDATE_PAYMENT_LINK).to_json
55
+ stub_request(:patch, 'https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh')
56
+ .with(body: minified_body)
57
+ .to_return(status: 200, body: GET_PAYMENT_LINK, headers: {})
58
+
59
+ payment_link = PaymentLink.update("pl_4Y0eZitmBnQ6IDoMqZQKh", JSON.parse(UPDATE_PAYMENT_LINK))
60
+
61
+ assert_kind_of PaymentLink, payment_link
62
+ assert_equal "pl_4Y0eZitmBnQ6IDoMqZQKh", payment_link.id
63
+ end
64
+
65
+ def test_delete_payment_link
66
+ stub_request(:delete, 'https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh')
67
+ .to_return(status: 204, body: GET_PAYMENT_LINK, headers: {})
68
+
69
+ payment_link = PaymentLink.delete("pl_4Y0eZitmBnQ6IDoMqZQKh")
70
+ assert_nil payment_link
71
+ end
72
+
73
+ def test_list_payment_links
74
+ stub_request(:get, "https://api.mollie.com/v2/payment-links")
75
+ .to_return(status: 200, body: LIST_PAYMENT_LINKS, headers: {})
76
+
77
+ payment_links = PaymentLink.all
78
+ assert_equal 3, payment_links.size
79
+ assert_equal "pl_one", payment_links[0].id
80
+ assert_equal "pl_two", payment_links[1].id
81
+ assert_equal "pl_three", payment_links[2].id
82
+ end
83
+
84
+ def test_list_payment_link_payments
85
+ stub_request(:get, "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh")
86
+ .to_return(status: 200, body: GET_PAYMENT_LINK, headers: {})
87
+
88
+ stub_request(:get, "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh/payments")
89
+ .to_return(status: 200, body: LIST_PAYMENT_LINK_PAYMENTS, headers: {})
90
+
91
+ payment_link = PaymentLink.get("pl_4Y0eZitmBnQ6IDoMqZQKh")
92
+ payments = payment_link.payments
93
+
94
+ assert_equal 3, payments.size
95
+ assert_equal "tr_one", payments[0].id
96
+ assert_equal "tr_two", payments[1].id
97
+ assert_equal "tr_three", payments[2].id
98
+ end
99
+ end
100
+ end
metadata CHANGED
@@ -1,15 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mollie-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.13.0
4
+ version: 4.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mollie B.V.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ostruct
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.6.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.6.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bigdecimal
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 3.1.8
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '3.1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 3.1.8
13
47
  - !ruby/object:Gem::Dependency
14
48
  name: rake
15
49
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +119,6 @@ files:
85
119
  - ".gitignore"
86
120
  - ".rubocop.yml"
87
121
  - ".rubocop_todo.yml"
88
- - ".travis.yml"
89
122
  - CHANGELOG.md
90
123
  - Gemfile
91
124
  - LICENSE
@@ -135,6 +168,12 @@ files:
135
168
  - examples/organisations/get-current.rb
136
169
  - examples/organisations/get-partner.rb
137
170
  - examples/organisations/get.rb
171
+ - examples/payment-links/create.rb
172
+ - examples/payment-links/delete.rb
173
+ - examples/payment-links/get.rb
174
+ - examples/payment-links/list-payments.rb
175
+ - examples/payment-links/list.rb
176
+ - examples/payment-links/update.rb
138
177
  - examples/payments/create.rb
139
178
  - examples/payments/delete.rb
140
179
  - examples/payments/get-customer.rb
@@ -210,6 +249,7 @@ files:
210
249
  - lib/mollie/payment/capture.rb
211
250
  - lib/mollie/payment/chargeback.rb
212
251
  - lib/mollie/payment/refund.rb
252
+ - lib/mollie/payment_link.rb
213
253
  - lib/mollie/permission.rb
214
254
  - lib/mollie/profile.rb
215
255
  - lib/mollie/refund.rb
@@ -246,6 +286,11 @@ files:
246
286
  - test/fixtures/orders/update.json
247
287
  - test/fixtures/orders/update_line.json
248
288
  - test/fixtures/organizations/partner.json
289
+ - test/fixtures/payment_links/create.json
290
+ - test/fixtures/payment_links/get.json
291
+ - test/fixtures/payment_links/list-payments.json
292
+ - test/fixtures/payment_links/list.json
293
+ - test/fixtures/payment_links/update.json
249
294
  - test/fixtures/payments/get.json
250
295
  - test/fixtures/refunds/get.json
251
296
  - test/fixtures/shipments/create.json
@@ -279,6 +324,7 @@ files:
279
324
  - test/mollie/payment/capture_test.rb
280
325
  - test/mollie/payment/chargeback_test.rb
281
326
  - test/mollie/payment/refund_test.rb
327
+ - test/mollie/payment_link_test.rb
282
328
  - test/mollie/payment_test.rb
283
329
  - test/mollie/permission_test.rb
284
330
  - test/mollie/profile_test.rb
@@ -293,7 +339,8 @@ files:
293
339
  homepage: https://github.com/mollie/mollie-api-ruby
294
340
  licenses:
295
341
  - BSD
296
- metadata: {}
342
+ metadata:
343
+ changelog_uri: https://github.com/mollie/mollie-api-ruby/blob/master/CHANGELOG.md
297
344
  post_install_message:
298
345
  rdoc_options: []
299
346
  require_paths:
@@ -302,14 +349,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
302
349
  requirements:
303
350
  - - ">="
304
351
  - !ruby/object:Gem::Version
305
- version: 2.3.8
352
+ version: '2.5'
306
353
  required_rubygems_version: !ruby/object:Gem::Requirement
307
354
  requirements:
308
355
  - - ">="
309
356
  - !ruby/object:Gem::Version
310
357
  version: '0'
311
358
  requirements: []
312
- rubygems_version: 3.5.9
359
+ rubygems_version: 3.5.16
313
360
  signing_key:
314
361
  specification_version: 4
315
362
  summary: Official Mollie API Client for Ruby
@@ -337,6 +384,11 @@ test_files:
337
384
  - test/fixtures/orders/update.json
338
385
  - test/fixtures/orders/update_line.json
339
386
  - test/fixtures/organizations/partner.json
387
+ - test/fixtures/payment_links/create.json
388
+ - test/fixtures/payment_links/get.json
389
+ - test/fixtures/payment_links/list-payments.json
390
+ - test/fixtures/payment_links/list.json
391
+ - test/fixtures/payment_links/update.json
340
392
  - test/fixtures/payments/get.json
341
393
  - test/fixtures/refunds/get.json
342
394
  - test/fixtures/shipments/create.json
@@ -370,6 +422,7 @@ test_files:
370
422
  - test/mollie/payment/capture_test.rb
371
423
  - test/mollie/payment/chargeback_test.rb
372
424
  - test/mollie/payment/refund_test.rb
425
+ - test/mollie/payment_link_test.rb
373
426
  - test/mollie/payment_test.rb
374
427
  - test/mollie/permission_test.rb
375
428
  - test/mollie/profile_test.rb
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.8
4
- - 2.4.5
5
- - 2.5.3
6
- - 2.6.1
7
- deploy:
8
- gem: mollie-api-ruby
9
- provider: rubygems
10
- api_key:
11
- secure: "OQobSXpfwELzuh5prnwADPGwt3LHyD/EMuKlJ7aJ6CNveGQzvgGOtK52Cn3X9X8yAkX/PNJVXnPeFaKSQopcAJB30ySJMnPYGjQvIoiUOglMB8lJDFxcLtZ/21NXDf2f3cxYPmZkBGtFQeb/EEYBg4/vwjgWlJ/mcwnesLpwj5A="
12
- on:
13
- tags: true
14
- repo: mollie/mollie-api-ruby
15
- rvm: 2.6.1