Coupon template

This commit is contained in:
sdk-team
2023-10-19 07:12:11 +00:00
parent 096bedd0df
commit 70dddee991
18 changed files with 737 additions and 4 deletions

View File

@@ -62,6 +62,8 @@
#include "model/GetChatappUploadAuthorizationResult.h"
#include "model/GetChatappVerifyCodeRequest.h"
#include "model/GetChatappVerifyCodeResult.h"
#include "model/GetCommerceSettingRequest.h"
#include "model/GetCommerceSettingResult.h"
#include "model/GetMigrationVerifyCodeRequest.h"
#include "model/GetMigrationVerifyCodeResult.h"
#include "model/GetPhoneNumberVerificationStatusRequest.h"
@@ -98,6 +100,8 @@
#include "model/SubmitIsvCustomerTermsResult.h"
#include "model/UpdateAccountWebhookRequest.h"
#include "model/UpdateAccountWebhookResult.h"
#include "model/UpdateCommerceSettingRequest.h"
#include "model/UpdateCommerceSettingResult.h"
#include "model/UpdatePhoneWebhookRequest.h"
#include "model/UpdatePhoneWebhookResult.h"
@@ -169,6 +173,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetChatappVerifyCodeResult> GetChatappVerifyCodeOutcome;
typedef std::future<GetChatappVerifyCodeOutcome> GetChatappVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetChatappVerifyCodeRequest&, const GetChatappVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::GetCommerceSettingResult> GetCommerceSettingOutcome;
typedef std::future<GetCommerceSettingOutcome> GetCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetCommerceSettingRequest&, const GetCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::GetMigrationVerifyCodeResult> GetMigrationVerifyCodeOutcome;
typedef std::future<GetMigrationVerifyCodeOutcome> GetMigrationVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetMigrationVerifyCodeRequest&, const GetMigrationVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationVerifyCodeAsyncHandler;
@@ -223,6 +230,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateAccountWebhookResult> UpdateAccountWebhookOutcome;
typedef std::future<UpdateAccountWebhookOutcome> UpdateAccountWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateAccountWebhookRequest&, const UpdateAccountWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAccountWebhookAsyncHandler;
typedef Outcome<Error, Model::UpdateCommerceSettingResult> UpdateCommerceSettingOutcome;
typedef std::future<UpdateCommerceSettingOutcome> UpdateCommerceSettingOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateCommerceSettingRequest&, const UpdateCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommerceSettingAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneWebhookResult> UpdatePhoneWebhookOutcome;
typedef std::future<UpdatePhoneWebhookOutcome> UpdatePhoneWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneWebhookRequest&, const UpdatePhoneWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneWebhookAsyncHandler;
@@ -291,6 +301,9 @@ namespace AlibabaCloud
GetChatappVerifyCodeOutcome getChatappVerifyCode(const Model::GetChatappVerifyCodeRequest &request)const;
void getChatappVerifyCodeAsync(const Model::GetChatappVerifyCodeRequest& request, const GetChatappVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetChatappVerifyCodeOutcomeCallable getChatappVerifyCodeCallable(const Model::GetChatappVerifyCodeRequest& request) const;
GetCommerceSettingOutcome getCommerceSetting(const Model::GetCommerceSettingRequest &request)const;
void getCommerceSettingAsync(const Model::GetCommerceSettingRequest& request, const GetCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCommerceSettingOutcomeCallable getCommerceSettingCallable(const Model::GetCommerceSettingRequest& request) const;
GetMigrationVerifyCodeOutcome getMigrationVerifyCode(const Model::GetMigrationVerifyCodeRequest &request)const;
void getMigrationVerifyCodeAsync(const Model::GetMigrationVerifyCodeRequest& request, const GetMigrationVerifyCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMigrationVerifyCodeOutcomeCallable getMigrationVerifyCodeCallable(const Model::GetMigrationVerifyCodeRequest& request) const;
@@ -345,6 +358,9 @@ namespace AlibabaCloud
UpdateAccountWebhookOutcome updateAccountWebhook(const Model::UpdateAccountWebhookRequest &request)const;
void updateAccountWebhookAsync(const Model::UpdateAccountWebhookRequest& request, const UpdateAccountWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAccountWebhookOutcomeCallable updateAccountWebhookCallable(const Model::UpdateAccountWebhookRequest& request) const;
UpdateCommerceSettingOutcome updateCommerceSetting(const Model::UpdateCommerceSettingRequest &request)const;
void updateCommerceSettingAsync(const Model::UpdateCommerceSettingRequest& request, const UpdateCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCommerceSettingOutcomeCallable updateCommerceSettingCallable(const Model::UpdateCommerceSettingRequest& request) const;
UpdatePhoneWebhookOutcome updatePhoneWebhook(const Model::UpdatePhoneWebhookRequest &request)const;
void updatePhoneWebhookAsync(const Model::UpdatePhoneWebhookRequest& request, const UpdatePhoneWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneWebhookOutcomeCallable updatePhoneWebhookCallable(const Model::UpdatePhoneWebhookRequest& request) const;

View File

@@ -45,6 +45,7 @@ public:
std::string packageName;
std::string autofillText;
bool isOptOut;
std::string couponCode;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
@@ -53,6 +54,28 @@ public:
std::string fileType;
int codeExpirationMinutes;
bool addSecretRecommendation;
bool hasExpiration;
struct CardsItem {
struct CardComponentsItem {
std::string type;
std::string format;
std::string text;
std::string url;
struct ButtonsItem {
std::string text;
std::string type;
std::string url;
std::string urlType;
std::string phoneNumber;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
};
CardComponentsItem cardComponentsItem;
std::vector<CardComponentsItem> cardComponents;
};
CardsItem cardsItem;
std::vector<CardsItem> cards;
};
CreateChatappTemplateRequest();
~CreateChatappTemplateRequest();

View File

@@ -48,6 +48,7 @@ namespace AlibabaCloud
};
std::string autofillText;
std::string type;
std::string couponCode;
bool isOptOut;
std::string signatureHash;
std::string packageName;
@@ -57,12 +58,34 @@ namespace AlibabaCloud
ExtendAttrs extendAttrs;
std::string url;
};
struct
{
struct
{
struct
{
std::string type;
std::string phoneNumber;
std::string text;
std::string urlType;
std::string url;
};
std::string type;
std::string format;
std::string text;
std::string url;
std::vector<::> buttons1;
};
std::vector<::> cardComponents;
};
bool hasExpiration;
std::string thumbUrl;
std::string fileName;
std::string text;
int duration;
std::string latitude;
std::string longitude;
std::string offerExpirationTimeMs;
std::string url;
std::string caption;
bool addSecretRecommendation;
@@ -73,6 +96,7 @@ namespace AlibabaCloud
std::string fileType;
std::string locationAddress;
std::vector<Component::Button> buttons;
std::vector<Component::> cards;
};
std::vector<Component> components;
std::string templateCode;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT GetCommerceSettingRequest : public RpcServiceRequest {
public:
GetCommerceSettingRequest();
~GetCommerceSettingRequest();
std::string getPhoneNumber() const;
void setPhoneNumber(const std::string &phoneNumber);
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
private:
std::string phoneNumber_;
std::string apiCode_;
std::string prodCode_;
std::string custSpaceId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT GetCommerceSettingResult : public ServiceResult
{
public:
struct Data
{
bool cartEnable;
bool catalogVisible;
};
GetCommerceSettingResult();
explicit GetCommerceSettingResult(const std::string &payload);
~GetCommerceSettingResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_GETCOMMERCESETTINGRESULT_H_

View File

@@ -45,6 +45,7 @@ public:
std::string packageName;
std::string autofillText;
bool isOptOut;
std::string couponCode;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
@@ -53,6 +54,28 @@ public:
std::string fileType;
int codeExpirationMinutes;
bool addSecretRecommendation;
bool hasExpiration;
struct CardsItem {
struct CardComponentsItem {
std::string type;
std::string format;
std::string text;
std::string url;
struct ButtonsItem {
std::string text;
std::string type;
std::string url;
std::string urlType;
std::string phoneNumber;
};
ButtonsItem buttonsItem;
std::vector<ButtonsItem> buttons;
};
CardComponentsItem cardComponentsItem;
std::vector<CardComponentsItem> cardComponents;
};
CardsItem cardsItem;
std::vector<CardsItem> cards;
};
ModifyChatappTemplateRequest();
~ModifyChatappTemplateRequest();

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGREQUEST_H_
#include <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT UpdateCommerceSettingRequest : public RpcServiceRequest {
public:
UpdateCommerceSettingRequest();
~UpdateCommerceSettingRequest();
std::string getPhoneNumber() const;
void setPhoneNumber(const std::string &phoneNumber);
std::string getApiCode() const;
void setApiCode(const std::string &apiCode);
bool getCatalogVisible() const;
void setCatalogVisible(bool catalogVisible);
bool getCartEnable() const;
void setCartEnable(bool cartEnable);
std::string getProdCode() const;
void setProdCode(const std::string &prodCode);
std::string getCustSpaceId() const;
void setCustSpaceId(const std::string &custSpaceId);
private:
std::string phoneNumber_;
std::string apiCode_;
bool catalogVisible_;
bool cartEnable_;
std::string prodCode_;
std::string custSpaceId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGRESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT UpdateCommerceSettingResult : public ServiceResult
{
public:
UpdateCommerceSettingResult();
explicit UpdateCommerceSettingResult(const std::string &payload);
~UpdateCommerceSettingResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATECOMMERCESETTINGRESULT_H_