UpdateCustomerRequest

data class UpdateCustomerRequest(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 updating an existing customer.

Only fields that should be changed need to be provided; pass null for any field to leave it unchanged.

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 updated billing address. Pass null to leave unchanged.

Link copied to clipboard

The updated description or note. Pass null to leave unchanged.

Link copied to clipboard

The updated email address. Pass null to leave unchanged.

Link copied to clipboard

The updated map of merchant-defined key-value pairs. Pass null to leave unchanged.

Link copied to clipboard
val name: String?

The updated full name. Pass null to leave unchanged.

Link copied to clipboard

The updated phone number. Pass null to leave unchanged.

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

The updated shipping address. Pass null to leave unchanged.