CreateCustomerRequest

data class CreateCustomerRequest(val billingAddress: FrameObjects.BillingAddress?, val shippingAddress: FrameObjects.BillingAddress?, val name: String?, val phone: String?, val email: String?, val description: String?, val metadata: Map<String, String>?)

Request body for creating a new customer.

Constructors

Link copied to clipboard
constructor(billingAddress: FrameObjects.BillingAddress?, shippingAddress: FrameObjects.BillingAddress?, name: String?, phone: String?, email: String?, description: String?, metadata: Map<String, String>?)

Properties

Link copied to clipboard
@SerializedName(value = "billing_address")
val billingAddress: FrameObjects.BillingAddress?

The customer's billing address. Pass null to omit.

Link copied to clipboard

An optional description or note about the customer. Pass null to omit.

Link copied to clipboard

The customer's email address. Pass null to omit.

Link copied to clipboard

A map of merchant-defined key-value pairs to attach to the customer. Pass null to omit.

Link copied to clipboard
val name: String?

The customer's full name. Pass null to omit.

Link copied to clipboard

The customer's phone number. Pass null to omit.

Link copied to clipboard
@SerializedName(value = "shipping_address")
val shippingAddress: FrameObjects.BillingAddress?

The customer's shipping address. Pass null to omit.