Skip to content

Commit 679347e

Browse files
committed
feat(typescript): update to latest sumup sdk
1 parent ff0da25 commit 679347e

File tree

9 files changed

+289
-176
lines changed

9 files changed

+289
-176
lines changed

typescript/biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.12/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

typescript/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
"scripts": {
99
"build": "rslib build",
1010
"build:watch": "rslib build --watch",
11+
"generate": "npm --prefix ../codegen run generate",
1112
"inspect": "rslib inspect",
1213
"lint": "biome check",
1314
"lint:fix": "biome check --write",
15+
"postgenerate": "npm run lint:fix",
1416
"prepublishOnly": "npm run build",
1517
"test": "echo \"Error: no test specified\" && exit 0"
1618
},
@@ -51,7 +53,7 @@
5153
"@langchain/core": "^1.1.8",
5254
"@modelcontextprotocol/sdk": "^1.26.0",
5355
"@openai/agents": "^0.3.3",
54-
"@sumup/sdk": "^0.0.11",
56+
"@sumup/sdk": "^0.0.13",
5557
"ai": "^5.0.103",
5658
"zod": "^3.25.76"
5759
},

typescript/src/common/checkouts/parameters.ts

Lines changed: 130 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -162,32 +162,32 @@ export const createCheckoutParameters = z
162162
.optional(),
163163
entry_mode: z
164164
.enum([
165-
"BOLETO",
166-
"SOFORT",
167-
"IDEAL",
168-
"BANCONTACT",
169-
"EPS",
170-
"MYBANK",
171-
"SATISPAY",
172-
"BLIK",
173-
"P24",
174-
"GIROPAY",
175-
"PIX",
176-
"QR_CODE_PIX",
177-
"APPLE_PAY",
178-
"GOOGLE_PAY",
179-
"PAYPAL",
180-
"NONE",
181-
"CHIP",
182-
"MANUAL_ENTRY",
183-
"CUSTOMER_ENTRY",
184-
"MAGSTRIPE_FALLBACK",
185-
"MAGSTRIPE",
186-
"DIRECT_DEBIT",
187-
"CONTACTLESS",
188-
"MOTO",
189-
"CONTACTLESS_MAGSTRIPE",
190-
"N/A",
165+
"none",
166+
"magstripe",
167+
"chip",
168+
"manual entry",
169+
"customer entry",
170+
"magstripe fallback",
171+
"contactless",
172+
"moto",
173+
"contactless magstripe",
174+
"boleto",
175+
"direct debit",
176+
"sofort",
177+
"ideal",
178+
"bancontact",
179+
"eps",
180+
"mybank",
181+
"satispay",
182+
"blik",
183+
"p24",
184+
"giropay",
185+
"pix",
186+
"qr code pix",
187+
"apple pay",
188+
"google pay",
189+
"paypal",
190+
"na",
191191
])
192192
.describe(`Entry mode of the payment details.`)
193193
.optional(),
@@ -389,32 +389,32 @@ export const createCheckoutResult = z
389389
.optional(),
390390
entry_mode: z
391391
.enum([
392-
"BOLETO",
393-
"SOFORT",
394-
"IDEAL",
395-
"BANCONTACT",
396-
"EPS",
397-
"MYBANK",
398-
"SATISPAY",
399-
"BLIK",
400-
"P24",
401-
"GIROPAY",
402-
"PIX",
403-
"QR_CODE_PIX",
404-
"APPLE_PAY",
405-
"GOOGLE_PAY",
406-
"PAYPAL",
407-
"NONE",
408-
"CHIP",
409-
"MANUAL_ENTRY",
410-
"CUSTOMER_ENTRY",
411-
"MAGSTRIPE_FALLBACK",
412-
"MAGSTRIPE",
413-
"DIRECT_DEBIT",
414-
"CONTACTLESS",
415-
"MOTO",
416-
"CONTACTLESS_MAGSTRIPE",
417-
"N/A",
392+
"none",
393+
"magstripe",
394+
"chip",
395+
"manual entry",
396+
"customer entry",
397+
"magstripe fallback",
398+
"contactless",
399+
"moto",
400+
"contactless magstripe",
401+
"boleto",
402+
"direct debit",
403+
"sofort",
404+
"ideal",
405+
"bancontact",
406+
"eps",
407+
"mybank",
408+
"satispay",
409+
"blik",
410+
"p24",
411+
"giropay",
412+
"pix",
413+
"qr code pix",
414+
"apple pay",
415+
"google pay",
416+
"paypal",
417+
"na",
418418
])
419419
.describe(`Entry mode of the payment details.`)
420420
.optional(),
@@ -615,32 +615,32 @@ export const deactivateCheckoutResult = z
615615
.optional(),
616616
entry_mode: z
617617
.enum([
618-
"BOLETO",
619-
"SOFORT",
620-
"IDEAL",
621-
"BANCONTACT",
622-
"EPS",
623-
"MYBANK",
624-
"SATISPAY",
625-
"BLIK",
626-
"P24",
627-
"GIROPAY",
628-
"PIX",
629-
"QR_CODE_PIX",
630-
"APPLE_PAY",
631-
"GOOGLE_PAY",
632-
"PAYPAL",
633-
"NONE",
634-
"CHIP",
635-
"MANUAL_ENTRY",
636-
"CUSTOMER_ENTRY",
637-
"MAGSTRIPE_FALLBACK",
638-
"MAGSTRIPE",
639-
"DIRECT_DEBIT",
640-
"CONTACTLESS",
641-
"MOTO",
642-
"CONTACTLESS_MAGSTRIPE",
643-
"N/A",
618+
"none",
619+
"magstripe",
620+
"chip",
621+
"manual entry",
622+
"customer entry",
623+
"magstripe fallback",
624+
"contactless",
625+
"moto",
626+
"contactless magstripe",
627+
"boleto",
628+
"direct debit",
629+
"sofort",
630+
"ideal",
631+
"bancontact",
632+
"eps",
633+
"mybank",
634+
"satispay",
635+
"blik",
636+
"p24",
637+
"giropay",
638+
"pix",
639+
"qr code pix",
640+
"apple pay",
641+
"google pay",
642+
"paypal",
643+
"na",
644644
])
645645
.describe(`Entry mode of the payment details.`)
646646
.optional(),
@@ -841,32 +841,32 @@ export const getCheckoutResult = z
841841
.optional(),
842842
entry_mode: z
843843
.enum([
844-
"BOLETO",
845-
"SOFORT",
846-
"IDEAL",
847-
"BANCONTACT",
848-
"EPS",
849-
"MYBANK",
850-
"SATISPAY",
851-
"BLIK",
852-
"P24",
853-
"GIROPAY",
854-
"PIX",
855-
"QR_CODE_PIX",
856-
"APPLE_PAY",
857-
"GOOGLE_PAY",
858-
"PAYPAL",
859-
"NONE",
860-
"CHIP",
861-
"MANUAL_ENTRY",
862-
"CUSTOMER_ENTRY",
863-
"MAGSTRIPE_FALLBACK",
864-
"MAGSTRIPE",
865-
"DIRECT_DEBIT",
866-
"CONTACTLESS",
867-
"MOTO",
868-
"CONTACTLESS_MAGSTRIPE",
869-
"N/A",
844+
"none",
845+
"magstripe",
846+
"chip",
847+
"manual entry",
848+
"customer entry",
849+
"magstripe fallback",
850+
"contactless",
851+
"moto",
852+
"contactless magstripe",
853+
"boleto",
854+
"direct debit",
855+
"sofort",
856+
"ideal",
857+
"bancontact",
858+
"eps",
859+
"mybank",
860+
"satispay",
861+
"blik",
862+
"p24",
863+
"giropay",
864+
"pix",
865+
"qr code pix",
866+
"apple pay",
867+
"google pay",
868+
"paypal",
869+
"na",
870870
])
871871
.describe(`Entry mode of the payment details.`)
872872
.optional(),
@@ -1127,32 +1127,32 @@ export const listCheckoutsResult = z
11271127
.optional(),
11281128
entry_mode: z
11291129
.enum([
1130-
"BOLETO",
1131-
"SOFORT",
1132-
"IDEAL",
1133-
"BANCONTACT",
1134-
"EPS",
1135-
"MYBANK",
1136-
"SATISPAY",
1137-
"BLIK",
1138-
"P24",
1139-
"GIROPAY",
1140-
"PIX",
1141-
"QR_CODE_PIX",
1142-
"APPLE_PAY",
1143-
"GOOGLE_PAY",
1144-
"PAYPAL",
1145-
"NONE",
1146-
"CHIP",
1147-
"MANUAL_ENTRY",
1148-
"CUSTOMER_ENTRY",
1149-
"MAGSTRIPE_FALLBACK",
1150-
"MAGSTRIPE",
1151-
"DIRECT_DEBIT",
1152-
"CONTACTLESS",
1153-
"MOTO",
1154-
"CONTACTLESS_MAGSTRIPE",
1155-
"N/A",
1130+
"none",
1131+
"magstripe",
1132+
"chip",
1133+
"manual entry",
1134+
"customer entry",
1135+
"magstripe fallback",
1136+
"contactless",
1137+
"moto",
1138+
"contactless magstripe",
1139+
"boleto",
1140+
"direct debit",
1141+
"sofort",
1142+
"ideal",
1143+
"bancontact",
1144+
"eps",
1145+
"mybank",
1146+
"satispay",
1147+
"blik",
1148+
"p24",
1149+
"giropay",
1150+
"pix",
1151+
"qr code pix",
1152+
"apple pay",
1153+
"google pay",
1154+
"paypal",
1155+
"na",
11561156
])
11571157
.describe(`Entry mode of the payment details.`)
11581158
.optional(),

typescript/src/common/customers/parameters.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,29 @@ export const listPaymentInstrumentsResult = z
223223
.optional(),
224224
type: z
225225
.enum([
226+
"ALELO",
226227
"AMEX",
228+
"CONECS",
227229
"CUP",
228230
"DINERS",
229231
"DISCOVER",
232+
"EFTPOS",
230233
"ELO",
231234
"ELV",
235+
"GIROCARD",
232236
"HIPERCARD",
237+
"INTERAC",
233238
"JCB",
234239
"MAESTRO",
235240
"MASTERCARD",
241+
"PLUXEE",
242+
"SWILE",
243+
"TICKET",
236244
"VISA",
237245
"VISA_ELECTRON",
238246
"VISA_VPAY",
247+
"VPAY",
248+
"VR",
239249
"UNKNOWN",
240250
])
241251
.describe(

0 commit comments

Comments
 (0)