syntro-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
- package/src/index.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -226,6 +226,10 @@ declare class Syntro {
|
|
|
226
226
|
* if (paid) console.log('Customer paid!', transaction.amount);
|
|
227
227
|
*/
|
|
228
228
|
verifyPayment(customerEmail: string, options?: VerifyPaymentOptions): Promise<VerifyPaymentResult>;
|
|
229
|
+
/**
|
|
230
|
+
* Alias for verifyPayment.
|
|
231
|
+
*/
|
|
232
|
+
checkPaid(customerEmail: string, options?: VerifyPaymentOptions): Promise<VerifyPaymentResult>;
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
export { type AuthResult, type EventResult, type EventType, type MetadataResult, type PaymentResult, Syntro, type SyntroConfig, type SyntroEvent, type UserResult, type VerifyPaymentOptions, type VerifyPaymentResult, type VerifyResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -226,6 +226,10 @@ declare class Syntro {
|
|
|
226
226
|
* if (paid) console.log('Customer paid!', transaction.amount);
|
|
227
227
|
*/
|
|
228
228
|
verifyPayment(customerEmail: string, options?: VerifyPaymentOptions): Promise<VerifyPaymentResult>;
|
|
229
|
+
/**
|
|
230
|
+
* Alias for verifyPayment.
|
|
231
|
+
*/
|
|
232
|
+
checkPaid(customerEmail: string, options?: VerifyPaymentOptions): Promise<VerifyPaymentResult>;
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
export { type AuthResult, type EventResult, type EventType, type MetadataResult, type PaymentResult, Syntro, type SyntroConfig, type SyntroEvent, type UserResult, type VerifyPaymentOptions, type VerifyPaymentResult, type VerifyResult };
|
package/dist/index.js
CHANGED
|
@@ -298,6 +298,12 @@ var Syntro = class {
|
|
|
298
298
|
return { paid: false, error: err instanceof Error ? err.message : "Unknown error" };
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* Alias for verifyPayment.
|
|
303
|
+
*/
|
|
304
|
+
async checkPaid(customerEmail, options) {
|
|
305
|
+
return this.verifyPayment(customerEmail, options);
|
|
306
|
+
}
|
|
301
307
|
};
|
|
302
308
|
// Annotate the CommonJS export names for ESM import in node:
|
|
303
309
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -274,6 +274,12 @@ var Syntro = class {
|
|
|
274
274
|
return { paid: false, error: err instanceof Error ? err.message : "Unknown error" };
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Alias for verifyPayment.
|
|
279
|
+
*/
|
|
280
|
+
async checkPaid(customerEmail, options) {
|
|
281
|
+
return this.verifyPayment(customerEmail, options);
|
|
282
|
+
}
|
|
277
283
|
};
|
|
278
284
|
export {
|
|
279
285
|
Syntro
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -358,4 +358,11 @@ export class Syntro {
|
|
|
358
358
|
return { paid: false, error: err instanceof Error ? err.message : 'Unknown error' };
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Alias for verifyPayment.
|
|
364
|
+
*/
|
|
365
|
+
async checkPaid(customerEmail: string, options?: VerifyPaymentOptions): Promise<VerifyPaymentResult> {
|
|
366
|
+
return this.verifyPayment(customerEmail, options);
|
|
367
|
+
}
|
|
361
368
|
}
|