pub struct AlipayPreAuthOnlinePayModel {
pub out_trade_no: String,
pub total_amount: f64,
pub subject: String,
pub product_code: String,
pub auth_no: Option<String>,
pub auth_confirm_mode: String,
pub goods_detail: Option<AlipayGoodsDetail>,
pub extend_params: Option<ExtendParams>,
pub promo_params: Option<PromoParam>,
pub store_id: Option<String>,
pub terminal_id: Option<String>,
pub query_options: Option<Vec<String>>,
}Expand description
预授权 用户在商户侧授权冻结并享受服务后,商户使用授权单号通过本接口对用户已授权金额发起扣款
Fields§
§out_trade_no: String商户网站唯一订单号
total_amount: f64订单总金额。 单位为元,精确到小数点后两位,取值范围:[0.01,100000000] 。
subject: String订单标题。 注意:不可使用特殊字符,如 /,=,& 等。
product_code: String产品码。 商家和支付宝签约的产品码。 支付宝预授权场景传:PRE_AUTH_ONLINE;新当面资金授权场景传:PRE_AUTH;
auth_no: Option<String>资金预授权单号。 支付宝预授权和新当面资金授权场景下必填。
auth_confirm_mode: String预授权确认模式。
适用于支付宝预授权和新当面资金授权场景。枚举值: COMPLETE:转交易完成后解冻剩余冻结金额; NOT_COMPLETE:转交易完成后不解冻剩余冻结金额; 默认值为NOT_COMPLETE。
goods_detail: Option<AlipayGoodsDetail>订单包含的商品列表信息,json格式,其它说明详见商品明细说明
extend_params: Option<ExtendParams>业务扩展参数
promo_params: Option<PromoParam>优惠明细参数,通过此属性补充营销参数
store_id: Option<String>商户门店编号。 指商户创建门店时输入的门店编号。
terminal_id: Option<String>商户机具终端编号。
query_options: Option<Vec<String>>返回参数选项。 商户通过传递该参数来定制同步需要额外返回的信息字段,数组格式。如:[“fund_bill_list”,“voucher_detail_list”,“discount_goods_detail”]
Trait Implementations§
Source§impl Debug for AlipayPreAuthOnlinePayModel
impl Debug for AlipayPreAuthOnlinePayModel
Source§impl Default for AlipayPreAuthOnlinePayModel
impl Default for AlipayPreAuthOnlinePayModel
Source§fn default() -> AlipayPreAuthOnlinePayModel
fn default() -> AlipayPreAuthOnlinePayModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlipayPreAuthOnlinePayModel
impl<'de> Deserialize<'de> for AlipayPreAuthOnlinePayModel
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 AlipayPreAuthOnlinePayModel
impl RefUnwindSafe for AlipayPreAuthOnlinePayModel
impl Send for AlipayPreAuthOnlinePayModel
impl Sync for AlipayPreAuthOnlinePayModel
impl Unpin for AlipayPreAuthOnlinePayModel
impl UnwindSafe for AlipayPreAuthOnlinePayModel
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