@aptly-as/app-sdk
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -12,3 +12,11 @@ import { AptlyOrder } from '@aptly-as/types'; | ||
patch(order: Partial<AptlyOrder>): Promise<AptlyOrder>; | ||
reset(): Promise<AptlyOrder>; | ||
reset(body?: { | ||
payment?: boolean; | ||
sign?: boolean; | ||
fromApp?: boolean; | ||
}): Promise<AptlyOrder>; | ||
paymentAuthorize(body: { | ||
id: string; | ||
at: string; | ||
}): Promise<AptlyOrder>; | ||
signeesBulk(signees: { | ||
@@ -15,0 +23,0 @@ user: string; |
@@ -26,7 +26,12 @@ import { pathWithParams } from './api.utils.js'; | ||
} | ||
reset() { | ||
reset(body = {}) { | ||
if (!this.id) | ||
throw new Error('ID is required.'); | ||
return this.api.patch(`${this.path}/${this.id}/reset`, {}); | ||
return this.api.patch(`${this.path}/${this.id}/reset`, body); | ||
} | ||
paymentAuthorize(body) { | ||
if (!this.id) | ||
throw new Error('ID is required.'); | ||
return this.api.post(`${this.path}/${this.id}/payment/authorize`, body); | ||
} | ||
signeesBulk(signees) { | ||
@@ -33,0 +38,0 @@ if (!this.id) |
{ | ||
"name": "@aptly-as/app-sdk", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Aptly app SDK library for app communication and frontend development", | ||
@@ -5,0 +5,0 @@ "type": "module", |
38472
1010