Skip to content

Commit 9672843

Browse files
chore: updated customer acceptance
1 parent b381ceb commit 9672843

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/index.d.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,13 +444,28 @@ declare module "@juspay-tech/hyper-js" {
444444
whole_connector_response: object | null;
445445
}
446446

447+
/**
448+
* Represents the details of the online acceptance method.
449+
*/
450+
export interface CustomerAcceptanceOnlineDetails {
451+
/** The user agent string of the browser used for acceptance. */
452+
user_agent: string;
453+
/** The IP address of the customer, if available. */
454+
ip_address?: string | null;
455+
}
456+
447457
/**
448458
* Represents customer acceptance details for a mandate.
449-
* Placeholder: The exact structure needs to be defined based on backend API.
450459
*/
451460
export interface CustomerAcceptance {
452-
// Define properties based on actual CustomerAcceptance structure
453-
[key: string]: any; // Placeholder for now
461+
/** The type of acceptance (e.g., "online", "offline"). */
462+
acceptance_type: "online" | "offline" | string;
463+
/** The timestamp when the acceptance was recorded (ISO 8601 format). */
464+
accepted_at: string;
465+
/** Details specific to online acceptance. Present if 'acceptance_type' is 'online'. */
466+
online?: CustomerAcceptanceOnlineDetails | null;
467+
/** Placeholder for details specific to offline acceptance. */
468+
offline?: { [key: string]: any } | null; // Define further if offline structure is known
454469
}
455470

456471
/**

0 commit comments

Comments
 (0)