com.aliyun.dingtalkcrm_1_0.models.CreateCustomerRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkcrm_1_0.models;
import com.aliyun.tea.*;
public class CreateCustomerRequest extends TeaModel {
// 关联联系人数据
@NameInMap("contacts")
public java.util.List contacts;
// 创建人的userId
@NameInMap("creatorUserId")
public String creatorUserId;
// 客户实例数据(表单数据)
@NameInMap("data")
public java.util.Map data;
// 客户实例扩展数据
@NameInMap("extendData")
public java.util.Map extendData;
// 已存在客户时,添加联系人,可以传入客户的instanceId用作关联绑定
@NameInMap("instanceId")
public String instanceId;
// 写入客户类型:个人客户crm_customer_personal; 企业客户crm_customer
@NameInMap("objectType")
public String objectType;
// 权限
@NameInMap("permission")
public CreateCustomerRequestPermission permission;
// 保存配置项
@NameInMap("saveOption")
public CreateCustomerRequestSaveOption saveOption;
public static CreateCustomerRequest build(java.util.Map map) throws Exception {
CreateCustomerRequest self = new CreateCustomerRequest();
return TeaModel.build(map, self);
}
public CreateCustomerRequest setContacts(java.util.List contacts) {
this.contacts = contacts;
return this;
}
public java.util.List getContacts() {
return this.contacts;
}
public CreateCustomerRequest setCreatorUserId(String creatorUserId) {
this.creatorUserId = creatorUserId;
return this;
}
public String getCreatorUserId() {
return this.creatorUserId;
}
public CreateCustomerRequest setData(java.util.Map data) {
this.data = data;
return this;
}
public java.util.Map getData() {
return this.data;
}
public CreateCustomerRequest setExtendData(java.util.Map extendData) {
this.extendData = extendData;
return this;
}
public java.util.Map getExtendData() {
return this.extendData;
}
public CreateCustomerRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public CreateCustomerRequest setObjectType(String objectType) {
this.objectType = objectType;
return this;
}
public String getObjectType() {
return this.objectType;
}
public CreateCustomerRequest setPermission(CreateCustomerRequestPermission permission) {
this.permission = permission;
return this;
}
public CreateCustomerRequestPermission getPermission() {
return this.permission;
}
public CreateCustomerRequest setSaveOption(CreateCustomerRequestSaveOption saveOption) {
this.saveOption = saveOption;
return this;
}
public CreateCustomerRequestSaveOption getSaveOption() {
return this.saveOption;
}
public static class CreateCustomerRequestContacts extends TeaModel {
// 联系人表单数据
@NameInMap("data")
public java.util.Map data;
// 联系人扩展数据
@NameInMap("extendData")
public java.util.Map extendData;
public static CreateCustomerRequestContacts build(java.util.Map map) throws Exception {
CreateCustomerRequestContacts self = new CreateCustomerRequestContacts();
return TeaModel.build(map, self);
}
public CreateCustomerRequestContacts setData(java.util.Map data) {
this.data = data;
return this;
}
public java.util.Map getData() {
return this.data;
}
public CreateCustomerRequestContacts setExtendData(java.util.Map extendData) {
this.extendData = extendData;
return this;
}
public java.util.Map getExtendData() {
return this.extendData;
}
}
public static class CreateCustomerRequestPermission extends TeaModel {
// 负责人
@NameInMap("ownerStaffIds")
public java.util.List ownerStaffIds;
// 协同人
@NameInMap("participantStaffIds")
public java.util.List participantStaffIds;
public static CreateCustomerRequestPermission build(java.util.Map map) throws Exception {
CreateCustomerRequestPermission self = new CreateCustomerRequestPermission();
return TeaModel.build(map, self);
}
public CreateCustomerRequestPermission setOwnerStaffIds(java.util.List ownerStaffIds) {
this.ownerStaffIds = ownerStaffIds;
return this;
}
public java.util.List getOwnerStaffIds() {
return this.ownerStaffIds;
}
public CreateCustomerRequestPermission setParticipantStaffIds(java.util.List participantStaffIds) {
this.participantStaffIds = participantStaffIds;
return this;
}
public java.util.List getParticipantStaffIds() {
return this.participantStaffIds;
}
}
public static class CreateCustomerRequestSaveOption extends TeaModel {
// 客户已存在时的处理策略:APPEND_CONTACT_FORCE 直接追加联系人; REJECT 返回失败
@NameInMap("customerExistedPolicy")
public String customerExistedPolicy;
// 跳过uk查重
@NameInMap("skipDuplicateCheck")
public Boolean skipDuplicateCheck;
// 关注配置:0 不处理, 1 自动关注(需要单独申请白名单)
@NameInMap("subscribePolicy")
public Long subscribePolicy;
// 保存联系人失败时是否阻断
@NameInMap("throwExceptionWhileSavingContactFailed")
public Boolean throwExceptionWhileSavingContactFailed;
public static CreateCustomerRequestSaveOption build(java.util.Map map) throws Exception {
CreateCustomerRequestSaveOption self = new CreateCustomerRequestSaveOption();
return TeaModel.build(map, self);
}
public CreateCustomerRequestSaveOption setCustomerExistedPolicy(String customerExistedPolicy) {
this.customerExistedPolicy = customerExistedPolicy;
return this;
}
public String getCustomerExistedPolicy() {
return this.customerExistedPolicy;
}
public CreateCustomerRequestSaveOption setSkipDuplicateCheck(Boolean skipDuplicateCheck) {
this.skipDuplicateCheck = skipDuplicateCheck;
return this;
}
public Boolean getSkipDuplicateCheck() {
return this.skipDuplicateCheck;
}
public CreateCustomerRequestSaveOption setSubscribePolicy(Long subscribePolicy) {
this.subscribePolicy = subscribePolicy;
return this;
}
public Long getSubscribePolicy() {
return this.subscribePolicy;
}
public CreateCustomerRequestSaveOption setThrowExceptionWhileSavingContactFailed(Boolean throwExceptionWhileSavingContactFailed) {
this.throwExceptionWhileSavingContactFailed = throwExceptionWhileSavingContactFailed;
return this;
}
public Boolean getThrowExceptionWhileSavingContactFailed() {
return this.throwExceptionWhileSavingContactFailed;
}
}
}