public class CustomerCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
CustomerCreateParams.Address |
static class |
CustomerCreateParams.Builder |
static class |
CustomerCreateParams.InvoiceSettings
State, county, province, or region.
|
static class |
CustomerCreateParams.Shipping
The value of the custom field.
|
static class |
CustomerCreateParams.TaxExempt |
static class |
CustomerCreateParams.TaxIdData
State, county, province, or region.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static CustomerCreateParams.Builder |
builder() |
java.lang.Object |
getAddress()
The customer's address.
|
java.lang.Long |
getBalance()
An integer amount in %s that represents the customer's current balance, which affect the
customer's future invoices.
|
java.lang.String |
getCoupon() |
java.lang.String |
getDescription()
An arbitrary string that you can attach to a customer object.
|
java.lang.String |
getEmail()
Customer's email address.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.String |
getInvoicePrefix()
The prefix for the customer used to generate unique invoice numbers.
|
CustomerCreateParams.InvoiceSettings |
getInvoiceSettings()
Default invoice settings for this customer.
|
java.lang.Object |
getMetadata()
Set of key-value pairs that you can attach
to an object.
|
java.lang.String |
getName()
The customer's full name or business name.
|
java.lang.Long |
getNextInvoiceSequence()
The sequence to be used on the customer's next invoice.
|
java.lang.String |
getPaymentMethod() |
java.lang.String |
getPhone()
The customer's phone number.
|
java.util.List<java.lang.String> |
getPreferredLocales()
Customer's preferred languages, ordered by preference.
|
java.lang.String |
getPromotionCode()
The API ID of a promotion code to apply to the customer.
|
java.lang.Object |
getShipping()
The customer's shipping information.
|
java.lang.String |
getSource() |
ApiRequestParams.EnumParam |
getTaxExempt()
The customer's tax exemption.
|
java.util.List<CustomerCreateParams.TaxIdData> |
getTaxIdData()
The customer's tax IDs.
|
toMap
public static CustomerCreateParams.Builder builder()
public java.lang.Object getAddress()
public java.lang.Long getBalance()
public java.lang.String getCoupon()
public java.lang.String getDescription()
public java.lang.String getEmail()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.String getInvoicePrefix()
public CustomerCreateParams.InvoiceSettings getInvoiceSettings()
public java.lang.Object getMetadata()
metadata
.public java.lang.String getName()
public java.lang.Long getNextInvoiceSequence()
public java.lang.String getPaymentMethod()
public java.lang.String getPhone()
public java.util.List<java.lang.String> getPreferredLocales()
public java.lang.String getPromotionCode()
public java.lang.Object getShipping()
public java.lang.String getSource()
public ApiRequestParams.EnumParam getTaxExempt()
none
, exempt
, or reverse
.public java.util.List<CustomerCreateParams.TaxIdData> getTaxIdData()