Documentation ¶
Overview ¶
Package aliospay 包含AliOS支付API相关结构体
Index ¶
- type AliOSPayResponse
- type AliyunAliosPayPeriodAgreementPayAPIRequest
- func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetPeriodAgreementPayRequest() *PeriodAgreementPayRequest
- func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetRawParams() model.Params
- func (r *AliyunAliosPayPeriodAgreementPayAPIRequest) SetPeriodAgreementPayRequest(_periodAgreementPayRequest *PeriodAgreementPayRequest) error
- type AliyunAliosPayPeriodAgreementPayAPIResponse
- type AliyunAliosPayPeriodAgreementPayAPIResponseModel
- type AliyunAliosPayPeriodAgreementStatusGetAPIRequest
- func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetGetPeriodAgreementStatusRequest() *GetPeriodAgreementStatusRequest
- func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetRawParams() model.Params
- func (r *AliyunAliosPayPeriodAgreementStatusGetAPIRequest) SetGetPeriodAgreementStatusRequest(_getPeriodAgreementStatusRequest *GetPeriodAgreementStatusRequest) error
- type AliyunAliosPayPeriodAgreementStatusGetAPIResponse
- type AliyunAliosPayPeriodAgreementStatusGetAPIResponseModel
- type AliyunAliosPayPeriodAgreementUnsignAPIRequest
- func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetPeriodAgreementUnsignRequest() *PeriodAgreementUnsignRequest
- func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetRawParams() model.Params
- func (r *AliyunAliosPayPeriodAgreementUnsignAPIRequest) SetPeriodAgreementUnsignRequest(_periodAgreementUnsignRequest *PeriodAgreementUnsignRequest) error
- type AliyunAliosPayPeriodAgreementUnsignAPIResponse
- type AliyunAliosPayPeriodAgreementUnsignAPIResponseModel
- type AliyunAliosPayRecordListAPIRequest
- func (r AliyunAliosPayRecordListAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayRecordListAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayRecordListAPIRequest) GetRawParams() model.Params
- func (r AliyunAliosPayRecordListAPIRequest) GetSearchRecordRequest() *SearchRecordRequest
- func (r *AliyunAliosPayRecordListAPIRequest) SetSearchRecordRequest(_searchRecordRequest *SearchRecordRequest) error
- type AliyunAliosPayRecordListAPIResponse
- type AliyunAliosPayRecordListAPIResponseModel
- type AliyunAliosPayRefundAPIRequest
- func (r AliyunAliosPayRefundAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayRefundAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayRefundAPIRequest) GetRawParams() model.Params
- func (r AliyunAliosPayRefundAPIRequest) GetRefundRequest() *RefundRequest
- func (r *AliyunAliosPayRefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error
- type AliyunAliosPayRefundAPIResponse
- type AliyunAliosPayRefundAPIResponseModel
- type AliyunAliosPayTokenGetAPIRequest
- func (r AliyunAliosPayTokenGetAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayTokenGetAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayTokenGetAPIRequest) GetGetTokenRequest() *GetTokenRequest
- func (r AliyunAliosPayTokenGetAPIRequest) GetRawParams() model.Params
- func (r *AliyunAliosPayTokenGetAPIRequest) SetGetTokenRequest(_getTokenRequest *GetTokenRequest) error
- type AliyunAliosPayTokenGetAPIResponse
- type AliyunAliosPayTokenGetAPIResponseModel
- type AliyunAliosPayTradeQueryAPIRequest
- func (r AliyunAliosPayTradeQueryAPIRequest) GetApiMethodName() string
- func (r AliyunAliosPayTradeQueryAPIRequest) GetApiParams(params url.Values)
- func (r AliyunAliosPayTradeQueryAPIRequest) GetQueryTradeRequest() *QueryTradeRequest
- func (r AliyunAliosPayTradeQueryAPIRequest) GetRawParams() model.Params
- func (r *AliyunAliosPayTradeQueryAPIRequest) SetQueryTradeRequest(_queryTradeRequest *QueryTradeRequest) error
- type AliyunAliosPayTradeQueryAPIResponse
- type AliyunAliosPayTradeQueryAPIResponseModel
- type GetPeriodAgreementStatusRequest
- type GetPeriodAgreementStatusResponse
- type GetTokenRequest
- type GetTokenResponse
- type PayRecordData
- type PeriodAgreementPayRequest
- type PeriodAgreementPayResponse
- type PeriodAgreementUnsignRequest
- type QueryTradeRequest
- type QueryTradeResponse
- type RefundRequest
- type SearchRecordRequest
- type SearchRecordResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliOSPayResponse ¶
type AliOSPayResponse struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误码 Code int64 `json:"code,omitempty" xml:"code,omitempty"` // 业务数据 Data *PeriodAgreementPayResponse `json:"data,omitempty" xml:"data,omitempty"` }
AliOSPayResponse 结构体
type AliyunAliosPayPeriodAgreementPayAPIRequest ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementPayAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayPeriodAgreementPayAPIRequest 周期扣款支付接口 API请求 aliyun.alios.pay.period.agreement.pay
周期扣款支付接口,商户服务端通过该接口完成后续期数的支付
func NewAliyunAliosPayPeriodAgreementPayRequest ¶ added in v1.2.9
func NewAliyunAliosPayPeriodAgreementPayRequest() *AliyunAliosPayPeriodAgreementPayAPIRequest
NewAliyunAliosPayPeriodAgreementPayRequest 初始化AliyunAliosPayPeriodAgreementPayAPIRequest对象
func (AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiMethodName ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayPeriodAgreementPayAPIRequest) GetPeriodAgreementPayRequest ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetPeriodAgreementPayRequest() *PeriodAgreementPayRequest
GetPeriodAgreementPayRequest PeriodAgreementPayRequest Getter
func (AliyunAliosPayPeriodAgreementPayAPIRequest) GetRawParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementPayAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunAliosPayPeriodAgreementPayAPIRequest) SetPeriodAgreementPayRequest ¶ added in v1.2.9
func (r *AliyunAliosPayPeriodAgreementPayAPIRequest) SetPeriodAgreementPayRequest(_periodAgreementPayRequest *PeriodAgreementPayRequest) error
SetPeriodAgreementPayRequest is PeriodAgreementPayRequest Setter 请求参数
type AliyunAliosPayPeriodAgreementPayAPIResponse ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementPayAPIResponse struct { model.CommonResponse AliyunAliosPayPeriodAgreementPayAPIResponseModel }
AliyunAliosPayPeriodAgreementPayAPIResponse 周期扣款支付接口 API返回值 aliyun.alios.pay.period.agreement.pay
周期扣款支付接口,商户服务端通过该接口完成后续期数的支付
type AliyunAliosPayPeriodAgreementPayAPIResponseModel ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementPayAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_period_agreement_pay_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayPeriodAgreementPayAPIResponseModel is 周期扣款支付接口 成功返回结果
type AliyunAliosPayPeriodAgreementStatusGetAPIRequest ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementStatusGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayPeriodAgreementStatusGetAPIRequest 查询周期扣款签约状态 API请求 aliyun.alios.pay.period.agreement.status.get
查询周期扣款签约状态
func NewAliyunAliosPayPeriodAgreementStatusGetRequest ¶ added in v1.2.9
func NewAliyunAliosPayPeriodAgreementStatusGetRequest() *AliyunAliosPayPeriodAgreementStatusGetAPIRequest
NewAliyunAliosPayPeriodAgreementStatusGetRequest 初始化AliyunAliosPayPeriodAgreementStatusGetAPIRequest对象
func (AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiMethodName ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetGetPeriodAgreementStatusRequest ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetGetPeriodAgreementStatusRequest() *GetPeriodAgreementStatusRequest
GetGetPeriodAgreementStatusRequest GetPeriodAgreementStatusRequest Getter
func (AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetRawParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementStatusGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunAliosPayPeriodAgreementStatusGetAPIRequest) SetGetPeriodAgreementStatusRequest ¶ added in v1.2.9
func (r *AliyunAliosPayPeriodAgreementStatusGetAPIRequest) SetGetPeriodAgreementStatusRequest(_getPeriodAgreementStatusRequest *GetPeriodAgreementStatusRequest) error
SetGetPeriodAgreementStatusRequest is GetPeriodAgreementStatusRequest Setter 请求参数
type AliyunAliosPayPeriodAgreementStatusGetAPIResponse ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementStatusGetAPIResponse struct { model.CommonResponse AliyunAliosPayPeriodAgreementStatusGetAPIResponseModel }
AliyunAliosPayPeriodAgreementStatusGetAPIResponse 查询周期扣款签约状态 API返回值 aliyun.alios.pay.period.agreement.status.get
查询周期扣款签约状态
type AliyunAliosPayPeriodAgreementStatusGetAPIResponseModel ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementStatusGetAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_period_agreement_status_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayPeriodAgreementStatusGetAPIResponseModel is 查询周期扣款签约状态 成功返回结果
type AliyunAliosPayPeriodAgreementUnsignAPIRequest ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementUnsignAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayPeriodAgreementUnsignAPIRequest 周期扣款协议解约接口 API请求 aliyun.alios.pay.period.agreement.unsign
周期扣款协议解约接口
func NewAliyunAliosPayPeriodAgreementUnsignRequest ¶ added in v1.2.9
func NewAliyunAliosPayPeriodAgreementUnsignRequest() *AliyunAliosPayPeriodAgreementUnsignAPIRequest
NewAliyunAliosPayPeriodAgreementUnsignRequest 初始化AliyunAliosPayPeriodAgreementUnsignAPIRequest对象
func (AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiMethodName ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetPeriodAgreementUnsignRequest ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetPeriodAgreementUnsignRequest() *PeriodAgreementUnsignRequest
GetPeriodAgreementUnsignRequest PeriodAgreementUnsignRequest Getter
func (AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetRawParams ¶ added in v1.2.9
func (r AliyunAliosPayPeriodAgreementUnsignAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunAliosPayPeriodAgreementUnsignAPIRequest) SetPeriodAgreementUnsignRequest ¶ added in v1.2.9
func (r *AliyunAliosPayPeriodAgreementUnsignAPIRequest) SetPeriodAgreementUnsignRequest(_periodAgreementUnsignRequest *PeriodAgreementUnsignRequest) error
SetPeriodAgreementUnsignRequest is PeriodAgreementUnsignRequest Setter 请求参数
type AliyunAliosPayPeriodAgreementUnsignAPIResponse ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementUnsignAPIResponse struct { model.CommonResponse AliyunAliosPayPeriodAgreementUnsignAPIResponseModel }
AliyunAliosPayPeriodAgreementUnsignAPIResponse 周期扣款协议解约接口 API返回值 aliyun.alios.pay.period.agreement.unsign
周期扣款协议解约接口
type AliyunAliosPayPeriodAgreementUnsignAPIResponseModel ¶ added in v1.2.9
type AliyunAliosPayPeriodAgreementUnsignAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_period_agreement_unsign_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayPeriodAgreementUnsignAPIResponseModel is 周期扣款协议解约接口 成功返回结果
type AliyunAliosPayRecordListAPIRequest ¶ added in v1.2.0
type AliyunAliosPayRecordListAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayRecordListAPIRequest 支付记录批量查询接口 API请求 aliyun.alios.pay.record.list
商户用来对账的接口
func NewAliyunAliosPayRecordListRequest ¶
func NewAliyunAliosPayRecordListRequest() *AliyunAliosPayRecordListAPIRequest
NewAliyunAliosPayRecordListRequest 初始化AliyunAliosPayRecordListAPIRequest对象
func (AliyunAliosPayRecordListAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliyunAliosPayRecordListAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayRecordListAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliyunAliosPayRecordListAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayRecordListAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AliyunAliosPayRecordListAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliyunAliosPayRecordListAPIRequest) GetSearchRecordRequest ¶ added in v1.2.0
func (r AliyunAliosPayRecordListAPIRequest) GetSearchRecordRequest() *SearchRecordRequest
GetSearchRecordRequest SearchRecordRequest Getter
func (*AliyunAliosPayRecordListAPIRequest) SetSearchRecordRequest ¶ added in v1.2.0
func (r *AliyunAliosPayRecordListAPIRequest) SetSearchRecordRequest(_searchRecordRequest *SearchRecordRequest) error
SetSearchRecordRequest is SearchRecordRequest Setter 请求参数
type AliyunAliosPayRecordListAPIResponse ¶
type AliyunAliosPayRecordListAPIResponse struct { model.CommonResponse AliyunAliosPayRecordListAPIResponseModel }
AliyunAliosPayRecordListAPIResponse 支付记录批量查询接口 API返回值 aliyun.alios.pay.record.list
商户用来对账的接口
type AliyunAliosPayRecordListAPIResponseModel ¶ added in v1.2.0
type AliyunAliosPayRecordListAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_record_list_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayRecordListAPIResponseModel is 支付记录批量查询接口 成功返回结果
type AliyunAliosPayRefundAPIRequest ¶ added in v1.2.0
type AliyunAliosPayRefundAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayRefundAPIRequest 退款接口 API请求 aliyun.alios.pay.refund
商户用来发起退款的接口
func NewAliyunAliosPayRefundRequest ¶
func NewAliyunAliosPayRefundRequest() *AliyunAliosPayRefundAPIRequest
NewAliyunAliosPayRefundRequest 初始化AliyunAliosPayRefundAPIRequest对象
func (AliyunAliosPayRefundAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliyunAliosPayRefundAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayRefundAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliyunAliosPayRefundAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayRefundAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AliyunAliosPayRefundAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliyunAliosPayRefundAPIRequest) GetRefundRequest ¶ added in v1.2.0
func (r AliyunAliosPayRefundAPIRequest) GetRefundRequest() *RefundRequest
GetRefundRequest RefundRequest Getter
func (*AliyunAliosPayRefundAPIRequest) SetRefundRequest ¶ added in v1.2.0
func (r *AliyunAliosPayRefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error
SetRefundRequest is RefundRequest Setter 请求参数
type AliyunAliosPayRefundAPIResponse ¶
type AliyunAliosPayRefundAPIResponse struct { model.CommonResponse AliyunAliosPayRefundAPIResponseModel }
AliyunAliosPayRefundAPIResponse 退款接口 API返回值 aliyun.alios.pay.refund
商户用来发起退款的接口
type AliyunAliosPayRefundAPIResponseModel ¶ added in v1.2.0
type AliyunAliosPayRefundAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_refund_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayRefundAPIResponseModel is 退款接口 成功返回结果
type AliyunAliosPayTokenGetAPIRequest ¶ added in v1.2.0
type AliyunAliosPayTokenGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayTokenGetAPIRequest 获取支付token API请求 aliyun.alios.pay.token.get
商户用来获取支付的授权token
func NewAliyunAliosPayTokenGetRequest ¶
func NewAliyunAliosPayTokenGetRequest() *AliyunAliosPayTokenGetAPIRequest
NewAliyunAliosPayTokenGetRequest 初始化AliyunAliosPayTokenGetAPIRequest对象
func (AliyunAliosPayTokenGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliyunAliosPayTokenGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayTokenGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliyunAliosPayTokenGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayTokenGetAPIRequest) GetGetTokenRequest ¶ added in v1.2.0
func (r AliyunAliosPayTokenGetAPIRequest) GetGetTokenRequest() *GetTokenRequest
GetGetTokenRequest GetTokenRequest Getter
func (AliyunAliosPayTokenGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AliyunAliosPayTokenGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunAliosPayTokenGetAPIRequest) SetGetTokenRequest ¶ added in v1.2.0
func (r *AliyunAliosPayTokenGetAPIRequest) SetGetTokenRequest(_getTokenRequest *GetTokenRequest) error
SetGetTokenRequest is GetTokenRequest Setter 请求参数
type AliyunAliosPayTokenGetAPIResponse ¶
type AliyunAliosPayTokenGetAPIResponse struct { model.CommonResponse AliyunAliosPayTokenGetAPIResponseModel }
AliyunAliosPayTokenGetAPIResponse 获取支付token API返回值 aliyun.alios.pay.token.get
商户用来获取支付的授权token
type AliyunAliosPayTokenGetAPIResponseModel ¶ added in v1.2.0
type AliyunAliosPayTokenGetAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_token_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayTokenGetAPIResponseModel is 获取支付token 成功返回结果
type AliyunAliosPayTradeQueryAPIRequest ¶ added in v1.2.0
type AliyunAliosPayTradeQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunAliosPayTradeQueryAPIRequest 查询支付结果接口 API请求 aliyun.alios.pay.trade.query
商户用来查询支付结果接口
func NewAliyunAliosPayTradeQueryRequest ¶
func NewAliyunAliosPayTradeQueryRequest() *AliyunAliosPayTradeQueryAPIRequest
NewAliyunAliosPayTradeQueryRequest 初始化AliyunAliosPayTradeQueryAPIRequest对象
func (AliyunAliosPayTradeQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliyunAliosPayTradeQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunAliosPayTradeQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliyunAliosPayTradeQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunAliosPayTradeQueryAPIRequest) GetQueryTradeRequest ¶ added in v1.2.0
func (r AliyunAliosPayTradeQueryAPIRequest) GetQueryTradeRequest() *QueryTradeRequest
GetQueryTradeRequest QueryTradeRequest Getter
func (AliyunAliosPayTradeQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AliyunAliosPayTradeQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunAliosPayTradeQueryAPIRequest) SetQueryTradeRequest ¶ added in v1.2.0
func (r *AliyunAliosPayTradeQueryAPIRequest) SetQueryTradeRequest(_queryTradeRequest *QueryTradeRequest) error
SetQueryTradeRequest is QueryTradeRequest Setter 请求参数
type AliyunAliosPayTradeQueryAPIResponse ¶
type AliyunAliosPayTradeQueryAPIResponse struct { model.CommonResponse AliyunAliosPayTradeQueryAPIResponseModel }
AliyunAliosPayTradeQueryAPIResponse 查询支付结果接口 API返回值 aliyun.alios.pay.trade.query
商户用来查询支付结果接口
type AliyunAliosPayTradeQueryAPIResponseModel ¶ added in v1.2.0
type AliyunAliosPayTradeQueryAPIResponseModel struct { XMLName xml.Name `xml:"aliyun_alios_pay_trade_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应参数 AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` }
AliyunAliosPayTradeQueryAPIResponseModel is 查询支付结果接口 成功返回结果
type GetPeriodAgreementStatusRequest ¶ added in v1.2.9
type GetPeriodAgreementStatusRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 请求时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 外部商户周期扣款签约码,周期扣款协议中标示用户的唯一签约编号(确保在商户系统中唯一)。格式规则:支持大写小写字母和数字,最长32位。 ExternalPeriodAgreementCode string `json:"external_period_agreement_code,omitempty" xml:"external_period_agreement_code,omitempty"` }
GetPeriodAgreementStatusRequest 结构体
type GetPeriodAgreementStatusResponse ¶ added in v1.2.9
type GetPeriodAgreementStatusResponse struct { // 周期扣款协议签约id AgreementId string `json:"agreement_id,omitempty" xml:"agreement_id,omitempty"` // 周期扣款协议签约状态,INIT-初始,SIGNED-已签约,UNSIGNED-已解约 AgreementStatus string `json:"agreement_status,omitempty" xml:"agreement_status,omitempty"` // 协议签约时间,时间戳,单位毫秒 SignTime int64 `json:"sign_time,omitempty" xml:"sign_time,omitempty"` // 协议解约时间,时间戳,单位毫秒 UnsignTime int64 `json:"unsign_time,omitempty" xml:"unsign_time,omitempty"` }
GetPeriodAgreementStatusResponse 结构体
type GetTokenRequest ¶
type GetTokenRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // ORDER订单token,OTHER其他token TokenType string `json:"token_type,omitempty" xml:"token_type,omitempty"` // 订单标题 Subject string `json:"subject,omitempty" xml:"subject,omitempty"` // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // 请求时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 周期扣款规则参数,周期扣款订单必传。支付系统会按照这里传入的参数提示用户,并对发起扣款的时间、金额、次数等做相应限制 PeriodRuleParams string `json:"period_rule_params,omitempty" xml:"period_rule_params,omitempty"` // cp服务端支持的协议,目前只支持HTTPS ServiceProtocol string `json:"service_protocol,omitempty" xml:"service_protocol,omitempty"` // 周期扣款签约结果回调地址 PeriodSignNotifyUrl string `json:"period_sign_notify_url,omitempty" xml:"period_sign_notify_url,omitempty"` // 周期扣款解约结果回调地址 PeriodUnsignNotifyUrl string `json:"period_unsign_notify_url,omitempty" xml:"period_unsign_notify_url,omitempty"` // 支付结果回调通知URL PayNotifyUrl string `json:"pay_notify_url,omitempty" xml:"pay_notify_url,omitempty"` // CP的商品原始金额,不参与任何计算,仅用于展示原始金额 OriginalAmount int64 `json:"original_amount,omitempty" xml:"original_amount,omitempty"` // 参与优惠计算的金额,用此字段用于让订单中部分金额不参与优惠的计算 DiscountableAmount int64 `json:"discountable_amount,omitempty" xml:"discountable_amount,omitempty"` // 订单总金额 TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` }
GetTokenRequest 结构体
type GetTokenResponse ¶
type GetTokenResponse struct { // 支付token PayToken string `json:"pay_token,omitempty" xml:"pay_token,omitempty"` }
GetTokenResponse 结构体
type PayRecordData ¶
type PayRecordData struct { // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // alios支付订单id PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"` // 支付宝订单id AlipayTradeId string `json:"alipay_trade_id,omitempty" xml:"alipay_trade_id,omitempty"` // 订单标题 Subject string `json:"subject,omitempty" xml:"subject,omitempty"` // 支付结果状态,取值为:INIT初始,WAIT_BUYER_PAY : 等待用户付款。TRADE_SUCCESS:支付已经成功。 TRADE_CLOSED:未付款交易超时关闭,或支付完成后全额退款。TRADE_FINISHED交易结束,不可退款 PayResult string `json:"pay_result,omitempty" xml:"pay_result,omitempty"` // 订单总金额,单位分 TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` // 实收金额,单位分 ReceiptAmount int64 `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` // 退款金额,单位分 RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"` // 订单创建时间,时间戳 OrderTime int64 `json:"order_time,omitempty" xml:"order_time,omitempty"` // 交易支付时间,未进行支付无值,时间戳 PaymentTime int64 `json:"payment_time,omitempty" xml:"payment_time,omitempty"` }
PayRecordData 结构体
type PeriodAgreementPayRequest ¶ added in v1.2.9
type PeriodAgreementPayRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 请求时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // 订单标题 Subject string `json:"subject,omitempty" xml:"subject,omitempty"` // 外部商户周期扣款签约码,周期扣款协议中标示用户的唯一签约编号(确保在商户系统中唯一)。格式规则:支持大写小写字母和数字,最长32位 ExternalPeriodAgreementCode string `json:"external_period_agreement_code,omitempty" xml:"external_period_agreement_code,omitempty"` // cp服务端支持的协议,目前只支持HTTPS ServiceProtocol string `json:"service_protocol,omitempty" xml:"service_protocol,omitempty"` // 支付结果回调通知URL PayNotifyUrl string `json:"pay_notify_url,omitempty" xml:"pay_notify_url,omitempty"` // 订单总金额,单位为分 TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` }
PeriodAgreementPayRequest 结构体
type PeriodAgreementPayResponse ¶ added in v1.2.9
type PeriodAgreementPayResponse struct { // 斑马支付单Id PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"` }
PeriodAgreementPayResponse 结构体
type PeriodAgreementUnsignRequest ¶ added in v1.2.9
type PeriodAgreementUnsignRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 请求时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 外部商户周期扣款签约码,周期扣款协议中标示用户的唯一签约编号(确保在商户系统中唯一)。格式规则:支持大写小写字母和数字,最长32位。 ExternalPeriodAgreementCode string `json:"external_period_agreement_code,omitempty" xml:"external_period_agreement_code,omitempty"` // cp服务端支持的协议,目前只支持HTTPS ServiceProtocol string `json:"service_protocol,omitempty" xml:"service_protocol,omitempty"` // 周期扣款解约结果回调地址 PeriodUnsignNotifyUrl string `json:"period_unsign_notify_url,omitempty" xml:"period_unsign_notify_url,omitempty"` }
PeriodAgreementUnsignRequest 结构体
type QueryTradeRequest ¶
type QueryTradeRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 发送请求的时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // alios支付订单id PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"` }
QueryTradeRequest 结构体
type QueryTradeResponse ¶
type QueryTradeResponse struct { // 支付结果状态,取值为:INIT初始,WAIT_BUYER_PAY : 等待用户付款。TRADE_SUCCESS:支付已经成功。 TRADE_CLOSED:未付款交易超时关闭,或支付完成后全额退款。TRADE_FINISHED交易结束,不可退款 PayResult string `json:"pay_result,omitempty" xml:"pay_result,omitempty"` // 支付方式,SCAN-扫码,AUTH-免密支付,APP-手机支付,ALL_DEDUCTION-全额抵扣,SIGN_AND_PAY-签约并支付,WAP-手机网页支付,PERIOD_PAY-周期扣款 PayWay string `json:"pay_way,omitempty" xml:"pay_way,omitempty"` // 斑马支付单Id PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"` // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // 支付渠道,ALIPAY支付宝,WECHAT微信 PayChannel string `json:"pay_channel,omitempty" xml:"pay_channel,omitempty"` // 支付渠道交易流水号 ExtraTradeNo string `json:"extra_trade_no,omitempty" xml:"extra_trade_no,omitempty"` // 交易支付时间,未进行支付无值,时间戳 PaymentTime int64 `json:"payment_time,omitempty" xml:"payment_time,omitempty"` // 实收金额,单位分 ReceiptAmount int64 `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` // 订单总金额,单位分 TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` // 订单创建时间,时间戳毫秒格式 OrderTime int64 `json:"order_time,omitempty" xml:"order_time,omitempty"` // 退款时间,时间戳毫秒格式 GmtRefund int64 `json:"gmt_refund,omitempty" xml:"gmt_refund,omitempty"` // 退款金额,单位为分 RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"` // 补差金额,单位为分 ReplenishAmount int64 `json:"replenish_amount,omitempty" xml:"replenish_amount,omitempty"` }
QueryTradeResponse 结构体
type RefundRequest ¶
type RefundRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 请求时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 业务订单号 BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` // 退款原因 RefundReason string `json:"refund_reason,omitempty" xml:"refund_reason,omitempty"` // 标识一次退款请求,保证唯一 OutRequestNo string `json:"out_request_no,omitempty" xml:"out_request_no,omitempty"` // 退款金额,单位分 RefundAmount int64 `json:"refund_amount,omitempty" xml:"refund_amount,omitempty"` }
RefundRequest 结构体
type SearchRecordRequest ¶
type SearchRecordRequest struct { // 请求唯一id,不可重复,服务端会根据此参数防重放 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 语言,en表示英文,zh表示中文 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 发送请求的时间戳 Time string `json:"time,omitempty" xml:"time,omitempty"` // 起始时间,时间戳 BeginTime int64 `json:"begin_time,omitempty" xml:"begin_time,omitempty"` // 结束时间,时间戳 EndTime int64 `json:"end_time,omitempty" xml:"end_time,omitempty"` // 分页偏移量,默认0 Offset int64 `json:"offset,omitempty" xml:"offset,omitempty"` // 每页数量,默认100 Size int64 `json:"size,omitempty" xml:"size,omitempty"` }
SearchRecordRequest 结构体
type SearchRecordResponse ¶
type SearchRecordResponse struct { // 支付记录列表 Datas []PayRecordData `json:"datas,omitempty" xml:"datas>pay_record_data,omitempty"` // 总数 Total int64 `json:"total,omitempty" xml:"total,omitempty"` }
SearchRecordResponse 结构体
Source Files ¶
- AliOSPayResponse.go
- AliyunAliosPayPeriodAgreementPayAPIRequest.go
- AliyunAliosPayPeriodAgreementPayAPIResponse.go
- AliyunAliosPayPeriodAgreementStatusGetAPIRequest.go
- AliyunAliosPayPeriodAgreementStatusGetAPIResponse.go
- AliyunAliosPayPeriodAgreementUnsignAPIRequest.go
- AliyunAliosPayPeriodAgreementUnsignAPIResponse.go
- AliyunAliosPayRecordListAPIRequest.go
- AliyunAliosPayRecordListAPIResponse.go
- AliyunAliosPayRefundAPIRequest.go
- AliyunAliosPayRefundAPIResponse.go
- AliyunAliosPayTokenGetAPIRequest.go
- AliyunAliosPayTokenGetAPIResponse.go
- AliyunAliosPayTradeQueryAPIRequest.go
- AliyunAliosPayTradeQueryAPIResponse.go
- GetPeriodAgreementStatusRequest.go
- GetPeriodAgreementStatusResponse.go
- GetTokenRequest.go
- GetTokenResponse.go
- PayRecordData.go
- PeriodAgreementPayRequest.go
- PeriodAgreementPayResponse.go
- PeriodAgreementUnsignRequest.go
- QueryTradeRequest.go
- QueryTradeResponse.go
- RefundRequest.go
- SearchRecordRequest.go
- SearchRecordResponse.go
- doc.go