pub struct ExtUserInfo {
    pub name: Option<String>,
    pub mobile: Option<String>,
    pub cert_type: Option<String>,
    pub cert_no: Option<String>,
    pub min_age: Option<String>,
    pub need_check_info: Option<String>,
}
Expand description

外部指定买家

Fields

name: Option<String>

指定买家姓名。 注: need_check_info=T时该参数才有效

mobile: Option<String>

指定买家手机号。 注:该参数暂不校验

cert_type: Option<String>

指定买家证件类型。

枚举值:
IDENTITY_CARD:身份证;
PASSPORT:护照;
OFFICER_CARD:军官证;
SOLDIER_CARD:士兵证;
HOKOU:户口本。如有其它类型需要支持,请与支付宝工作人员联系。
注: need_check_info=T时该参数才有效,支付宝会比较买家在支付宝留存的证件类型与该参数传入的值是否匹配。
cert_no: Option<String>

买家证件号。 注:need_check_info=T时该参数才有效,支付宝会比较买家在支付宝留存的证件号码与该参数传入的值是否匹配。

min_age: Option<String>

允许的最小买家年龄。

买家年龄必须大于等于所传数值
注:
1. need_check_info=T时该参数才有效
2. min_age为整数,必须大于等于0
need_check_info: Option<String>

是否强制校验买家信息;

需要强制校验传:T;
不需要强制校验传:F或者不传;
当传T时,支付宝会校验支付买家的信息与接口上传递的cert_type、cert_no、name或age是否匹配,只有接口传递了信息才会进行对应项的校验;只要有任何一项信息校验不匹配交易都会失败。如果传递了need_check_info,但是没有传任何校验项,则不进行任何校验。
默认为不校验。

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more