Model.Invoicingv2invoicesCustomerInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package Model;
import java.util.Objects;
import java.util.Arrays;
import Model.Invoicingv2invoicesCustomerInformationCompany;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Contains all of the customer-related fields for the invoice.
*/
@ApiModel(description = "Contains all of the customer-related fields for the invoice.")
public class Invoicingv2invoicesCustomerInformation {
@SerializedName("name")
private String name = null;
@SerializedName("email")
private String email = null;
@SerializedName("merchantCustomerId")
private String merchantCustomerId = null;
@SerializedName("company")
private Invoicingv2invoicesCustomerInformationCompany company = null;
public Invoicingv2invoicesCustomerInformation name(String name) {
this.name = name;
return this;
}
/**
* Payer name for the invoice.
* @return name
**/
@ApiModelProperty(value = "Payer name for the invoice.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Invoicingv2invoicesCustomerInformation email(String email) {
this.email = email;
return this;
}
/**
* Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Invoicing Email address for the customer for sending the invoice. If the invoice is in SENT status and email is updated, the old email customer payment link won't work and you must resend the invoice with the new payment link. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
* @return email
**/
@ApiModelProperty(value = "Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Invoicing Email address for the customer for sending the invoice. If the invoice is in SENT status and email is updated, the old email customer payment link won't work and you must resend the invoice with the new payment link. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used. ")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Invoicingv2invoicesCustomerInformation merchantCustomerId(String merchantCustomerId) {
this.merchantCustomerId = merchantCustomerId;
return this;
}
/**
* Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer's contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used.
* @return merchantCustomerId
**/
@ApiModelProperty(value = "Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer's contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. ")
public String getMerchantCustomerId() {
return merchantCustomerId;
}
public void setMerchantCustomerId(String merchantCustomerId) {
this.merchantCustomerId = merchantCustomerId;
}
public Invoicingv2invoicesCustomerInformation company(Invoicingv2invoicesCustomerInformationCompany company) {
this.company = company;
return this;
}
/**
* Get company
* @return company
**/
@ApiModelProperty(value = "")
public Invoicingv2invoicesCustomerInformationCompany getCompany() {
return company;
}
public void setCompany(Invoicingv2invoicesCustomerInformationCompany company) {
this.company = company;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Invoicingv2invoicesCustomerInformation invoicingv2invoicesCustomerInformation = (Invoicingv2invoicesCustomerInformation) o;
return Objects.equals(this.name, invoicingv2invoicesCustomerInformation.name) &&
Objects.equals(this.email, invoicingv2invoicesCustomerInformation.email) &&
Objects.equals(this.merchantCustomerId, invoicingv2invoicesCustomerInformation.merchantCustomerId) &&
Objects.equals(this.company, invoicingv2invoicesCustomerInformation.company);
}
@Override
public int hashCode() {
return Objects.hash(name, email, merchantCustomerId, company);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Invoicingv2invoicesCustomerInformation {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n");
sb.append(" company: ").append(toIndentedString(company)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy