@alicloud/cams20200606 1.2.1 → 1.3.1

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;
@@ -2133,15 +2208,18 @@ export class GetWhatsappConnectionCatalogResponse extends $tea.Model {
2133
2208
  }
2134
2209
 
2135
2210
  export class IsvGetAppIdRequest extends $tea.Model {
2211
+ permissions?: string;
2136
2212
  type?: string;
2137
2213
  static names(): { [key: string]: string } {
2138
2214
  return {
2215
+ permissions: 'Permissions',
2139
2216
  type: 'Type',
2140
2217
  };
2141
2218
  }
2142
2219
 
2143
2220
  static types(): { [key: string]: any } {
2144
2221
  return {
2222
+ permissions: 'string',
2145
2223
  type: 'string',
2146
2224
  };
2147
2225
  }
@@ -2155,6 +2233,7 @@ export class IsvGetAppIdResponseBody extends $tea.Model {
2155
2233
  accessDeniedDetail?: string;
2156
2234
  appId?: string;
2157
2235
  code?: string;
2236
+ configId?: string;
2158
2237
  message?: string;
2159
2238
  requestId?: string;
2160
2239
  static names(): { [key: string]: string } {
@@ -2162,6 +2241,7 @@ export class IsvGetAppIdResponseBody extends $tea.Model {
2162
2241
  accessDeniedDetail: 'AccessDeniedDetail',
2163
2242
  appId: 'AppId',
2164
2243
  code: 'Code',
2244
+ configId: 'ConfigId',
2165
2245
  message: 'Message',
2166
2246
  requestId: 'RequestId',
2167
2247
  };
@@ -2172,6 +2252,7 @@ export class IsvGetAppIdResponseBody extends $tea.Model {
2172
2252
  accessDeniedDetail: 'string',
2173
2253
  appId: 'string',
2174
2254
  code: 'string',
2255
+ configId: 'string',
2175
2256
  message: 'string',
2176
2257
  requestId: 'string',
2177
2258
  };
@@ -3340,6 +3421,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3340
3421
  fallBackDuration?: number;
3341
3422
  fallBackId?: string;
3342
3423
  fallBackRule?: string;
3424
+ flowAction?: SendChatappMessageRequestFlowAction;
3343
3425
  from?: string;
3344
3426
  isvCode?: string;
3345
3427
  label?: string;
@@ -3366,6 +3448,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3366
3448
  fallBackDuration: 'FallBackDuration',
3367
3449
  fallBackId: 'FallBackId',
3368
3450
  fallBackRule: 'FallBackRule',
3451
+ flowAction: 'FlowAction',
3369
3452
  from: 'From',
3370
3453
  isvCode: 'IsvCode',
3371
3454
  label: 'Label',
@@ -3395,6 +3478,7 @@ export class SendChatappMessageRequest extends $tea.Model {
3395
3478
  fallBackDuration: 'number',
3396
3479
  fallBackId: 'string',
3397
3480
  fallBackRule: 'string',
3481
+ flowAction: SendChatappMessageRequestFlowAction,
3398
3482
  from: 'string',
3399
3483
  isvCode: 'string',
3400
3484
  label: 'string',
@@ -3428,6 +3512,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3428
3512
  fallBackDuration?: number;
3429
3513
  fallBackId?: string;
3430
3514
  fallBackRule?: string;
3515
+ flowActionShrink?: string;
3431
3516
  from?: string;
3432
3517
  isvCode?: string;
3433
3518
  label?: string;
@@ -3454,6 +3539,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3454
3539
  fallBackDuration: 'FallBackDuration',
3455
3540
  fallBackId: 'FallBackId',
3456
3541
  fallBackRule: 'FallBackRule',
3542
+ flowActionShrink: 'FlowAction',
3457
3543
  from: 'From',
3458
3544
  isvCode: 'IsvCode',
3459
3545
  label: 'Label',
@@ -3483,6 +3569,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
3483
3569
  fallBackDuration: 'number',
3484
3570
  fallBackId: 'string',
3485
3571
  fallBackRule: 'string',
3572
+ flowActionShrink: 'string',
3486
3573
  from: 'string',
3487
3574
  isvCode: 'string',
3488
3575
  label: 'string',
@@ -3730,6 +3817,84 @@ export class UpdateAccountWebhookResponse extends $tea.Model {
3730
3817
  }
3731
3818
  }
3732
3819
 
3820
+ export class UpdateCommerceSettingRequest extends $tea.Model {
3821
+ cartEnable?: boolean;
3822
+ catalogVisible?: boolean;
3823
+ custSpaceId?: string;
3824
+ phoneNumber?: string;
3825
+ static names(): { [key: string]: string } {
3826
+ return {
3827
+ cartEnable: 'CartEnable',
3828
+ catalogVisible: 'CatalogVisible',
3829
+ custSpaceId: 'CustSpaceId',
3830
+ phoneNumber: 'PhoneNumber',
3831
+ };
3832
+ }
3833
+
3834
+ static types(): { [key: string]: any } {
3835
+ return {
3836
+ cartEnable: 'boolean',
3837
+ catalogVisible: 'boolean',
3838
+ custSpaceId: 'string',
3839
+ phoneNumber: 'string',
3840
+ };
3841
+ }
3842
+
3843
+ constructor(map?: { [key: string]: any }) {
3844
+ super(map);
3845
+ }
3846
+ }
3847
+
3848
+ export class UpdateCommerceSettingResponseBody extends $tea.Model {
3849
+ code?: string;
3850
+ message?: string;
3851
+ requestId?: string;
3852
+ static names(): { [key: string]: string } {
3853
+ return {
3854
+ code: 'Code',
3855
+ message: 'Message',
3856
+ requestId: 'RequestId',
3857
+ };
3858
+ }
3859
+
3860
+ static types(): { [key: string]: any } {
3861
+ return {
3862
+ code: 'string',
3863
+ message: 'string',
3864
+ requestId: 'string',
3865
+ };
3866
+ }
3867
+
3868
+ constructor(map?: { [key: string]: any }) {
3869
+ super(map);
3870
+ }
3871
+ }
3872
+
3873
+ export class UpdateCommerceSettingResponse extends $tea.Model {
3874
+ headers: { [key: string]: string };
3875
+ statusCode: number;
3876
+ body: UpdateCommerceSettingResponseBody;
3877
+ static names(): { [key: string]: string } {
3878
+ return {
3879
+ headers: 'headers',
3880
+ statusCode: 'statusCode',
3881
+ body: 'body',
3882
+ };
3883
+ }
3884
+
3885
+ static types(): { [key: string]: any } {
3886
+ return {
3887
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3888
+ statusCode: 'number',
3889
+ body: UpdateCommerceSettingResponseBody,
3890
+ };
3891
+ }
3892
+
3893
+ constructor(map?: { [key: string]: any }) {
3894
+ super(map);
3895
+ }
3896
+ }
3897
+
3733
3898
  export class UpdatePhoneWebhookRequest extends $tea.Model {
3734
3899
  custSpaceId?: string;
3735
3900
  httpFlag?: string;
@@ -4247,6 +4412,9 @@ export class CreateChatappMigrationInitiateResponseBodyData extends $tea.Model {
4247
4412
 
4248
4413
  export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4249
4414
  autofillText?: string;
4415
+ couponCode?: string;
4416
+ flowAction?: string;
4417
+ flowId?: string;
4250
4418
  isOptOut?: boolean;
4251
4419
  packageName?: string;
4252
4420
  phoneNumber?: string;
@@ -4255,9 +4423,13 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4255
4423
  type?: string;
4256
4424
  url?: string;
4257
4425
  urlType?: string;
4426
+ navigateScreen?: string;
4258
4427
  static names(): { [key: string]: string } {
4259
4428
  return {
4260
4429
  autofillText: 'AutofillText',
4430
+ couponCode: 'CouponCode',
4431
+ flowAction: 'FlowAction',
4432
+ flowId: 'FlowId',
4261
4433
  isOptOut: 'IsOptOut',
4262
4434
  packageName: 'PackageName',
4263
4435
  phoneNumber: 'PhoneNumber',
@@ -4266,12 +4438,16 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4266
4438
  type: 'Type',
4267
4439
  url: 'Url',
4268
4440
  urlType: 'UrlType',
4441
+ navigateScreen: 'navigateScreen',
4269
4442
  };
4270
4443
  }
4271
4444
 
4272
4445
  static types(): { [key: string]: any } {
4273
4446
  return {
4274
4447
  autofillText: 'string',
4448
+ couponCode: 'string',
4449
+ flowAction: 'string',
4450
+ flowId: 'string',
4275
4451
  isOptOut: 'boolean',
4276
4452
  packageName: 'string',
4277
4453
  phoneNumber: 'string',
@@ -4280,6 +4456,88 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
4280
4456
  type: 'string',
4281
4457
  url: 'string',
4282
4458
  urlType: 'string',
4459
+ navigateScreen: 'string',
4460
+ };
4461
+ }
4462
+
4463
+ constructor(map?: { [key: string]: any }) {
4464
+ super(map);
4465
+ }
4466
+ }
4467
+
4468
+ export class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
4469
+ phoneNumber?: string;
4470
+ text?: string;
4471
+ type?: string;
4472
+ url?: string;
4473
+ urlType?: string;
4474
+ static names(): { [key: string]: string } {
4475
+ return {
4476
+ phoneNumber: 'PhoneNumber',
4477
+ text: 'Text',
4478
+ type: 'Type',
4479
+ url: 'Url',
4480
+ urlType: 'UrlType',
4481
+ };
4482
+ }
4483
+
4484
+ static types(): { [key: string]: any } {
4485
+ return {
4486
+ phoneNumber: 'string',
4487
+ text: 'string',
4488
+ type: 'string',
4489
+ url: 'string',
4490
+ urlType: 'string',
4491
+ };
4492
+ }
4493
+
4494
+ constructor(map?: { [key: string]: any }) {
4495
+ super(map);
4496
+ }
4497
+ }
4498
+
4499
+ export class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
4500
+ buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
4501
+ format?: string;
4502
+ text?: string;
4503
+ type?: string;
4504
+ url?: string;
4505
+ static names(): { [key: string]: string } {
4506
+ return {
4507
+ buttons: 'Buttons',
4508
+ format: 'Format',
4509
+ text: 'Text',
4510
+ type: 'Type',
4511
+ url: 'Url',
4512
+ };
4513
+ }
4514
+
4515
+ static types(): { [key: string]: any } {
4516
+ return {
4517
+ buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponentsButtons },
4518
+ format: 'string',
4519
+ text: 'string',
4520
+ type: 'string',
4521
+ url: 'string',
4522
+ };
4523
+ }
4524
+
4525
+ constructor(map?: { [key: string]: any }) {
4526
+ super(map);
4527
+ }
4528
+ }
4529
+
4530
+ export class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
4531
+ cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
4532
+ static names(): { [key: string]: string } {
4533
+ return {
4534
+ cardComponents: 'CardComponents',
4535
+ };
4536
+ }
4537
+
4538
+ static types(): { [key: string]: any } {
4539
+ return {
4540
+ cardComponents: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCardsCardComponents },
4283
4541
  };
4284
4542
  }
4285
4543
 
@@ -4292,11 +4550,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
4292
4550
  addSecretRecommendation?: boolean;
4293
4551
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
4294
4552
  caption?: string;
4553
+ cards?: CreateChatappTemplateRequestComponentsCards[];
4295
4554
  codeExpirationMinutes?: number;
4296
4555
  duration?: number;
4297
4556
  fileName?: string;
4298
4557
  fileType?: string;
4299
4558
  format?: string;
4559
+ hasExpiration?: boolean;
4300
4560
  text?: string;
4301
4561
  thumbUrl?: string;
4302
4562
  type?: string;
@@ -4306,11 +4566,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
4306
4566
  addSecretRecommendation: 'AddSecretRecommendation',
4307
4567
  buttons: 'Buttons',
4308
4568
  caption: 'Caption',
4569
+ cards: 'Cards',
4309
4570
  codeExpirationMinutes: 'CodeExpirationMinutes',
4310
4571
  duration: 'Duration',
4311
4572
  fileName: 'FileName',
4312
4573
  fileType: 'FileType',
4313
4574
  format: 'Format',
4575
+ hasExpiration: 'HasExpiration',
4314
4576
  text: 'Text',
4315
4577
  thumbUrl: 'ThumbUrl',
4316
4578
  type: 'Type',
@@ -4323,11 +4585,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
4323
4585
  addSecretRecommendation: 'boolean',
4324
4586
  buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
4325
4587
  caption: 'string',
4588
+ cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
4326
4589
  codeExpirationMinutes: 'number',
4327
4590
  duration: 'number',
4328
4591
  fileName: 'string',
4329
4592
  fileType: 'string',
4330
4593
  format: 'string',
4594
+ hasExpiration: 'boolean',
4331
4595
  text: 'string',
4332
4596
  thumbUrl: 'string',
4333
4597
  type: 'string',
@@ -4429,8 +4693,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttr
4429
4693
 
4430
4694
  export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
4431
4695
  autofillText?: string;
4696
+ couponCode?: string;
4432
4697
  extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
4698
+ flowAction?: string;
4699
+ flowId?: string;
4433
4700
  isOptOut?: boolean;
4701
+ navigateScreen?: string;
4434
4702
  packageName?: string;
4435
4703
  phoneNumber?: string;
4436
4704
  signatureHash?: string;
@@ -4441,8 +4709,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4441
4709
  static names(): { [key: string]: string } {
4442
4710
  return {
4443
4711
  autofillText: 'AutofillText',
4712
+ couponCode: 'CouponCode',
4444
4713
  extendAttrs: 'ExtendAttrs',
4714
+ flowAction: 'FlowAction',
4715
+ flowId: 'FlowId',
4445
4716
  isOptOut: 'IsOptOut',
4717
+ navigateScreen: 'NavigateScreen',
4446
4718
  packageName: 'PackageName',
4447
4719
  phoneNumber: 'PhoneNumber',
4448
4720
  signatureHash: 'SignatureHash',
@@ -4456,8 +4728,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4456
4728
  static types(): { [key: string]: any } {
4457
4729
  return {
4458
4730
  autofillText: 'string',
4731
+ couponCode: 'string',
4459
4732
  extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
4733
+ flowAction: 'string',
4734
+ flowId: 'string',
4460
4735
  isOptOut: 'boolean',
4736
+ navigateScreen: 'string',
4461
4737
  packageName: 'string',
4462
4738
  phoneNumber: 'string',
4463
4739
  signatureHash: 'string',
@@ -4473,10 +4749,92 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
4473
4749
  }
4474
4750
  }
4475
4751
 
4752
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
4753
+ phoneNumber?: string;
4754
+ text?: string;
4755
+ type?: string;
4756
+ url?: string;
4757
+ urlType?: string;
4758
+ static names(): { [key: string]: string } {
4759
+ return {
4760
+ phoneNumber: 'PhoneNumber',
4761
+ text: 'Text',
4762
+ type: 'Type',
4763
+ url: 'Url',
4764
+ urlType: 'UrlType',
4765
+ };
4766
+ }
4767
+
4768
+ static types(): { [key: string]: any } {
4769
+ return {
4770
+ phoneNumber: 'string',
4771
+ text: 'string',
4772
+ type: 'string',
4773
+ url: 'string',
4774
+ urlType: 'string',
4775
+ };
4776
+ }
4777
+
4778
+ constructor(map?: { [key: string]: any }) {
4779
+ super(map);
4780
+ }
4781
+ }
4782
+
4783
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
4784
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons[];
4785
+ format?: string;
4786
+ text?: string;
4787
+ type?: string;
4788
+ url?: string;
4789
+ static names(): { [key: string]: string } {
4790
+ return {
4791
+ buttons: 'Buttons',
4792
+ format: 'Format',
4793
+ text: 'Text',
4794
+ type: 'Type',
4795
+ url: 'Url',
4796
+ };
4797
+ }
4798
+
4799
+ static types(): { [key: string]: any } {
4800
+ return {
4801
+ buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons },
4802
+ format: 'string',
4803
+ text: 'string',
4804
+ type: 'string',
4805
+ url: 'string',
4806
+ };
4807
+ }
4808
+
4809
+ constructor(map?: { [key: string]: any }) {
4810
+ super(map);
4811
+ }
4812
+ }
4813
+
4814
+ export class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
4815
+ cardComponents?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents[];
4816
+ static names(): { [key: string]: string } {
4817
+ return {
4818
+ cardComponents: 'CardComponents',
4819
+ };
4820
+ }
4821
+
4822
+ static types(): { [key: string]: any } {
4823
+ return {
4824
+ cardComponents: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents },
4825
+ };
4826
+ }
4827
+
4828
+ constructor(map?: { [key: string]: any }) {
4829
+ super(map);
4830
+ }
4831
+ }
4832
+
4476
4833
  export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
4477
4834
  addSecretRecommendation?: boolean;
4478
4835
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
4479
4836
  caption?: string;
4837
+ cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
4480
4838
  codeExpirationMinutes?: number;
4481
4839
  duration?: number;
4482
4840
  fileName?: string;
@@ -4486,15 +4844,18 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4486
4844
  locationAddress?: string;
4487
4845
  locationName?: string;
4488
4846
  longitude?: string;
4847
+ offerExpirationTimeMs?: string;
4489
4848
  text?: string;
4490
4849
  thumbUrl?: string;
4491
4850
  type?: string;
4492
4851
  url?: string;
4852
+ hasExpiration?: boolean;
4493
4853
  static names(): { [key: string]: string } {
4494
4854
  return {
4495
4855
  addSecretRecommendation: 'AddSecretRecommendation',
4496
4856
  buttons: 'Buttons',
4497
4857
  caption: 'Caption',
4858
+ cards: 'Cards',
4498
4859
  codeExpirationMinutes: 'CodeExpirationMinutes',
4499
4860
  duration: 'Duration',
4500
4861
  fileName: 'FileName',
@@ -4504,10 +4865,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4504
4865
  locationAddress: 'LocationAddress',
4505
4866
  locationName: 'LocationName',
4506
4867
  longitude: 'Longitude',
4868
+ offerExpirationTimeMs: 'OfferExpirationTimeMs',
4507
4869
  text: 'Text',
4508
4870
  thumbUrl: 'ThumbUrl',
4509
4871
  type: 'Type',
4510
4872
  url: 'Url',
4873
+ hasExpiration: 'hasExpiration',
4511
4874
  };
4512
4875
  }
4513
4876
 
@@ -4516,6 +4879,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4516
4879
  addSecretRecommendation: 'boolean',
4517
4880
  buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
4518
4881
  caption: 'string',
4882
+ cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
4519
4883
  codeExpirationMinutes: 'number',
4520
4884
  duration: 'number',
4521
4885
  fileName: 'string',
@@ -4525,10 +4889,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
4525
4889
  locationAddress: 'string',
4526
4890
  locationName: 'string',
4527
4891
  longitude: 'string',
4892
+ offerExpirationTimeMs: 'string',
4528
4893
  text: 'string',
4529
4894
  thumbUrl: 'string',
4530
4895
  type: 'string',
4531
4896
  url: 'string',
4897
+ hasExpiration: 'boolean',
4532
4898
  };
4533
4899
  }
4534
4900
 
@@ -4688,6 +5054,28 @@ export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
4688
5054
  }
4689
5055
  }
4690
5056
 
5057
+ export class GetCommerceSettingResponseBodyData extends $tea.Model {
5058
+ cartEnable?: boolean;
5059
+ catalogVisible?: boolean;
5060
+ static names(): { [key: string]: string } {
5061
+ return {
5062
+ cartEnable: 'CartEnable',
5063
+ catalogVisible: 'CatalogVisible',
5064
+ };
5065
+ }
5066
+
5067
+ static types(): { [key: string]: any } {
5068
+ return {
5069
+ cartEnable: 'boolean',
5070
+ catalogVisible: 'boolean',
5071
+ };
5072
+ }
5073
+
5074
+ constructor(map?: { [key: string]: any }) {
5075
+ super(map);
5076
+ }
5077
+ }
5078
+
4691
5079
  export class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
4692
5080
  id?: string;
4693
5081
  phoneNumber?: string;
@@ -4944,6 +5332,9 @@ export class ListProductCatalogResponseBodyModel extends $tea.Model {
4944
5332
 
4945
5333
  export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4946
5334
  autofillText?: string;
5335
+ couponCode?: string;
5336
+ flowAction?: string;
5337
+ flowId?: string;
4947
5338
  isOptOut?: boolean;
4948
5339
  packageName?: string;
4949
5340
  phoneNumber?: string;
@@ -4952,9 +5343,13 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4952
5343
  type?: string;
4953
5344
  url?: string;
4954
5345
  urlType?: string;
5346
+ navigateScreen?: string;
4955
5347
  static names(): { [key: string]: string } {
4956
5348
  return {
4957
5349
  autofillText: 'AutofillText',
5350
+ couponCode: 'CouponCode',
5351
+ flowAction: 'FlowAction',
5352
+ flowId: 'FlowId',
4958
5353
  isOptOut: 'IsOptOut',
4959
5354
  packageName: 'PackageName',
4960
5355
  phoneNumber: 'PhoneNumber',
@@ -4963,12 +5358,16 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4963
5358
  type: 'Type',
4964
5359
  url: 'Url',
4965
5360
  urlType: 'UrlType',
5361
+ navigateScreen: 'navigateScreen',
4966
5362
  };
4967
5363
  }
4968
5364
 
4969
5365
  static types(): { [key: string]: any } {
4970
5366
  return {
4971
5367
  autofillText: 'string',
5368
+ couponCode: 'string',
5369
+ flowAction: 'string',
5370
+ flowId: 'string',
4972
5371
  isOptOut: 'boolean',
4973
5372
  packageName: 'string',
4974
5373
  phoneNumber: 'string',
@@ -4977,6 +5376,88 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
4977
5376
  type: 'string',
4978
5377
  url: 'string',
4979
5378
  urlType: 'string',
5379
+ navigateScreen: 'string',
5380
+ };
5381
+ }
5382
+
5383
+ constructor(map?: { [key: string]: any }) {
5384
+ super(map);
5385
+ }
5386
+ }
5387
+
5388
+ export class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
5389
+ phoneNumber?: string;
5390
+ text?: string;
5391
+ type?: string;
5392
+ url?: string;
5393
+ urlType?: string;
5394
+ static names(): { [key: string]: string } {
5395
+ return {
5396
+ phoneNumber: 'PhoneNumber',
5397
+ text: 'Text',
5398
+ type: 'Type',
5399
+ url: 'Url',
5400
+ urlType: 'UrlType',
5401
+ };
5402
+ }
5403
+
5404
+ static types(): { [key: string]: any } {
5405
+ return {
5406
+ phoneNumber: 'string',
5407
+ text: 'string',
5408
+ type: 'string',
5409
+ url: 'string',
5410
+ urlType: 'string',
5411
+ };
5412
+ }
5413
+
5414
+ constructor(map?: { [key: string]: any }) {
5415
+ super(map);
5416
+ }
5417
+ }
5418
+
5419
+ export class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
5420
+ buttons?: ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons[];
5421
+ format?: string;
5422
+ text?: string;
5423
+ type?: string;
5424
+ url?: string;
5425
+ static names(): { [key: string]: string } {
5426
+ return {
5427
+ buttons: 'Buttons',
5428
+ format: 'Format',
5429
+ text: 'Text',
5430
+ type: 'Type',
5431
+ url: 'Url',
5432
+ };
5433
+ }
5434
+
5435
+ static types(): { [key: string]: any } {
5436
+ return {
5437
+ buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons },
5438
+ format: 'string',
5439
+ text: 'string',
5440
+ type: 'string',
5441
+ url: 'string',
5442
+ };
5443
+ }
5444
+
5445
+ constructor(map?: { [key: string]: any }) {
5446
+ super(map);
5447
+ }
5448
+ }
5449
+
5450
+ export class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
5451
+ cardComponents?: ModifyChatappTemplateRequestComponentsCardsCardComponents[];
5452
+ static names(): { [key: string]: string } {
5453
+ return {
5454
+ cardComponents: 'CardComponents',
5455
+ };
5456
+ }
5457
+
5458
+ static types(): { [key: string]: any } {
5459
+ return {
5460
+ cardComponents: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCardsCardComponents },
4980
5461
  };
4981
5462
  }
4982
5463
 
@@ -4989,11 +5470,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
4989
5470
  addSecretRecommendation?: boolean;
4990
5471
  buttons?: ModifyChatappTemplateRequestComponentsButtons[];
4991
5472
  caption?: string;
5473
+ cards?: ModifyChatappTemplateRequestComponentsCards[];
4992
5474
  codeExpirationMinutes?: number;
4993
5475
  duration?: number;
4994
5476
  fileName?: string;
4995
5477
  fileType?: string;
4996
5478
  format?: string;
5479
+ hasExpiration?: boolean;
4997
5480
  text?: string;
4998
5481
  thumbUrl?: string;
4999
5482
  type?: string;
@@ -5003,11 +5486,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
5003
5486
  addSecretRecommendation: 'AddSecretRecommendation',
5004
5487
  buttons: 'Buttons',
5005
5488
  caption: 'Caption',
5489
+ cards: 'Cards',
5006
5490
  codeExpirationMinutes: 'CodeExpirationMinutes',
5007
5491
  duration: 'Duration',
5008
5492
  fileName: 'FileName',
5009
5493
  fileType: 'FileType',
5010
5494
  format: 'Format',
5495
+ hasExpiration: 'HasExpiration',
5011
5496
  text: 'Text',
5012
5497
  thumbUrl: 'ThumbUrl',
5013
5498
  type: 'Type',
@@ -5020,11 +5505,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
5020
5505
  addSecretRecommendation: 'boolean',
5021
5506
  buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
5022
5507
  caption: 'string',
5508
+ cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
5023
5509
  codeExpirationMinutes: 'number',
5024
5510
  duration: 'number',
5025
5511
  fileName: 'string',
5026
5512
  fileType: 'string',
5027
5513
  format: 'string',
5514
+ hasExpiration: 'boolean',
5028
5515
  text: 'string',
5029
5516
  thumbUrl: 'string',
5030
5517
  type: 'string',
@@ -5204,6 +5691,28 @@ export class QueryWabaBusinessInfoResponseBodyData extends $tea.Model {
5204
5691
  }
5205
5692
  }
5206
5693
 
5694
+ export class SendChatappMassMessageRequestSenderListFlowAction extends $tea.Model {
5695
+ flowActionData?: { [key: string]: string };
5696
+ flowToken?: string;
5697
+ static names(): { [key: string]: string } {
5698
+ return {
5699
+ flowActionData: 'FlowActionData',
5700
+ flowToken: 'FlowToken',
5701
+ };
5702
+ }
5703
+
5704
+ static types(): { [key: string]: any } {
5705
+ return {
5706
+ flowActionData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5707
+ flowToken: 'string',
5708
+ };
5709
+ }
5710
+
5711
+ constructor(map?: { [key: string]: any }) {
5712
+ super(map);
5713
+ }
5714
+ }
5715
+
5207
5716
  export class SendChatappMassMessageRequestSenderListProductActionSectionsProductItems extends $tea.Model {
5208
5717
  productRetailerId?: string;
5209
5718
  static names(): { [key: string]: string } {
@@ -5268,12 +5777,14 @@ export class SendChatappMassMessageRequestSenderListProductAction extends $tea.M
5268
5777
  }
5269
5778
 
5270
5779
  export class SendChatappMassMessageRequestSenderList extends $tea.Model {
5780
+ flowAction?: SendChatappMassMessageRequestSenderListFlowAction;
5271
5781
  payload?: string[];
5272
5782
  productAction?: SendChatappMassMessageRequestSenderListProductAction;
5273
5783
  templateParams?: { [key: string]: string };
5274
5784
  to?: string;
5275
5785
  static names(): { [key: string]: string } {
5276
5786
  return {
5787
+ flowAction: 'FlowAction',
5277
5788
  payload: 'Payload',
5278
5789
  productAction: 'ProductAction',
5279
5790
  templateParams: 'TemplateParams',
@@ -5283,6 +5794,7 @@ export class SendChatappMassMessageRequestSenderList extends $tea.Model {
5283
5794
 
5284
5795
  static types(): { [key: string]: any } {
5285
5796
  return {
5797
+ flowAction: SendChatappMassMessageRequestSenderListFlowAction,
5286
5798
  payload: { 'type': 'array', 'itemType': 'string' },
5287
5799
  productAction: SendChatappMassMessageRequestSenderListProductAction,
5288
5800
  templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
@@ -5295,6 +5807,28 @@ export class SendChatappMassMessageRequestSenderList extends $tea.Model {
5295
5807
  }
5296
5808
  }
5297
5809
 
5810
+ export class SendChatappMessageRequestFlowAction extends $tea.Model {
5811
+ flowActionData?: { [key: string]: string };
5812
+ flowToken?: string;
5813
+ static names(): { [key: string]: string } {
5814
+ return {
5815
+ flowActionData: 'FlowActionData',
5816
+ flowToken: 'FlowToken',
5817
+ };
5818
+ }
5819
+
5820
+ static types(): { [key: string]: any } {
5821
+ return {
5822
+ flowActionData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5823
+ flowToken: 'string',
5824
+ };
5825
+ }
5826
+
5827
+ constructor(map?: { [key: string]: any }) {
5828
+ super(map);
5829
+ }
5830
+ }
5831
+
5298
5832
  export class SendChatappMessageRequestProductActionSectionsProductItems extends $tea.Model {
5299
5833
  productRetailerId?: string;
5300
5834
  static names(): { [key: string]: string } {
@@ -6438,6 +6972,39 @@ export default class Client extends OpenApi {
6438
6972
  return await this.getChatappVerifyCodeWithOptions(request, runtime);
6439
6973
  }
6440
6974
 
6975
+ async getCommerceSettingWithOptions(request: GetCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<GetCommerceSettingResponse> {
6976
+ Util.validateModel(request);
6977
+ let query = { };
6978
+ if (!Util.isUnset(request.custSpaceId)) {
6979
+ query["CustSpaceId"] = request.custSpaceId;
6980
+ }
6981
+
6982
+ if (!Util.isUnset(request.phoneNumber)) {
6983
+ query["PhoneNumber"] = request.phoneNumber;
6984
+ }
6985
+
6986
+ let req = new $OpenApi.OpenApiRequest({
6987
+ query: OpenApiUtil.query(query),
6988
+ });
6989
+ let params = new $OpenApi.Params({
6990
+ action: "GetCommerceSetting",
6991
+ version: "2020-06-06",
6992
+ protocol: "HTTPS",
6993
+ pathname: "/",
6994
+ method: "POST",
6995
+ authType: "AK",
6996
+ style: "RPC",
6997
+ reqBodyType: "formData",
6998
+ bodyType: "json",
6999
+ });
7000
+ return $tea.cast<GetCommerceSettingResponse>(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
7001
+ }
7002
+
7003
+ async getCommerceSetting(request: GetCommerceSettingRequest): Promise<GetCommerceSettingResponse> {
7004
+ let runtime = new $Util.RuntimeOptions({ });
7005
+ return await this.getCommerceSettingWithOptions(request, runtime);
7006
+ }
7007
+
6441
7008
  /**
6442
7009
  * The ID of the phone number.
6443
7010
  *
@@ -6571,6 +7138,13 @@ export default class Client extends OpenApi {
6571
7138
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
6572
7139
  }
6573
7140
 
7141
+ /**
7142
+ * 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.
7143
+ *
7144
+ * @param request GetWhatsappConnectionCatalogRequest
7145
+ * @param runtime runtime options for this request RuntimeOptions
7146
+ * @return GetWhatsappConnectionCatalogResponse
7147
+ */
6574
7148
  async getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse> {
6575
7149
  Util.validateModel(request);
6576
7150
  let query = { };
@@ -6611,6 +7185,12 @@ export default class Client extends OpenApi {
6611
7185
  return $tea.cast<GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
6612
7186
  }
6613
7187
 
7188
+ /**
7189
+ * 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.
7190
+ *
7191
+ * @param request GetWhatsappConnectionCatalogRequest
7192
+ * @return GetWhatsappConnectionCatalogResponse
7193
+ */
6614
7194
  async getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse> {
6615
7195
  let runtime = new $Util.RuntimeOptions({ });
6616
7196
  return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
@@ -6626,6 +7206,10 @@ export default class Client extends OpenApi {
6626
7206
  async isvGetAppIdWithOptions(request: IsvGetAppIdRequest, runtime: $Util.RuntimeOptions): Promise<IsvGetAppIdResponse> {
6627
7207
  Util.validateModel(request);
6628
7208
  let body : {[key: string ]: any} = { };
7209
+ if (!Util.isUnset(request.permissions)) {
7210
+ body["Permissions"] = request.permissions;
7211
+ }
7212
+
6629
7213
  if (!Util.isUnset(request.type)) {
6630
7214
  body["Type"] = request.type;
6631
7215
  }
@@ -6736,6 +7320,13 @@ export default class Client extends OpenApi {
6736
7320
  return await this.listChatappTemplateWithOptions(request, runtime);
6737
7321
  }
6738
7322
 
7323
+ /**
7324
+ * 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.
7325
+ *
7326
+ * @param request ListProductRequest
7327
+ * @param runtime runtime options for this request RuntimeOptions
7328
+ * @return ListProductResponse
7329
+ */
6739
7330
  async listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse> {
6740
7331
  Util.validateModel(request);
6741
7332
  let query = { };
@@ -6796,11 +7387,24 @@ export default class Client extends OpenApi {
6796
7387
  return $tea.cast<ListProductResponse>(await this.callApi(params, req, runtime), new ListProductResponse({}));
6797
7388
  }
6798
7389
 
7390
+ /**
7391
+ * 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.
7392
+ *
7393
+ * @param request ListProductRequest
7394
+ * @return ListProductResponse
7395
+ */
6799
7396
  async listProduct(request: ListProductRequest): Promise<ListProductResponse> {
6800
7397
  let runtime = new $Util.RuntimeOptions({ });
6801
7398
  return await this.listProductWithOptions(request, runtime);
6802
7399
  }
6803
7400
 
7401
+ /**
7402
+ * 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.
7403
+ *
7404
+ * @param request ListProductCatalogRequest
7405
+ * @param runtime runtime options for this request RuntimeOptions
7406
+ * @return ListProductCatalogResponse
7407
+ */
6804
7408
  async listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse> {
6805
7409
  Util.validateModel(request);
6806
7410
  let query = { };
@@ -6857,6 +7461,12 @@ export default class Client extends OpenApi {
6857
7461
  return $tea.cast<ListProductCatalogResponse>(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
6858
7462
  }
6859
7463
 
7464
+ /**
7465
+ * 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.
7466
+ *
7467
+ * @param request ListProductCatalogRequest
7468
+ * @return ListProductCatalogResponse
7469
+ */
6860
7470
  async listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse> {
6861
7471
  let runtime = new $Util.RuntimeOptions({ });
6862
7472
  return await this.listProductCatalogWithOptions(request, runtime);
@@ -7331,6 +7941,10 @@ export default class Client extends OpenApi {
7331
7941
  Util.validateModel(tmpReq);
7332
7942
  let request = new SendChatappMessageShrinkRequest({ });
7333
7943
  OpenApiUtil.convert(tmpReq, request);
7944
+ if (!Util.isUnset(tmpReq.flowAction)) {
7945
+ request.flowActionShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.flowAction, "FlowAction", "json");
7946
+ }
7947
+
7334
7948
  if (!Util.isUnset(tmpReq.payload)) {
7335
7949
  request.payloadShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.payload, "Payload", "json");
7336
7950
  }
@@ -7385,6 +7999,10 @@ export default class Client extends OpenApi {
7385
7999
  body["FallBackRule"] = request.fallBackRule;
7386
8000
  }
7387
8001
 
8002
+ if (!Util.isUnset(request.flowActionShrink)) {
8003
+ body["FlowAction"] = request.flowActionShrink;
8004
+ }
8005
+
7388
8006
  if (!Util.isUnset(request.from)) {
7389
8007
  body["From"] = request.from;
7390
8008
  }
@@ -7590,6 +8208,47 @@ export default class Client extends OpenApi {
7590
8208
  return await this.updateAccountWebhookWithOptions(request, runtime);
7591
8209
  }
7592
8210
 
8211
+ async updateCommerceSettingWithOptions(request: UpdateCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<UpdateCommerceSettingResponse> {
8212
+ Util.validateModel(request);
8213
+ let query = { };
8214
+ if (!Util.isUnset(request.cartEnable)) {
8215
+ query["CartEnable"] = request.cartEnable;
8216
+ }
8217
+
8218
+ if (!Util.isUnset(request.catalogVisible)) {
8219
+ query["CatalogVisible"] = request.catalogVisible;
8220
+ }
8221
+
8222
+ if (!Util.isUnset(request.custSpaceId)) {
8223
+ query["CustSpaceId"] = request.custSpaceId;
8224
+ }
8225
+
8226
+ if (!Util.isUnset(request.phoneNumber)) {
8227
+ query["PhoneNumber"] = request.phoneNumber;
8228
+ }
8229
+
8230
+ let req = new $OpenApi.OpenApiRequest({
8231
+ query: OpenApiUtil.query(query),
8232
+ });
8233
+ let params = new $OpenApi.Params({
8234
+ action: "UpdateCommerceSetting",
8235
+ version: "2020-06-06",
8236
+ protocol: "HTTPS",
8237
+ pathname: "/",
8238
+ method: "POST",
8239
+ authType: "AK",
8240
+ style: "RPC",
8241
+ reqBodyType: "formData",
8242
+ bodyType: "json",
8243
+ });
8244
+ return $tea.cast<UpdateCommerceSettingResponse>(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
8245
+ }
8246
+
8247
+ async updateCommerceSetting(request: UpdateCommerceSettingRequest): Promise<UpdateCommerceSettingResponse> {
8248
+ let runtime = new $Util.RuntimeOptions({ });
8249
+ return await this.updateCommerceSettingWithOptions(request, runtime);
8250
+ }
8251
+
7593
8252
  /**
7594
8253
  * The error message returned.
7595
8254
  *