Skip to content

Conversation

AlexandrosMor
Copy link
Contributor

Description

#138 [PW-4046] Add Order API
#137 Add support for adjustAuthorisation verb (with a test)

Tested scenarios

Fixed issue:

no-lab and others added 3 commits April 13, 2021 09:19
* Add support for adjustAuthorisation verb

Based on #113 by @shtouff

* Test adjustAuthorisation

* Fix E501: lines too long
* Add orders, orders cancel, payment methods balance endpoints

* Fix pycodestyle

* Add paymentmethods balance test and remove order from application info list

* Correct test
@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 69.044% when pulling 995eaf5 on develop into 5532943 on master.

Comment on lines +110 to +130
def test_checkout_api_url_orders(self):
self.client.live_endpoint_prefix = None
url = self.adyen.client._determine_checkout_url("test",
"orders")
self.assertEqual(url, "https://checkout-test.adyen.com"
"/v67/orders")

def test_checkout_api_url_order_cancel(self):
self.client.live_endpoint_prefix = None
url = self.adyen.client._determine_checkout_url("test",
"ordersCancel")
self.assertEqual(url, "https://checkout-test.adyen.com"
"/v67/orders/cancel")

def test_checkout_api_url_order_payment_methods_balance(self):
self.client.live_endpoint_prefix = None
url = self.adyen.client._determine_checkout_url("test",
"paymentMethods"
"Balance")
self.assertEqual(url, "https://checkout-test.adyen.com""/v67/"
"paymentMethods/balance")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will these test fail when we move to >v67? Is it possible to make the version variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and we update them every time. It is a good idea to make a variable for them indeed

@AlexandrosMor AlexandrosMor merged commit be78ec7 into master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants