Skip to content

Commit a1fa01d

Browse files
authoredMar 10, 2025··
Merge pull request #81 from spring-media/PLUS-2658
PLUS-2658 added WalletV1 type
2 parents a7d8478 + 0d3cd0e commit a1fa01d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/ps-web-apis.ts

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export type WaitingRoomQueue = WaitingRoomQueueDefault | "auth" | "checkout" | "
8282
export type Fetch = (input: RequestInfo, init?: FetchOptions) => Promise<Response>;
8383
export type GetRosettaEnvByKey = (key: string) => string | undefined;
8484
export type WaitForCapacity = (queue: WaitingRoomQueue) => Promise<void>;
85+
export type GetUserCredit = () => Promise<number>;
8586
export type RegisterIframeMessageListener = (eventtype: string, listener: (event: any, iframe: HTMLIFrameElement) => void) => void;
8687

8788
export interface WhoamiV1 {
@@ -272,6 +273,10 @@ export interface WaitingRoomV1 {
272273
waitForCapacity: WaitForCapacity;
273274
}
274275

276+
export interface WalletV1 {
277+
getUserCredit: GetUserCredit;
278+
}
279+
275280
export type ILayer = "privacy" | "reject";
276281
export type IApp = "offerpage" | "checkout" | "cancellation";
277282
export type ITenant = "welt" | "bild";

0 commit comments

Comments
 (0)
Please sign in to comment.