Skip to content

Commit

Permalink
Order: add support for cancel_url
Browse files Browse the repository at this point in the history
Closes GH-160
  • Loading branch information
justincase committed Jan 29, 2023
1 parent 2f88990 commit 9db60b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/mollie/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Order < Base
:locale,
:metadata,
:redirect_url,
:cancel_url,
:webhook_url,
:created_at,
:expires_at,
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/orders/get.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"email": "[email protected]"
},
"redirectUrl": "https://example.org/redirect",
"cancelUrl": "https://example.org/cancel",
"webhookUrl": "https://example.org/webhook",
"expiredAt": "2018-08-30T09:29:56+00:02",
"paidAt": "2018-08-26T09:29:56+00:00",
Expand Down
1 change: 1 addition & 0 deletions test/mollie/order_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_get_order
assert_equal '1337', order.metadata.order_id
assert_equal 'Lego cars', order.metadata.description
assert_equal 'https://example.org/redirect', order.redirect_url
assert_equal 'https://example.org/cancel', order.cancel_url
assert_equal 'https://example.org/webhook', order.webhook_url
assert_equal Time.parse('2018-08-02T09:29:56+00:00'), order.created_at
assert_equal Time.parse('2018-08-30T09:29:56+00:00'), order.expires_at
Expand Down

0 comments on commit 9db60b3

Please sign in to comment.