Skip to content

Commit 2f0bbd5

Browse files
chore: synced file(s) with sumup/apis (#631)
1 parent f536a7d commit 2f0bbd5

2 files changed

Lines changed: 92 additions & 11 deletions

File tree

openapi.json

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6474,7 +6474,9 @@
64746474
"boleto",
64756475
"ideal",
64766476
"blik",
6477-
"bancontact"
6477+
"bancontact",
6478+
"google_pay",
6479+
"apple_pay"
64786480
]
64796481
},
64806482
"installments": {
@@ -6489,6 +6491,50 @@
64896491
"card": {
64906492
"$ref": "#/components/schemas/Card"
64916493
},
6494+
"google_pay": {
6495+
"description": "Raw `PaymentData` object received from Google Pay. Send the Google Pay response payload as-is.",
6496+
"type": "object",
6497+
"example": {
6498+
"apiVersionMinor": 0,
6499+
"apiVersion": 2,
6500+
"paymentMethodData": {
6501+
"description": "Visa •••• 1111",
6502+
"tokenizationData": {
6503+
"type": "PAYMENT_GATEWAY",
6504+
"token": "token-data"
6505+
},
6506+
"type": "CARD",
6507+
"info": {
6508+
"cardNetwork": "VISA",
6509+
"cardDetails": "1111"
6510+
}
6511+
}
6512+
}
6513+
},
6514+
"apple_pay": {
6515+
"description": "Raw payment token object received from Apple Pay. Send the Apple Pay response payload as-is.",
6516+
"type": "object",
6517+
"example": {
6518+
"token": {
6519+
"paymentData": {
6520+
"data": "si2xuT2ArQo689SfE-long-token",
6521+
"signature": "MIAGCSqGSIb3DQEHA-long-signature",
6522+
"header": {
6523+
"publicKeyHash": "PWfjDi3TSwgZ20TY/A7f3V6J/1rhHyRDCspbeljM0io=",
6524+
"ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEaBtz7UN2MNV0qInJVEEhXy10PU0KfO6KxFjXm93oKWL6lCsxZZGDl/EKioUHVSlKgpsKGin0xvgldfxeJVgy0g==",
6525+
"transactionId": "62e0568bc9258e9d0e059d745650fc8211d05ef7a7a1589a6411bf9b12cdfd04"
6526+
},
6527+
"version": "EC_v1"
6528+
},
6529+
"paymentMethod": {
6530+
"displayName": "MasterCard 8837",
6531+
"network": "MasterCard",
6532+
"type": "debit"
6533+
},
6534+
"transactionIdentifier": "62E0568BC9258E9D0E059D745650FC8211D05EF7A7A1589A6411BF9B12CDFD04"
6535+
}
6536+
}
6537+
},
64926538
"token": {
64936539
"description": "__Required when using a tokenized card to process a checkout.__ Unique token identifying the saved payment card for a customer.",
64946540
"type": "string"
@@ -8848,7 +8894,7 @@
88488894
"description": "The company's legal name.",
88498895
"type": "string",
88508896
"example": "Gin & Doughnuts Bar GmbH",
8851-
"maxLength": 512,
8897+
"maxLength": 150,
88528898
"minLength": 1
88538899
},
88548900
"merchant_category_code": {
@@ -8908,7 +8954,7 @@
89088954
"description": "The customer-facing business name.",
89098955
"type": "string",
89108956
"example": "Example Coffee",
8911-
"maxLength": 512,
8957+
"maxLength": 150,
89128958
"minLength": 1
89138959
},
89148960
"dynamic_descriptor": {
@@ -8924,13 +8970,13 @@
89248970
"type": "string",
89258971
"format": "uri",
89268972
"example": "https://example.com",
8927-
"maxLength": 512
8973+
"maxLength": 255
89288974
},
89298975
"email": {
89308976
"description": "A publicly available email address.",
89318977
"type": "string",
89328978
"example": "contact@example.com",
8933-
"maxLength": 256
8979+
"maxLength": 255
89348980
},
89358981
"phone_number": {
89368982
"$ref": "#/components/schemas/PhoneNumber"
@@ -8954,7 +9000,7 @@
89549000
"description": "A publicly available phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.\n",
89559001
"type": "string",
89569002
"example": "+420123456789",
8957-
"maxLength": 64
9003+
"maxLength": 16
89589004
},
89599005
"Branding": {
89609006
"description": "Settings used to apply the Merchant's branding to email receipts, invoices, checkouts, and other products.",

openapi.yaml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4400,6 +4400,8 @@ components:
44004400
- ideal
44014401
- blik
44024402
- bancontact
4403+
- google_pay
4404+
- apple_pay
44034405
installments:
44044406
description: Number of installments for deferred payments. Available only to merchant users in Brazil.
44054407
type: integer
@@ -4409,6 +4411,39 @@ components:
44094411
$ref: '#/components/schemas/MandatePayload'
44104412
card:
44114413
$ref: '#/components/schemas/Card'
4414+
google_pay:
4415+
description: Raw `PaymentData` object received from Google Pay. Send the Google Pay response payload as-is.
4416+
type: object
4417+
example:
4418+
apiVersionMinor: 0
4419+
apiVersion: 2
4420+
paymentMethodData:
4421+
description: Visa •••• 1111
4422+
tokenizationData:
4423+
type: PAYMENT_GATEWAY
4424+
token: token-data
4425+
type: CARD
4426+
info:
4427+
cardNetwork: VISA
4428+
cardDetails: '1111'
4429+
apple_pay:
4430+
description: Raw payment token object received from Apple Pay. Send the Apple Pay response payload as-is.
4431+
type: object
4432+
example:
4433+
token:
4434+
paymentData:
4435+
data: si2xuT2ArQo689SfE-long-token
4436+
signature: MIAGCSqGSIb3DQEHA-long-signature
4437+
header:
4438+
publicKeyHash: PWfjDi3TSwgZ20TY/A7f3V6J/1rhHyRDCspbeljM0io=
4439+
ephemeralPublicKey: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEaBtz7UN2MNV0qInJVEEhXy10PU0KfO6KxFjXm93oKWL6lCsxZZGDl/EKioUHVSlKgpsKGin0xvgldfxeJVgy0g==
4440+
transactionId: 62e0568bc9258e9d0e059d745650fc8211d05ef7a7a1589a6411bf9b12cdfd04
4441+
version: EC_v1
4442+
paymentMethod:
4443+
displayName: MasterCard 8837
4444+
network: MasterCard
4445+
type: debit
4446+
transactionIdentifier: 62E0568BC9258E9D0E059D745650FC8211D05EF7A7A1589A6411BF9B12CDFD04
44124447
token:
44134448
description: __Required when using a tokenized card to process a checkout.__ Unique token identifying the saved payment card for a customer.
44144449
type: string
@@ -6255,7 +6290,7 @@ components:
62556290
description: The company's legal name.
62566291
type: string
62576292
example: Gin & Doughnuts Bar GmbH
6258-
maxLength: 512
6293+
maxLength: 150
62596294
minLength: 1
62606295
merchant_category_code:
62616296
description: |
@@ -6306,7 +6341,7 @@ components:
63066341
description: The customer-facing business name.
63076342
type: string
63086343
example: Example Coffee
6309-
maxLength: 512
6344+
maxLength: 150
63106345
minLength: 1
63116346
dynamic_descriptor:
63126347
description: |
@@ -6322,12 +6357,12 @@ components:
63226357
type: string
63236358
format: uri
63246359
example: 'https://example.com'
6325-
maxLength: 512
6360+
maxLength: 255
63266361
email:
63276362
description: A publicly available email address.
63286363
type: string
63296364
example: contact@example.com
6330-
maxLength: 256
6365+
maxLength: 255
63316366
phone_number:
63326367
$ref: '#/components/schemas/PhoneNumber'
63336368
address:
@@ -6342,7 +6377,7 @@ components:
63426377
A publicly available phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.
63436378
type: string
63446379
example: '+420123456789'
6345-
maxLength: 64
6380+
maxLength: 16
63466381
Branding:
63476382
description: 'Settings used to apply the Merchant''s branding to email receipts, invoices, checkouts, and other products.'
63486383
type: object

0 commit comments

Comments
 (0)