@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 CHANGED
@@ -1005,6 +1005,50 @@ export declare class GetChatappVerifyCodeResponse extends $tea.Model {
1005
1005
  [key: string]: any;
1006
1006
  });
1007
1007
  }
1008
+ export declare class GetCommerceSettingRequest extends $tea.Model {
1009
+ custSpaceId?: string;
1010
+ phoneNumber?: string;
1011
+ static names(): {
1012
+ [key: string]: string;
1013
+ };
1014
+ static types(): {
1015
+ [key: string]: any;
1016
+ };
1017
+ constructor(map?: {
1018
+ [key: string]: any;
1019
+ });
1020
+ }
1021
+ export declare class GetCommerceSettingResponseBody extends $tea.Model {
1022
+ code?: string;
1023
+ data?: GetCommerceSettingResponseBodyData;
1024
+ message?: string;
1025
+ requestId?: string;
1026
+ static names(): {
1027
+ [key: string]: string;
1028
+ };
1029
+ static types(): {
1030
+ [key: string]: any;
1031
+ };
1032
+ constructor(map?: {
1033
+ [key: string]: any;
1034
+ });
1035
+ }
1036
+ export declare class GetCommerceSettingResponse extends $tea.Model {
1037
+ headers: {
1038
+ [key: string]: string;
1039
+ };
1040
+ statusCode: number;
1041
+ body: GetCommerceSettingResponseBody;
1042
+ static names(): {
1043
+ [key: string]: string;
1044
+ };
1045
+ static types(): {
1046
+ [key: string]: any;
1047
+ };
1048
+ constructor(map?: {
1049
+ [key: string]: any;
1050
+ });
1051
+ }
1008
1052
  export declare class GetMigrationVerifyCodeRequest extends $tea.Model {
1009
1053
  custSpaceId?: string;
1010
1054
  locale?: string;
@@ -2022,6 +2066,51 @@ export declare class UpdateAccountWebhookResponse extends $tea.Model {
2022
2066
  [key: string]: any;
2023
2067
  });
2024
2068
  }
2069
+ export declare class UpdateCommerceSettingRequest extends $tea.Model {
2070
+ cartEnable?: boolean;
2071
+ catalogVisible?: boolean;
2072
+ custSpaceId?: string;
2073
+ phoneNumber?: string;
2074
+ static names(): {
2075
+ [key: string]: string;
2076
+ };
2077
+ static types(): {
2078
+ [key: string]: any;
2079
+ };
2080
+ constructor(map?: {
2081
+ [key: string]: any;
2082
+ });
2083
+ }
2084
+ export declare class UpdateCommerceSettingResponseBody extends $tea.Model {
2085
+ code?: string;
2086
+ message?: string;
2087
+ requestId?: string;
2088
+ static names(): {
2089
+ [key: string]: string;
2090
+ };
2091
+ static types(): {
2092
+ [key: string]: any;
2093
+ };
2094
+ constructor(map?: {
2095
+ [key: string]: any;
2096
+ });
2097
+ }
2098
+ export declare class UpdateCommerceSettingResponse extends $tea.Model {
2099
+ headers: {
2100
+ [key: string]: string;
2101
+ };
2102
+ statusCode: number;
2103
+ body: UpdateCommerceSettingResponseBody;
2104
+ static names(): {
2105
+ [key: string]: string;
2106
+ };
2107
+ static types(): {
2108
+ [key: string]: any;
2109
+ };
2110
+ constructor(map?: {
2111
+ [key: string]: any;
2112
+ });
2113
+ }
2025
2114
  export declare class UpdatePhoneWebhookRequest extends $tea.Model {
2026
2115
  custSpaceId?: string;
2027
2116
  httpFlag?: string;
@@ -2298,6 +2387,7 @@ export declare class CreateChatappMigrationInitiateResponseBodyData extends $tea
2298
2387
  }
2299
2388
  export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
2300
2389
  autofillText?: string;
2390
+ couponCode?: string;
2301
2391
  isOptOut?: boolean;
2302
2392
  packageName?: string;
2303
2393
  phoneNumber?: string;
@@ -2316,15 +2406,61 @@ export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.
2316
2406
  [key: string]: any;
2317
2407
  });
2318
2408
  }
2409
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2410
+ phoneNumber?: string;
2411
+ text?: string;
2412
+ type?: string;
2413
+ url?: string;
2414
+ urlType?: string;
2415
+ static names(): {
2416
+ [key: string]: string;
2417
+ };
2418
+ static types(): {
2419
+ [key: string]: any;
2420
+ };
2421
+ constructor(map?: {
2422
+ [key: string]: any;
2423
+ });
2424
+ }
2425
+ export declare class CreateChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2426
+ buttons?: CreateChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2427
+ format?: string;
2428
+ text?: string;
2429
+ type?: string;
2430
+ url?: string;
2431
+ static names(): {
2432
+ [key: string]: string;
2433
+ };
2434
+ static types(): {
2435
+ [key: string]: any;
2436
+ };
2437
+ constructor(map?: {
2438
+ [key: string]: any;
2439
+ });
2440
+ }
2441
+ export declare class CreateChatappTemplateRequestComponentsCards extends $tea.Model {
2442
+ cardComponents?: CreateChatappTemplateRequestComponentsCardsCardComponents[];
2443
+ static names(): {
2444
+ [key: string]: string;
2445
+ };
2446
+ static types(): {
2447
+ [key: string]: any;
2448
+ };
2449
+ constructor(map?: {
2450
+ [key: string]: any;
2451
+ });
2452
+ }
2319
2453
  export declare class CreateChatappTemplateRequestComponents extends $tea.Model {
2320
2454
  addSecretRecommendation?: boolean;
2321
2455
  buttons?: CreateChatappTemplateRequestComponentsButtons[];
2322
2456
  caption?: string;
2457
+ cards?: CreateChatappTemplateRequestComponentsCards[];
2323
2458
  codeExpirationMinutes?: number;
2324
2459
  duration?: number;
2325
2460
  fileName?: string;
2326
2461
  fileType?: string;
2327
2462
  format?: string;
2463
+ hasExpiration?: boolean;
2328
2464
  text?: string;
2329
2465
  thumbUrl?: string;
2330
2466
  type?: string;
@@ -2387,6 +2523,7 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtonsEx
2387
2523
  }
2388
2524
  export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
2389
2525
  autofillText?: string;
2526
+ couponCode?: string;
2390
2527
  extendAttrs?: GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs;
2391
2528
  isOptOut?: boolean;
2392
2529
  packageName?: string;
@@ -2406,10 +2543,55 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponentsButtons e
2406
2543
  [key: string]: any;
2407
2544
  });
2408
2545
  }
2546
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons extends $tea.Model {
2547
+ phoneNumber?: string;
2548
+ text?: string;
2549
+ type?: string;
2550
+ url?: string;
2551
+ urlType?: string;
2552
+ static names(): {
2553
+ [key: string]: string;
2554
+ };
2555
+ static types(): {
2556
+ [key: string]: any;
2557
+ };
2558
+ constructor(map?: {
2559
+ [key: string]: any;
2560
+ });
2561
+ }
2562
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents extends $tea.Model {
2563
+ buttons?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons[];
2564
+ format?: string;
2565
+ text?: string;
2566
+ type?: string;
2567
+ url?: string;
2568
+ static names(): {
2569
+ [key: string]: string;
2570
+ };
2571
+ static types(): {
2572
+ [key: string]: any;
2573
+ };
2574
+ constructor(map?: {
2575
+ [key: string]: any;
2576
+ });
2577
+ }
2578
+ export declare class GetChatappTemplateDetailResponseBodyDataComponentsCards extends $tea.Model {
2579
+ cardComponents?: GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents[];
2580
+ static names(): {
2581
+ [key: string]: string;
2582
+ };
2583
+ static types(): {
2584
+ [key: string]: any;
2585
+ };
2586
+ constructor(map?: {
2587
+ [key: string]: any;
2588
+ });
2589
+ }
2409
2590
  export declare class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
2410
2591
  addSecretRecommendation?: boolean;
2411
2592
  buttons?: GetChatappTemplateDetailResponseBodyDataComponentsButtons[];
2412
2593
  caption?: string;
2594
+ cards?: GetChatappTemplateDetailResponseBodyDataComponentsCards[];
2413
2595
  codeExpirationMinutes?: number;
2414
2596
  duration?: number;
2415
2597
  fileName?: string;
@@ -2419,10 +2601,12 @@ export declare class GetChatappTemplateDetailResponseBodyDataComponents extends
2419
2601
  locationAddress?: string;
2420
2602
  locationName?: string;
2421
2603
  longitude?: string;
2604
+ offerExpirationTimeMs?: string;
2422
2605
  text?: string;
2423
2606
  thumbUrl?: string;
2424
2607
  type?: string;
2425
2608
  url?: string;
2609
+ hasExpiration?: boolean;
2426
2610
  static names(): {
2427
2611
  [key: string]: string;
2428
2612
  };
@@ -2508,6 +2692,19 @@ export declare class GetChatappUploadAuthorizationResponseBodyData extends $tea.
2508
2692
  [key: string]: any;
2509
2693
  });
2510
2694
  }
2695
+ export declare class GetCommerceSettingResponseBodyData extends $tea.Model {
2696
+ cartEnable?: boolean;
2697
+ catalogVisible?: boolean;
2698
+ static names(): {
2699
+ [key: string]: string;
2700
+ };
2701
+ static types(): {
2702
+ [key: string]: any;
2703
+ };
2704
+ constructor(map?: {
2705
+ [key: string]: any;
2706
+ });
2707
+ }
2511
2708
  export declare class GetMigrationVerifyCodeResponseBodyData extends $tea.Model {
2512
2709
  id?: string;
2513
2710
  phoneNumber?: string;
@@ -2661,6 +2858,7 @@ export declare class ListProductCatalogResponseBodyModel extends $tea.Model {
2661
2858
  }
2662
2859
  export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
2663
2860
  autofillText?: string;
2861
+ couponCode?: string;
2664
2862
  isOptOut?: boolean;
2665
2863
  packageName?: string;
2666
2864
  phoneNumber?: string;
@@ -2679,15 +2877,61 @@ export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.
2679
2877
  [key: string]: any;
2680
2878
  });
2681
2879
  }
2880
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons extends $tea.Model {
2881
+ phoneNumber?: string;
2882
+ text?: string;
2883
+ type?: string;
2884
+ url?: string;
2885
+ urlType?: string;
2886
+ static names(): {
2887
+ [key: string]: string;
2888
+ };
2889
+ static types(): {
2890
+ [key: string]: any;
2891
+ };
2892
+ constructor(map?: {
2893
+ [key: string]: any;
2894
+ });
2895
+ }
2896
+ export declare class ModifyChatappTemplateRequestComponentsCardsCardComponents extends $tea.Model {
2897
+ buttons?: ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons[];
2898
+ format?: string;
2899
+ text?: string;
2900
+ type?: string;
2901
+ url?: string;
2902
+ static names(): {
2903
+ [key: string]: string;
2904
+ };
2905
+ static types(): {
2906
+ [key: string]: any;
2907
+ };
2908
+ constructor(map?: {
2909
+ [key: string]: any;
2910
+ });
2911
+ }
2912
+ export declare class ModifyChatappTemplateRequestComponentsCards extends $tea.Model {
2913
+ cardComponents?: ModifyChatappTemplateRequestComponentsCardsCardComponents[];
2914
+ static names(): {
2915
+ [key: string]: string;
2916
+ };
2917
+ static types(): {
2918
+ [key: string]: any;
2919
+ };
2920
+ constructor(map?: {
2921
+ [key: string]: any;
2922
+ });
2923
+ }
2682
2924
  export declare class ModifyChatappTemplateRequestComponents extends $tea.Model {
2683
2925
  addSecretRecommendation?: boolean;
2684
2926
  buttons?: ModifyChatappTemplateRequestComponentsButtons[];
2685
2927
  caption?: string;
2928
+ cards?: ModifyChatappTemplateRequestComponentsCards[];
2686
2929
  codeExpirationMinutes?: number;
2687
2930
  duration?: number;
2688
2931
  fileName?: string;
2689
2932
  fileType?: string;
2690
2933
  format?: string;
2934
+ hasExpiration?: boolean;
2691
2935
  text?: string;
2692
2936
  thumbUrl?: string;
2693
2937
  type?: string;
@@ -3123,6 +3367,8 @@ export default class Client extends OpenApi {
3123
3367
  * @return GetChatappVerifyCodeResponse
3124
3368
  */
3125
3369
  getChatappVerifyCode(request: GetChatappVerifyCodeRequest): Promise<GetChatappVerifyCodeResponse>;
3370
+ getCommerceSettingWithOptions(request: GetCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<GetCommerceSettingResponse>;
3371
+ getCommerceSetting(request: GetCommerceSettingRequest): Promise<GetCommerceSettingResponse>;
3126
3372
  /**
3127
3373
  * The ID of the phone number.
3128
3374
  *
@@ -3155,7 +3401,20 @@ export default class Client extends OpenApi {
3155
3401
  getPhoneNumberVerificationStatus(request: GetPhoneNumberVerificationStatusRequest): Promise<GetPhoneNumberVerificationStatusResponse>;
3156
3402
  getPreValidatePhoneIdWithOptions(request: GetPreValidatePhoneIdRequest, runtime: $Util.RuntimeOptions): Promise<GetPreValidatePhoneIdResponse>;
3157
3403
  getPreValidatePhoneId(request: GetPreValidatePhoneIdRequest): Promise<GetPreValidatePhoneIdResponse>;
3404
+ /**
3405
+ * 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.
3406
+ *
3407
+ * @param request GetWhatsappConnectionCatalogRequest
3408
+ * @param runtime runtime options for this request RuntimeOptions
3409
+ * @return GetWhatsappConnectionCatalogResponse
3410
+ */
3158
3411
  getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse>;
3412
+ /**
3413
+ * 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.
3414
+ *
3415
+ * @param request GetWhatsappConnectionCatalogRequest
3416
+ * @return GetWhatsappConnectionCatalogResponse
3417
+ */
3159
3418
  getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse>;
3160
3419
  /**
3161
3420
  * 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.
@@ -3189,9 +3448,35 @@ export default class Client extends OpenApi {
3189
3448
  * @return ListChatappTemplateResponse
3190
3449
  */
3191
3450
  listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
3451
+ /**
3452
+ * 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.
3453
+ *
3454
+ * @param request ListProductRequest
3455
+ * @param runtime runtime options for this request RuntimeOptions
3456
+ * @return ListProductResponse
3457
+ */
3192
3458
  listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse>;
3459
+ /**
3460
+ * 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.
3461
+ *
3462
+ * @param request ListProductRequest
3463
+ * @return ListProductResponse
3464
+ */
3193
3465
  listProduct(request: ListProductRequest): Promise<ListProductResponse>;
3466
+ /**
3467
+ * 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.
3468
+ *
3469
+ * @param request ListProductCatalogRequest
3470
+ * @param runtime runtime options for this request RuntimeOptions
3471
+ * @return ListProductCatalogResponse
3472
+ */
3194
3473
  listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse>;
3474
+ /**
3475
+ * 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.
3476
+ *
3477
+ * @param request ListProductCatalogRequest
3478
+ * @return ListProductCatalogResponse
3479
+ */
3195
3480
  listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse>;
3196
3481
  /**
3197
3482
  * The name of the message template.
@@ -3345,6 +3630,8 @@ export default class Client extends OpenApi {
3345
3630
  * @return UpdateAccountWebhookResponse
3346
3631
  */
3347
3632
  updateAccountWebhook(request: UpdateAccountWebhookRequest): Promise<UpdateAccountWebhookResponse>;
3633
+ updateCommerceSettingWithOptions(request: UpdateCommerceSettingRequest, runtime: $Util.RuntimeOptions): Promise<UpdateCommerceSettingResponse>;
3634
+ updateCommerceSetting(request: UpdateCommerceSettingRequest): Promise<UpdateCommerceSettingResponse>;
3348
3635
  /**
3349
3636
  * The error message returned.
3350
3637
  *