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
impl Debug for AlipayFaceOrderPayModel
Source§impl Default for AlipayFaceOrderPayModel
impl Default for AlipayFaceOrderPayModel
Source§fn default() -> AlipayFaceOrderPayModel
fn default() -> AlipayFaceOrderPayModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlipayFaceOrderPayModel
impl<'de> Deserialize<'de> for AlipayFaceOrderPayModel
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
Auto Trait Implementations§
impl Freeze for AlipayFaceOrderPayModel
impl RefUnwindSafe for AlipayFaceOrderPayModel
impl Send for AlipayFaceOrderPayModel
impl Sync for AlipayFaceOrderPayModel
impl Unpin for AlipayFaceOrderPayModel
impl UnwindSafe for AlipayFaceOrderPayModel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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