AlipayFaceOrderPayModel

Struct AlipayFaceOrderPayModel 

Source
pub struct AlipayFaceOrderPayModel {
Show 15 fields pub out_trade_no: String, pub total_amount: f64, pub subject: String, pub scene: String, pub auth_code: String, pub product_code: Option<String>, pub seller_id: Option<String>, pub goods_detail: Option<AlipayGoodsDetail>, pub extend_params: Option<ExtendParams>, pub promo_params: Option<PromoParam>, pub store_id: Option<String>, pub operator_id: Option<String>, pub terminal_id: Option<String>, pub query_options: Option<Vec<String>>, pub notify_url: Option<String>,
}
Expand description

当面付

Fields§

§out_trade_no: String

商户网站唯一订单号

§total_amount: f64

订单总金额。 单位为元,精确到小数点后两位,取值范围:[0.01,100000000] 。

§subject: String

订单标题。 注意:不可使用特殊字符,如 /,=,& 等。

§scene: String

支付场景。枚举值:

枚举值:
bar_code:当面付条码支付场景;
security_code:当面付刷脸支付场景,对应的auth_code为fp开头的刷脸标识串;
默认值为bar_code。
§auth_code: String
支付授权码。
当面付场景传买家的付款码(25~30开头的长度为16~24位的数字,实际字符串长度以开发者获取的付款码长度为准)或者刷脸标识串(fp开头的35位字符串)。
§product_code: Option<String>
产品码。
商家和支付宝签约的产品码。
当面付场景下,如果签约的是当面付快捷版,则传 OFFLINE_PAYMENT;
其它支付宝当面付产品传 FACE_TO_FACE_PAYMENT;
不传则默认使用FACE_TO_FACE_PAYMENT。
§seller_id: Option<String>

卖家支付宝用户ID。

当需要指定收款账号时,通过该参数传入,如果该值为空,则默认为商户签约账号对应的支付宝用户ID。
收款账号优先级规则:门店绑定的收款账户>请求传入的seller_id>商户签约账号对应的支付宝用户ID;
注:直付通和机构间联场景下seller_id无需传入或者保持跟pid一致;
如果传入的seller_id与pid不一致,需要联系支付宝小二配置收款关系;
支付宝预授权和新当面资金授权场景下必填。
§goods_detail: Option<AlipayGoodsDetail>

订单包含的商品列表信息,json格式,其它说明详见商品明细说明

§extend_params: Option<ExtendParams>

业务扩展参数

§promo_params: Option<PromoParam>

优惠明细参数,通过此属性补充营销参数

§store_id: Option<String>

商户门店编号。 指商户创建门店时输入的门店编号。

§operator_id: Option<String>

商户操作员编号。

§terminal_id: Option<String>

商户机具终端编号。

§query_options: Option<Vec<String>>

返回参数选项。 商户通过传递该参数来定制同步需要额外返回的信息字段,数组格式。包括但不限于:[“fund_bill_list”,“voucher_detail_list”,“enterprise_pay_info”,“discount_goods_detail”,“discount_amount”,“mdiscount_amount”]

§notify_url: Option<String>

回调地址

Trait Implementations§

Source§

impl Debug for AlipayFaceOrderPayModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AlipayFaceOrderPayModel

Source§

fn default() -> AlipayFaceOrderPayModel

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AlipayFaceOrderPayModel

Source§

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 Serialize for AlipayFaceOrderPayModel

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> XmlMessageParser for T

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,