pub struct PaymentSessionCompliance {
pub buyer: Option<Person>,
pub requester_ip_address: Option<String>,
}Expand description
Compliance context for a payment session request. Extends the base Compliance schema with buyer information required for travel rule obligations. This object is request-only — it is never echoed back in responses.
JSON schema
{
"description": "Compliance context for a payment session request. Extends the base Compliance schema with buyer information required for travel rule obligations.\nThis object is request-only — it is never echoed back in responses.",
"examples": [
{
"buyer": {
"address": {
"city": "San Francisco",
"countryCode": "US",
"line1": "123 Market St",
"postCode": "94105",
"state": "CA"
},
"name": "John Doe"
}
}
],
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/Compliance"
},
{
"type": "object",
"properties": {
"buyer": {
"description": "Information about the person paying. Required by some entity configurations to meet regulatory requirements for fund transfers. When required, omitting this field or leaving required sub-fields empty returns a 400 listing the specific fields needed.",
"writeOnly": true,
"allOf": [
{
"$ref": "#/components/schemas/Person"
}
]
}
}
}
]
}Fields§
§buyer: Option<Person>Information about the person paying. Required by some entity configurations to meet regulatory requirements for fund transfers. When required, omitting this field or leaving required sub-fields empty returns a 400 listing the specific fields needed.
requester_ip_address: Option<String>IPv4 or IPv6 address of the individual (i.e., end-customer) that initiated this request. NOT the IP of the partner server making the API call.
Implementations§
Source§impl PaymentSessionCompliance
impl PaymentSessionCompliance
pub fn builder() -> PaymentSessionCompliance
Trait Implementations§
Source§impl Clone for PaymentSessionCompliance
impl Clone for PaymentSessionCompliance
Source§impl Debug for PaymentSessionCompliance
impl Debug for PaymentSessionCompliance
Source§impl Default for PaymentSessionCompliance
impl Default for PaymentSessionCompliance
Source§impl<'de> Deserialize<'de> for PaymentSessionCompliance
impl<'de> Deserialize<'de> for PaymentSessionCompliance
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<&PaymentSessionCompliance> for PaymentSessionCompliance
impl From<&PaymentSessionCompliance> for PaymentSessionCompliance
Source§fn from(value: &PaymentSessionCompliance) -> Self
fn from(value: &PaymentSessionCompliance) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSessionCompliance> for PaymentSessionCompliance
impl From<PaymentSessionCompliance> for PaymentSessionCompliance
Source§fn from(value: PaymentSessionCompliance) -> Self
fn from(value: PaymentSessionCompliance) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentSessionCompliance
impl Serialize for PaymentSessionCompliance
Source§impl TryFrom<PaymentSessionCompliance> for PaymentSessionCompliance
impl TryFrom<PaymentSessionCompliance> for PaymentSessionCompliance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentSessionCompliance) -> Result<Self, ConversionError>
fn try_from(value: PaymentSessionCompliance) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentSessionCompliance
impl RefUnwindSafe for PaymentSessionCompliance
impl Send for PaymentSessionCompliance
impl Sync for PaymentSessionCompliance
impl Unpin for PaymentSessionCompliance
impl UnsafeUnpin for PaymentSessionCompliance
impl UnwindSafe for PaymentSessionCompliance
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