From b659d00f6a13409847aaec956ecca75e2574d80b Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sat, 1 Mar 2025 16:07:35 +0000
Subject: [PATCH] chore: generate code
---
README.md | 4 +-
SumUpAPICollection.json | 1070 +++++++++++++++++++++++++++------------
2 files changed, 737 insertions(+), 337 deletions(-)
diff --git a/README.md b/README.md
index cf44a5d..cee66d4 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ From the [SumUp's public workspace](https://www.postman.com/sumupengineering/wor
And select `Create a fork`:
-
+
### Import SumUp API collection
@@ -41,5 +41,5 @@ In the import dialog, paste in the SumUp API Collection URL: `https://raw.github
To make request you will need to authorize. The easiest way to do that it to [create an API key](https://developer.sumup.com/api-keys) from the Developer portal. Open the collection, click on `Authorization` tab, select `Auth Type` `Bearer Token`, and paste your API key as the token.
-
+
diff --git a/SumUpAPICollection.json b/SumUpAPICollection.json
index 73296cb..e15f0e9 100644
--- a/SumUpAPICollection.json
+++ b/SumUpAPICollection.json
@@ -5,7 +5,7 @@
"description": "Accept payments from your end users by adding the Checkouts model to your platform.\nSumUp supports standard and single payment 3DS checkout flows.\n\nThe Checkout model allows creating, listing, retrieving, processing and deactivating checkouts.\nA payment is completed by creating a checkout and then processing the checkout.\n",
"item": [
{
- "id": "d9d843a8-d756-4846-84d9-b80740732e2b",
+ "id": "88d6a0db-b9c1-4e0e-aea0-87db4a00b61b",
"name": "List checkouts",
"request": {
"name": "List checkouts",
@@ -42,11 +42,19 @@
],
"method": "GET",
"body": {},
- "auth": null
+ "auth": {
+ "type": "bearer",
+ "bearer": [
+ {
+ "key": "token",
+ "value": "{{bearerToken}}"
+ }
+ ]
+ }
},
"response": [
{
- "id": "f45afbf3-b011-4450-8f26-e2e1ca41fc86",
+ "id": "0fb92918-f132-4c88-a1fb-d9fc2a91c633",
"name": "OK",
"originalRequest": {
"url": {
@@ -87,12 +95,12 @@
"value": "application/json"
}
],
- "body": "[\n {\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"PLN\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"mandate\": {\n \"merchant_code\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n },\n \"merchant_code\": \"\",\n \"pay_to_email\": \"\",\n \"return_url\": \"\",\n \"status\": \"FAILED\",\n \"transactions\": [\n {\n \"amount\": \"\",\n \"currency\": \"EUR\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"RECURRING\",\n \"status\": \"CANCELLED\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n },\n {\n \"amount\": \"\",\n \"currency\": \"GBP\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"BOLETO\",\n \"status\": \"SUCCESSFUL\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n }\n ],\n \"valid_until\": \"\",\n \"merchant_name\": \"\",\n \"payment_instrument\": {\n \"token\": \"\"\n },\n \"redirect_url\": \"\",\n \"transaction_code\": \"\",\n \"transaction_id\": \"\"\n },\n {\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"DKK\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"mandate\": {\n \"merchant_code\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n },\n \"merchant_code\": \"\",\n \"pay_to_email\": \"\",\n \"return_url\": \"\",\n \"status\": \"PAID\",\n \"transactions\": [\n {\n \"amount\": \"\",\n \"currency\": \"GBP\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"RECURRING\",\n \"status\": \"FAILED\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n },\n {\n \"amount\": \"\",\n \"currency\": \"USD\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"ECOM\",\n \"status\": \"FAILED\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n }\n ],\n \"valid_until\": \"\",\n \"merchant_name\": \"\",\n \"payment_instrument\": {\n \"token\": \"\"\n },\n \"redirect_url\": \"\",\n \"transaction_code\": \"\",\n \"transaction_id\": \"\"\n }\n]",
+ "body": "[\n {\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"CLP\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"mandate\": {\n \"merchant_code\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n },\n \"merchant_code\": \"\",\n \"pay_to_email\": \"\",\n \"return_url\": \"\",\n \"status\": \"PENDING\",\n \"transactions\": [\n {\n \"amount\": \"\",\n \"currency\": \"CLP\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"ECOM\",\n \"status\": \"PENDING\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"BOLETO\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n },\n {\n \"amount\": \"\",\n \"currency\": \"CZK\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"ECOM\",\n \"status\": \"PENDING\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"BOLETO\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n }\n ],\n \"valid_until\": \"\",\n \"merchant_name\": \"\",\n \"payment_instrument\": {\n \"token\": \"\"\n },\n \"redirect_url\": \"\",\n \"transaction_code\": \"\",\n \"transaction_id\": \"\"\n },\n {\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"RON\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"mandate\": {\n \"merchant_code\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n },\n \"merchant_code\": \"\",\n \"pay_to_email\": \"\",\n \"return_url\": \"\",\n \"status\": \"PENDING\",\n \"transactions\": [\n {\n \"amount\": \"\",\n \"currency\": \"CHF\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"BOLETO\",\n \"status\": \"PENDING\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n },\n {\n \"amount\": \"\",\n \"currency\": \"SEK\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"BOLETO\",\n \"status\": \"SUCCESSFUL\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n }\n ],\n \"valid_until\": \"\",\n \"merchant_name\": \"\",\n \"payment_instrument\": {\n \"token\": \"\"\n },\n \"redirect_url\": \"\",\n \"transaction_code\": \"\",\n \"transaction_id\": \"\"\n }\n]",
"cookie": [],
"_postman_previewlanguage": "json"
},
{
- "id": "86537573-cd2c-43f8-925b-badaa014feda",
+ "id": "27e91f59-c4de-470c-8d4d-3ee871ca63d8",
"name": "Unauthorized",
"originalRequest": {
"url": {
@@ -144,7 +152,7 @@
}
},
{
- "id": "f00fc864-0453-43c5-9ae2-8c22d67c60f5",
+ "id": "42736b7d-342e-4aeb-ab02-b5455de20db2",
"name": "Create a checkout",
"request": {
"name": "Create a checkout",
@@ -176,7 +184,7 @@
"method": "POST",
"body": {
"mode": "raw",
- "raw": "{\n \"checkout_reference\": \"\",\n \"amount\": \"\",\n \"currency\": \"SEK\",\n \"merchant_code\": \"\",\n \"customer_id\": \"\",\n \"description\": \"\",\n \"pay_to_email\": \"\",\n \"payment_type\": \"\",\n \"personal_details\": {\n \"address\": {\n \"city\": \"\",\n \"country\": \"\",\n \"line_1\": \"\",\n \"postal_code\": \"68506-456\",\n \"state\": \"DF\"\n },\n \"email\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"tax_id\": \"\"\n },\n \"purpose\": \"CHECKOUT\",\n \"redirect_url\": \"\",\n \"return_url\": \"\"\n}",
+ "raw": "{\n \"checkout_reference\": \"\",\n \"amount\": \"\",\n \"currency\": \"USD\",\n \"merchant_code\": \"\",\n \"customer_id\": \"\",\n \"description\": \"\",\n \"pay_to_email\": \"\",\n \"payment_type\": \"\",\n \"personal_details\": {\n \"address\": {\n \"city\": \"\",\n \"country\": \"\",\n \"line_1\": \"\",\n \"postal_code\": \"82156652\",\n \"state\": \"SP\"\n },\n \"email\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"tax_id\": \"\"\n },\n \"purpose\": \"CHECKOUT\",\n \"redirect_url\": \"\",\n \"return_url\": \"\"\n}",
"options": {
"raw": {
"headerFamily": "json",
@@ -184,11 +192,19 @@
}
}
},
- "auth": null
+ "auth": {
+ "type": "bearer",
+ "bearer": [
+ {
+ "key": "token",
+ "value": "{{bearerToken}}"
+ }
+ ]
+ }
},
"response": [
{
- "id": "c897d140-4bff-4e8a-a466-03b62031f7ea",
+ "id": "b326fdd1-fdcd-4538-9b57-3a7423a1f624",
"name": "Created",
"originalRequest": {
"url": {
@@ -215,7 +231,7 @@
"method": "POST",
"body": {
"mode": "raw",
- "raw": "{\n \"checkout_reference\": \"\",\n \"amount\": \"\",\n \"currency\": \"SEK\",\n \"merchant_code\": \"\",\n \"customer_id\": \"\",\n \"description\": \"\",\n \"pay_to_email\": \"\",\n \"payment_type\": \"\",\n \"personal_details\": {\n \"address\": {\n \"city\": \"\",\n \"country\": \"\",\n \"line_1\": \"\",\n \"postal_code\": \"68506-456\",\n \"state\": \"DF\"\n },\n \"email\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"tax_id\": \"\"\n },\n \"purpose\": \"CHECKOUT\",\n \"redirect_url\": \"\",\n \"return_url\": \"\"\n}",
+ "raw": "{\n \"checkout_reference\": \"\",\n \"amount\": \"\",\n \"currency\": \"USD\",\n \"merchant_code\": \"\",\n \"customer_id\": \"\",\n \"description\": \"\",\n \"pay_to_email\": \"\",\n \"payment_type\": \"\",\n \"personal_details\": {\n \"address\": {\n \"city\": \"\",\n \"country\": \"\",\n \"line_1\": \"\",\n \"postal_code\": \"82156652\",\n \"state\": \"SP\"\n },\n \"email\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"tax_id\": \"\"\n },\n \"purpose\": \"CHECKOUT\",\n \"redirect_url\": \"\",\n \"return_url\": \"\"\n}",
"options": {
"raw": {
"headerFamily": "json",
@@ -232,12 +248,12 @@
"value": "application/json"
}
],
- "body": "{\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"BRL\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"\",\n \"id\": \"\",\n \"mandate\": {\n \"merchant_code\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n },\n \"merchant_code\": \"\",\n \"pay_to_email\": \"\",\n \"return_url\": \"\",\n \"status\": \"PAID\",\n \"transactions\": [\n {\n \"amount\": \"\",\n \"currency\": \"CZK\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"RECURRING\",\n \"status\": \"PENDING\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n },\n {\n \"amount\": \"\",\n \"currency\": \"BGN\",\n \"id\": \"\",\n \"installments_count\": \"\",\n \"payment_type\": \"BOLETO\",\n \"status\": \"CANCELLED\",\n \"timestamp\": \"\",\n \"transaction_code\": \"\",\n \"auth_code\": \"\",\n \"entry_mode\": \"CUSTOMER_ENTRY\",\n \"internal_id\": \"\",\n \"merchant_code\": \"\",\n \"tip_amount\": \"\",\n \"vat_amount\": \"\"\n }\n ],\n \"valid_until\": \"\"\n}",
+ "body": "{\n \"amount\": \"\",\n \"checkout_reference\": \"\",\n \"currency\": \"BGN\",\n \"customer_id\": \"\",\n \"date\": \"\",\n \"description\": \"