pub struct CustomerDisplay {
pub display_amount: Option<CustomerDisplayDisplayAmount>,
pub merchant_name: Option<CustomerDisplayMerchantName>,
pub order_code: Option<CustomerDisplayOrderCode>,
}Expand description
Merchant-provided display data shown to the payer during checkout. All fields are informational only — stored and returned as-is, with no effect on payment processing, settlement, or validation.
JSON schema
{
"title": "Customer Display",
"description": "Merchant-provided display data shown to the payer during checkout. All fields are informational only — stored and returned as-is, with no effect on payment processing, settlement, or validation.",
"examples": [
{
"displayAmount": {
"amount": "1.37",
"currency": "cad"
},
"merchantName": "Acme Store"
}
],
"type": "object",
"properties": {
"displayAmount": {
"description": "The amount to present to the payer, which may differ from the authoritative settlement amount and asset. Commonly used when the payer's local currency differs from the settlement currency (e.g., charging in USD but displaying the equivalent in CAD). Stored and returned as-is — no cross-validation is performed against the authoritative `amount` and `asset`. Both `amount` and `currency` must be provided together.",
"examples": [
{
"amount": "1.37",
"currency": "cad"
}
],
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"description": "The display amount as a decimal string (e.g., `\"1.37\"`).",
"examples": [
"1.37"
],
"type": "string"
},
"currency": {
"description": "An ISO 4217 currency code in lowercase for the display amount (e.g., `cad`, `usd`).",
"examples": [
"cad"
],
"type": "string"
}
}
},
"merchantName": {
"description": "The merchant name to display on the payment UI. When provided, this overrides the default name derived from the entity's profile. Useful when a merchant operates multiple storefronts or brands under a single entity.",
"examples": [
"Acme Store"
],
"type": "string",
"maxLength": 128
},
"orderCode": {
"description": "A customer-visible code for the overall order. When omitted, CDP generates one and returns it. It must not contain personally identifiable information (PII) or payment credentials.",
"examples": [
"ORDER-ABC123"
],
"type": "string",
"maxLength": 128
}
}
}Fields§
§display_amount: Option<CustomerDisplayDisplayAmount>§merchant_name: Option<CustomerDisplayMerchantName>The merchant name to display on the payment UI. When provided, this overrides the default name derived from the entity’s profile. Useful when a merchant operates multiple storefronts or brands under a single entity.
order_code: Option<CustomerDisplayOrderCode>A customer-visible code for the overall order. When omitted, CDP generates one and returns it. It must not contain personally identifiable information (PII) or payment credentials.
Implementations§
Source§impl CustomerDisplay
impl CustomerDisplay
pub fn builder() -> CustomerDisplay
Trait Implementations§
Source§impl Clone for CustomerDisplay
impl Clone for CustomerDisplay
Source§impl Debug for CustomerDisplay
impl Debug for CustomerDisplay
Source§impl Default for CustomerDisplay
impl Default for CustomerDisplay
Source§impl<'de> Deserialize<'de> for CustomerDisplay
impl<'de> Deserialize<'de> for CustomerDisplay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CustomerDisplay> for CustomerDisplay
impl From<&CustomerDisplay> for CustomerDisplay
Source§fn from(value: &CustomerDisplay) -> Self
fn from(value: &CustomerDisplay) -> Self
Converts to this type from the input type.
Source§impl From<CustomerDisplay> for CustomerDisplay
impl From<CustomerDisplay> for CustomerDisplay
Source§fn from(value: CustomerDisplay) -> Self
fn from(value: CustomerDisplay) -> Self
Converts to this type from the input type.
Source§impl Serialize for CustomerDisplay
impl Serialize for CustomerDisplay
Source§impl TryFrom<CustomerDisplay> for CustomerDisplay
impl TryFrom<CustomerDisplay> for CustomerDisplay
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CustomerDisplay) -> Result<Self, ConversionError>
fn try_from(value: CustomerDisplay) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CustomerDisplay
impl RefUnwindSafe for CustomerDisplay
impl Send for CustomerDisplay
impl Sync for CustomerDisplay
impl Unpin for CustomerDisplay
impl UnsafeUnpin for CustomerDisplay
impl UnwindSafe for CustomerDisplay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more