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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@internxt/sdk",
"author": "Internxt <hello@internxt.com>",
"version": "1.11.25",
"version": "1.11.26",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions src/drive/users/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
ChangePasswordPayloadNew,
CheckChangeEmailExpirationResponse,
FriendInvite,
IncompleteCheckoutPayload,
IncompleteCheckoutResponse,
InitializeUserResponse,
PreCreateUserResponse,
Token,
Expand Down Expand Up @@ -385,6 +387,15 @@ export class Users {
return this.client.get<{ mnemonic: string }>('/users/generate-mnemonic', this.basicHeaders());
}

/**
* Tracks incomplete checkout event and sends notification email when user abandons checkout process
* @param payload - The incomplete checkout data containing checkout URL, plan name and price
* @returns A promise that resolves when the event is tracked successfully
*/
public handleIncompleteCheckout(payload: IncompleteCheckoutPayload): Promise<IncompleteCheckoutResponse> {
return this.client.post('/users/payments/incomplete-checkout', payload, this.headers());
}

private basicHeaders() {
return basicHeaders({
clientName: this.appDetails.clientName,
Expand Down
10 changes: 10 additions & 0 deletions src/drive/users/types.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If Im not mistaken, if you execute this script at least the payload should be autogenerated from swagger for this EP. The schema file will be updated with the correct payload without adding it manually.

Copy link
Contributor Author

@jaaaaavier jaaaaavier Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried it, but I'm not sure if it's working for me correctly because it's generating a lot of changes (around 8k) in the schema, but I think they're all just indentation and spacing changes.

Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,13 @@ export type VerifyEmailChangeResponse = {
};

export type CheckChangeEmailExpirationResponse = { isExpired: boolean };
export interface IncompleteCheckoutPayload extends Record<string, unknown> {
completeCheckoutUrl: string;
planName?: string;
price?: number;
}

export interface IncompleteCheckoutResponse {
success: boolean;
message: string;
}
Loading