Skip to content

Commit

Permalink
Add HTTP test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Apr 22, 2024
1 parent bfce5d4 commit 896737c
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-customers-cst_8wmqcHMN4U.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 20 Nov 2019 14:17:23 GMT
Content-Type: application/hal+json
Content-Length: 510
Connection: close
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"resource":"customer","id":"cst_8wmqcHMN4U","mode":"test","name":"Remco Tolsma","email":"[email protected]","locale":null,"metadata":null,"createdAt":"2019-11-08T11:27:12+00:00","_links":{"self":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U","type":"application/hal+json"},"payments":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U/payments","type":"application/hal+json"},"documentation":{"href":"https://docs.mollie.com/reference/v2/customers-api/get-customer","type":"text/html"}}}
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-customers-cst_8wmqcHMN4U_first.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 20 Nov 2019 14:17:23 GMT
Content-Type: application/hal+json
Content-Length: 528
Connection: close
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"resource":"customer","id":"cst_8wmqcHMN4U_first","mode":"test","name":"Remco Tolsma","email":"[email protected]","locale":null,"metadata":null,"createdAt":"2019-11-08T11:27:12+00:00","_links":{"self":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U_first","type":"application/hal+json"},"payments":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U_first/payments","type":"application/hal+json"},"documentation":{"href":"https://docs.mollie.com/reference/v2/customers-api/get-customer","type":"text/html"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 20 Nov 2019 14:17:23 GMT
Content-Type: application/hal+json
Content-Length: 549
Connection: close
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"resource":"customer","id":"cst_8wmqcHMN4U_subscription","mode":"test","name":"Remco Tolsma","email":"[email protected]","locale":null,"metadata":null,"createdAt":"2019-11-08T11:27:12+00:00","_links":{"self":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U_subscription","type":"application/hal+json"},"payments":{"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U_subscription/payments","type":"application/hal+json"},"documentation":{"href":"https://docs.mollie.com/reference/v2/customers-api/get-customer","type":"text/html"}}}
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-methods-first.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 14 Jun 2022 09:58:44 GMT
Content-Type: application/hal+json
Content-Length: 4561
X-Robots-Tag: noindex
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"_embedded":{"methods":[{"resource":"method","id":"ideal","description":"iDEAL","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/ideal.png","size2x":"https://www.mollie.com/external/icons/payment-methods/ideal%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/ideal.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/ideal","type":"application/hal+json"}}},{"resource":"method","id":"creditcard","description":"Credit card","minimumAmount":{"value":"0.00","currency":"EUR"},"maximumAmount":{"value":"2000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/creditcard.png","size2x":"https://www.mollie.com/external/icons/payment-methods/creditcard%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/creditcard.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/creditcard","type":"application/hal+json"}}},{"resource":"method","id":"sofort","description":"SOFORT Banking","minimumAmount":{"value":"0.10","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/sofort.png","size2x":"https://www.mollie.com/external/icons/payment-methods/sofort%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/sofort.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/sofort","type":"application/hal+json"}}},{"resource":"method","id":"bancontact","description":"Bancontact","minimumAmount":{"value":"0.02","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/bancontact.png","size2x":"https://www.mollie.com/external/icons/payment-methods/bancontact%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/bancontact.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/bancontact","type":"application/hal+json"}}},{"resource":"method","id":"eps","description":"eps","minimumAmount":{"value":"1.00","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/eps.png","size2x":"https://www.mollie.com/external/icons/payment-methods/eps%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/eps.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/eps","type":"application/hal+json"}}},{"resource":"method","id":"giropay","description":"giropay","minimumAmount":{"value":"1.00","currency":"EUR"},"maximumAmount":{"value":"10000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/giropay.png","size2x":"https://www.mollie.com/external/icons/payment-methods/giropay%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/giropay.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/giropay","type":"application/hal+json"}}},{"resource":"method","id":"kbc","description":"KBC/CBC Payment Button","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/kbc.png","size2x":"https://www.mollie.com/external/icons/payment-methods/kbc%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/kbc.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/kbc","type":"application/hal+json"}}},{"resource":"method","id":"belfius","description":"Belfius Pay Button","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/belfius.png","size2x":"https://www.mollie.com/external/icons/payment-methods/belfius%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/belfius.svg"},"status":"pending-boarding","_links":{"self":{"href":"https://api.mollie.com/v2/methods/belfius","type":"application/hal+json"}}}]},"count":8,"_links":{"documentation":{"href":"https://docs.mollie.com/reference/v2/methods-api/list-methods","type":"text/html"},"self":{"href":"https://api.mollie.com/v2/methods?sequenceType=first","type":"application/hal+json"}}}
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-methods-ideal.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 14 Jun 2022 10:00:07 GMT
Content-Type: application/hal+json
Content-Length: 4277
X-Robots-Tag: noindex
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"resource":"method","id":"ideal","description":"iDEAL","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/ideal.png","size2x":"https://www.mollie.com/external/icons/payment-methods/ideal%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/ideal.svg"},"status":"pending-boarding","issuers":[{"resource":"issuer","id":"ideal_ABNANL2A","name":"ABN AMRO","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/ABNANL2A.svg"}},{"resource":"issuer","id":"ideal_INGBNL2A","name":"ING","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/INGBNL2A.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/INGBNL2A%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/INGBNL2A.svg"}},{"resource":"issuer","id":"ideal_RABONL2U","name":"Rabobank","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/RABONL2U.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/RABONL2U%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/RABONL2U.svg"}},{"resource":"issuer","id":"ideal_ASNBNL21","name":"ASN Bank","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/ASNBNL21.svg"}},{"resource":"issuer","id":"ideal_BUNQNL2A","name":"bunq","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/BUNQNL2A.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/BUNQNL2A%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/BUNQNL2A.svg"}},{"resource":"issuer","id":"ideal_HANDNL2A","name":"Handelsbanken","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/HANDNL2A.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/HANDNL2A%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/HANDNL2A.svg"}},{"resource":"issuer","id":"ideal_KNABNL2H","name":"Knab","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/KNABNL2H.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/KNABNL2H%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/KNABNL2H.svg"}},{"resource":"issuer","id":"ideal_RBRBNL21","name":"Regiobank","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/RBRBNL21.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/RBRBNL21%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/RBRBNL21.svg"}},{"resource":"issuer","id":"ideal_REVOLT21","name":"Revolut","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/REVOLT21.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/REVOLT21%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/REVOLT21.svg"}},{"resource":"issuer","id":"ideal_SNSBNL2A","name":"SNS Bank","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/SNSBNL2A.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/SNSBNL2A%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/SNSBNL2A.svg"}},{"resource":"issuer","id":"ideal_TRIONL2U","name":"Triodos","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/TRIONL2U.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/TRIONL2U%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/TRIONL2U.svg"}},{"resource":"issuer","id":"ideal_FVLBNL22","name":"Van Lanschot","image":{"size1x":"https://www.mollie.com/external/icons/ideal-issuers/FVLBNL22.png","size2x":"https://www.mollie.com/external/icons/ideal-issuers/FVLBNL22%402x.png","svg":"https://www.mollie.com/external/icons/ideal-issuers/FVLBNL22.svg"}}],"_links":{"self":{"href":"https://api.mollie.com/v2/methods/ideal?include=issuers","type":"application/hal+json"},"documentation":{"href":"https://docs.mollie.com/reference/v2/methods-api/get-method","type":"text/html"}}}
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-methods-oneoff.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 20 Nov 2019 11:16:18 GMT
Content-Type: application/hal+json
Content-Length: 4885
Connection: close
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"_embedded":{"methods":[{"resource":"method","id":"ideal","description":"iDEAL","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/ideal.png","size2x":"https://www.mollie.com/external/icons/payment-methods/ideal%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/ideal.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/ideal","type":"application/hal+json"}}},{"resource":"method","id":"creditcard","description":"Credit card","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"2000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/creditcard.png","size2x":"https://www.mollie.com/external/icons/payment-methods/creditcard%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/creditcard.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/creditcard","type":"application/hal+json"}}},{"resource":"method","id":"paypal","description":"PayPal","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":null,"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/paypal.png","size2x":"https://www.mollie.com/external/icons/payment-methods/paypal%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/paypal.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/paypal","type":"application/hal+json"}}},{"resource":"method","id":"bancontact","description":"Bancontact","minimumAmount":{"value":"0.02","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/bancontact.png","size2x":"https://www.mollie.com/external/icons/payment-methods/bancontact%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/bancontact.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/bancontact","type":"application/hal+json"}}},{"resource":"method","id":"banktransfer","description":"Bank transfer","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"1000000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/banktransfer.png","size2x":"https://www.mollie.com/external/icons/payment-methods/banktransfer%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/banktransfer.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/banktransfer","type":"application/hal+json"}}},{"resource":"method","id":"sofort","description":"SOFORT Banking","minimumAmount":{"value":"0.10","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/sofort.png","size2x":"https://www.mollie.com/external/icons/payment-methods/sofort%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/sofort.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/sofort","type":"application/hal+json"}}},{"resource":"method","id":"kbc","description":"KBC/CBC Payment Button","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/kbc.png","size2x":"https://www.mollie.com/external/icons/payment-methods/kbc%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/kbc.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/kbc","type":"application/hal+json"}}},{"resource":"method","id":"belfius","description":"Belfius Pay Button","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/belfius.png","size2x":"https://www.mollie.com/external/icons/payment-methods/belfius%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/belfius.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/belfius","type":"application/hal+json"}}},{"resource":"method","id":"inghomepay","description":"ING Home'Pay","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"50000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/inghomepay.png","size2x":"https://www.mollie.com/external/icons/payment-methods/inghomepay%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/inghomepay.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/inghomepay","type":"application/hal+json"}}}]},"count":9,"_links":{"documentation":{"href":"https://docs.mollie.com/reference/v2/methods-api/list-methods","type":"text/html"},"self":{"href":"https://api.mollie.com/v2/methods?sequenceType=oneoff","type":"application/hal+json"}}}
10 changes: 10 additions & 0 deletions tests/http/api-mollie-com-v2-methods-recurring.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 20 Nov 2019 14:14:28 GMT
Content-Type: application/hal+json
Content-Length: 1326
Connection: close
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

{"_embedded":{"methods":[{"resource":"method","id":"creditcard","description":"Credit card","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"2000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/creditcard.png","size2x":"https://www.mollie.com/external/icons/payment-methods/creditcard%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/creditcard.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/creditcard","type":"application/hal+json"}}},{"resource":"method","id":"directdebit","description":"SEPA Direct Debit","minimumAmount":{"value":"0.01","currency":"EUR"},"maximumAmount":{"value":"1000.00","currency":"EUR"},"image":{"size1x":"https://www.mollie.com/external/icons/payment-methods/directdebit.png","size2x":"https://www.mollie.com/external/icons/payment-methods/directdebit%402x.png","svg":"https://www.mollie.com/external/icons/payment-methods/directdebit.svg"},"_links":{"self":{"href":"https://api.mollie.com/v2/methods/directdebit","type":"application/hal+json"}}}]},"count":2,"_links":{"documentation":{"href":"https://docs.mollie.com/reference/v2/methods-api/list-methods","type":"text/html"},"self":{"href":"https://api.mollie.com/v2/methods?sequenceType=recurring","type":"application/hal+json"}}}

0 comments on commit 896737c

Please sign in to comment.