@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/src/client.ts CHANGED
@@ -1808,6 +1808,81 @@ export class GetChatappVerifyCodeResponse extends $tea.Model {
1808
1808
  }
1809
1809
  }
1810
1810
 
1811
+ export class GetCommerceSettingRequest extends $tea.Model {
1812
+ custSpaceId?: string;
1813
+ phoneNumber?: string;
1814
+ static names(): { [key: string]: string } {
1815
+ return {
1816
+ custSpaceId: 'CustSpaceId',
1817
+ phoneNumber: 'PhoneNumber',
1818
+ };
1819
+ }
1820
+
1821
+ static types(): { [key: string]: any } {
1822
+ return {
1823
+ custSpaceId: 'string',
1824
+ phoneNumber: 'string',
1825
+ };
1826
+ }
1827
+
1828
+ constructor(map?: { [key: string]: any }) {
1829
+ super(map);
1830
+ }
1831
+ }
1832
+
1833
+ export class GetCommerceSettingResponseBody extends $tea.Model {
1834
+ code?: string;
1835
+ data?: GetCommerceSettingResponseBodyData;
1836
+ message?: string;
1837
+ requestId?: string;
1838
+ static names(): { [key: string]: string } {
1839
+ return {
1840
+ code: 'Code',
1841
+ data: 'Data',
1842
+ message: 'Message',
1843
+ requestId: 'RequestId',
1844
+ };
1845
+ }
1846
+
1847
+ static types(): { [key: string]: any } {
1848
+ return {
1849
+ code: 'string',
1850
+ data: GetCommerceSettingResponseBodyData,
1851
+ message: 'string',
1852
+ requestId: 'string',
1853
+ };
1854
+ }
1855
+
1856
+ constructor(map?: { [key: string]: any }) {
1857
+ super(map);
1858
+ }
1859
+ }
1860
+
1861
+ export class GetCommerceSettingResponse extends $tea.Model {
1862
+ headers: { [key: string]: string };
1863
+ statusCode: number;
1864
+ body: GetCommerceSettingResponseBody;
1865
+ static names(): { [key: string]: string } {
1866
+ return {
1867
+ headers: 'headers',
1868
+ statusCode: 'statusCode',
1869
+ body: 'body',
1870
+ };
1871
+ }
1872
+
1873
+ static types(): { [key: string]: any } {
1874
+ return {
1875
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1876
+ statusCode: 'number',
1877
+ body: GetCommerceSettingResponseBody,
1878
+ };
1879
+ }
1880
+
1881
+ constructor(map?: { [key: string]: any }) {
1882
+ super(map);
1883
+ }
1884
+ }
1885
+
1811
1886
  export class GetMigrationVerifyCodeRequest extends $tea.Model {
1812
1887
  custSpaceId?: string;
1813
1888
  locale?: string;
@@ -3153,6 +3228,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
3153
3228
  fallBackContent?: string;
3154
3229
  fallBackDuration?: number;
3155
3230
  fallBackId?: string;
3231
+ fallBackRule?: string;
3156
3232
  from?: string;
3157
3233
  isvCode?: string;
3158
3234
  label?: string;
@@ -3170,6 +3246,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
3170
3246
  fallBackContent: 'FallBackContent',
3171
3247
  fallBackDuration: 'FallBackDuration',
3172
3248
  fallBackId: 'FallBackId',
3249
+ fallBackRule: 'FallBackRule',
3173
3250
  from: 'From',
3174
3251
  isvCode: 'IsvCode',
3175
3252
  label: 'Label',
@@ -3190,6 +3267,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
3190
3267
  fallBackContent: 'string',
3191
3268
  fallBackDuration: 'number',
3192
3269
  fallBackId: 'string',
3270
+ fallBackRule: 'string',
3193
3271
  from: 'string',
3194
3272
  isvCode: 'string',
3195
3273
  label: 'string',
@@ -3214,6 +3292,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
3214
3292
  fallBackContent?: string;
3215
3293
  fallBackDuration?: number;
3216
3294
  fallBackId?: string;
3295
+ fallBackRule?: string;
3217
3296
  from?: string;
3218
3297
  isvCode?: string;
3219
3298
  label?: string;
@@ -3231,6 +3310,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
3231
3310
  fallBackContent: 'FallBackContent',
3232
3311
  fallBackDuration: 'FallBackDuration',
3233
3312
  fallBackId: 'FallBackId',
3313
+ fallBackRule: 'FallBackRule',
3234
3314
  from: 'From',
3235
3315
  isvCode: 'IsvCode',
3236
3316
  label: 'Label',
@@ -3251,6 +3331,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
3251
3331
  fallBackContent: 'string',
3252
3332
  fallBackDuration: 'number',
3253
3333
  fallBackId: 'string',
3334
+ fallBackRule: 'string',
3254
3335
  from: 'string',
3255
3336
  isvCode: 'string',
3256
3337
  label: 'string',
@@ -3333,6 +3414,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3333
3414
  fallBackContent?: string;
3334
3415
  fallBackDuration?: number;
3335
3416
  fallBackId?: string;
3417
+ fallBackRule?: string;
3336
3418
  from?: string;
3337
3419
  isvCode?: string;
3338
3420
  label?: string;
@@ -3358,6 +3440,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3358
3440
  fallBackContent: 'FallBackContent',
3359
3441
  fallBackDuration: 'FallBackDuration',
3360
3442
  fallBackId: 'FallBackId',
3443
+ fallBackRule: 'FallBackRule',
3361
3444
  from: 'From',
3362
3445
  isvCode: 'IsvCode',
3363
3446
  label: 'Label',
@@ -3386,6 +3469,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3386
3469
  fallBackContent: 'string',
3387
3470
  fallBackDuration: 'number',
3388
3471
  fallBackId: 'string',
3472
+ fallBackRule: 'string',
3389
3473
  from: 'string',
3390
3474
  isvCode: 'string',
3391
3475
  label: 'string',
@@ -3418,6 +3502,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3418
3502
  fallBackContent?: string;
3419
3503
  fallBackDuration?: number;
3420
3504
  fallBackId?: string;
3505
+ fallBackRule?: string;
3421
3506
  from?: string;
3422
3507
  isvCode?: string;
3423
3508
  label?: string;
@@ -3443,6 +3528,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3443
3528
  fallBackContent: 'FallBackContent',
3444
3529
  fallBackDuration: 'FallBackDuration',
3445
3530
  fallBackId: 'FallBackId',
3531
+ fallBackRule: 'FallBackRule',
3446
3532
  from: 'From',
3447
3533
  isvCode: 'IsvCode',
3448
3534
  label: 'Label',
@@ -3471,6 +3557,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3471
3557
  fallBackContent: 'string',
3472
3558
  fallBackDuration: 'number',
3473
3559
  fallBackId: 'string',
3560
+ fallBackRule: 'string',
3474
3561
  from: 'string',
3475
3562
  isvCode: 'string',
3476
3563
  label: 'string',
@@ -3718,6 +3805,84 @@ export class UpdateAccountWebhookResponse extends $tea.Model {
3718
3805
  }
3719
3806
  }
3720
3807
 
3808
+ export class UpdateCommerceSettingRequest extends $tea.Model {
3809
+ cartEnable?: boolean;
3810
+ catalogVisible?: boolean;
3811
+ custSpaceId?: string;
3812
+ phoneNumber?: string;
3813
+ static names(): { [key: string]: string } {
3814
+ return {
3815
+ cartEnable: 'CartEnable',
3816
+ catalogVisible: 'CatalogVisible',
3817
+ custSpaceId: 'CustSpaceId',
3818
+ phoneNumber: 'PhoneNumber',
3819
+ };
3820
+ }
3821
+
3822
+ static types(): { [key: string]: any } {
3823
+ return {
3824
+ cartEnable: 'boolean',
3825
+ catalogVisible: 'boolean',
3826
+ custSpaceId: 'string',
3827
+ phoneNumber: 'string',
3828
+ };
3829
+ }
3830
+
3831
+ constructor(map?: { [key: string]: any }) {
3832
+ super(map);
3833
+ }
3834
+ }
3835
+
3836
+ export class UpdateCommerceSettingResponseBody extends $tea.Model {
3837
+ code?: string;
3838
+ message?: string;
3839
+ requestId?: string;
3840
+ static names(): { [key: string]: string } {
3841
+ return {
3842
+ code: 'Code',
3843
+ message: 'Message',
3844
+ requestId: 'RequestId',
3845
+ };
3846
+ }
3847
+
3848
+ static types(): { [key: string]: any } {
3849
+ return {
3850
+ code: 'string',
3851
+ message: 'string',
3852
+ requestId: 'string',
3853
+ };
3854
+ }
3855
+
3856
+ constructor(map?: { [key: string]: any }) {
3857
+ super(map);
3858
+ }
3859
+ }
3860
+
3861
+ export class UpdateCommerceSettingResponse extends $tea.Model {
3862
+ headers: { [key: string]: string };
3863
+ statusCode: number;
3864
+ body: UpdateCommerceSettingResponseBody;
3865
+ static names(): { [key: string]: string } {
3866
+ return {
3867
+ headers: 'headers',
3868
+ statusCode: 'statusCode',
3869
+ body: 'body',
3870
+ };
3871
+ }
3872
+
3873
+ static types(): { [key: string]: any } {
3874
+ return {
3875
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3876
+ statusCode: 'number',
3877
+ body: UpdateCommerceSettingResponseBody,
3878
+ };
3879
+ }
3880
+
3881
+ constructor(map?: { [key: string]: any }) {
3882
+ super(map);
3883
+ }
3884
+ }
3885
+
3721
3886
  export class UpdatePhoneWebhookRequest extends $tea.Model {
3722
3887
  custSpaceId?: string;
3723
3888
  httpFlag?: string;
@@ -4235,6 +4400,7 @@ export class CreateChatappMigrationInitiateResponseBodyData extends $tea.Model {
4235
4400
 
4236
4401
  export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4237
4402
  autofillText?: string;
4403
+ couponCode?: string;
4238
4404
  isOptOut?: boolean;
4239
4405
  packageName?: string;
4240
4406
  phoneNumber?: string;
@@ -4246,6 +4412,7 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4246
4412
  static names(): { [key: string]: string } {
4247
4413
  return {
4248
4414
  autofillText: 'AutofillText',
4415
+ couponCode: 'CouponCode',
4249
4416
  isOptOut: 'IsOptOut',
4250
4417
  packageName: 'PackageName',
4251
4418
  phoneNumber: 'PhoneNumber',
@@ -4260,6 +4427,7 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4260
4427
  static types(): { [key: string]: any } {
4261
4428
  return {
4262
4429
  autofillText: 'string',
4430
+ couponCode: 'string',
4263
4431
  isOptOut: 'boolean',
4264
4432
  packageName: 'string',
4265
4433
  phoneNumber: 'string',
@@ -4276,15 +4444,98 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4276
4444
  }
4277
4445
  }
4278
4446
 
4447
+ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
4448
+ phoneNumber?: string;
4449
+ text?: string;
4450
+ type?: string;
4451
+ url?: string;
4452
+ urlType?: string;
4453
+ static names(): { [key: string]: string } {
4454
+ return {
4455
+ phoneNumber: 'PhoneNumber',
4456
+ text: 'Text',
4457
+ type: 'Type',
4458
+ url: 'Url',
4459
+ urlType: 'UrlType',
4460
+ };
4461
+ }
4462
+
4463
+ static types(): { [key: string]: any } {
4464
+ return {
4465
+ phoneNumber: 'string',
4466
+ text: 'string',
4467
+ type: 'string',
4468
+ url: 'string',
4469
+ urlType: 'string',
4470
+ };
4471
+ }
4472
+
4473
+ constructor(map?: { [key: string]: any }) {
4474
+ super(map);
4475
+ }
4476
+ }
4477
+
4478
+ export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
4479
+ buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
4480
+ format?: string;
4481
+ text?: string;
4482
+ type?: string;
4483
+ url?: string;
4484
+ static names(): { [key: string]: string } {
4485
+ return {
4486
+ buttons: 'Buttons',
4487
+ format: 'Format',
4488
+ text: 'Text',
4489
+ type: 'Type',
4490
+ url: 'Url',
4491
+ };
4492
+ }
4493
+
4494
+ static types(): { [key: string]: any } {
4495
+ return {
4496
+ buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponentsButtons },
4497
+ format: 'string',
4498
+ text: 'string',
4499
+ type: 'string',
4500
+ url: 'string',
4501
+ };
4502
+ }
4503
+
4504
+ constructor(map?: { [key: string]: any }) {
4505
+ super(map);
4506
+ }
4507
+ }
4508
+
4509
+ export class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
4510
+ cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
4511
+ static names(): { [key: string]: string } {
4512
+ return {
4513
+ cardComponents: 'CardComponents',
4514
+ };
4515
+ }
4516
+
4517
+ static types(): { [key: string]: any } {
4518
+ return {
4519
+ cardComponents: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponents },
4520
+ };
4521
+ }
4522
+
4523
+ constructor(map?: { [key: string]: any }) {
4524
+ super(map);
4525
+ }
4526
+ }
4527
+
4279
4528
  export class CreateChatappTemplateRequestComponents extends $tea.Model {
4280
4529
  addSecretRecommendation?: boolean;
4281
4530
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
4282
4531
  caption?: string;
4532
+ cards?: CreateChatappTemplateRequestComponentsCards[];
4283
4533
  codeExpirationMinutes?: number;
4284
4534
  duration?: number;
4285
4535
  fileName?: string;
4286
4536
  fileType?: string;
4287
4537
  format?: string;
4538
+ hasExpiration?: boolean;
4288
4539
  text?: string;
4289
4540
  thumbUrl?: string;
4290
4541
  type?: string;
@@ -4294,11 +4545,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
4294
4545
  addSecretRecommendation: 'AddSecretRecommendation',
4295
4546
  buttons: 'Buttons',
4296
4547
  caption: 'Caption',
4548
+ cards: 'Cards',
4297
4549
  codeExpirationMinutes: 'CodeExpirationMinutes',
4298
4550
  duration: 'Duration',
4299
4551
  fileName: 'FileName',
4300
4552
  fileType: 'FileType',
4301
4553
  format: 'Format',
4554
+ hasExpiration: 'HasExpiration',
4302
4555
  text: 'Text',
4303
4556
  thumbUrl: 'ThumbUrl',
4304
4557
  type: 'Type',
@@ -4311,11 +4564,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
4311
4564
  addSecretRecommendation: 'boolean',
4312
4565
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
4313
4566
  caption: 'string',
4567
+ cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
4314
4568
  codeExpirationMinutes: 'number',
4315
4569
  duration: 'number',
4316
4570
  fileName: 'string',
4317
4571
  fileType: 'string',
4318
4572
  format: 'string',
4573
+ hasExpiration: 'boolean',
4319
4574
  text: 'string',
4320
4575
  thumbUrl: 'string',
4321
4576
  type: 'string',
@@ -4417,6 +4672,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttr
4417
4672
 
4418
4673
  export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
4419
4674
  autofillText?: string;
4675
+ couponCode?: string;
4420
4676
  extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
4421
4677
  isOptOut?: boolean;
4422
4678
  packageName?: string;
@@ -4429,6 +4685,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4429
4685
  static names(): { [key: string]: string } {
4430
4686
  return {
4431
4687
  autofillText: 'AutofillText',
4688
+ couponCode: 'CouponCode',
4432
4689
  extendAttrs: 'ExtendAttrs',
4433
4690
  isOptOut: 'IsOptOut',
4434
4691
  packageName: 'PackageName',
@@ -4444,6 +4701,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4444
4701
  static types(): { [key: string]: any } {
4445
4702
  return {
4446
4703
  autofillText: 'string',
4704
+ couponCode: 'string',
4447
4705
  extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
4448
4706
  isOptOut: 'boolean',
4449
4707
  packageName: 'string',
@@ -4461,10 +4719,92 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4461
4719
  }
4462
4720
  }
4463
4721
 
4722
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
4723
+ phoneNumber?: string;
4724
+ text?: string;
4725
+ type?: string;
4726
+ url?: string;
4727
+ urlType?: string;
4728
+ static names(): { [key: string]: string } {
4729
+ return {
4730
+ phoneNumber: 'PhoneNumber',
4731
+ text: 'Text',
4732
+ type: 'Type',
4733
+ url: 'Url',
4734
+ urlType: 'UrlType',
4735
+ };
4736
+ }
4737
+
4738
+ static types(): { [key: string]: any } {
4739
+ return {
4740
+ phoneNumber: 'string',
4741
+ text: 'string',
4742
+ type: 'string',
4743
+ url: 'string',
4744
+ urlType: 'string',
4745
+ };
4746
+ }
4747
+
4748
+ constructor(map?: { [key: string]: any }) {
4749
+ super(map);
4750
+ }
4751
+ }
4752
+
4753
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
4754
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons[];
4755
+ format?: string;
4756
+ text?: string;
4757
+ type?: string;
4758
+ url?: string;
4759
+ static names(): { [key: string]: string } {
4760
+ return {
4761
+ buttons: 'Buttons',
4762
+ format: 'Format',
4763
+ text: 'Text',
4764
+ type: 'Type',
4765
+ url: 'Url',
4766
+ };
4767
+ }
4768
+
4769
+ static types(): { [key: string]: any } {
4770
+ return {
4771
+ buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons },
4772
+ format: 'string',
4773
+ text: 'string',
4774
+ type: 'string',
4775
+ url: 'string',
4776
+ };
4777
+ }
4778
+
4779
+ constructor(map?: { [key: string]: any }) {
4780
+ super(map);
4781
+ }
4782
+ }
4783
+
4784
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
4785
+ cardComponents?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents[];
4786
+ static names(): { [key: string]: string } {
4787
+ return {
4788
+ cardComponents: 'CardComponents',
4789
+ };
4790
+ }
4791
+
4792
+ static types(): { [key: string]: any } {
4793
+ return {
4794
+ cardComponents: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents },
4795
+ };
4796
+ }
4797
+
4798
+ constructor(map?: { [key: string]: any }) {
4799
+ super(map);
4800
+ }
4801
+ }
4802
+
4464
4803
  export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
4465
4804
  addSecretRecommendation?: boolean;
4466
4805
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
4467
4806
  caption?: string;
4807
+ cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
4468
4808
  codeExpirationMinutes?: number;
4469
4809
  duration?: number;
4470
4810
  fileName?: string;
@@ -4474,15 +4814,18 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4474
4814
  locationAddress?: string;
4475
4815
  locationName?: string;
4476
4816
  longitude?: string;
4817
+ offerExpirationTimeMs?: string;
4477
4818
  text?: string;
4478
4819
  thumbUrl?: string;
4479
4820
  type?: string;
4480
4821
  url?: string;
4822
+ hasExpiration?: boolean;
4481
4823
  static names(): { [key: string]: string } {
4482
4824
  return {
4483
4825
  addSecretRecommendation: 'AddSecretRecommendation',
4484
4826
  buttons: 'Buttons',
4485
4827
  caption: 'Caption',
4828
+ cards: 'Cards',
4486
4829
  codeExpirationMinutes: 'CodeExpirationMinutes',
4487
4830
  duration: 'Duration',
4488
4831
  fileName: 'FileName',
@@ -4492,10 +4835,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4492
4835
  locationAddress: 'LocationAddress',
4493
4836
  locationName: 'LocationName',
4494
4837
  longitude: 'Longitude',
4838
+ offerExpirationTimeMs: 'OfferExpirationTimeMs',
4495
4839
  text: 'Text',
4496
4840
  thumbUrl: 'ThumbUrl',
4497
4841
  type: 'Type',
4498
4842
  url: 'Url',
4843
+ hasExpiration: 'hasExpiration',
4499
4844
  };
4500
4845
  }
4501
4846
 
@@ -4504,6 +4849,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4504
4849
  addSecretRecommendation: 'boolean',
4505
4850
  buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
4506
4851
  caption: 'string',
4852
+ cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
4507
4853
  codeExpirationMinutes: 'number',
4508
4854
  duration: 'number',
4509
4855
  fileName: 'string',
@@ -4513,10 +4859,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4513
4859
  locationAddress: 'string',
4514
4860
  locationName: 'string',
4515
4861
  longitude: 'string',
4862
+ offerExpirationTimeMs: 'string',
4516
4863
  text: 'string',
4517
4864
  thumbUrl: 'string',
4518
4865
  type: 'string',
4519
4866
  url: 'string',
4867
+ hasExpiration: 'boolean',
4520
4868
  };
4521
4869
  }
4522
4870
 
@@ -4676,6 +5024,28 @@ export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
4676
5024
  }
4677
5025
  }
4678
5026
 
5027
+ export class GetCommerceSettingResponseBodyData extends $tea.Model {
5028
+ cartEnable?: boolean;
5029
+ catalogVisible?: boolean;
5030
+ static names(): { [key: string]: string } {
5031
+ return {
5032
+ cartEnable: 'CartEnable',
5033
+ catalogVisible: 'CatalogVisible',
5034
+ };
5035
+ }
5036
+
5037
+ static types(): { [key: string]: any } {
5038
+ return {
5039
+ cartEnable: 'boolean',
5040
+ catalogVisible: 'boolean',
5041
+ };
5042
+ }
5043
+
5044
+ constructor(map?: { [key: string]: any }) {
5045
+ super(map);
5046
+ }
5047
+ }
5048
+
4679
5049
  export class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
4680
5050
  id?: string;
4681
5051
  phoneNumber?: string;
@@ -4932,6 +5302,7 @@ export class ListProductCatalogResponseBodyModel extends $tea.Model {
4932
5302
 
4933
5303
  export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4934
5304
  autofillText?: string;
5305
+ couponCode?: string;
4935
5306
  isOptOut?: boolean;
4936
5307
  packageName?: string;
4937
5308
  phoneNumber?: string;
@@ -4943,6 +5314,7 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4943
5314
  static names(): { [key: string]: string } {
4944
5315
  return {
4945
5316
  autofillText: 'AutofillText',
5317
+ couponCode: 'CouponCode',
4946
5318
  isOptOut: 'IsOptOut',
4947
5319
  packageName: 'PackageName',
4948
5320
  phoneNumber: 'PhoneNumber',
@@ -4957,6 +5329,7 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4957
5329
  static types(): { [key: string]: any } {
4958
5330
  return {
4959
5331
  autofillText: 'string',
5332
+ couponCode: 'string',
4960
5333
  isOptOut: 'boolean',
4961
5334
  packageName: 'string',
4962
5335
  phoneNumber: 'string',
@@ -4973,15 +5346,98 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4973
5346
  }
4974
5347
  }
4975
5348
 
5349
+ export class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
5350
+ phoneNumber?: string;
5351
+ text?: string;
5352
+ type?: string;
5353
+ url?: string;
5354
+ urlType?: string;
5355
+ static names(): { [key: string]: string } {
5356
+ return {
5357
+ phoneNumber: 'PhoneNumber',
5358
+ text: 'Text',
5359
+ type: 'Type',
5360
+ url: 'Url',
5361
+ urlType: 'UrlType',
5362
+ };
5363
+ }
5364
+
5365
+ static types(): { [key: string]: any } {
5366
+ return {
5367
+ phoneNumber: 'string',
5368
+ text: 'string',
5369
+ type: 'string',
5370
+ url: 'string',
5371
+ urlType: 'string',
5372
+ };
5373
+ }
5374
+
5375
+ constructor(map?: { [key: string]: any }) {
5376
+ super(map);
5377
+ }
5378
+ }
5379
+
5380
+ export class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
5381
+ buttons?: ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons[];
5382
+ format?: string;
5383
+ text?: string;
5384
+ type?: string;
5385
+ url?: string;
5386
+ static names(): { [key: string]: string } {
5387
+ return {
5388
+ buttons: 'Buttons',
5389
+ format: 'Format',
5390
+ text: 'Text',
5391
+ type: 'Type',
5392
+ url: 'Url',
5393
+ };
5394
+ }
5395
+
5396
+ static types(): { [key: string]: any } {
5397
+ return {
5398
+ buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons },
5399
+ format: 'string',
5400
+ text: 'string',
5401
+ type: 'string',
5402
+ url: 'string',
5403
+ };
5404
+ }
5405
+
5406
+ constructor(map?: { [key: string]: any }) {
5407
+ super(map);
5408
+ }
5409
+ }
5410
+
5411
+ export class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
5412
+ cardComponents?: ModifyChatappTemplateRequestComponentsCardsCardComponents[];
5413
+ static names(): { [key: string]: string } {
5414
+ return {
5415
+ cardComponents: 'CardComponents',
5416
+ };
5417
+ }
5418
+
5419
+ static types(): { [key: string]: any } {
5420
+ return {
5421
+ cardComponents: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponents },
5422
+ };
5423
+ }
5424
+
5425
+ constructor(map?: { [key: string]: any }) {
5426
+ super(map);
5427
+ }
5428
+ }
5429
+
4976
5430
  export class ModifyChatappTemplateRequestComponents extends $tea.Model {
4977
5431
  addSecretRecommendation?: boolean;
4978
5432
  buttons?: ModifyChatappTemplateRequestComponentsButtons[];
4979
5433
  caption?: string;
5434
+ cards?: ModifyChatappTemplateRequestComponentsCards[];
4980
5435
  codeExpirationMinutes?: number;
4981
5436
  duration?: number;
4982
5437
  fileName?: string;
4983
5438
  fileType?: string;
4984
5439
  format?: string;
5440
+ hasExpiration?: boolean;
4985
5441
  text?: string;
4986
5442
  thumbUrl?: string;
4987
5443
  type?: string;
@@ -4991,11 +5447,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
4991
5447
  addSecretRecommendation: 'AddSecretRecommendation',
4992
5448
  buttons: 'Buttons',
4993
5449
  caption: 'Caption',
5450
+ cards: 'Cards',
4994
5451
  codeExpirationMinutes: 'CodeExpirationMinutes',
4995
5452
  duration: 'Duration',
4996
5453
  fileName: 'FileName',
4997
5454
  fileType: 'FileType',
4998
5455
  format: 'Format',
5456
+ hasExpiration: 'HasExpiration',
4999
5457
  text: 'Text',
5000
5458
  thumbUrl: 'ThumbUrl',
5001
5459
  type: 'Type',
@@ -5008,11 +5466,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
5008
5466
  addSecretRecommendation: 'boolean',
5009
5467
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
5010
5468
  caption: 'string',
5469
+ cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
5011
5470
  codeExpirationMinutes: 'number',
5012
5471
  duration: 'number',
5013
5472
  fileName: 'string',
5014
5473
  fileType: 'string',
5015
5474
  format: 'string',
5475
+ hasExpiration: 'boolean',
5016
5476
  text: 'string',
5017
5477
  thumbUrl: 'string',
5018
5478
  type: 'string',
@@ -6426,6 +6886,39 @@ export default class Client extends OpenApi {
6426
6886
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
6427
6887
  }
6428
6888
 
6889
+ async getCommerceSettingWithOptions(request: GetCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<GetCommerceSettingResponse> {
6890
+ Util.validateModel(request);
6891
+ let query = { };
6892
+ if (!Util.isUnset(request.custSpaceId)) {
6893
+ query["CustSpaceId"] = request.custSpaceId;
6894
+ }
6895
+
6896
+ if (!Util.isUnset(request.phoneNumber)) {
6897
+ query["PhoneNumber"] = request.phoneNumber;
6898
+ }
6899
+
6900
+ let req = new $OpenApi.OpenApiRequest({
6901
+ query: OpenApiUtil.query(query),
6902
+ });
6903
+ let params = new $OpenApi.Params({
6904
+ action: "GetCommerceSetting",
6905
+ version: "2020-06-06",
6906
+ protocol: "HTTPS",
6907
+ pathname: "/",
6908
+ method: "POST",
6909
+ authType: "AK",
6910
+ style: "RPC",
6911
+ reqBodyType: "formData",
6912
+ bodyType: "json",
6913
+ });
6914
+ return $tea.cast<GetCommerceSettingResponse>(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
6915
+ }
6916
+
6917
+ async getCommerceSetting(request: GetCommerceSettingRequest): Promise<GetCommerceSettingResponse> {
6918
+ let runtime = new $Util.RuntimeOptions({ });
6919
+ return await this.getCommerceSettingWithOptions(request, runtime);
6920
+ }
6921
+
6429
6922
  /**
6430
6923
  * The ID of the phone number.
6431
6924
  *
@@ -6559,6 +7052,13 @@ export default class Client extends OpenApi {
6559
7052
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
6560
7053
  }
6561
7054
 
7055
+ /**
7056
+ * 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.
7057
+ *
7058
+ * @param request GetWhatsappConnectionCatalogRequest
7059
+ * @param runtime runtime options for this request RuntimeOptions
7060
+ * @return GetWhatsappConnectionCatalogResponse
7061
+ */
6562
7062
  async getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse> {
6563
7063
  Util.validateModel(request);
6564
7064
  let query = { };
@@ -6599,6 +7099,12 @@ export default class Client extends OpenApi {
6599
7099
  return $tea.cast<GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
6600
7100
  }
6601
7101
 
7102
+ /**
7103
+ * 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.
7104
+ *
7105
+ * @param request GetWhatsappConnectionCatalogRequest
7106
+ * @return GetWhatsappConnectionCatalogResponse
7107
+ */
6602
7108
  async getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse> {
6603
7109
  let runtime = new $Util.RuntimeOptions({ });
6604
7110
  return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
@@ -6724,6 +7230,13 @@ export default class Client extends OpenApi {
6724
7230
  return await this.listChatappTemplateWithOptions(request, runtime);
6725
7231
  }
6726
7232
 
7233
+ /**
7234
+ * 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.
7235
+ *
7236
+ * @param request ListProductRequest
7237
+ * @param runtime runtime options for this request RuntimeOptions
7238
+ * @return ListProductResponse
7239
+ */
6727
7240
  async listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse> {
6728
7241
  Util.validateModel(request);
6729
7242
  let query = { };
@@ -6784,11 +7297,24 @@ export default class Client extends OpenApi {
6784
7297
  return $tea.cast<ListProductResponse>(await this.callApi(params, req, runtime), new ListProductResponse({}));
6785
7298
  }
6786
7299
 
7300
+ /**
7301
+ * 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.
7302
+ *
7303
+ * @param request ListProductRequest
7304
+ * @return ListProductResponse
7305
+ */
6787
7306
  async listProduct(request: ListProductRequest): Promise<ListProductResponse> {
6788
7307
  let runtime = new $Util.RuntimeOptions({ });
6789
7308
  return await this.listProductWithOptions(request, runtime);
6790
7309
  }
6791
7310
 
7311
+ /**
7312
+ * 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.
7313
+ *
7314
+ * @param request ListProductCatalogRequest
7315
+ * @param runtime runtime options for this request RuntimeOptions
7316
+ * @return ListProductCatalogResponse
7317
+ */
6792
7318
  async listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse> {
6793
7319
  Util.validateModel(request);
6794
7320
  let query = { };
@@ -6845,6 +7371,12 @@ export default class Client extends OpenApi {
6845
7371
  return $tea.cast<ListProductCatalogResponse>(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
6846
7372
  }
6847
7373
 
7374
+ /**
7375
+ * 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.
7376
+ *
7377
+ * @param request ListProductCatalogRequest
7378
+ * @return ListProductCatalogResponse
7379
+ */
6848
7380
  async listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse> {
6849
7381
  let runtime = new $Util.RuntimeOptions({ });
6850
7382
  return await this.listProductCatalogWithOptions(request, runtime);
@@ -7239,6 +7771,10 @@ export default class Client extends OpenApi {
7239
7771
  body["FallBackId"] = request.fallBackId;
7240
7772
  }
7241
7773
 
7774
+ if (!Util.isUnset(request.fallBackRule)) {
7775
+ body["FallBackRule"] = request.fallBackRule;
7776
+ }
7777
+
7242
7778
  if (!Util.isUnset(request.from)) {
7243
7779
  body["From"] = request.from;
7244
7780
  }
@@ -7365,6 +7901,10 @@ export default class Client extends OpenApi {
7365
7901
  body["FallBackId"] = request.fallBackId;
7366
7902
  }
7367
7903
 
7904
+ if (!Util.isUnset(request.fallBackRule)) {
7905
+ body["FallBackRule"] = request.fallBackRule;
7906
+ }
7907
+
7368
7908
  if (!Util.isUnset(request.from)) {
7369
7909
  body["From"] = request.from;
7370
7910
  }
@@ -7570,6 +8110,47 @@ export default class Client extends OpenApi {
7570
8110
  return await this.updateAccountWebhookWithOptions(request, runtime);
7571
8111
  }
7572
8112
 
8113
+ async updateCommerceSettingWithOptions(request: UpdateCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<UpdateCommerceSettingResponse> {
8114
+ Util.validateModel(request);
8115
+ let query = { };
8116
+ if (!Util.isUnset(request.cartEnable)) {
8117
+ query["CartEnable"] = request.cartEnable;
8118
+ }
8119
+
8120
+ if (!Util.isUnset(request.catalogVisible)) {
8121
+ query["CatalogVisible"] = request.catalogVisible;
8122
+ }
8123
+
8124
+ if (!Util.isUnset(request.custSpaceId)) {
8125
+ query["CustSpaceId"] = request.custSpaceId;
8126
+ }
8127
+
8128
+ if (!Util.isUnset(request.phoneNumber)) {
8129
+ query["PhoneNumber"] = request.phoneNumber;
8130
+ }
8131
+
8132
+ let req = new $OpenApi.OpenApiRequest({
8133
+ query: OpenApiUtil.query(query),
8134
+ });
8135
+ let params = new $OpenApi.Params({
8136
+ action: "UpdateCommerceSetting",
8137
+ version: "2020-06-06",
8138
+ protocol: "HTTPS",
8139
+ pathname: "/",
8140
+ method: "POST",
8141
+ authType: "AK",
8142
+ style: "RPC",
8143
+ reqBodyType: "formData",
8144
+ bodyType: "json",
8145
+ });
8146
+ return $tea.cast<UpdateCommerceSettingResponse>(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
8147
+ }
8148
+
8149
+ async updateCommerceSetting(request: UpdateCommerceSettingRequest): Promise<UpdateCommerceSettingResponse> {
8150
+ let runtime = new $Util.RuntimeOptions({ });
8151
+ return await this.updateCommerceSettingWithOptions(request, runtime);
8152
+ }
8153
+
7573
8154
  /**
7574
8155
  * The error message returned.
7575
8156
  *