@alicloud/cams20200606 1.2.0 → 1.3.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/dist/client.d.ts +291 -0
- package/dist/client.js +469 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +581 -0
package/dist/client.js
CHANGED
|
@@ -1429,6 +1429,66 @@ class GetChatappVerifyCodeResponse extends $tea.Model {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
exports.GetChatappVerifyCodeResponse = GetChatappVerifyCodeResponse;
|
|
1432
|
+
class GetCommerceSettingRequest extends $tea.Model {
|
|
1433
|
+
constructor(map) {
|
|
1434
|
+
super(map);
|
|
1435
|
+
}
|
|
1436
|
+
static names() {
|
|
1437
|
+
return {
|
|
1438
|
+
custSpaceId: 'CustSpaceId',
|
|
1439
|
+
phoneNumber: 'PhoneNumber',
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
static types() {
|
|
1443
|
+
return {
|
|
1444
|
+
custSpaceId: 'string',
|
|
1445
|
+
phoneNumber: 'string',
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
exports.GetCommerceSettingRequest = GetCommerceSettingRequest;
|
|
1450
|
+
class GetCommerceSettingResponseBody extends $tea.Model {
|
|
1451
|
+
constructor(map) {
|
|
1452
|
+
super(map);
|
|
1453
|
+
}
|
|
1454
|
+
static names() {
|
|
1455
|
+
return {
|
|
1456
|
+
code: 'Code',
|
|
1457
|
+
data: 'Data',
|
|
1458
|
+
message: 'Message',
|
|
1459
|
+
requestId: 'RequestId',
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
static types() {
|
|
1463
|
+
return {
|
|
1464
|
+
code: 'string',
|
|
1465
|
+
data: GetCommerceSettingResponseBodyData,
|
|
1466
|
+
message: 'string',
|
|
1467
|
+
requestId: 'string',
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
exports.GetCommerceSettingResponseBody = GetCommerceSettingResponseBody;
|
|
1472
|
+
class GetCommerceSettingResponse extends $tea.Model {
|
|
1473
|
+
constructor(map) {
|
|
1474
|
+
super(map);
|
|
1475
|
+
}
|
|
1476
|
+
static names() {
|
|
1477
|
+
return {
|
|
1478
|
+
headers: 'headers',
|
|
1479
|
+
statusCode: 'statusCode',
|
|
1480
|
+
body: 'body',
|
|
1481
|
+
};
|
|
1482
|
+
}
|
|
1483
|
+
static types() {
|
|
1484
|
+
return {
|
|
1485
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1486
|
+
statusCode: 'number',
|
|
1487
|
+
body: GetCommerceSettingResponseBody,
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
exports.GetCommerceSettingResponse = GetCommerceSettingResponse;
|
|
1432
1492
|
class GetMigrationVerifyCodeRequest extends $tea.Model {
|
|
1433
1493
|
constructor(map) {
|
|
1434
1494
|
super(map);
|
|
@@ -2483,6 +2543,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
2483
2543
|
fallBackContent: 'FallBackContent',
|
|
2484
2544
|
fallBackDuration: 'FallBackDuration',
|
|
2485
2545
|
fallBackId: 'FallBackId',
|
|
2546
|
+
fallBackRule: 'FallBackRule',
|
|
2486
2547
|
from: 'From',
|
|
2487
2548
|
isvCode: 'IsvCode',
|
|
2488
2549
|
label: 'Label',
|
|
@@ -2502,6 +2563,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
2502
2563
|
fallBackContent: 'string',
|
|
2503
2564
|
fallBackDuration: 'number',
|
|
2504
2565
|
fallBackId: 'string',
|
|
2566
|
+
fallBackRule: 'string',
|
|
2505
2567
|
from: 'string',
|
|
2506
2568
|
isvCode: 'string',
|
|
2507
2569
|
label: 'string',
|
|
@@ -2527,6 +2589,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
2527
2589
|
fallBackContent: 'FallBackContent',
|
|
2528
2590
|
fallBackDuration: 'FallBackDuration',
|
|
2529
2591
|
fallBackId: 'FallBackId',
|
|
2592
|
+
fallBackRule: 'FallBackRule',
|
|
2530
2593
|
from: 'From',
|
|
2531
2594
|
isvCode: 'IsvCode',
|
|
2532
2595
|
label: 'Label',
|
|
@@ -2546,6 +2609,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
2546
2609
|
fallBackContent: 'string',
|
|
2547
2610
|
fallBackDuration: 'number',
|
|
2548
2611
|
fallBackId: 'string',
|
|
2612
|
+
fallBackRule: 'string',
|
|
2549
2613
|
from: 'string',
|
|
2550
2614
|
isvCode: 'string',
|
|
2551
2615
|
label: 'string',
|
|
@@ -2617,6 +2681,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
2617
2681
|
fallBackContent: 'FallBackContent',
|
|
2618
2682
|
fallBackDuration: 'FallBackDuration',
|
|
2619
2683
|
fallBackId: 'FallBackId',
|
|
2684
|
+
fallBackRule: 'FallBackRule',
|
|
2620
2685
|
from: 'From',
|
|
2621
2686
|
isvCode: 'IsvCode',
|
|
2622
2687
|
label: 'Label',
|
|
@@ -2644,6 +2709,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
2644
2709
|
fallBackContent: 'string',
|
|
2645
2710
|
fallBackDuration: 'number',
|
|
2646
2711
|
fallBackId: 'string',
|
|
2712
|
+
fallBackRule: 'string',
|
|
2647
2713
|
from: 'string',
|
|
2648
2714
|
isvCode: 'string',
|
|
2649
2715
|
label: 'string',
|
|
@@ -2677,6 +2743,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
2677
2743
|
fallBackContent: 'FallBackContent',
|
|
2678
2744
|
fallBackDuration: 'FallBackDuration',
|
|
2679
2745
|
fallBackId: 'FallBackId',
|
|
2746
|
+
fallBackRule: 'FallBackRule',
|
|
2680
2747
|
from: 'From',
|
|
2681
2748
|
isvCode: 'IsvCode',
|
|
2682
2749
|
label: 'Label',
|
|
@@ -2704,6 +2771,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
2704
2771
|
fallBackContent: 'string',
|
|
2705
2772
|
fallBackDuration: 'number',
|
|
2706
2773
|
fallBackId: 'string',
|
|
2774
|
+
fallBackRule: 'string',
|
|
2707
2775
|
from: 'string',
|
|
2708
2776
|
isvCode: 'string',
|
|
2709
2777
|
label: 'string',
|
|
@@ -2899,6 +2967,68 @@ class UpdateAccountWebhookResponse extends $tea.Model {
|
|
|
2899
2967
|
}
|
|
2900
2968
|
}
|
|
2901
2969
|
exports.UpdateAccountWebhookResponse = UpdateAccountWebhookResponse;
|
|
2970
|
+
class UpdateCommerceSettingRequest extends $tea.Model {
|
|
2971
|
+
constructor(map) {
|
|
2972
|
+
super(map);
|
|
2973
|
+
}
|
|
2974
|
+
static names() {
|
|
2975
|
+
return {
|
|
2976
|
+
cartEnable: 'CartEnable',
|
|
2977
|
+
catalogVisible: 'CatalogVisible',
|
|
2978
|
+
custSpaceId: 'CustSpaceId',
|
|
2979
|
+
phoneNumber: 'PhoneNumber',
|
|
2980
|
+
};
|
|
2981
|
+
}
|
|
2982
|
+
static types() {
|
|
2983
|
+
return {
|
|
2984
|
+
cartEnable: 'boolean',
|
|
2985
|
+
catalogVisible: 'boolean',
|
|
2986
|
+
custSpaceId: 'string',
|
|
2987
|
+
phoneNumber: 'string',
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
exports.UpdateCommerceSettingRequest = UpdateCommerceSettingRequest;
|
|
2992
|
+
class UpdateCommerceSettingResponseBody extends $tea.Model {
|
|
2993
|
+
constructor(map) {
|
|
2994
|
+
super(map);
|
|
2995
|
+
}
|
|
2996
|
+
static names() {
|
|
2997
|
+
return {
|
|
2998
|
+
code: 'Code',
|
|
2999
|
+
message: 'Message',
|
|
3000
|
+
requestId: 'RequestId',
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
static types() {
|
|
3004
|
+
return {
|
|
3005
|
+
code: 'string',
|
|
3006
|
+
message: 'string',
|
|
3007
|
+
requestId: 'string',
|
|
3008
|
+
};
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
exports.UpdateCommerceSettingResponseBody = UpdateCommerceSettingResponseBody;
|
|
3012
|
+
class UpdateCommerceSettingResponse extends $tea.Model {
|
|
3013
|
+
constructor(map) {
|
|
3014
|
+
super(map);
|
|
3015
|
+
}
|
|
3016
|
+
static names() {
|
|
3017
|
+
return {
|
|
3018
|
+
headers: 'headers',
|
|
3019
|
+
statusCode: 'statusCode',
|
|
3020
|
+
body: 'body',
|
|
3021
|
+
};
|
|
3022
|
+
}
|
|
3023
|
+
static types() {
|
|
3024
|
+
return {
|
|
3025
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3026
|
+
statusCode: 'number',
|
|
3027
|
+
body: UpdateCommerceSettingResponseBody,
|
|
3028
|
+
};
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
exports.UpdateCommerceSettingResponse = UpdateCommerceSettingResponse;
|
|
2902
3032
|
class UpdatePhoneWebhookRequest extends $tea.Model {
|
|
2903
3033
|
constructor(map) {
|
|
2904
3034
|
super(map);
|
|
@@ -3306,6 +3436,7 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3306
3436
|
static names() {
|
|
3307
3437
|
return {
|
|
3308
3438
|
autofillText: 'AutofillText',
|
|
3439
|
+
couponCode: 'CouponCode',
|
|
3309
3440
|
isOptOut: 'IsOptOut',
|
|
3310
3441
|
packageName: 'PackageName',
|
|
3311
3442
|
phoneNumber: 'PhoneNumber',
|
|
@@ -3319,6 +3450,7 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3319
3450
|
static types() {
|
|
3320
3451
|
return {
|
|
3321
3452
|
autofillText: 'string',
|
|
3453
|
+
couponCode: 'string',
|
|
3322
3454
|
isOptOut: 'boolean',
|
|
3323
3455
|
packageName: 'string',
|
|
3324
3456
|
phoneNumber: 'string',
|
|
@@ -3331,6 +3463,70 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3331
3463
|
}
|
|
3332
3464
|
}
|
|
3333
3465
|
exports.CreateChatappTemplateRequestComponentsButtons = CreateChatappTemplateRequestComponentsButtons;
|
|
3466
|
+
class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
|
|
3467
|
+
constructor(map) {
|
|
3468
|
+
super(map);
|
|
3469
|
+
}
|
|
3470
|
+
static names() {
|
|
3471
|
+
return {
|
|
3472
|
+
phoneNumber: 'PhoneNumber',
|
|
3473
|
+
text: 'Text',
|
|
3474
|
+
type: 'Type',
|
|
3475
|
+
url: 'Url',
|
|
3476
|
+
urlType: 'UrlType',
|
|
3477
|
+
};
|
|
3478
|
+
}
|
|
3479
|
+
static types() {
|
|
3480
|
+
return {
|
|
3481
|
+
phoneNumber: 'string',
|
|
3482
|
+
text: 'string',
|
|
3483
|
+
type: 'string',
|
|
3484
|
+
url: 'string',
|
|
3485
|
+
urlType: 'string',
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
exports.CreateChatappTemplateRequestComponentsCardsCardComponentsButtons = CreateChatappTemplateRequestComponentsCardsCardComponentsButtons;
|
|
3490
|
+
class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
|
|
3491
|
+
constructor(map) {
|
|
3492
|
+
super(map);
|
|
3493
|
+
}
|
|
3494
|
+
static names() {
|
|
3495
|
+
return {
|
|
3496
|
+
buttons: 'Buttons',
|
|
3497
|
+
format: 'Format',
|
|
3498
|
+
text: 'Text',
|
|
3499
|
+
type: 'Type',
|
|
3500
|
+
url: 'Url',
|
|
3501
|
+
};
|
|
3502
|
+
}
|
|
3503
|
+
static types() {
|
|
3504
|
+
return {
|
|
3505
|
+
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponentsButtons },
|
|
3506
|
+
format: 'string',
|
|
3507
|
+
text: 'string',
|
|
3508
|
+
type: 'string',
|
|
3509
|
+
url: 'string',
|
|
3510
|
+
};
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
exports.CreateChatappTemplateRequestComponentsCardsCardComponents = CreateChatappTemplateRequestComponentsCardsCardComponents;
|
|
3514
|
+
class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
|
|
3515
|
+
constructor(map) {
|
|
3516
|
+
super(map);
|
|
3517
|
+
}
|
|
3518
|
+
static names() {
|
|
3519
|
+
return {
|
|
3520
|
+
cardComponents: 'CardComponents',
|
|
3521
|
+
};
|
|
3522
|
+
}
|
|
3523
|
+
static types() {
|
|
3524
|
+
return {
|
|
3525
|
+
cardComponents: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponents },
|
|
3526
|
+
};
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
exports.CreateChatappTemplateRequestComponentsCards = CreateChatappTemplateRequestComponentsCards;
|
|
3334
3530
|
class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
3335
3531
|
constructor(map) {
|
|
3336
3532
|
super(map);
|
|
@@ -3340,11 +3536,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
3340
3536
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
3341
3537
|
buttons: 'Buttons',
|
|
3342
3538
|
caption: 'Caption',
|
|
3539
|
+
cards: 'Cards',
|
|
3343
3540
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
3344
3541
|
duration: 'Duration',
|
|
3345
3542
|
fileName: 'FileName',
|
|
3346
3543
|
fileType: 'FileType',
|
|
3347
3544
|
format: 'Format',
|
|
3545
|
+
hasExpiration: 'HasExpiration',
|
|
3348
3546
|
text: 'Text',
|
|
3349
3547
|
thumbUrl: 'ThumbUrl',
|
|
3350
3548
|
type: 'Type',
|
|
@@ -3356,11 +3554,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
3356
3554
|
addSecretRecommendation: 'boolean',
|
|
3357
3555
|
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
|
|
3358
3556
|
caption: 'string',
|
|
3557
|
+
cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
|
|
3359
3558
|
codeExpirationMinutes: 'number',
|
|
3360
3559
|
duration: 'number',
|
|
3361
3560
|
fileName: 'string',
|
|
3362
3561
|
fileType: 'string',
|
|
3363
3562
|
format: 'string',
|
|
3563
|
+
hasExpiration: 'boolean',
|
|
3364
3564
|
text: 'string',
|
|
3365
3565
|
thumbUrl: 'string',
|
|
3366
3566
|
type: 'string',
|
|
@@ -3444,6 +3644,7 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
|
|
|
3444
3644
|
static names() {
|
|
3445
3645
|
return {
|
|
3446
3646
|
autofillText: 'AutofillText',
|
|
3647
|
+
couponCode: 'CouponCode',
|
|
3447
3648
|
extendAttrs: 'ExtendAttrs',
|
|
3448
3649
|
isOptOut: 'IsOptOut',
|
|
3449
3650
|
packageName: 'PackageName',
|
|
@@ -3458,6 +3659,7 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
|
|
|
3458
3659
|
static types() {
|
|
3459
3660
|
return {
|
|
3460
3661
|
autofillText: 'string',
|
|
3662
|
+
couponCode: 'string',
|
|
3461
3663
|
extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
|
|
3462
3664
|
isOptOut: 'boolean',
|
|
3463
3665
|
packageName: 'string',
|
|
@@ -3471,6 +3673,70 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
|
|
|
3471
3673
|
}
|
|
3472
3674
|
}
|
|
3473
3675
|
exports.GetChatappTemplateDetailResponseBodyDataComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsButtons;
|
|
3676
|
+
class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
|
|
3677
|
+
constructor(map) {
|
|
3678
|
+
super(map);
|
|
3679
|
+
}
|
|
3680
|
+
static names() {
|
|
3681
|
+
return {
|
|
3682
|
+
phoneNumber: 'PhoneNumber',
|
|
3683
|
+
text: 'Text',
|
|
3684
|
+
type: 'Type',
|
|
3685
|
+
url: 'Url',
|
|
3686
|
+
urlType: 'UrlType',
|
|
3687
|
+
};
|
|
3688
|
+
}
|
|
3689
|
+
static types() {
|
|
3690
|
+
return {
|
|
3691
|
+
phoneNumber: 'string',
|
|
3692
|
+
text: 'string',
|
|
3693
|
+
type: 'string',
|
|
3694
|
+
url: 'string',
|
|
3695
|
+
urlType: 'string',
|
|
3696
|
+
};
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3699
|
+
exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons;
|
|
3700
|
+
class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
|
|
3701
|
+
constructor(map) {
|
|
3702
|
+
super(map);
|
|
3703
|
+
}
|
|
3704
|
+
static names() {
|
|
3705
|
+
return {
|
|
3706
|
+
buttons: 'Buttons',
|
|
3707
|
+
format: 'Format',
|
|
3708
|
+
text: 'Text',
|
|
3709
|
+
type: 'Type',
|
|
3710
|
+
url: 'Url',
|
|
3711
|
+
};
|
|
3712
|
+
}
|
|
3713
|
+
static types() {
|
|
3714
|
+
return {
|
|
3715
|
+
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons },
|
|
3716
|
+
format: 'string',
|
|
3717
|
+
text: 'string',
|
|
3718
|
+
type: 'string',
|
|
3719
|
+
url: 'string',
|
|
3720
|
+
};
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents = GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents;
|
|
3724
|
+
class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
|
|
3725
|
+
constructor(map) {
|
|
3726
|
+
super(map);
|
|
3727
|
+
}
|
|
3728
|
+
static names() {
|
|
3729
|
+
return {
|
|
3730
|
+
cardComponents: 'CardComponents',
|
|
3731
|
+
};
|
|
3732
|
+
}
|
|
3733
|
+
static types() {
|
|
3734
|
+
return {
|
|
3735
|
+
cardComponents: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents },
|
|
3736
|
+
};
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
exports.GetChatappTemplateDetailResponseBodyDataComponentsCards = GetChatappTemplateDetailResponseBodyDataComponentsCards;
|
|
3474
3740
|
class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
3475
3741
|
constructor(map) {
|
|
3476
3742
|
super(map);
|
|
@@ -3480,6 +3746,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
3480
3746
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
3481
3747
|
buttons: 'Buttons',
|
|
3482
3748
|
caption: 'Caption',
|
|
3749
|
+
cards: 'Cards',
|
|
3483
3750
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
3484
3751
|
duration: 'Duration',
|
|
3485
3752
|
fileName: 'FileName',
|
|
@@ -3489,10 +3756,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
3489
3756
|
locationAddress: 'LocationAddress',
|
|
3490
3757
|
locationName: 'LocationName',
|
|
3491
3758
|
longitude: 'Longitude',
|
|
3759
|
+
offerExpirationTimeMs: 'OfferExpirationTimeMs',
|
|
3492
3760
|
text: 'Text',
|
|
3493
3761
|
thumbUrl: 'ThumbUrl',
|
|
3494
3762
|
type: 'Type',
|
|
3495
3763
|
url: 'Url',
|
|
3764
|
+
hasExpiration: 'hasExpiration',
|
|
3496
3765
|
};
|
|
3497
3766
|
}
|
|
3498
3767
|
static types() {
|
|
@@ -3500,6 +3769,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
3500
3769
|
addSecretRecommendation: 'boolean',
|
|
3501
3770
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
3502
3771
|
caption: 'string',
|
|
3772
|
+
cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
|
|
3503
3773
|
codeExpirationMinutes: 'number',
|
|
3504
3774
|
duration: 'number',
|
|
3505
3775
|
fileName: 'string',
|
|
@@ -3509,10 +3779,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
|
3509
3779
|
locationAddress: 'string',
|
|
3510
3780
|
locationName: 'string',
|
|
3511
3781
|
longitude: 'string',
|
|
3782
|
+
offerExpirationTimeMs: 'string',
|
|
3512
3783
|
text: 'string',
|
|
3513
3784
|
thumbUrl: 'string',
|
|
3514
3785
|
type: 'string',
|
|
3515
3786
|
url: 'string',
|
|
3787
|
+
hasExpiration: 'boolean',
|
|
3516
3788
|
};
|
|
3517
3789
|
}
|
|
3518
3790
|
}
|
|
@@ -3631,6 +3903,24 @@ class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
|
|
|
3631
3903
|
}
|
|
3632
3904
|
}
|
|
3633
3905
|
exports.GetChatappUploadAuthorizationResponseBodyData = GetChatappUploadAuthorizationResponseBodyData;
|
|
3906
|
+
class GetCommerceSettingResponseBodyData extends $tea.Model {
|
|
3907
|
+
constructor(map) {
|
|
3908
|
+
super(map);
|
|
3909
|
+
}
|
|
3910
|
+
static names() {
|
|
3911
|
+
return {
|
|
3912
|
+
cartEnable: 'CartEnable',
|
|
3913
|
+
catalogVisible: 'CatalogVisible',
|
|
3914
|
+
};
|
|
3915
|
+
}
|
|
3916
|
+
static types() {
|
|
3917
|
+
return {
|
|
3918
|
+
cartEnable: 'boolean',
|
|
3919
|
+
catalogVisible: 'boolean',
|
|
3920
|
+
};
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
exports.GetCommerceSettingResponseBodyData = GetCommerceSettingResponseBodyData;
|
|
3634
3924
|
class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
|
|
3635
3925
|
constructor(map) {
|
|
3636
3926
|
super(map);
|
|
@@ -3844,6 +4134,7 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3844
4134
|
static names() {
|
|
3845
4135
|
return {
|
|
3846
4136
|
autofillText: 'AutofillText',
|
|
4137
|
+
couponCode: 'CouponCode',
|
|
3847
4138
|
isOptOut: 'IsOptOut',
|
|
3848
4139
|
packageName: 'PackageName',
|
|
3849
4140
|
phoneNumber: 'PhoneNumber',
|
|
@@ -3857,6 +4148,7 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3857
4148
|
static types() {
|
|
3858
4149
|
return {
|
|
3859
4150
|
autofillText: 'string',
|
|
4151
|
+
couponCode: 'string',
|
|
3860
4152
|
isOptOut: 'boolean',
|
|
3861
4153
|
packageName: 'string',
|
|
3862
4154
|
phoneNumber: 'string',
|
|
@@ -3869,6 +4161,70 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
3869
4161
|
}
|
|
3870
4162
|
}
|
|
3871
4163
|
exports.ModifyChatappTemplateRequestComponentsButtons = ModifyChatappTemplateRequestComponentsButtons;
|
|
4164
|
+
class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
|
|
4165
|
+
constructor(map) {
|
|
4166
|
+
super(map);
|
|
4167
|
+
}
|
|
4168
|
+
static names() {
|
|
4169
|
+
return {
|
|
4170
|
+
phoneNumber: 'PhoneNumber',
|
|
4171
|
+
text: 'Text',
|
|
4172
|
+
type: 'Type',
|
|
4173
|
+
url: 'Url',
|
|
4174
|
+
urlType: 'UrlType',
|
|
4175
|
+
};
|
|
4176
|
+
}
|
|
4177
|
+
static types() {
|
|
4178
|
+
return {
|
|
4179
|
+
phoneNumber: 'string',
|
|
4180
|
+
text: 'string',
|
|
4181
|
+
type: 'string',
|
|
4182
|
+
url: 'string',
|
|
4183
|
+
urlType: 'string',
|
|
4184
|
+
};
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
exports.ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons = ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons;
|
|
4188
|
+
class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
|
|
4189
|
+
constructor(map) {
|
|
4190
|
+
super(map);
|
|
4191
|
+
}
|
|
4192
|
+
static names() {
|
|
4193
|
+
return {
|
|
4194
|
+
buttons: 'Buttons',
|
|
4195
|
+
format: 'Format',
|
|
4196
|
+
text: 'Text',
|
|
4197
|
+
type: 'Type',
|
|
4198
|
+
url: 'Url',
|
|
4199
|
+
};
|
|
4200
|
+
}
|
|
4201
|
+
static types() {
|
|
4202
|
+
return {
|
|
4203
|
+
buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons },
|
|
4204
|
+
format: 'string',
|
|
4205
|
+
text: 'string',
|
|
4206
|
+
type: 'string',
|
|
4207
|
+
url: 'string',
|
|
4208
|
+
};
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
exports.ModifyChatappTemplateRequestComponentsCardsCardComponents = ModifyChatappTemplateRequestComponentsCardsCardComponents;
|
|
4212
|
+
class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
|
|
4213
|
+
constructor(map) {
|
|
4214
|
+
super(map);
|
|
4215
|
+
}
|
|
4216
|
+
static names() {
|
|
4217
|
+
return {
|
|
4218
|
+
cardComponents: 'CardComponents',
|
|
4219
|
+
};
|
|
4220
|
+
}
|
|
4221
|
+
static types() {
|
|
4222
|
+
return {
|
|
4223
|
+
cardComponents: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponents },
|
|
4224
|
+
};
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
exports.ModifyChatappTemplateRequestComponentsCards = ModifyChatappTemplateRequestComponentsCards;
|
|
3872
4228
|
class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
3873
4229
|
constructor(map) {
|
|
3874
4230
|
super(map);
|
|
@@ -3878,11 +4234,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
3878
4234
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
3879
4235
|
buttons: 'Buttons',
|
|
3880
4236
|
caption: 'Caption',
|
|
4237
|
+
cards: 'Cards',
|
|
3881
4238
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
3882
4239
|
duration: 'Duration',
|
|
3883
4240
|
fileName: 'FileName',
|
|
3884
4241
|
fileType: 'FileType',
|
|
3885
4242
|
format: 'Format',
|
|
4243
|
+
hasExpiration: 'HasExpiration',
|
|
3886
4244
|
text: 'Text',
|
|
3887
4245
|
thumbUrl: 'ThumbUrl',
|
|
3888
4246
|
type: 'Type',
|
|
@@ -3894,11 +4252,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
3894
4252
|
addSecretRecommendation: 'boolean',
|
|
3895
4253
|
buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
|
|
3896
4254
|
caption: 'string',
|
|
4255
|
+
cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
|
|
3897
4256
|
codeExpirationMinutes: 'number',
|
|
3898
4257
|
duration: 'number',
|
|
3899
4258
|
fileName: 'string',
|
|
3900
4259
|
fileType: 'string',
|
|
3901
4260
|
format: 'string',
|
|
4261
|
+
hasExpiration: 'boolean',
|
|
3902
4262
|
text: 'string',
|
|
3903
4263
|
thumbUrl: 'string',
|
|
3904
4264
|
type: 'string',
|
|
@@ -5106,6 +5466,35 @@ class Client extends openapi_client_1.default {
|
|
|
5106
5466
|
let runtime = new $Util.RuntimeOptions({});
|
|
5107
5467
|
return await this.getChatappVerifyCodeWithOptions(request, runtime);
|
|
5108
5468
|
}
|
|
5469
|
+
async getCommerceSettingWithOptions(request, runtime) {
|
|
5470
|
+
tea_util_1.default.validateModel(request);
|
|
5471
|
+
let query = {};
|
|
5472
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
5473
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5474
|
+
}
|
|
5475
|
+
if (!tea_util_1.default.isUnset(request.phoneNumber)) {
|
|
5476
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
5477
|
+
}
|
|
5478
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5479
|
+
query: openapi_util_1.default.query(query),
|
|
5480
|
+
});
|
|
5481
|
+
let params = new $OpenApi.Params({
|
|
5482
|
+
action: "GetCommerceSetting",
|
|
5483
|
+
version: "2020-06-06",
|
|
5484
|
+
protocol: "HTTPS",
|
|
5485
|
+
pathname: "/",
|
|
5486
|
+
method: "POST",
|
|
5487
|
+
authType: "AK",
|
|
5488
|
+
style: "RPC",
|
|
5489
|
+
reqBodyType: "formData",
|
|
5490
|
+
bodyType: "json",
|
|
5491
|
+
});
|
|
5492
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
|
|
5493
|
+
}
|
|
5494
|
+
async getCommerceSetting(request) {
|
|
5495
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5496
|
+
return await this.getCommerceSettingWithOptions(request, runtime);
|
|
5497
|
+
}
|
|
5109
5498
|
/**
|
|
5110
5499
|
* The ID of the phone number.
|
|
5111
5500
|
*
|
|
@@ -5225,6 +5614,13 @@ class Client extends openapi_client_1.default {
|
|
|
5225
5614
|
let runtime = new $Util.RuntimeOptions({});
|
|
5226
5615
|
return await this.getPreValidatePhoneIdWithOptions(request, runtime);
|
|
5227
5616
|
}
|
|
5617
|
+
/**
|
|
5618
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5619
|
+
*
|
|
5620
|
+
* @param request GetWhatsappConnectionCatalogRequest
|
|
5621
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
5622
|
+
* @return GetWhatsappConnectionCatalogResponse
|
|
5623
|
+
*/
|
|
5228
5624
|
async getWhatsappConnectionCatalogWithOptions(request, runtime) {
|
|
5229
5625
|
tea_util_1.default.validateModel(request);
|
|
5230
5626
|
let query = {};
|
|
@@ -5259,6 +5655,12 @@ class Client extends openapi_client_1.default {
|
|
|
5259
5655
|
});
|
|
5260
5656
|
return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
|
|
5261
5657
|
}
|
|
5658
|
+
/**
|
|
5659
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5660
|
+
*
|
|
5661
|
+
* @param request GetWhatsappConnectionCatalogRequest
|
|
5662
|
+
* @return GetWhatsappConnectionCatalogResponse
|
|
5663
|
+
*/
|
|
5262
5664
|
async getWhatsappConnectionCatalog(request) {
|
|
5263
5665
|
let runtime = new $Util.RuntimeOptions({});
|
|
5264
5666
|
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
@@ -5369,6 +5771,13 @@ class Client extends openapi_client_1.default {
|
|
|
5369
5771
|
let runtime = new $Util.RuntimeOptions({});
|
|
5370
5772
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
5371
5773
|
}
|
|
5774
|
+
/**
|
|
5775
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5776
|
+
*
|
|
5777
|
+
* @param request ListProductRequest
|
|
5778
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
5779
|
+
* @return ListProductResponse
|
|
5780
|
+
*/
|
|
5372
5781
|
async listProductWithOptions(request, runtime) {
|
|
5373
5782
|
tea_util_1.default.validateModel(request);
|
|
5374
5783
|
let query = {};
|
|
@@ -5418,10 +5827,23 @@ class Client extends openapi_client_1.default {
|
|
|
5418
5827
|
});
|
|
5419
5828
|
return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
|
|
5420
5829
|
}
|
|
5830
|
+
/**
|
|
5831
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5832
|
+
*
|
|
5833
|
+
* @param request ListProductRequest
|
|
5834
|
+
* @return ListProductResponse
|
|
5835
|
+
*/
|
|
5421
5836
|
async listProduct(request) {
|
|
5422
5837
|
let runtime = new $Util.RuntimeOptions({});
|
|
5423
5838
|
return await this.listProductWithOptions(request, runtime);
|
|
5424
5839
|
}
|
|
5840
|
+
/**
|
|
5841
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5842
|
+
*
|
|
5843
|
+
* @param request ListProductCatalogRequest
|
|
5844
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
5845
|
+
* @return ListProductCatalogResponse
|
|
5846
|
+
*/
|
|
5425
5847
|
async listProductCatalogWithOptions(request, runtime) {
|
|
5426
5848
|
tea_util_1.default.validateModel(request);
|
|
5427
5849
|
let query = {};
|
|
@@ -5468,6 +5890,12 @@ class Client extends openapi_client_1.default {
|
|
|
5468
5890
|
});
|
|
5469
5891
|
return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
|
|
5470
5892
|
}
|
|
5893
|
+
/**
|
|
5894
|
+
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
5895
|
+
*
|
|
5896
|
+
* @param request ListProductCatalogRequest
|
|
5897
|
+
* @return ListProductCatalogResponse
|
|
5898
|
+
*/
|
|
5471
5899
|
async listProductCatalog(request) {
|
|
5472
5900
|
let runtime = new $Util.RuntimeOptions({});
|
|
5473
5901
|
return await this.listProductCatalogWithOptions(request, runtime);
|
|
@@ -5813,6 +6241,9 @@ class Client extends openapi_client_1.default {
|
|
|
5813
6241
|
if (!tea_util_1.default.isUnset(request.fallBackId)) {
|
|
5814
6242
|
body["FallBackId"] = request.fallBackId;
|
|
5815
6243
|
}
|
|
6244
|
+
if (!tea_util_1.default.isUnset(request.fallBackRule)) {
|
|
6245
|
+
body["FallBackRule"] = request.fallBackRule;
|
|
6246
|
+
}
|
|
5816
6247
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
5817
6248
|
body["From"] = request.from;
|
|
5818
6249
|
}
|
|
@@ -5916,6 +6347,9 @@ class Client extends openapi_client_1.default {
|
|
|
5916
6347
|
if (!tea_util_1.default.isUnset(request.fallBackId)) {
|
|
5917
6348
|
body["FallBackId"] = request.fallBackId;
|
|
5918
6349
|
}
|
|
6350
|
+
if (!tea_util_1.default.isUnset(request.fallBackRule)) {
|
|
6351
|
+
body["FallBackRule"] = request.fallBackRule;
|
|
6352
|
+
}
|
|
5919
6353
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
5920
6354
|
body["From"] = request.from;
|
|
5921
6355
|
}
|
|
@@ -6090,6 +6524,41 @@ class Client extends openapi_client_1.default {
|
|
|
6090
6524
|
let runtime = new $Util.RuntimeOptions({});
|
|
6091
6525
|
return await this.updateAccountWebhookWithOptions(request, runtime);
|
|
6092
6526
|
}
|
|
6527
|
+
async updateCommerceSettingWithOptions(request, runtime) {
|
|
6528
|
+
tea_util_1.default.validateModel(request);
|
|
6529
|
+
let query = {};
|
|
6530
|
+
if (!tea_util_1.default.isUnset(request.cartEnable)) {
|
|
6531
|
+
query["CartEnable"] = request.cartEnable;
|
|
6532
|
+
}
|
|
6533
|
+
if (!tea_util_1.default.isUnset(request.catalogVisible)) {
|
|
6534
|
+
query["CatalogVisible"] = request.catalogVisible;
|
|
6535
|
+
}
|
|
6536
|
+
if (!tea_util_1.default.isUnset(request.custSpaceId)) {
|
|
6537
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
6538
|
+
}
|
|
6539
|
+
if (!tea_util_1.default.isUnset(request.phoneNumber)) {
|
|
6540
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
6541
|
+
}
|
|
6542
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6543
|
+
query: openapi_util_1.default.query(query),
|
|
6544
|
+
});
|
|
6545
|
+
let params = new $OpenApi.Params({
|
|
6546
|
+
action: "UpdateCommerceSetting",
|
|
6547
|
+
version: "2020-06-06",
|
|
6548
|
+
protocol: "HTTPS",
|
|
6549
|
+
pathname: "/",
|
|
6550
|
+
method: "POST",
|
|
6551
|
+
authType: "AK",
|
|
6552
|
+
style: "RPC",
|
|
6553
|
+
reqBodyType: "formData",
|
|
6554
|
+
bodyType: "json",
|
|
6555
|
+
});
|
|
6556
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
|
|
6557
|
+
}
|
|
6558
|
+
async updateCommerceSetting(request) {
|
|
6559
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6560
|
+
return await this.updateCommerceSettingWithOptions(request, runtime);
|
|
6561
|
+
}
|
|
6093
6562
|
/**
|
|
6094
6563
|
* The error message returned.
|
|
6095
6564
|
*
|