@compassdigital/sdk.typescript 4.506.0 → 4.508.0
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/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +22 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +2 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/consumer.ts +43 -0
- package/src/interface/menu.ts +2 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1256,6 +1256,8 @@ import {
|
|
|
1256
1256
|
PostConsumerUserGuestResponse$0,
|
|
1257
1257
|
PostConsumerOpenaiChatBody,
|
|
1258
1258
|
PostConsumerOpenaiChatResponse,
|
|
1259
|
+
PostPaymentValidateMerchantBody$0,
|
|
1260
|
+
PostPaymentValidateMerchantResponse$0,
|
|
1259
1261
|
} from './interface/consumer';
|
|
1260
1262
|
|
|
1261
1263
|
import {
|
|
@@ -14344,6 +14346,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14344
14346
|
);
|
|
14345
14347
|
}
|
|
14346
14348
|
|
|
14349
|
+
/**
|
|
14350
|
+
* POST /consumer/payment/validate/merchant - Validate merchant
|
|
14351
|
+
*
|
|
14352
|
+
* @param body
|
|
14353
|
+
* @param options - additional request options
|
|
14354
|
+
*/
|
|
14355
|
+
post_payment_validate_merchant(
|
|
14356
|
+
body: PostPaymentValidateMerchantBody$0,
|
|
14357
|
+
options?: RequestOptions,
|
|
14358
|
+
): ResponsePromise<PostPaymentValidateMerchantResponse$0> {
|
|
14359
|
+
return this.request(
|
|
14360
|
+
'consumer',
|
|
14361
|
+
'/consumer/payment/validate/merchant',
|
|
14362
|
+
'POST',
|
|
14363
|
+
`/consumer/payment/validate/merchant`,
|
|
14364
|
+
body,
|
|
14365
|
+
options,
|
|
14366
|
+
);
|
|
14367
|
+
}
|
|
14368
|
+
|
|
14347
14369
|
/**
|
|
14348
14370
|
* POST /ai/language/generate - Generate text from a given prompt
|
|
14349
14371
|
*
|
|
@@ -3471,6 +3471,43 @@ export interface OpenAiChatResponse {
|
|
|
3471
3471
|
choices: OpenAiChatChoice[];
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
|
+
export interface PostPaymentValidateMerchantBody {
|
|
3475
|
+
// Validation URL
|
|
3476
|
+
validation_url: string;
|
|
3477
|
+
// Display name
|
|
3478
|
+
display_name: string;
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
export interface MerchantSessionResponse {
|
|
3482
|
+
// Epoch timestamp
|
|
3483
|
+
epochTimestamp: number;
|
|
3484
|
+
// Expires at
|
|
3485
|
+
expiresAt: number;
|
|
3486
|
+
// Nonce
|
|
3487
|
+
nonce: string;
|
|
3488
|
+
// Merchant identifier
|
|
3489
|
+
merchantIdentifier: string;
|
|
3490
|
+
// Merchant session identifier
|
|
3491
|
+
merchantSessionIdentifier: string;
|
|
3492
|
+
// Operational analytics identifier
|
|
3493
|
+
operationalAnalyticsIdentifier: string;
|
|
3494
|
+
// Domain name
|
|
3495
|
+
domainName: string;
|
|
3496
|
+
// Display name
|
|
3497
|
+
displayName: string;
|
|
3498
|
+
// Signature
|
|
3499
|
+
signature: string;
|
|
3500
|
+
// Retries
|
|
3501
|
+
retries: number;
|
|
3502
|
+
// PSP ID
|
|
3503
|
+
pspId: string;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
export interface PostPaymentValidateMerchantResponse {
|
|
3507
|
+
// Merchant session
|
|
3508
|
+
merchant_session: MerchantSessionResponse;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3474
3511
|
// GET /consumer/v1/health-check
|
|
3475
3512
|
|
|
3476
3513
|
export type HealthCheckControllerExecuteResponse = {};
|
|
@@ -4177,3 +4214,9 @@ export type PostConsumerUserGuestResponse$0 = PostConsumerUserGuestResponse;
|
|
|
4177
4214
|
export type PostConsumerOpenaiChatBody = OpenAiChatBody;
|
|
4178
4215
|
|
|
4179
4216
|
export type PostConsumerOpenaiChatResponse = OpenAiChatResponse;
|
|
4217
|
+
|
|
4218
|
+
// POST /consumer/payment/validate/merchant - Validate merchant
|
|
4219
|
+
|
|
4220
|
+
export type PostPaymentValidateMerchantBody$0 = PostPaymentValidateMerchantBody;
|
|
4221
|
+
|
|
4222
|
+
export type PostPaymentValidateMerchantResponse$0 = PostPaymentValidateMerchantResponse;
|
package/src/interface/menu.ts
CHANGED
|
@@ -4146,6 +4146,7 @@ export interface GetMenuV3DraftBrandExportPath {
|
|
|
4146
4146
|
|
|
4147
4147
|
export interface GetMenuV3DraftBrandExportQuery {
|
|
4148
4148
|
format?: 'xlsx';
|
|
4149
|
+
version_id?: string;
|
|
4149
4150
|
}
|
|
4150
4151
|
|
|
4151
4152
|
export interface GetMenuV3DraftBrandExportResponse {
|
|
@@ -8981,6 +8982,7 @@ export interface GetMenuV4BrandExportPath {
|
|
|
8981
8982
|
|
|
8982
8983
|
export interface GetMenuV4BrandExportQuery {
|
|
8983
8984
|
format?: 'xlsx';
|
|
8985
|
+
version_id?: string;
|
|
8984
8986
|
}
|
|
8985
8987
|
|
|
8986
8988
|
export interface GetMenuV4BrandExportResponse {
|