@alicloud/cams20200606 1.2.1 → 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.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);
@@ -2907,6 +2967,68 @@ class UpdateAccountWebhookResponse extends $tea.Model {
2907
2967
  }
2908
2968
  }
2909
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;
2910
3032
  class UpdatePhoneWebhookRequest extends $tea.Model {
2911
3033
  constructor(map) {
2912
3034
  super(map);
@@ -3314,6 +3436,7 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3314
3436
  static names() {
3315
3437
  return {
3316
3438
  autofillText: 'AutofillText',
3439
+ couponCode: 'CouponCode',
3317
3440
  isOptOut: 'IsOptOut',
3318
3441
  packageName: 'PackageName',
3319
3442
  phoneNumber: 'PhoneNumber',
@@ -3327,6 +3450,7 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3327
3450
  static types() {
3328
3451
  return {
3329
3452
  autofillText: 'string',
3453
+ couponCode: 'string',
3330
3454
  isOptOut: 'boolean',
3331
3455
  packageName: 'string',
3332
3456
  phoneNumber: 'string',
@@ -3339,6 +3463,70 @@ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
3339
3463
  }
3340
3464
  }
3341
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;
3342
3530
  class CreateChatappTemplateRequestComponents extends $tea.Model {
3343
3531
  constructor(map) {
3344
3532
  super(map);
@@ -3348,11 +3536,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
3348
3536
  addSecretRecommendation: 'AddSecretRecommendation',
3349
3537
  buttons: 'Buttons',
3350
3538
  caption: 'Caption',
3539
+ cards: 'Cards',
3351
3540
  codeExpirationMinutes: 'CodeExpirationMinutes',
3352
3541
  duration: 'Duration',
3353
3542
  fileName: 'FileName',
3354
3543
  fileType: 'FileType',
3355
3544
  format: 'Format',
3545
+ hasExpiration: 'HasExpiration',
3356
3546
  text: 'Text',
3357
3547
  thumbUrl: 'ThumbUrl',
3358
3548
  type: 'Type',
@@ -3364,11 +3554,13 @@ class CreateChatappTemplateRequestComponents extends $tea.Model {
3364
3554
  addSecretRecommendation: 'boolean',
3365
3555
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
3366
3556
  caption: 'string',
3557
+ cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
3367
3558
  codeExpirationMinutes: 'number',
3368
3559
  duration: 'number',
3369
3560
  fileName: 'string',
3370
3561
  fileType: 'string',
3371
3562
  format: 'string',
3563
+ hasExpiration: 'boolean',
3372
3564
  text: 'string',
3373
3565
  thumbUrl: 'string',
3374
3566
  type: 'string',
@@ -3452,6 +3644,7 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3452
3644
  static names() {
3453
3645
  return {
3454
3646
  autofillText: 'AutofillText',
3647
+ couponCode: 'CouponCode',
3455
3648
  extendAttrs: 'ExtendAttrs',
3456
3649
  isOptOut: 'IsOptOut',
3457
3650
  packageName: 'PackageName',
@@ -3466,6 +3659,7 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3466
3659
  static types() {
3467
3660
  return {
3468
3661
  autofillText: 'string',
3662
+ couponCode: 'string',
3469
3663
  extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
3470
3664
  isOptOut: 'boolean',
3471
3665
  packageName: 'string',
@@ -3479,6 +3673,70 @@ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Mod
3479
3673
  }
3480
3674
  }
3481
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;
3482
3740
  class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3483
3741
  constructor(map) {
3484
3742
  super(map);
@@ -3488,6 +3746,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3488
3746
  addSecretRecommendation: 'AddSecretRecommendation',
3489
3747
  buttons: 'Buttons',
3490
3748
  caption: 'Caption',
3749
+ cards: 'Cards',
3491
3750
  codeExpirationMinutes: 'CodeExpirationMinutes',
3492
3751
  duration: 'Duration',
3493
3752
  fileName: 'FileName',
@@ -3497,10 +3756,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3497
3756
  locationAddress: 'LocationAddress',
3498
3757
  locationName: 'LocationName',
3499
3758
  longitude: 'Longitude',
3759
+ offerExpirationTimeMs: 'OfferExpirationTimeMs',
3500
3760
  text: 'Text',
3501
3761
  thumbUrl: 'ThumbUrl',
3502
3762
  type: 'Type',
3503
3763
  url: 'Url',
3764
+ hasExpiration: 'hasExpiration',
3504
3765
  };
3505
3766
  }
3506
3767
  static types() {
@@ -3508,6 +3769,7 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3508
3769
  addSecretRecommendation: 'boolean',
3509
3770
  buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
3510
3771
  caption: 'string',
3772
+ cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
3511
3773
  codeExpirationMinutes: 'number',
3512
3774
  duration: 'number',
3513
3775
  fileName: 'string',
@@ -3517,10 +3779,12 @@ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
3517
3779
  locationAddress: 'string',
3518
3780
  locationName: 'string',
3519
3781
  longitude: 'string',
3782
+ offerExpirationTimeMs: 'string',
3520
3783
  text: 'string',
3521
3784
  thumbUrl: 'string',
3522
3785
  type: 'string',
3523
3786
  url: 'string',
3787
+ hasExpiration: 'boolean',
3524
3788
  };
3525
3789
  }
3526
3790
  }
@@ -3639,6 +3903,24 @@ class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
3639
3903
  }
3640
3904
  }
3641
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;
3642
3924
  class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
3643
3925
  constructor(map) {
3644
3926
  super(map);
@@ -3852,6 +4134,7 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3852
4134
  static names() {
3853
4135
  return {
3854
4136
  autofillText: 'AutofillText',
4137
+ couponCode: 'CouponCode',
3855
4138
  isOptOut: 'IsOptOut',
3856
4139
  packageName: 'PackageName',
3857
4140
  phoneNumber: 'PhoneNumber',
@@ -3865,6 +4148,7 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3865
4148
  static types() {
3866
4149
  return {
3867
4150
  autofillText: 'string',
4151
+ couponCode: 'string',
3868
4152
  isOptOut: 'boolean',
3869
4153
  packageName: 'string',
3870
4154
  phoneNumber: 'string',
@@ -3877,6 +4161,70 @@ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3877
4161
  }
3878
4162
  }
3879
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;
3880
4228
  class ModifyChatappTemplateRequestComponents extends $tea.Model {
3881
4229
  constructor(map) {
3882
4230
  super(map);
@@ -3886,11 +4234,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
3886
4234
  addSecretRecommendation: 'AddSecretRecommendation',
3887
4235
  buttons: 'Buttons',
3888
4236
  caption: 'Caption',
4237
+ cards: 'Cards',
3889
4238
  codeExpirationMinutes: 'CodeExpirationMinutes',
3890
4239
  duration: 'Duration',
3891
4240
  fileName: 'FileName',
3892
4241
  fileType: 'FileType',
3893
4242
  format: 'Format',
4243
+ hasExpiration: 'HasExpiration',
3894
4244
  text: 'Text',
3895
4245
  thumbUrl: 'ThumbUrl',
3896
4246
  type: 'Type',
@@ -3902,11 +4252,13 @@ class ModifyChatappTemplateRequestComponents extends $tea.Model {
3902
4252
  addSecretRecommendation: 'boolean',
3903
4253
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
3904
4254
  caption: 'string',
4255
+ cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
3905
4256
  codeExpirationMinutes: 'number',
3906
4257
  duration: 'number',
3907
4258
  fileName: 'string',
3908
4259
  fileType: 'string',
3909
4260
  format: 'string',
4261
+ hasExpiration: 'boolean',
3910
4262
  text: 'string',
3911
4263
  thumbUrl: 'string',
3912
4264
  type: 'string',
@@ -5114,6 +5466,35 @@ class Client extends openapi_client_1.default {
5114
5466
  let runtime = new $Util.RuntimeOptions({});
5115
5467
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
5116
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
+ }
5117
5498
  /**
5118
5499
  * The ID of the phone number.
5119
5500
  *
@@ -5233,6 +5614,13 @@ class Client extends openapi_client_1.default {
5233
5614
  let runtime = new $Util.RuntimeOptions({});
5234
5615
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
5235
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
+ */
5236
5624
  async getWhatsappConnectionCatalogWithOptions(request, runtime) {
5237
5625
  tea_util_1.default.validateModel(request);
5238
5626
  let query = {};
@@ -5267,6 +5655,12 @@ class Client extends openapi_client_1.default {
5267
5655
  });
5268
5656
  return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
5269
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
+ */
5270
5664
  async getWhatsappConnectionCatalog(request) {
5271
5665
  let runtime = new $Util.RuntimeOptions({});
5272
5666
  return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
@@ -5377,6 +5771,13 @@ class Client extends openapi_client_1.default {
5377
5771
  let runtime = new $Util.RuntimeOptions({});
5378
5772
  return await this.listChatappTemplateWithOptions(request, runtime);
5379
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
+ */
5380
5781
  async listProductWithOptions(request, runtime) {
5381
5782
  tea_util_1.default.validateModel(request);
5382
5783
  let query = {};
@@ -5426,10 +5827,23 @@ class Client extends openapi_client_1.default {
5426
5827
  });
5427
5828
  return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
5428
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
+ */
5429
5836
  async listProduct(request) {
5430
5837
  let runtime = new $Util.RuntimeOptions({});
5431
5838
  return await this.listProductWithOptions(request, runtime);
5432
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
+ */
5433
5847
  async listProductCatalogWithOptions(request, runtime) {
5434
5848
  tea_util_1.default.validateModel(request);
5435
5849
  let query = {};
@@ -5476,6 +5890,12 @@ class Client extends openapi_client_1.default {
5476
5890
  });
5477
5891
  return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
5478
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
+ */
5479
5899
  async listProductCatalog(request) {
5480
5900
  let runtime = new $Util.RuntimeOptions({});
5481
5901
  return await this.listProductCatalogWithOptions(request, runtime);
@@ -6104,6 +6524,41 @@ class Client extends openapi_client_1.default {
6104
6524
  let runtime = new $Util.RuntimeOptions({});
6105
6525
  return await this.updateAccountWebhookWithOptions(request, runtime);
6106
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
+ }
6107
6562
  /**
6108
6563
  * The error message returned.
6109
6564
  *