com.tencentcloudapi.cpdp.v20190820.models.CreateRedInvoiceV2Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-cpdp Show documentation
Show all versions of tencentcloud-sdk-java-cpdp Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
*/
package com.tencentcloudapi.cpdp.v20190820.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateRedInvoiceV2Request extends AbstractModel{
/**
* 开票平台ID
0 : 高灯
1 : 票易通
*/
@SerializedName("InvoicePlatformId")
@Expose
private Long InvoicePlatformId;
/**
* 订单号
*/
@SerializedName("OrderId")
@Expose
private String OrderId;
/**
* 接入环境。沙箱环境填 sandbox。
*/
@SerializedName("Profile")
@Expose
private String Profile;
/**
* 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
*/
@SerializedName("InvoiceChannel")
@Expose
private Long InvoiceChannel;
/**
* Get 开票平台ID
0 : 高灯
1 : 票易通
* @return InvoicePlatformId 开票平台ID
0 : 高灯
1 : 票易通
*/
public Long getInvoicePlatformId() {
return this.InvoicePlatformId;
}
/**
* Set 开票平台ID
0 : 高灯
1 : 票易通
* @param InvoicePlatformId 开票平台ID
0 : 高灯
1 : 票易通
*/
public void setInvoicePlatformId(Long InvoicePlatformId) {
this.InvoicePlatformId = InvoicePlatformId;
}
/**
* Get 订单号
* @return OrderId 订单号
*/
public String getOrderId() {
return this.OrderId;
}
/**
* Set 订单号
* @param OrderId 订单号
*/
public void setOrderId(String OrderId) {
this.OrderId = OrderId;
}
/**
* Get 接入环境。沙箱环境填 sandbox。
* @return Profile 接入环境。沙箱环境填 sandbox。
*/
public String getProfile() {
return this.Profile;
}
/**
* Set 接入环境。沙箱环境填 sandbox。
* @param Profile 接入环境。沙箱环境填 sandbox。
*/
public void setProfile(String Profile) {
this.Profile = Profile;
}
/**
* Get 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
* @return InvoiceChannel 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
*/
public Long getInvoiceChannel() {
return this.InvoiceChannel;
}
/**
* Set 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
* @param InvoiceChannel 开票渠道。0:线上渠道,1:线下渠道。不填默认为线上渠道
*/
public void setInvoiceChannel(Long InvoiceChannel) {
this.InvoiceChannel = InvoiceChannel;
}
public CreateRedInvoiceV2Request() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public CreateRedInvoiceV2Request(CreateRedInvoiceV2Request source) {
if (source.InvoicePlatformId != null) {
this.InvoicePlatformId = new Long(source.InvoicePlatformId);
}
if (source.OrderId != null) {
this.OrderId = new String(source.OrderId);
}
if (source.Profile != null) {
this.Profile = new String(source.Profile);
}
if (source.InvoiceChannel != null) {
this.InvoiceChannel = new Long(source.InvoiceChannel);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InvoicePlatformId", this.InvoicePlatformId);
this.setParamSimple(map, prefix + "OrderId", this.OrderId);
this.setParamSimple(map, prefix + "Profile", this.Profile);
this.setParamSimple(map, prefix + "InvoiceChannel", this.InvoiceChannel);
}
}