Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7606,6 +7606,7 @@
"apple pay",
"google pay",
"paypal",
"twint",
"na"
],
"title": "Entry Mode"
Expand Down Expand Up @@ -7828,7 +7829,14 @@
"description": "List of hyperlinks for accessing related resources.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Link"
"oneOf": [
{
"$ref": "#/components/schemas/Link"
},
{
"$ref": "#/components/schemas/LinkRefund"
}
]
}
},
"events": {
Expand Down Expand Up @@ -7930,6 +7938,30 @@
"minimum": 0,
"title": "Latitude"
},
"LinkRefund": {
"description": "Hypermedia link including allowed minimum and maximum refund amounts.",
"allOf": [
{
"$ref": "#/components/schemas/Link"
},
{
"type": "object",
"properties": {
"min_amount": {
"description": "Minimum allowed amount for the refund.",
"type": "number",
"format": "float"
},
"max_amount": {
"description": "Maximum allowed amount for the refund.",
"type": "number",
"format": "float"
}
}
}
],
"title": "Link Refund"
},
"Lon": {
"description": "Longitude value from the coordinates of the payment location (as received from the payment terminal reader).",
"type": "number",
Expand Down Expand Up @@ -10382,6 +10414,7 @@
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"TWINT",
"NONE",
"CHIP",
"MANUAL_ENTRY",
Expand Down
1 change: 1 addition & 0 deletions sdk/src/types/entry-mode-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type EntryModeFilter =
| "APPLE_PAY"
| "GOOGLE_PAY"
| "PAYPAL"
| "TWINT"
| "NONE"
| "CHIP"
| "MANUAL_ENTRY"
Expand Down
1 change: 1 addition & 0 deletions sdk/src/types/entry-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ export type EntryMode =
| "apple pay"
| "google pay"
| "paypal"
| "twint"
| "na";
1 change: 1 addition & 0 deletions sdk/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type { Invite } from "./invite";
export type { Lat } from "./lat";
export type { LegalType } from "./legal-type";
export type { Link } from "./link";
export type { LinkRefund } from "./link-refund";
export type { ListPersonsResponseBody } from "./list-persons-response-body";
export type { Lon } from "./lon";
export type { MandatePayload } from "./mandate-payload";
Expand Down
19 changes: 19 additions & 0 deletions sdk/src/types/link-refund.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Code generated by @sumup/sumup-ts-codegen. DO NOT EDIT.

import type { Link } from "./link";

/**
* Link Refund
*
* Hypermedia link including allowed minimum and maximum refund amounts.
*/
export type LinkRefund = Link & {
/**
* Minimum allowed amount for the refund.
*/
min_amount?: number;
/**
* Maximum allowed amount for the refund.
*/
max_amount?: number;
};
3 changes: 2 additions & 1 deletion sdk/src/types/transaction-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Event } from "./event";
import type { HorizontalAccuracy } from "./horizontal-accuracy";
import type { Lat } from "./lat";
import type { Link } from "./link";
import type { LinkRefund } from "./link-refund";
import type { Lon } from "./lon";
import type { Product } from "./product";
import type { TransactionBase } from "./transaction-base";
Expand Down Expand Up @@ -138,7 +139,7 @@ export type TransactionFull = TransactionBase &
/**
* List of hyperlinks for accessing related resources.
*/
links?: Link[];
links?: (Link | LinkRefund)[];
/**
* List of events related to the transaction.
*/
Expand Down
Loading