@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.d.ts +287 -0
- package/dist/client.js +455 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +561 -0
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;
|
|
@@ -3730,6 +3805,84 @@ export class UpdateAccountWebhookResponse extends $tea.Model {
|
|
|
3730
3805
|
}
|
|
3731
3806
|
}
|
|
3732
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
|
+
|
|
3733
3886
|
export class UpdatePhoneWebhookRequest extends $tea.Model {
|
|
3734
3887
|
custSpaceId?: string;
|
|
3735
3888
|
httpFlag?: string;
|
|
@@ -4247,6 +4400,7 @@ export class CreateChatappMigrationInitiateResponseBodyData extends $tea.Model {
|
|
|
4247
4400
|
|
|
4248
4401
|
export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
4249
4402
|
autofillText?: string;
|
|
4403
|
+
couponCode?: string;
|
|
4250
4404
|
isOptOut?: boolean;
|
|
4251
4405
|
packageName?: string;
|
|
4252
4406
|
phoneNumber?: string;
|
|
@@ -4258,6 +4412,7 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4258
4412
|
static names(): { [key: string]: string } {
|
|
4259
4413
|
return {
|
|
4260
4414
|
autofillText: 'AutofillText',
|
|
4415
|
+
couponCode: 'CouponCode',
|
|
4261
4416
|
isOptOut: 'IsOptOut',
|
|
4262
4417
|
packageName: 'PackageName',
|
|
4263
4418
|
phoneNumber: 'PhoneNumber',
|
|
@@ -4272,6 +4427,7 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4272
4427
|
static types(): { [key: string]: any } {
|
|
4273
4428
|
return {
|
|
4274
4429
|
autofillText: 'string',
|
|
4430
|
+
couponCode: 'string',
|
|
4275
4431
|
isOptOut: 'boolean',
|
|
4276
4432
|
packageName: 'string',
|
|
4277
4433
|
phoneNumber: 'string',
|
|
@@ -4288,15 +4444,98 @@ export class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4288
4444
|
}
|
|
4289
4445
|
}
|
|
4290
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
|
+
|
|
4291
4528
|
export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
4292
4529
|
addSecretRecommendation?: boolean;
|
|
4293
4530
|
buttons?: CreateChatappTemplateRequestComponentsButtons[];
|
|
4294
4531
|
caption?: string;
|
|
4532
|
+
cards?: CreateChatappTemplateRequestComponentsCards[];
|
|
4295
4533
|
codeExpirationMinutes?: number;
|
|
4296
4534
|
duration?: number;
|
|
4297
4535
|
fileName?: string;
|
|
4298
4536
|
fileType?: string;
|
|
4299
4537
|
format?: string;
|
|
4538
|
+
hasExpiration?: boolean;
|
|
4300
4539
|
text?: string;
|
|
4301
4540
|
thumbUrl?: string;
|
|
4302
4541
|
type?: string;
|
|
@@ -4306,11 +4545,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
4306
4545
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
4307
4546
|
buttons: 'Buttons',
|
|
4308
4547
|
caption: 'Caption',
|
|
4548
|
+
cards: 'Cards',
|
|
4309
4549
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
4310
4550
|
duration: 'Duration',
|
|
4311
4551
|
fileName: 'FileName',
|
|
4312
4552
|
fileType: 'FileType',
|
|
4313
4553
|
format: 'Format',
|
|
4554
|
+
hasExpiration: 'HasExpiration',
|
|
4314
4555
|
text: 'Text',
|
|
4315
4556
|
thumbUrl: 'ThumbUrl',
|
|
4316
4557
|
type: 'Type',
|
|
@@ -4323,11 +4564,13 @@ export class CreateChatappTemplateRequestComponents extends $tea.Model {
|
|
|
4323
4564
|
addSecretRecommendation: 'boolean',
|
|
4324
4565
|
buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
|
|
4325
4566
|
caption: 'string',
|
|
4567
|
+
cards: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsCards },
|
|
4326
4568
|
codeExpirationMinutes: 'number',
|
|
4327
4569
|
duration: 'number',
|
|
4328
4570
|
fileName: 'string',
|
|
4329
4571
|
fileType: 'string',
|
|
4330
4572
|
format: 'string',
|
|
4573
|
+
hasExpiration: 'boolean',
|
|
4331
4574
|
text: 'string',
|
|
4332
4575
|
thumbUrl: 'string',
|
|
4333
4576
|
type: 'string',
|
|
@@ -4429,6 +4672,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttr
|
|
|
4429
4672
|
|
|
4430
4673
|
export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
|
|
4431
4674
|
autofillText?: string;
|
|
4675
|
+
couponCode?: string;
|
|
4432
4676
|
extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
|
|
4433
4677
|
isOptOut?: boolean;
|
|
4434
4678
|
packageName?: string;
|
|
@@ -4441,6 +4685,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
|
|
|
4441
4685
|
static names(): { [key: string]: string } {
|
|
4442
4686
|
return {
|
|
4443
4687
|
autofillText: 'AutofillText',
|
|
4688
|
+
couponCode: 'CouponCode',
|
|
4444
4689
|
extendAttrs: 'ExtendAttrs',
|
|
4445
4690
|
isOptOut: 'IsOptOut',
|
|
4446
4691
|
packageName: 'PackageName',
|
|
@@ -4456,6 +4701,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
|
|
|
4456
4701
|
static types(): { [key: string]: any } {
|
|
4457
4702
|
return {
|
|
4458
4703
|
autofillText: 'string',
|
|
4704
|
+
couponCode: 'string',
|
|
4459
4705
|
extendAttrs: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs,
|
|
4460
4706
|
isOptOut: 'boolean',
|
|
4461
4707
|
packageName: 'string',
|
|
@@ -4473,10 +4719,92 @@ export class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $
|
|
|
4473
4719
|
}
|
|
4474
4720
|
}
|
|
4475
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
|
+
|
|
4476
4803
|
export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
|
|
4477
4804
|
addSecretRecommendation?: boolean;
|
|
4478
4805
|
buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
|
|
4479
4806
|
caption?: string;
|
|
4807
|
+
cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
|
|
4480
4808
|
codeExpirationMinutes?: number;
|
|
4481
4809
|
duration?: number;
|
|
4482
4810
|
fileName?: string;
|
|
@@ -4486,15 +4814,18 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
4486
4814
|
locationAddress?: string;
|
|
4487
4815
|
locationName?: string;
|
|
4488
4816
|
longitude?: string;
|
|
4817
|
+
offerExpirationTimeMs?: string;
|
|
4489
4818
|
text?: string;
|
|
4490
4819
|
thumbUrl?: string;
|
|
4491
4820
|
type?: string;
|
|
4492
4821
|
url?: string;
|
|
4822
|
+
hasExpiration?: boolean;
|
|
4493
4823
|
static names(): { [key: string]: string } {
|
|
4494
4824
|
return {
|
|
4495
4825
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
4496
4826
|
buttons: 'Buttons',
|
|
4497
4827
|
caption: 'Caption',
|
|
4828
|
+
cards: 'Cards',
|
|
4498
4829
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
4499
4830
|
duration: 'Duration',
|
|
4500
4831
|
fileName: 'FileName',
|
|
@@ -4504,10 +4835,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
4504
4835
|
locationAddress: 'LocationAddress',
|
|
4505
4836
|
locationName: 'LocationName',
|
|
4506
4837
|
longitude: 'Longitude',
|
|
4838
|
+
offerExpirationTimeMs: 'OfferExpirationTimeMs',
|
|
4507
4839
|
text: 'Text',
|
|
4508
4840
|
thumbUrl: 'ThumbUrl',
|
|
4509
4841
|
type: 'Type',
|
|
4510
4842
|
url: 'Url',
|
|
4843
|
+
hasExpiration: 'hasExpiration',
|
|
4511
4844
|
};
|
|
4512
4845
|
}
|
|
4513
4846
|
|
|
@@ -4516,6 +4849,7 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
4516
4849
|
addSecretRecommendation: 'boolean',
|
|
4517
4850
|
buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
|
|
4518
4851
|
caption: 'string',
|
|
4852
|
+
cards: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsCards },
|
|
4519
4853
|
codeExpirationMinutes: 'number',
|
|
4520
4854
|
duration: 'number',
|
|
4521
4855
|
fileName: 'string',
|
|
@@ -4525,10 +4859,12 @@ export class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Mod
|
|
|
4525
4859
|
locationAddress: 'string',
|
|
4526
4860
|
locationName: 'string',
|
|
4527
4861
|
longitude: 'string',
|
|
4862
|
+
offerExpirationTimeMs: 'string',
|
|
4528
4863
|
text: 'string',
|
|
4529
4864
|
thumbUrl: 'string',
|
|
4530
4865
|
type: 'string',
|
|
4531
4866
|
url: 'string',
|
|
4867
|
+
hasExpiration: 'boolean',
|
|
4532
4868
|
};
|
|
4533
4869
|
}
|
|
4534
4870
|
|
|
@@ -4688,6 +5024,28 @@ export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
|
|
|
4688
5024
|
}
|
|
4689
5025
|
}
|
|
4690
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
|
+
|
|
4691
5049
|
export class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
|
|
4692
5050
|
id?: string;
|
|
4693
5051
|
phoneNumber?: string;
|
|
@@ -4944,6 +5302,7 @@ export class ListProductCatalogResponseBodyModel extends $tea.Model {
|
|
|
4944
5302
|
|
|
4945
5303
|
export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
4946
5304
|
autofillText?: string;
|
|
5305
|
+
couponCode?: string;
|
|
4947
5306
|
isOptOut?: boolean;
|
|
4948
5307
|
packageName?: string;
|
|
4949
5308
|
phoneNumber?: string;
|
|
@@ -4955,6 +5314,7 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4955
5314
|
static names(): { [key: string]: string } {
|
|
4956
5315
|
return {
|
|
4957
5316
|
autofillText: 'AutofillText',
|
|
5317
|
+
couponCode: 'CouponCode',
|
|
4958
5318
|
isOptOut: 'IsOptOut',
|
|
4959
5319
|
packageName: 'PackageName',
|
|
4960
5320
|
phoneNumber: 'PhoneNumber',
|
|
@@ -4969,6 +5329,7 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4969
5329
|
static types(): { [key: string]: any } {
|
|
4970
5330
|
return {
|
|
4971
5331
|
autofillText: 'string',
|
|
5332
|
+
couponCode: 'string',
|
|
4972
5333
|
isOptOut: 'boolean',
|
|
4973
5334
|
packageName: 'string',
|
|
4974
5335
|
phoneNumber: 'string',
|
|
@@ -4985,15 +5346,98 @@ export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
|
4985
5346
|
}
|
|
4986
5347
|
}
|
|
4987
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
|
+
|
|
4988
5430
|
export class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
4989
5431
|
addSecretRecommendation?: boolean;
|
|
4990
5432
|
buttons?: ModifyChatappTemplateRequestComponentsButtons[];
|
|
4991
5433
|
caption?: string;
|
|
5434
|
+
cards?: ModifyChatappTemplateRequestComponentsCards[];
|
|
4992
5435
|
codeExpirationMinutes?: number;
|
|
4993
5436
|
duration?: number;
|
|
4994
5437
|
fileName?: string;
|
|
4995
5438
|
fileType?: string;
|
|
4996
5439
|
format?: string;
|
|
5440
|
+
hasExpiration?: boolean;
|
|
4997
5441
|
text?: string;
|
|
4998
5442
|
thumbUrl?: string;
|
|
4999
5443
|
type?: string;
|
|
@@ -5003,11 +5447,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
5003
5447
|
addSecretRecommendation: 'AddSecretRecommendation',
|
|
5004
5448
|
buttons: 'Buttons',
|
|
5005
5449
|
caption: 'Caption',
|
|
5450
|
+
cards: 'Cards',
|
|
5006
5451
|
codeExpirationMinutes: 'CodeExpirationMinutes',
|
|
5007
5452
|
duration: 'Duration',
|
|
5008
5453
|
fileName: 'FileName',
|
|
5009
5454
|
fileType: 'FileType',
|
|
5010
5455
|
format: 'Format',
|
|
5456
|
+
hasExpiration: 'HasExpiration',
|
|
5011
5457
|
text: 'Text',
|
|
5012
5458
|
thumbUrl: 'ThumbUrl',
|
|
5013
5459
|
type: 'Type',
|
|
@@ -5020,11 +5466,13 @@ export class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
|
5020
5466
|
addSecretRecommendation: 'boolean',
|
|
5021
5467
|
buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
|
|
5022
5468
|
caption: 'string',
|
|
5469
|
+
cards: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsCards },
|
|
5023
5470
|
codeExpirationMinutes: 'number',
|
|
5024
5471
|
duration: 'number',
|
|
5025
5472
|
fileName: 'string',
|
|
5026
5473
|
fileType: 'string',
|
|
5027
5474
|
format: 'string',
|
|
5475
|
+
hasExpiration: 'boolean',
|
|
5028
5476
|
text: 'string',
|
|
5029
5477
|
thumbUrl: 'string',
|
|
5030
5478
|
type: 'string',
|
|
@@ -6438,6 +6886,39 @@ export default class Client extends OpenApi {
|
|
|
6438
6886
|
return await this.getChatappVerifyCodeWithOptions(request, runtime);
|
|
6439
6887
|
}
|
|
6440
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
|
+
|
|
6441
6922
|
/**
|
|
6442
6923
|
* The ID of the phone number.
|
|
6443
6924
|
*
|
|
@@ -6571,6 +7052,13 @@ export default class Client extends OpenApi {
|
|
|
6571
7052
|
return await this.getPreValidatePhoneIdWithOptions(request, runtime);
|
|
6572
7053
|
}
|
|
6573
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
|
+
*/
|
|
6574
7062
|
async getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse> {
|
|
6575
7063
|
Util.validateModel(request);
|
|
6576
7064
|
let query = { };
|
|
@@ -6611,6 +7099,12 @@ export default class Client extends OpenApi {
|
|
|
6611
7099
|
return $tea.cast<GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
|
|
6612
7100
|
}
|
|
6613
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
|
+
*/
|
|
6614
7108
|
async getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse> {
|
|
6615
7109
|
let runtime = new $Util.RuntimeOptions({ });
|
|
6616
7110
|
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
@@ -6736,6 +7230,13 @@ export default class Client extends OpenApi {
|
|
|
6736
7230
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
6737
7231
|
}
|
|
6738
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
|
+
*/
|
|
6739
7240
|
async listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse> {
|
|
6740
7241
|
Util.validateModel(request);
|
|
6741
7242
|
let query = { };
|
|
@@ -6796,11 +7297,24 @@ export default class Client extends OpenApi {
|
|
|
6796
7297
|
return $tea.cast<ListProductResponse>(await this.callApi(params, req, runtime), new ListProductResponse({}));
|
|
6797
7298
|
}
|
|
6798
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
|
+
*/
|
|
6799
7306
|
async listProduct(request: ListProductRequest): Promise<ListProductResponse> {
|
|
6800
7307
|
let runtime = new $Util.RuntimeOptions({ });
|
|
6801
7308
|
return await this.listProductWithOptions(request, runtime);
|
|
6802
7309
|
}
|
|
6803
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
|
+
*/
|
|
6804
7318
|
async listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse> {
|
|
6805
7319
|
Util.validateModel(request);
|
|
6806
7320
|
let query = { };
|
|
@@ -6857,6 +7371,12 @@ export default class Client extends OpenApi {
|
|
|
6857
7371
|
return $tea.cast<ListProductCatalogResponse>(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
|
|
6858
7372
|
}
|
|
6859
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
|
+
*/
|
|
6860
7380
|
async listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse> {
|
|
6861
7381
|
let runtime = new $Util.RuntimeOptions({ });
|
|
6862
7382
|
return await this.listProductCatalogWithOptions(request, runtime);
|
|
@@ -7590,6 +8110,47 @@ export default class Client extends OpenApi {
|
|
|
7590
8110
|
return await this.updateAccountWebhookWithOptions(request, runtime);
|
|
7591
8111
|
}
|
|
7592
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
|
+
|
|
7593
8154
|
/**
|
|
7594
8155
|
* The error message returned.
|
|
7595
8156
|
*
|