AlipayPreAuthOnlinePayModel

Struct AlipayPreAuthOnlinePayModel 

Source
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

Source§

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

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

impl Default for AlipayPreAuthOnlinePayModel

Source§

fn default() -> AlipayPreAuthOnlinePayModel

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

impl<'de> Deserialize<'de> for AlipayPreAuthOnlinePayModel

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 AlipayPreAuthOnlinePayModel

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>,