Documentation ¶
Index ¶
- Variables
- func Base64Decode(s string) ([]byte, error)
- func Base64Encode(data []byte) string
- func CacheExpires(r *http.Response) time.Time
- func CreateChargeExample()
- func GenSign(data []byte, privateKey []byte) (sign string, err error)
- func JsonDecode(p []byte, v interface{}) error
- func JsonEncode(v interface{}) ([]byte, error)
- func Md5Hash(s string) string
- func RandomString(len int) string
- func RsaPrivateKeySign(data []byte, priv *rsa.PrivateKey) (string, error)
- func String(len int) string
- func Verify(data string, publicKey string, sign string) (err error)
- type APIClient
- type APIKey
- type APIResponse
- type BasicAuth
- type BusinessUserServiceApiBusinessUserServiceDeleteUserOpts
- type BusinessUserServiceApiBusinessUserServiceListAllUsersOpts
- type BusinessUserServiceApiBusinessUserServiceRetrieveUserOpts
- type BusinessUserServiceApiBusinessUserServiceSearchUsersOpts
- type BusinessUserServiceApiBusinessUserServiceUpdateUserOpts
- type BusinessUserServiceApiService
- func (a *BusinessUserServiceApiService) BusinessUserServiceCreateUser(ctx context.Context, body V1CreateUserRequest) (V1UserResponse, *http.Response, error)
- func (a *BusinessUserServiceApiService) BusinessUserServiceDeleteUser(ctx context.Context, id string, ...) (V1DeleteUserResponse, *http.Response, error)
- func (a *BusinessUserServiceApiService) BusinessUserServiceListAllUsers(ctx context.Context, ...) (V1UserListResponse, *http.Response, error)
- func (a *BusinessUserServiceApiService) BusinessUserServiceRetrieveUser(ctx context.Context, id string, ...) (V1UserResponse, *http.Response, error)
- func (a *BusinessUserServiceApiService) BusinessUserServiceSearchUsers(ctx context.Context, ...) (V1UserListResponse, *http.Response, error)
- func (a *BusinessUserServiceApiService) BusinessUserServiceUpdateUser(ctx context.Context, id string, ...) (V1UserResponse, *http.Response, error)
- type ChargeRoutingRequestChargeMethod
- type CheckoutServiceApiService
- type Configuration
- type CreateRoyaltyRequestRoyaltyFeeMode
- type CreateRoyaltyRequestRoyaltyMode
- type CreateRoyaltyRequestRoyaltyReceiver
- type CustomerServiceApiCustomerServiceDeleteCustomerOpts
- type CustomerServiceApiCustomerServiceListAllCustomersOpts
- type CustomerServiceApiCustomerServiceRetrieveCustomerOpts
- type CustomerServiceApiCustomerServiceSearchCustomersOpts
- type CustomerServiceApiService
- func (a *CustomerServiceApiService) CustomerServiceCreateCustomer(ctx context.Context, body V1CreateCustomerRequest) (V1CustomerResponse, *http.Response, error)
- func (a *CustomerServiceApiService) CustomerServiceDeleteCustomer(ctx context.Context, id string, ...) (V1DeleteCustomerResponse, *http.Response, error)
- func (a *CustomerServiceApiService) CustomerServiceListAllCustomers(ctx context.Context, ...) (V1CustomerListResponse, *http.Response, error)
- func (a *CustomerServiceApiService) CustomerServiceRetrieveCustomer(ctx context.Context, id string, ...) (V1CustomerResponse, *http.Response, error)
- func (a *CustomerServiceApiService) CustomerServiceSearchCustomers(ctx context.Context, ...) (V1CustomerListResponse, *http.Response, error)
- func (a *CustomerServiceApiService) CustomerServiceUpdateCustomer(ctx context.Context, id string) (V1CustomerResponse, *http.Response, error)
- type DefaultApiBusinessUserServiceDeleteUserOpts
- type DefaultApiBusinessUserServiceListAllUsersOpts
- type DefaultApiBusinessUserServiceRetrieveUserOpts
- type DefaultApiBusinessUserServiceSearchUsersOpts
- type DefaultApiBusinessUserServiceUpdateUser2Opts
- type DefaultApiBusinessUserServiceUpdateUserOpts
- type DefaultApiChargeServiceQueryCharge2Opts
- type DefaultApiChargeServiceQueryCharge3Opts
- type DefaultApiChargeServiceQueryChargeList2Opts
- type DefaultApiChargeServiceQueryChargeListOpts
- type DefaultApiChargeServiceQueryChargeOpts
- type DefaultApiRefundServiceQueryRefund2Opts
- type DefaultApiRefundServiceQueryRefundList2Opts
- type DefaultApiRefundServiceQueryRefundListOpts
- type DefaultApiRefundServiceQueryRefundOpts
- type DefaultApiRoyaltyServiceListAllRoyaltiesOpts
- type DefaultApiService
- func (a *DefaultApiService) BusinessUserServiceCreateUser(ctx context.Context, body V1CreateUserRequest) (V1UserResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceDeleteUser(ctx context.Context, id string, ...) (V1DeleteUserResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceListAllUsers(ctx context.Context, ...) (V1UserListResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceRetrieveUser(ctx context.Context, id string, ...) (V1UserResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceSearchUsers(ctx context.Context, ...) (V1UserListResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceUpdateUser(ctx context.Context, userId string, body V1BusinessUser, ...) (V1UserResponse, *http.Response, error)
- func (a *DefaultApiService) BusinessUserServiceUpdateUser2(ctx context.Context, userId string, body V1BusinessUser, ...) (V1UserResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceCharges(ctx context.Context, body V1CreateChargeRequest) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceCharges2(ctx context.Context, body V1CreateChargeRequest) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceQueryCharge(ctx context.Context, chargeId string, ...) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceQueryCharge2(ctx context.Context, chargeId string, ...) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceQueryCharge3(ctx context.Context, merchantTradeId string, ...) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceQueryChargeList(ctx context.Context, ...) (V1ChargeListResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceQueryChargeList2(ctx context.Context, ...) (V1ChargeListResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceReverseCharge(ctx context.Context, chargeId string) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) ChargeServiceReverseCharge2(ctx context.Context, chargeId string) (V1ChargeResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceQueryRefund(ctx context.Context, chargeId string, refundId string, ...) (V1RefundResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceQueryRefund2(ctx context.Context, refundId string, ...) (V1RefundResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceQueryRefundList(ctx context.Context, chargeId string, ...) (V1RefundListResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceQueryRefundList2(ctx context.Context, ...) (V1RefundListResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceRefunds(ctx context.Context, body V1CreateRefundRequest) (V1RefundResponse, *http.Response, error)
- func (a *DefaultApiService) RefundServiceRefunds2(ctx context.Context, body V1CreateRefundRequest) (V1RefundResponse, *http.Response, error)
- func (a *DefaultApiService) RoyaltyServiceCreateRoyalty(ctx context.Context, body V1CreateRoyaltyRequest) (V1RoyaltyResponse, *http.Response, error)
- func (a *DefaultApiService) RoyaltyServiceListAllRoyalties(ctx context.Context, ...) (V1ListAllRoyaltiesResponse, *http.Response, error)
- func (a *DefaultApiService) RoyaltyServiceRetrieveRoyalty(ctx context.Context, id string) (V1RoyaltyResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceCreateSettlementAccount(ctx context.Context, body V1CreateSettlementAccountRequest) (V1SettlementAccountResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceDeleteSettlementAccount(ctx context.Context, id string, ...) (V1DeleteSettlementAccountResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceListAllSettlementAccounts(ctx context.Context, ...) (V1SettlementAccountListResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceRetrieveSettlementAccount(ctx context.Context, id string, ...) (V1SettlementAccountResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceSearchSettlementAccounts(ctx context.Context, ...) (V1SettlementAccountListResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceUpdateSettlementAccount(ctx context.Context, settlementAccountId string, ...) (V1SettlementAccountResponse, *http.Response, error)
- func (a *DefaultApiService) SettlementServiceUpdateSettlementAccount2(ctx context.Context, settlementAccountId string, ...) (V1SettlementAccountResponse, *http.Response, error)
- type DefaultApiSettlementServiceDeleteSettlementAccountOpts
- type DefaultApiSettlementServiceListAllSettlementAccountsOpts
- type DefaultApiSettlementServiceRetrieveSettlementAccountOpts
- type DefaultApiSettlementServiceSearchSettlementAccountsOpts
- type DefaultApiSettlementServiceUpdateSettlementAccount2Opts
- type DefaultApiSettlementServiceUpdateSettlementAccountOpts
- type ExtraAlipayAgreementSignParamsAccessParams
- type ExtraAlipayAgreementSignParamsPeriodRuleParams
- type ExtraAlipayAgreementSignParamsSubMerchant
- type ExtraAlipayInvoiceInfoKeyInfo
- type ExtraAlipayJsapiPayer
- type ExtraAlipayRoyaltyInfoRoyaltyDetailInfos
- type ExtraAlipaySettleInfoSettleDetailInfos
- type ExtraWechatpayDetailGoodsDetail
- type ExtraWechatpaySceneInfoH5Info
- type ExtraWechatpaySceneInfoStoreInfo
- type GenericSwaggerError
- type GooglerpcStatus
- type HealthCheckResponseServingStatus
- type OpenApiRoyaltyDetailInfoPojoTradeFundBillItem
- type ProtobufAny
- type QueryChargeListRequestCreated
- type RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo
- type RefundExtraWechatPayAccount
- type RefundExtraWechatPayGoodsDetailItem
- type RefundRoutingRequestRefundMethod
- type RoyaltyReceiverRoyaltyFeeMode
- type RoyaltyServiceApiService
- type RoyaltySettlementRoyaltySettlementStatus
- type RoyaltySettlementTransactionRoyaltyTransactionStatus
- type RpcStatus
- type SettlementAccountRecipientAccountType
- type SettlementAccountRecipientAlipayChannelRecipient
- type SettlementAccountRecipientBalanceChannelRecipient
- type SettlementAccountRecipientBankChannelRecipient
- type SettlementAccountRecipientRecipientType
- type SettlementAccountRecipientWechatpayChannelRecipient
- type SettlementAccountRecipientYsepayMerchantRecipient
- type SettlementServiceApiService
- func (a *SettlementServiceApiService) SettlementServiceCreateSettlementAccount(ctx context.Context, ...) (V1SettlementAccountResponse, *http.Response, error)
- func (a *SettlementServiceApiService) SettlementServiceDeleteSettlementAccount(ctx context.Context, id string, ...) (V1DeleteSettlementAccountResponse, *http.Response, error)
- func (a *SettlementServiceApiService) SettlementServiceListAllSettlementAccounts(ctx context.Context, ...) (V1SettlementAccountListResponse, *http.Response, error)
- func (a *SettlementServiceApiService) SettlementServiceRetrieveSettlementAccount(ctx context.Context, id string, ...) (V1SettlementAccountResponse, *http.Response, error)
- func (a *SettlementServiceApiService) SettlementServiceSearchSettlementAccounts(ctx context.Context, ...) (V1SettlementAccountListResponse, *http.Response, error)
- func (a *SettlementServiceApiService) SettlementServiceUpdateSettlementAccount(ctx context.Context, id string, ...) (V1SettlementAccountResponse, *http.Response, error)
- type SettlementServiceApiSettlementServiceCreateSettlementAccountOpts
- type SettlementServiceApiSettlementServiceDeleteSettlementAccountOpts
- type SettlementServiceApiSettlementServiceListAllSettlementAccountsOpts
- type SettlementServiceApiSettlementServiceRetrieveSettlementAccountOpts
- type SettlementServiceApiSettlementServiceSearchSettlementAccountsOpts
- type SettlementServiceApiSettlementServiceUpdateSettlementAccountOpts
- type Tradev1Channel
- type Tradev1RoyaltyMethod
- type V1AcquirerCloseTransactionResponse
- type V1AcquirerCreateRefundResponse
- type V1AcquirerCreateRoyaltyResponse
- type V1AcquirerCreateTransactionResponse
- type V1AcquirerPaymentNotifyResponse
- type V1AcquirerQueryRefundResponse
- type V1AcquirerQueryRoyaltyResponse
- type V1AcquirerQueryTransactionResponse
- type V1AcquirerRefundNotifyResponse
- type V1AcquirerRoyaltyNotifyResponse
- type V1AlipayCallbackResponse
- type V1AlipayNotifyResponse
- type V1BusinessUser
- type V1CallbackRoutingResponse
- type V1Channel
- type V1Charge
- type V1ChargeExtra
- type V1ChargeListResponse
- type V1ChargeResponse
- type V1ChargeRoutingResponse
- type V1CreateChargeRequest
- type V1CreateChargeRequestExtra
- type V1CreateCustomerRequest
- type V1CreateRefundRequest
- type V1CreateRoyaltyRequest
- type V1CreateSettlementAccountRequest
- type V1CreateUserRequest
- type V1Customer
- type V1CustomerListResponse
- type V1CustomerResponse
- type V1DeleteCustomerResponse
- type V1DeleteProductResponse
- type V1DeleteSettlementAccountResponse
- type V1DeleteUserResponse
- type V1ExtraAlipayAgreementParams
- type V1ExtraAlipayAgreementSignParams
- type V1ExtraAlipayApp
- type V1ExtraAlipayBusinessParams
- type V1ExtraAlipayExtUserInfo
- type V1ExtraAlipayExtendParams
- type V1ExtraAlipayFace
- type V1ExtraAlipayFundBillList
- type V1ExtraAlipayGoodsDetail
- type V1ExtraAlipayInvoiceInfo
- type V1ExtraAlipayJsapi
- type V1ExtraAlipayLite
- type V1ExtraAlipayLogisticsDetail
- type V1ExtraAlipayPage
- type V1ExtraAlipayPayParams
- type V1ExtraAlipayQr
- type V1ExtraAlipayReceiverAddressInfo
- type V1ExtraAlipayRoyaltyInfo
- type V1ExtraAlipayScan
- type V1ExtraAlipaySettleInfo
- type V1ExtraAlipaySubMerchant
- type V1ExtraAlipayVoucherDetailList
- type V1ExtraAlipayWap
- type V1ExtraWechatpayApp
- type V1ExtraWechatpayAppConfig
- type V1ExtraWechatpayAppletConfig
- type V1ExtraWechatpayDetail
- type V1ExtraWechatpayH5
- type V1ExtraWechatpayJsapi
- type V1ExtraWechatpayJsapiConfig
- type V1ExtraWechatpayLite
- type V1ExtraWechatpayNative
- type V1ExtraWechatpayPayer
- type V1ExtraWechatpayScan
- type V1ExtraWechatpaySceneInfo
- type V1ExtraWechatpaySettleInfo
- type V1FinishRoyaltyResponse
- type V1Gender
- type V1HealthCheckResponse
- type V1ListAllCustomersRequestCreated
- type V1ListAllRoyaltiesRequestCreated
- type V1ListAllRoyaltiesResponse
- type V1ListAllSettlementAccountsRequestCreated
- type V1ListAllUsersRequestCreated
- type V1NotifyRoutingResponse
- type V1ProductListResponse
- type V1ProductResponse
- type V1QueryChargeListRequestCreated
- type V1Refund
- type V1RefundExtra
- type V1RefundExtraAlipay
- type V1RefundExtraWechatPay
- type V1RefundListResponse
- type V1RefundResponse
- type V1RefundRoutingResponse
- type V1Royalty
- type V1RoyaltyListResponse
- type V1RoyaltyMethod
- type V1RoyaltyMode
- type V1RoyaltyResponse
- type V1RoyaltyRoutingRequestRoyaltyMethod
- type V1RoyaltyRoutingResponse
- type V1RoyaltySettlement
- type V1RoyaltySettlementListResponse
- type V1RoyaltySettlementResponse
- type V1RoyaltySettlementSource
- type V1RoyaltySettlementSourceType
- type V1RoyaltySettlementTransaction
- type V1RoyaltySettlementTransactionListResponse
- type V1RoyaltySettlementTransactionResponse
- type V1RoyaltyStatus
- type V1SearchCustomersRequestCreated
- type V1SearchRoyaltiesResponse
- type V1SearchUsersRequestCreated
- type V1ServiceError
- type V1SettlementAccount
- type V1SettlementAccountChannel
- type V1SettlementAccountListResponse
- type V1SettlementAccountRecipient
- type V1SettlementAccountResponse
- type V1TransferRoutingResponse
- type V1UnionQrRequest
- type V1UpdateAndPatchRequestBody
- type V1User
- type V1UserListResponse
- type V1UserResponse
- type V1WechatpayCallbackResponse
- type V1WechatpayNotifyResponse
- type V1WechatpayV3PartnerNotifyResponse
- type V1WechatpayV3PartnerQueryRoyaltyResponse
- type V1WechatpayV3PartnerRoyaltyResponse
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func CreateChargeExample ¶
func CreateChargeExample()
func JsonDecode ¶
func JsonEncode ¶
func RandomString ¶
func RsaPrivateKeySign ¶
func RsaPrivateKeySign(data []byte, priv *rsa.PrivateKey) (string, error)
Types ¶
type APIClient ¶
type APIClient struct { DefaultApi *DefaultApiService CheckoutServiceApi *CheckoutServiceApiService CustomerServiceApi *CustomerServiceApiService // contains filtered or unexported fields }
APIClient manages communication with the Justap API API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BusinessUserServiceApiBusinessUserServiceListAllUsersOpts ¶
type BusinessUserServiceApiBusinessUserServiceListAllUsersOpts struct { AppId optional.String Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 Disabled optional.Bool }
type BusinessUserServiceApiBusinessUserServiceUpdateUserOpts ¶
type BusinessUserServiceApiBusinessUserServiceUpdateUserOpts struct { AppId optional.String Address optional.String Currency optional.String Description optional.String Email optional.String Name optional.String Phone optional.String Avatar optional.String Disabled optional.Bool Gender optional.String ParentUserId optional.String }
type BusinessUserServiceApiService ¶
type BusinessUserServiceApiService service
func (*BusinessUserServiceApiService) BusinessUserServiceCreateUser ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceCreateUser(ctx context.Context, body V1CreateUserRequest) (V1UserResponse, *http.Response, error)
BusinessUserServiceApiService 创建 BusinessUser 对象
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1UserResponse
func (*BusinessUserServiceApiService) BusinessUserServiceDeleteUser ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceDeleteUser(ctx context.Context, id string, localVarOptionals *BusinessUserServiceApiBusinessUserServiceDeleteUserOpts) (V1DeleteUserResponse, *http.Response, error)
func (*BusinessUserServiceApiService) BusinessUserServiceListAllUsers ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceListAllUsers(ctx context.Context, localVarOptionals *BusinessUserServiceApiBusinessUserServiceListAllUsersOpts) (V1UserListResponse, *http.Response, error)
func (*BusinessUserServiceApiService) BusinessUserServiceRetrieveUser ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceRetrieveUser(ctx context.Context, id string, localVarOptionals *BusinessUserServiceApiBusinessUserServiceRetrieveUserOpts) (V1UserResponse, *http.Response, error)
func (*BusinessUserServiceApiService) BusinessUserServiceSearchUsers ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceSearchUsers(ctx context.Context, localVarOptionals *BusinessUserServiceApiBusinessUserServiceSearchUsersOpts) (V1UserListResponse, *http.Response, error)
func (*BusinessUserServiceApiService) BusinessUserServiceUpdateUser ¶
func (a *BusinessUserServiceApiService) BusinessUserServiceUpdateUser(ctx context.Context, id string, localVarOptionals *BusinessUserServiceApiBusinessUserServiceUpdateUserOpts) (V1UserResponse, *http.Response, error)
type ChargeRoutingRequestChargeMethod ¶
type ChargeRoutingRequestChargeMethod string
const ( CHARGE_METHOD_UNKNOWN ChargeRoutingRequestChargeMethod = "CHARGE_METHOD_UNKNOWN" CREATE_CHARGE ChargeRoutingRequestChargeMethod = "CREATE_CHARGE" QUERY_CHARGE ChargeRoutingRequestChargeMethod = "QUERY_CHARGE" CLOSE_CHARGE ChargeRoutingRequestChargeMethod = "CLOSE_CHARGE" )
List of ChargeRoutingRequestChargeMethod
type CheckoutServiceApiService ¶
type CheckoutServiceApiService service
func (*CheckoutServiceApiService) CheckoutServiceCreateUnionQrCheckout ¶
func (a *CheckoutServiceApiService) CheckoutServiceCreateUnionQrCheckout(ctx context.Context, body V1UnionQrRequest) (V1UnionQrRequest, *http.Response, error)
CheckoutServiceApiService 通过聚合收款码创建订单
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1UnionQrRequest
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client MerchantRsaPrivateKey *rsa.PrivateKey }
func NewConfiguration ¶
func NewConfiguration(url string) *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) SetMerchantRsaPrivateKeyByContent ¶
func (c *Configuration) SetMerchantRsaPrivateKeyByContent(content []byte) error
func (*Configuration) SetMerchantRsaPrivateKeyByPath ¶
func (c *Configuration) SetMerchantRsaPrivateKeyByPath(path string) error
type CreateRoyaltyRequestRoyaltyFeeMode ¶
type CreateRoyaltyRequestRoyaltyFeeMode string
const ( FREE CreateRoyaltyRequestRoyaltyFeeMode = "free" FIXED CreateRoyaltyRequestRoyaltyFeeMode = "fixed" RATE CreateRoyaltyRequestRoyaltyFeeMode = "rate" )
List of CreateRoyaltyRequestRoyaltyFeeMode
type CreateRoyaltyRequestRoyaltyMode ¶
type CreateRoyaltyRequestRoyaltyMode string
const ( ROYALTY_MODE_UNSET CreateRoyaltyRequestRoyaltyMode = "ROYALTY_MODE_UNSET" FIXED CreateRoyaltyRequestRoyaltyMode = "FIXED" RATE CreateRoyaltyRequestRoyaltyMode = "RATE" )
List of CreateRoyaltyRequestRoyaltyMode
type CreateRoyaltyRequestRoyaltyReceiver ¶
type CreateRoyaltyRequestRoyaltyReceiver struct { // [REQUIRED] 根据 royalty_mode 参数,如果 royalty_mode = fixed, 则此参数传分润金额,单位元,如果 royalty_mode = rate,此参数传百分比小数, 0.1 表示 10% Amount float32 `json:"amount"` // [OPTIONAL] 手续费,单位:元。 如果传递,则每笔分账都会在应分帐金额基础上扣除手续费后再请求支付平台进行分账 Fee float32 `json:"fee"` // [OPTIONAL] 手续费模式,fixed 表示固定金额,rate 表示按比例计算手续费。此参数传手续费比例,0.1 表示 10% FeeModel *RoyaltyReceiverRoyaltyFeeMode `json:"fee_model"` // [OPTIONAL] 手续费比例,与 手续费 字段二选一即可ratio FeeRatio float32 `json:"fee_ratio"` // [OPTIONAL] 根据 royalty_mode 参数,如果 royalty_mode = fixed, 此参数无效,如果 royalty_mode = rate,此参数传分润比例,0.1 表示 10% Ratio float32 `json:"ratio"` // 接受方的商业用户ID RecipientBusinessUserId string `json:"recipient_business_user_id"` // [REQUIRED] 分润模式,free 表示不收取,fixed 表示固定金额,rate 表示按比例分润 RoyaltyMode *CreateRoyaltyRequestRoyaltyMode `json:"royalty_mode"` }
type CustomerServiceApiService ¶
type CustomerServiceApiService service
func (*CustomerServiceApiService) CustomerServiceCreateCustomer ¶
func (a *CustomerServiceApiService) CustomerServiceCreateCustomer(ctx context.Context, body V1CreateCustomerRequest) (V1CustomerResponse, *http.Response, error)
CustomerServiceApiService
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1CustomerResponse
func (*CustomerServiceApiService) CustomerServiceDeleteCustomer ¶
func (a *CustomerServiceApiService) CustomerServiceDeleteCustomer(ctx context.Context, id string, localVarOptionals *CustomerServiceApiCustomerServiceDeleteCustomerOpts) (V1DeleteCustomerResponse, *http.Response, error)
func (*CustomerServiceApiService) CustomerServiceListAllCustomers ¶
func (a *CustomerServiceApiService) CustomerServiceListAllCustomers(ctx context.Context, localVarOptionals *CustomerServiceApiCustomerServiceListAllCustomersOpts) (V1CustomerListResponse, *http.Response, error)
func (*CustomerServiceApiService) CustomerServiceRetrieveCustomer ¶
func (a *CustomerServiceApiService) CustomerServiceRetrieveCustomer(ctx context.Context, id string, localVarOptionals *CustomerServiceApiCustomerServiceRetrieveCustomerOpts) (V1CustomerResponse, *http.Response, error)
func (*CustomerServiceApiService) CustomerServiceSearchCustomers ¶
func (a *CustomerServiceApiService) CustomerServiceSearchCustomers(ctx context.Context, localVarOptionals *CustomerServiceApiCustomerServiceSearchCustomersOpts) (V1CustomerListResponse, *http.Response, error)
func (*CustomerServiceApiService) CustomerServiceUpdateCustomer ¶
func (a *CustomerServiceApiService) CustomerServiceUpdateCustomer(ctx context.Context, id string) (V1CustomerResponse, *http.Response, error)
CustomerServiceApiService
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
@return V1CustomerResponse
type DefaultApiChargeServiceQueryChargeList2Opts ¶
type DefaultApiChargeServiceQueryChargeList2Opts struct { AppId optional.String Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String MerchantTradeId optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 Channel optional.String Paid optional.Bool Refunded optional.Bool Reversed optional.Bool Closed optional.Bool Expired optional.Bool }
type DefaultApiChargeServiceQueryChargeListOpts ¶
type DefaultApiChargeServiceQueryChargeListOpts struct { AppId optional.String Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String MerchantTradeId optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 Channel optional.String Paid optional.Bool Refunded optional.Bool Reversed optional.Bool Closed optional.Bool Expired optional.Bool }
type DefaultApiRoyaltyServiceListAllRoyaltiesOpts ¶
type DefaultApiRoyaltyServiceListAllRoyaltiesOpts struct { Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String MerchantTradeId optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 AppId optional.String SettleAccountId optional.String RoyaltySettlementId optional.String }
type DefaultApiService ¶
type DefaultApiService service
func (*DefaultApiService) BusinessUserServiceCreateUser ¶
func (a *DefaultApiService) BusinessUserServiceCreateUser(ctx context.Context, body V1CreateUserRequest) (V1UserResponse, *http.Response, error)
DefaultApiService 创建 Business User 对象 创建 Business User 对象。商业用户是本系统中的一种账户类型,在交易完成之后可以对该类型的账户进行分账等操作。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1UserResponse
func (*DefaultApiService) BusinessUserServiceDeleteUser ¶
func (a *DefaultApiService) BusinessUserServiceDeleteUser(ctx context.Context, id string, localVarOptionals *DefaultApiBusinessUserServiceDeleteUserOpts) (V1DeleteUserResponse, *http.Response, error)
func (*DefaultApiService) BusinessUserServiceListAllUsers ¶
func (a *DefaultApiService) BusinessUserServiceListAllUsers(ctx context.Context, localVarOptionals *DefaultApiBusinessUserServiceListAllUsersOpts) (V1UserListResponse, *http.Response, error)
func (*DefaultApiService) BusinessUserServiceRetrieveUser ¶
func (a *DefaultApiService) BusinessUserServiceRetrieveUser(ctx context.Context, id string, localVarOptionals *DefaultApiBusinessUserServiceRetrieveUserOpts) (V1UserResponse, *http.Response, error)
func (*DefaultApiService) BusinessUserServiceSearchUsers ¶
func (a *DefaultApiService) BusinessUserServiceSearchUsers(ctx context.Context, localVarOptionals *DefaultApiBusinessUserServiceSearchUsersOpts) (V1UserListResponse, *http.Response, error)
func (*DefaultApiService) BusinessUserServiceUpdateUser ¶
func (a *DefaultApiService) BusinessUserServiceUpdateUser(ctx context.Context, userId string, body V1BusinessUser, localVarOptionals *DefaultApiBusinessUserServiceUpdateUserOpts) (V1UserResponse, *http.Response, error)
func (*DefaultApiService) BusinessUserServiceUpdateUser2 ¶
func (a *DefaultApiService) BusinessUserServiceUpdateUser2(ctx context.Context, userId string, body V1BusinessUser, localVarOptionals *DefaultApiBusinessUserServiceUpdateUser2Opts) (V1UserResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceCharges ¶
func (a *DefaultApiService) ChargeServiceCharges(ctx context.Context, body V1CreateChargeRequest) (V1ChargeResponse, *http.Response, error)
DefaultApiService 创建 Charge 对象 发起一次支付请求时需要创建一个新的 charge 对象,获取一个可用的支付凭据用于客户端向第三方渠道发起支付请求。如果使用测试模式的 API Key,则不会发生真实交易。当支付成功后,会发送 Webhooks 通知。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1ChargeResponse
func (*DefaultApiService) ChargeServiceCharges2 ¶
func (a *DefaultApiService) ChargeServiceCharges2(ctx context.Context, body V1CreateChargeRequest) (V1ChargeResponse, *http.Response, error)
DefaultApiService 创建 Charge 对象 发起一次支付请求时需要创建一个新的 charge 对象,获取一个可用的支付凭据用于客户端向第三方渠道发起支付请求。如果使用测试模式的 API Key,则不会发生真实交易。当支付成功后,会发送 Webhooks 通知。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1ChargeResponse
func (*DefaultApiService) ChargeServiceQueryCharge ¶
func (a *DefaultApiService) ChargeServiceQueryCharge(ctx context.Context, chargeId string, localVarOptionals *DefaultApiChargeServiceQueryChargeOpts) (V1ChargeResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceQueryCharge2 ¶
func (a *DefaultApiService) ChargeServiceQueryCharge2(ctx context.Context, chargeId string, localVarOptionals *DefaultApiChargeServiceQueryCharge2Opts) (V1ChargeResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceQueryCharge3 ¶
func (a *DefaultApiService) ChargeServiceQueryCharge3(ctx context.Context, merchantTradeId string, localVarOptionals *DefaultApiChargeServiceQueryCharge3Opts) (V1ChargeResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceQueryChargeList ¶
func (a *DefaultApiService) ChargeServiceQueryChargeList(ctx context.Context, localVarOptionals *DefaultApiChargeServiceQueryChargeListOpts) (V1ChargeListResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceQueryChargeList2 ¶
func (a *DefaultApiService) ChargeServiceQueryChargeList2(ctx context.Context, localVarOptionals *DefaultApiChargeServiceQueryChargeList2Opts) (V1ChargeListResponse, *http.Response, error)
func (*DefaultApiService) ChargeServiceReverseCharge ¶
func (a *DefaultApiService) ChargeServiceReverseCharge(ctx context.Context, chargeId string) (V1ChargeResponse, *http.Response, error)
DefaultApiService 撤销 Charge 对象 针对已经创建的 Charge,你可以调用撤销接口进行交易的关闭。接口支持对于未成功付款的订单进行撤销,则关闭交易。调用此接口后用户后期不能支付成功。 注:撤销订单在不同收单机构会有不同的行为。对于成功付款的订单请使用 退款 接口进行退款处理。只有针对未支付的订单,我们建议你调用撤销接口。 - 微信支付:如果此订单用户支付失败,微信支付系统会将此订单关闭;如果用户支付成功,微信支付系统会将此订单资金退还给用户。(7天以内的交易单可调用撤销) - 支付宝:如果此订单用户支付失败,支付宝系统会将此订单关闭;如果用户支付成功,支付宝系统会将此订单资金退还给用户。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chargeId Charge 对象 id
@return V1ChargeResponse
func (*DefaultApiService) ChargeServiceReverseCharge2 ¶
func (a *DefaultApiService) ChargeServiceReverseCharge2(ctx context.Context, chargeId string) (V1ChargeResponse, *http.Response, error)
DefaultApiService 撤销 Charge 对象 针对已经创建的 Charge,你可以调用撤销接口进行交易的关闭。接口支持对于未成功付款的订单进行撤销,则关闭交易。调用此接口后用户后期不能支付成功。 注:撤销订单在不同收单机构会有不同的行为。对于成功付款的订单请使用 退款 接口进行退款处理。只有针对未支付的订单,我们建议你调用撤销接口。 - 微信支付:如果此订单用户支付失败,微信支付系统会将此订单关闭;如果用户支付成功,微信支付系统会将此订单资金退还给用户。(7天以内的交易单可调用撤销) - 支付宝:如果此订单用户支付失败,支付宝系统会将此订单关闭;如果用户支付成功,支付宝系统会将此订单资金退还给用户。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chargeId Charge 对象 id
@return V1ChargeResponse
func (*DefaultApiService) RefundServiceQueryRefund ¶
func (a *DefaultApiService) RefundServiceQueryRefund(ctx context.Context, chargeId string, refundId string, localVarOptionals *DefaultApiRefundServiceQueryRefundOpts) (V1RefundResponse, *http.Response, error)
func (*DefaultApiService) RefundServiceQueryRefund2 ¶
func (a *DefaultApiService) RefundServiceQueryRefund2(ctx context.Context, refundId string, localVarOptionals *DefaultApiRefundServiceQueryRefund2Opts) (V1RefundResponse, *http.Response, error)
func (*DefaultApiService) RefundServiceQueryRefundList ¶
func (a *DefaultApiService) RefundServiceQueryRefundList(ctx context.Context, chargeId string, localVarOptionals *DefaultApiRefundServiceQueryRefundListOpts) (V1RefundListResponse, *http.Response, error)
func (*DefaultApiService) RefundServiceQueryRefundList2 ¶
func (a *DefaultApiService) RefundServiceQueryRefundList2(ctx context.Context, localVarOptionals *DefaultApiRefundServiceQueryRefundList2Opts) (V1RefundListResponse, *http.Response, error)
func (*DefaultApiService) RefundServiceRefunds ¶
func (a *DefaultApiService) RefundServiceRefunds(ctx context.Context, body V1CreateRefundRequest) (V1RefundResponse, *http.Response, error)
DefaultApiService 创建 Refund 对象 通过发起一次退款请求创建一个新的 refund 对象,只能对已经发生交易并且没有全额退款的 charge 对象发起退款。当进行全额退款之前,可以进行多次退款,直至全额退款。当一次退款成功后,会发送 Webhooks 通知。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1RefundResponse
func (*DefaultApiService) RefundServiceRefunds2 ¶
func (a *DefaultApiService) RefundServiceRefunds2(ctx context.Context, body V1CreateRefundRequest) (V1RefundResponse, *http.Response, error)
DefaultApiService 创建 Refund 对象 通过发起一次退款请求创建一个新的 refund 对象,只能对已经发生交易并且没有全额退款的 charge 对象发起退款。当进行全额退款之前,可以进行多次退款,直至全额退款。当一次退款成功后,会发送 Webhooks 通知。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1RefundResponse
func (*DefaultApiService) RoyaltyServiceCreateRoyalty ¶
func (a *DefaultApiService) RoyaltyServiceCreateRoyalty(ctx context.Context, body V1CreateRoyaltyRequest) (V1RoyaltyResponse, *http.Response, error)
DefaultApiService 创建 Royalty 对象 对一个 Charge 对象进行分账,分账的金额和分账接收方由 Royalty 对象指定。Royalty 创建仅代表本系统成功接收分账申请,尚未提交到支付机构清分,更不代表分账立即成功,相关结果信息请调用查询接口确认
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1RoyaltyResponse
func (*DefaultApiService) RoyaltyServiceListAllRoyalties ¶
func (a *DefaultApiService) RoyaltyServiceListAllRoyalties(ctx context.Context, localVarOptionals *DefaultApiRoyaltyServiceListAllRoyaltiesOpts) (V1ListAllRoyaltiesResponse, *http.Response, error)
func (*DefaultApiService) RoyaltyServiceRetrieveRoyalty ¶
func (a *DefaultApiService) RoyaltyServiceRetrieveRoyalty(ctx context.Context, id string) (V1RoyaltyResponse, *http.Response, error)
DefaultApiService 查询 Royalty 对象 查询 Royalty 对象的信息
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id
@return V1RoyaltyResponse
func (*DefaultApiService) SettlementServiceCreateSettlementAccount ¶
func (a *DefaultApiService) SettlementServiceCreateSettlementAccount(ctx context.Context, body V1CreateSettlementAccountRequest) (V1SettlementAccountResponse, *http.Response, error)
DefaultApiService 创建结算账户 为用户创建一个结算账户。添加结算账户信息后方可对该用进行分账、余额充值、转账等操作。
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1SettlementAccountResponse
func (*DefaultApiService) SettlementServiceDeleteSettlementAccount ¶
func (a *DefaultApiService) SettlementServiceDeleteSettlementAccount(ctx context.Context, id string, localVarOptionals *DefaultApiSettlementServiceDeleteSettlementAccountOpts) (V1DeleteSettlementAccountResponse, *http.Response, error)
func (*DefaultApiService) SettlementServiceListAllSettlementAccounts ¶
func (a *DefaultApiService) SettlementServiceListAllSettlementAccounts(ctx context.Context, localVarOptionals *DefaultApiSettlementServiceListAllSettlementAccountsOpts) (V1SettlementAccountListResponse, *http.Response, error)
func (*DefaultApiService) SettlementServiceRetrieveSettlementAccount ¶
func (a *DefaultApiService) SettlementServiceRetrieveSettlementAccount(ctx context.Context, id string, localVarOptionals *DefaultApiSettlementServiceRetrieveSettlementAccountOpts) (V1SettlementAccountResponse, *http.Response, error)
func (*DefaultApiService) SettlementServiceSearchSettlementAccounts ¶
func (a *DefaultApiService) SettlementServiceSearchSettlementAccounts(ctx context.Context, localVarOptionals *DefaultApiSettlementServiceSearchSettlementAccountsOpts) (V1SettlementAccountListResponse, *http.Response, error)
func (*DefaultApiService) SettlementServiceUpdateSettlementAccount ¶
func (a *DefaultApiService) SettlementServiceUpdateSettlementAccount(ctx context.Context, settlementAccountId string, body V1UpdateAndPatchRequestBody, localVarOptionals *DefaultApiSettlementServiceUpdateSettlementAccountOpts) (V1SettlementAccountResponse, *http.Response, error)
func (*DefaultApiService) SettlementServiceUpdateSettlementAccount2 ¶
func (a *DefaultApiService) SettlementServiceUpdateSettlementAccount2(ctx context.Context, settlementAccountId string, body V1UpdateAndPatchRequestBody, localVarOptionals *DefaultApiSettlementServiceUpdateSettlementAccount2Opts) (V1SettlementAccountResponse, *http.Response, error)
type DefaultApiSettlementServiceListAllSettlementAccountsOpts ¶
type DefaultApiSettlementServiceListAllSettlementAccountsOpts struct { AppId optional.String Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 Disabled optional.Bool CustomerId optional.String BusinessUserId optional.String }
type DefaultApiSettlementServiceRetrieveSettlementAccountOpts ¶
type DefaultApiSettlementServiceRetrieveSettlementAccountOpts struct { AppId optional.String Object optional.String DataId optional.String DataAppId optional.String DataBusinessUserId optional.String DataCustomerId optional.String DataChannel optional.String DataRecipientWechatpayAccount optional.String DataRecipientWechatpayName optional.String DataRecipientWechatpayForceCheck optional.Bool DataRecipientWechatpayType optional.String DataRecipientWechatpayAccountType optional.String DataRecipientWechatpayAppId optional.String DataRecipientWechatpaySubAppId optional.String DataRecipientPaymentAlipayAccount optional.String DataRecipientPaymentAlipayName optional.String DataRecipientPaymentAlipayType optional.String DataRecipientPaymentAlipayAccountType optional.String DataRecipientBankAccount optional.String DataRecipientBankName optional.String DataRecipientBankType optional.String DataRecipientBankBankName optional.String DataRecipientBankBankBranch optional.String DataRecipientBankBankProvince optional.String DataRecipientBankBankCity optional.String DataRecipientYsepayMerchantDivisionMerUsercode optional.String DataCreated optional.Int64 DataUpdated optional.Int64 DataObject optional.String }
type ExtraAlipayAgreementSignParamsAccessParams ¶
type ExtraAlipayAgreementSignParamsAccessParams struct { // 目前支持以下值:1. ALIPAYAPP (钱包h5页面签约)2. QRCODE(扫码签约)3. QRCODEORSMS(扫码签约或者短信签约) Channel string `json:"channel"` }
type ExtraAlipayAgreementSignParamsPeriodRuleParams ¶
type ExtraAlipayAgreementSignParamsPeriodRuleParams struct { // 扣款执行时间execute_time是周期扣款产品必填,枚举值为TIMING和FIXED ExecuteTime string `json:"execute_time"` // 周期数period是周期扣款产品必填。与另一参数period_type组合使用确定扣款周期,例如period_type为DAY,period=90,则扣款周期为90天 Period string `json:"period"` // 周期类型period_type是周期扣款产品必填,枚举值为DAY和MONTH PeriodType string `json:"period_type"` // 单笔扣款金额single_amount是周期扣款产品必填,单位为元 SingleAmount string `json:"single_amount"` // 扣款总金额total_amount是周期扣款产品必填,单位为元 TotalAmount string `json:"total_amount"` // 扣款总笔数total_payments是周期扣款产品必填,单位为笔 TotalPayments string `json:"total_payments"` }
type ExtraAlipayAgreementSignParamsSubMerchant ¶
type ExtraAlipayAgreementSignParamsSubMerchant struct { // 子商户id SubMerchantId string `json:"sub_merchant_id"` // 子商户名称 SubMerchantName string `json:"sub_merchant_name"` // 子商户服务描述 SubMerchantServiceDescription string `json:"sub_merchant_service_description"` // 子商户服务名称 SubMerchantServiceName string `json:"sub_merchant_service_name"` }
type ExtraAlipayJsapiPayer ¶
type ExtraAlipayJsapiPayer struct { // 支付宝用户ID UserId string `json:"user_id"` }
type ExtraAlipayRoyaltyInfoRoyaltyDetailInfos ¶
type ExtraAlipayRoyaltyInfoRoyaltyDetailInfos struct { // 分账的金额,单位为元 Amount string `json:"amount"` // 分账的比例,值为20~100之间的整数,如:20,表示分账金额按20%来打分账 AmountPercentage string `json:"amount_percentage"` // 分账批次号,格式为:当天日期[yyyyMMdd] + 四位流水号,如:20120220-00001 BatchNo string `json:"batch_no"` // 分账描述信息 Desc string `json:"desc"` // 商户分账的外部关联号,用于关联到每一笔分账信息,商户可自定义,如一笔分账多笔,则需要为每一笔分账都保持唯一,如果为空,则有利于商户排查问题 OutRelationId string `json:"out_relation_id"` // 分账序列号,表示分账执行的顺序,必须为正整数 SerialNo string `json:"serial_no"` // 如果转入账号类型为userId,本参数为接受分账金额的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。 如果转入账号类型为bankIndex,本参数为28位的银行编号(商户和支付宝签约时确定)。如果转入账号类型为storeId,本参数为商户的门店ID。 TransIn string `json:"trans_in"` // 接受分账金额的账户类型: userId:支付宝账号对应的支付宝唯一用户号。 bankIndex:分账到银行账户的银行编号。目前暂时只支持分账到一个银行编号。storeId:分账到门店对应的银行卡编号。默认值为userId。 TransInType string `json:"trans_in_type"` // 如果转出账号类型为userId,本参数为要分账的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。 TransOut string `json:"trans_out"` // 要分账的账户类型。目前只支持userId:支付宝账号对应的支付宝唯一用户号。默认值为userId。 TransOutType string `json:"trans_out_type"` }
type ExtraAlipaySettleInfoSettleDetailInfos ¶
type ExtraAlipaySettleInfoSettleDetailInfos struct { Amount string `json:"amount,omitempty"` SettleEntityId string `json:"settle_entity_id,omitempty"` SettleEntityType string `json:"settle_entity_type,omitempty"` SummaryDimension string `json:"summary_dimension,omitempty"` TransIn string `json:"trans_in,omitempty"` TransInType string `json:"trans_in_type,omitempty"` }
type ExtraWechatpayDetailGoodsDetail ¶
type ExtraWechatpayDetailGoodsDetail struct { WechatpayGoodsId string `json:"Wechatpay_goods_id,omitempty"` GoodsName string `json:"goods_name,omitempty"` MerchantGoodsId string `json:"merchant_goods_id,omitempty"` Quantity string `json:"quantity,omitempty"` UnitPrice string `json:"unit_price,omitempty"` }
type GenericSwaggerError ¶
type GenericSwaggerError struct {
// contains filtered or unexported fields
}
GenericSwaggerError Provides access to the body, error and model on returned errors.
func (GenericSwaggerError) Body ¶
func (e GenericSwaggerError) Body() []byte
Body returns the raw bytes of the response
func (GenericSwaggerError) Error ¶
func (e GenericSwaggerError) Error() string
Error returns non-empty string if there was an error.
func (GenericSwaggerError) Model ¶
func (e GenericSwaggerError) Model() interface{}
Model returns the unpacked model of the error
type GooglerpcStatus ¶
type GooglerpcStatus struct { Code int32 `json:"code,omitempty"` Details []ProtobufAny `json:"details,omitempty"` Message string `json:"message,omitempty"` }
type HealthCheckResponseServingStatus ¶
type HealthCheckResponseServingStatus string
const ( UNKNOWN HealthCheckResponseServingStatus = "UNKNOWN" SERVING HealthCheckResponseServingStatus = "SERVING" NOT_SERVING HealthCheckResponseServingStatus = "NOT_SERVING" SERVICE_UNKNOWN HealthCheckResponseServingStatus = "SERVICE_UNKNOWN" )
List of HealthCheckResponseServingStatus
type ProtobufAny ¶
type ProtobufAny struct { // A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. Type_ string `json:"@type,omitempty"` }
`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) if err != nil { ... } ... foo := &pb.Foo{} if err := any.UnmarshalTo(foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": <string>, \"lastName\": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" }
type RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo ¶
type RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo struct { // 分账的金额,单位为元 Amount float32 `json:"amount"` // 买家支付宝账号 BuyerLogonId string `json:"buyer_logon_id"` // 买家在支付宝的用户id BuyerUserId string `json:"buyer_user_id"` // 分账描述 Desc string `json:"desc"` // 分账变更消息 FundChange string `json:"fund_change"` // 退款使用的资金渠道 RefundDetailItemList []OpenApiRoyaltyDetailInfoPojoTradeFundBillItem `json:"refund_detail_item_list,omitempty"` // 总退款金额 RefundFee float32 `json:"refund_fee"` // 可选值:达人佣金、平台服务费、技术服务费、其他 RoyaltyScene string `json:"royalty_scene"` // 分账类型 RoyaltyType string `json:"royalty_type"` // 买家实际退款金额 SendBackFee string `json:"send_back_fee"` // 交易场景 StoreName string `json:"store_name"` // 收入方账户 TransIn string `json:"trans_in"` // 分账收款方姓名 TransInName string `json:"trans_in_name"` // 收入方账户类型 TransInType string `json:"trans_in_type"` // 支出方账户 TransOut string `json:"trans_out"` // 支出方账户类型 TransOutType string `json:"trans_out_type"` }
type RefundExtraWechatPayAccount ¶
type RefundExtraWechatPayAccount struct { // 退款出资账户及金额 From []RefundExtraWechatPayAccount `json:"from,omitempty"` }
type RefundExtraWechatPayGoodsDetailItem ¶
type RefundExtraWechatPayGoodsDetailItem struct { // 商品名称, 商品的实际名称 GoodsName string `json:"goods_name"` // 商户侧商品编码, 由半角的大小写字母、数字、中划线、下划线中的一种或几种组成 MerchantGoodsId string `json:"merchant_goods_id"` // 商品退款金额,单位为分 RefundAmount int64 `json:"refund_amount"` // 单品的退款数量 RefundQuantity int64 `json:"refund_quantity"` // 商品单价金额,单位为分 UnitPrice int64 `json:"unit_price"` // 微信支付商品编码, 微信支付定义的统一商品编号(没有可不传) WechatpayGoodsId string `json:"wechatpay_goods_id"` }
type RefundRoutingRequestRefundMethod ¶
type RefundRoutingRequestRefundMethod string
const ( REFUND_METHOD_UNKNOWN RefundRoutingRequestRefundMethod = "REFUND_METHOD_UNKNOWN" CREATE_REFUND RefundRoutingRequestRefundMethod = "CREATE_REFUND" QUERY_REFUND RefundRoutingRequestRefundMethod = "QUERY_REFUND" )
List of RefundRoutingRequestRefundMethod
type RoyaltyReceiverRoyaltyFeeMode ¶
type RoyaltyReceiverRoyaltyFeeMode string
const ( FREE RoyaltyReceiverRoyaltyFeeMode = "FREE" FIXED RoyaltyReceiverRoyaltyFeeMode = "FIXED" RATE RoyaltyReceiverRoyaltyFeeMode = "RATE" )
List of RoyaltyReceiverRoyaltyFeeMode
type RoyaltyServiceApiService ¶
type RoyaltyServiceApiService service
func (*RoyaltyServiceApiService) RoyaltyServiceCreateRoyalty ¶
func (a *RoyaltyServiceApiService) RoyaltyServiceCreateRoyalty(ctx context.Context, body V1CreateRoyaltyRequest) (V1RoyaltyResponse, *http.Response, error)
RoyaltyServiceApiService 创建 Royalty 对象
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
@return V1RoyaltyResponse
type RoyaltySettlementRoyaltySettlementStatus ¶
type RoyaltySettlementRoyaltySettlementStatus string
const ( ROYALTY_SETTLEMENT_STATUS_UNSET RoyaltySettlementRoyaltySettlementStatus = "RoyaltySettlementStatusUnset" CREATED RoyaltySettlementRoyaltySettlementStatus = "CREATED" PENDING RoyaltySettlementRoyaltySettlementStatus = "PENDING" COMPLETED RoyaltySettlementRoyaltySettlementStatus = "COMPLETED" )
List of RoyaltySettlementRoyaltySettlementStatus
type RoyaltySettlementTransactionRoyaltyTransactionStatus ¶
type RoyaltySettlementTransactionRoyaltyTransactionStatus string
const ( UNKNOWN RoyaltySettlementTransactionRoyaltyTransactionStatus = "UNKNOWN" SUCCESS RoyaltySettlementTransactionRoyaltyTransactionStatus = "SUCCESS" PENDING RoyaltySettlementTransactionRoyaltyTransactionStatus = "PENDING" FAILED RoyaltySettlementTransactionRoyaltyTransactionStatus = "FAILED" CLOSED RoyaltySettlementTransactionRoyaltyTransactionStatus = "CLOSED" )
List of RoyaltySettlementTransactionRoyaltyTransactionStatus
type RpcStatus ¶
type RpcStatus struct { Code int32 `json:"code,omitempty"` Details []ProtobufAny `json:"details,omitempty"` Message string `json:"message,omitempty"` }
type SettlementAccountRecipientAccountType ¶
type SettlementAccountRecipientAccountType string
const ( ACCOUNT_TYPE_UNSET SettlementAccountRecipientAccountType = "ACCOUNT_TYPE_UNSET" MERCHANT_ID SettlementAccountRecipientAccountType = "MERCHANT_ID" OPENID SettlementAccountRecipientAccountType = "OPENID" SUB_OPENID SettlementAccountRecipientAccountType = "SUB_OPENID" LOGIN_NAME SettlementAccountRecipientAccountType = "LOGIN_NAME" USER_ID SettlementAccountRecipientAccountType = "USER_ID" )
List of SettlementAccountRecipientAccountType
type SettlementAccountRecipientAlipayChannelRecipient ¶
type SettlementAccountRecipientAlipayChannelRecipient struct { // 支付宝账号,账号ID或者登录邮箱 Account string `json:"account"` // 支付宝账号类型 AccountType *SettlementAccountRecipientAccountType `json:"account_type"` // 支付宝账号真实姓名 Name string `json:"name"` // 支付宝账号类型 Type_ *SettlementAccountRecipientRecipientType `json:"type"` }
type SettlementAccountRecipientBalanceChannelRecipient ¶
type SettlementAccountRecipientBalanceChannelRecipient struct { }
type SettlementAccountRecipientBankChannelRecipient ¶
type SettlementAccountRecipientBankChannelRecipient struct { // 银行卡号 Account string `json:"account"` // 银行卡开户支行 BankBranch string `json:"bank_branch"` // 银行卡开户城市 BankCity string `json:"bank_city"` // 银行卡开户行编码 BankName string `json:"bank_name"` // 银行卡开户省份 BankProvince string `json:"bank_province"` // 银行卡开户名 Name string `json:"name"` // 银行卡类型 Type_ string `json:"type"` }
type SettlementAccountRecipientRecipientType ¶
type SettlementAccountRecipientRecipientType string
const ( TYPE_UNSET SettlementAccountRecipientRecipientType = "TYPE_UNSET" B2_C SettlementAccountRecipientRecipientType = "B2C" B2_B SettlementAccountRecipientRecipientType = "B2B" )
List of SettlementAccountRecipientRecipientType
type SettlementAccountRecipientWechatpayChannelRecipient ¶
type SettlementAccountRecipientWechatpayChannelRecipient struct { // 微信支付分账接收方账户,OPENID或者商户号 Account string `json:"account"` // 微信支付分账接收方账户类型 AccountType *SettlementAccountRecipientAccountType `json:"account_type"` // 微信支付分账接收方 openid 所对应的服务商公众号 ID AppId string `json:"app_id"` // 是否强制校验收款人姓名 ForceCheck bool `json:"force_check"` // 微信支付分账接收方姓名或名称 Name string `json:"name"` // 微信支付分账接收方 openid 所对应的商户公众号 ID SubAppId string `json:"sub_app_id"` // 微信支付分账接收方类型 Type_ *SettlementAccountRecipientRecipientType `json:"type"` }
type SettlementAccountRecipientYsepayMerchantRecipient ¶
type SettlementAccountRecipientYsepayMerchantRecipient struct { // 银盛商户号 DivisionMerUsercode string `json:"division_mer_usercode"` }
type SettlementServiceApiService ¶
type SettlementServiceApiService service
func (*SettlementServiceApiService) SettlementServiceCreateSettlementAccount ¶
func (a *SettlementServiceApiService) SettlementServiceCreateSettlementAccount(ctx context.Context, localVarOptionals *SettlementServiceApiSettlementServiceCreateSettlementAccountOpts) (V1SettlementAccountResponse, *http.Response, error)
func (*SettlementServiceApiService) SettlementServiceDeleteSettlementAccount ¶
func (a *SettlementServiceApiService) SettlementServiceDeleteSettlementAccount(ctx context.Context, id string, localVarOptionals *SettlementServiceApiSettlementServiceDeleteSettlementAccountOpts) (V1DeleteSettlementAccountResponse, *http.Response, error)
func (*SettlementServiceApiService) SettlementServiceListAllSettlementAccounts ¶
func (a *SettlementServiceApiService) SettlementServiceListAllSettlementAccounts(ctx context.Context, localVarOptionals *SettlementServiceApiSettlementServiceListAllSettlementAccountsOpts) (V1SettlementAccountListResponse, *http.Response, error)
func (*SettlementServiceApiService) SettlementServiceRetrieveSettlementAccount ¶
func (a *SettlementServiceApiService) SettlementServiceRetrieveSettlementAccount(ctx context.Context, id string, localVarOptionals *SettlementServiceApiSettlementServiceRetrieveSettlementAccountOpts) (V1SettlementAccountResponse, *http.Response, error)
func (*SettlementServiceApiService) SettlementServiceSearchSettlementAccounts ¶
func (a *SettlementServiceApiService) SettlementServiceSearchSettlementAccounts(ctx context.Context, localVarOptionals *SettlementServiceApiSettlementServiceSearchSettlementAccountsOpts) (V1SettlementAccountListResponse, *http.Response, error)
func (*SettlementServiceApiService) SettlementServiceUpdateSettlementAccount ¶
func (a *SettlementServiceApiService) SettlementServiceUpdateSettlementAccount(ctx context.Context, id string, localVarOptionals *SettlementServiceApiSettlementServiceUpdateSettlementAccountOpts) (V1SettlementAccountResponse, *http.Response, error)
type SettlementServiceApiSettlementServiceCreateSettlementAccountOpts ¶
type SettlementServiceApiSettlementServiceCreateSettlementAccountOpts struct { AppId optional.String UserId optional.String CustomerId optional.String Channel optional.String RecipientWechatpayChannelRecipientAccount optional.String RecipientWechatpayChannelRecipientName optional.String RecipientWechatpayChannelRecipientForceCheck optional.Bool RecipientWechatpayChannelRecipientType optional.String RecipientWechatpayChannelRecipientAccountType optional.String RecipientWechatpayChannelRecipientAppId optional.String RecipientAlipayChannelRecipientAccount optional.String RecipientAlipayChannelRecipientName optional.String RecipientAlipayChannelRecipientType optional.String RecipientAlipayChannelRecipientAccountType optional.String RecipientBankChannelRecipientAccount optional.String RecipientBankChannelRecipientName optional.String RecipientBankChannelRecipientType optional.String RecipientBankChannelRecipientBankName optional.String RecipientBankChannelRecipientBankBranch optional.String RecipientBankChannelRecipientBankProvince optional.String RecipientBankChannelRecipientBankCity optional.String }
type SettlementServiceApiSettlementServiceListAllSettlementAccountsOpts ¶
type SettlementServiceApiSettlementServiceListAllSettlementAccountsOpts struct { AppId optional.String Limit optional.Int32 StartingAfter optional.String EndingBefore optional.String CreatedLt optional.Int64 CreatedLte optional.Int64 CreatedGt optional.Int64 CreatedGte optional.Int64 Disabled optional.Bool CustomerId optional.String UserId optional.String }
type SettlementServiceApiSettlementServiceRetrieveSettlementAccountOpts ¶
type SettlementServiceApiSettlementServiceRetrieveSettlementAccountOpts struct { AppId optional.String Object optional.String DataId optional.String DataAppId optional.String DataUserId optional.String DataChannel optional.String DataRecipientWechatpayChannelRecipientAccount optional.String DataRecipientWechatpayChannelRecipientName optional.String DataRecipientWechatpayChannelRecipientForceCheck optional.Bool DataRecipientWechatpayChannelRecipientType optional.String DataRecipientWechatpayChannelRecipientAccountType optional.String DataRecipientWechatpayChannelRecipientAppId optional.String DataRecipientAlipayChannelRecipientAccount optional.String DataRecipientAlipayChannelRecipientName optional.String DataRecipientAlipayChannelRecipientType optional.String DataRecipientAlipayChannelRecipientAccountType optional.String DataRecipientBankChannelRecipientAccount optional.String DataRecipientBankChannelRecipientName optional.String DataRecipientBankChannelRecipientType optional.String DataRecipientBankChannelRecipientBankName optional.String DataRecipientBankChannelRecipientBankBranch optional.String DataRecipientBankChannelRecipientBankProvince optional.String DataRecipientBankChannelRecipientBankCity optional.String DataCreated optional.Int64 DataUpdated optional.Int64 DataObject optional.String }
type SettlementServiceApiSettlementServiceUpdateSettlementAccountOpts ¶
type SettlementServiceApiSettlementServiceUpdateSettlementAccountOpts struct { CustomerId optional.String UserId optional.String Channel optional.String RecipientWechatpayChannelRecipientAccount optional.String RecipientWechatpayChannelRecipientName optional.String RecipientWechatpayChannelRecipientForceCheck optional.Bool RecipientWechatpayChannelRecipientType optional.String RecipientWechatpayChannelRecipientAccountType optional.String RecipientWechatpayChannelRecipientAppId optional.String RecipientAlipayChannelRecipientAccount optional.String RecipientAlipayChannelRecipientName optional.String RecipientAlipayChannelRecipientType optional.String RecipientAlipayChannelRecipientAccountType optional.String RecipientBankChannelRecipientAccount optional.String RecipientBankChannelRecipientName optional.String RecipientBankChannelRecipientType optional.String RecipientBankChannelRecipientBankName optional.String RecipientBankChannelRecipientBankBranch optional.String RecipientBankChannelRecipientBankProvince optional.String RecipientBankChannelRecipientBankCity optional.String }
type Tradev1Channel ¶
type Tradev1Channel string
Tradev1Channel : - BALANCE: 余额支付 - AlipayQR: 支付宝扫码支付 - AlipayScan: 支付宝条码支付 - AlipayApp: 支付宝 App 支付 - AlipayWap: 支付宝手机网站支付 - AlipayPage: 支付宝电脑网站支付 - AlipayFace: 支付宝刷脸支付 - AlipayLite: 支付宝小程序支付 - AlipayJSAPI: 支付宝 JSAPI 支付 - WechatpayApp: 微信 App 支付 - WechatpayJSAPI: 微信 JSAPI 支付 - WechatpayH5: 微信 H5 支付 - WechatpayNative: 微信 Native 支付 - WechatpayLite: 微信小程序支付 - WechatpayFace: 刷脸支付 - WechatpayScan: 微信付款码支付 - UnionPayQr: 银联二维码支付(云闪付扫码)
const ( CHANNEL_INVALID_UNSPECIFIED Tradev1Channel = "CHANNEL_INVALID_UNSPECIFIED" BALANCE Tradev1Channel = "BALANCE" ALIPAY_QR Tradev1Channel = "AlipayQR" ALIPAY_SCAN Tradev1Channel = "AlipayScan" ALIPAY_APP Tradev1Channel = "AlipayApp" ALIPAY_WAP Tradev1Channel = "AlipayWap" ALIPAY_PAGE Tradev1Channel = "AlipayPage" ALIPAY_FACE Tradev1Channel = "AlipayFace" ALIPAY_LITE Tradev1Channel = "AlipayLite" ALIPAY_JSAPI Tradev1Channel = "AlipayJSAPI" WECHATPAY_APP Tradev1Channel = "WechatpayApp" WECHATPAY_JSAPI Tradev1Channel = "WechatpayJSAPI" WECHATPAY_H5 Tradev1Channel = "WechatpayH5" WECHATPAY_NATIVE Tradev1Channel = "WechatpayNative" WECHATPAY_LITE Tradev1Channel = "WechatpayLite" WECHATPAY_FACE Tradev1Channel = "WechatpayFace" WECHATPAY_SCAN Tradev1Channel = "WechatpayScan" UNION_PAY_QR Tradev1Channel = "UnionPayQr" )
List of tradev1Channel
type Tradev1RoyaltyMethod ¶
type Tradev1RoyaltyMethod string
const ( ROYALTY_METHOD_UNSET Tradev1RoyaltyMethod = "RoyaltyMethodUnset" BALANCE Tradev1RoyaltyMethod = "Balance" ALIPAY Tradev1RoyaltyMethod = "Alipay" WECHATPAY Tradev1RoyaltyMethod = "Wechatpay" YSEPAY_MERCHANT Tradev1RoyaltyMethod = "YsepayMerchant" )
List of tradev1RoyaltyMethod
type V1AcquirerCloseTransactionResponse ¶
type V1AcquirerCloseTransactionResponse struct { }
type V1AcquirerCreateRefundResponse ¶
type V1AcquirerCreateRefundResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` Error_ *V1ServiceError `json:"error,omitempty"` // 退款单号 RefundId int64 `json:"refund_id"` }
type V1AcquirerCreateRoyaltyResponse ¶
type V1AcquirerCreateRoyaltyResponse struct { Error_ *V1ServiceError `json:"error,omitempty"` // 分账单号 RoyaltyId int64 `json:"royalty_id"` }
type V1AcquirerCreateTransactionResponse ¶
type V1AcquirerCreateTransactionResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` Error_ *V1ServiceError `json:"error,omitempty"` // 支付单 ID TransactionId int64 `json:"transaction_id"` }
type V1AcquirerPaymentNotifyResponse ¶
type V1AcquirerPaymentNotifyResponse struct { }
type V1AcquirerQueryRefundResponse ¶
type V1AcquirerQueryRefundResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` Error_ *V1ServiceError `json:"error,omitempty"` // 退款单号 RefundId int64 `json:"refund_id"` }
type V1AcquirerQueryRoyaltyResponse ¶
type V1AcquirerQueryRoyaltyResponse struct {
Error_ *V1ServiceError `json:"error,omitempty"`
}
type V1AcquirerQueryTransactionResponse ¶
type V1AcquirerQueryTransactionResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` Error_ *V1ServiceError `json:"error,omitempty"` }
type V1AcquirerRefundNotifyResponse ¶
type V1AcquirerRefundNotifyResponse struct { }
type V1AcquirerRoyaltyNotifyResponse ¶
type V1AcquirerRoyaltyNotifyResponse struct { }
type V1AlipayCallbackResponse ¶
type V1AlipayCallbackResponse struct {
CallbackUrl string `json:"callback_url,omitempty"`
}
type V1AlipayNotifyResponse ¶
type V1AlipayNotifyResponse struct {
Success bool `json:"success,omitempty"`
}
type V1BusinessUser ¶
type V1BusinessUser struct { Address string `json:"address,omitempty"` AppId string `json:"app_id,omitempty"` Avatar string `json:"avatar,omitempty"` Currency string `json:"currency,omitempty"` Description string `json:"description,omitempty"` Disabled bool `json:"disabled,omitempty"` Email string `json:"email,omitempty"` Gender *V1Gender `json:"gender,omitempty"` Id string `json:"id,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Name string `json:"name,omitempty"` Nickname string `json:"nickname,omitempty"` ParentUserId string `json:"parent_user_id,omitempty"` Phone string `json:"phone,omitempty"` }
type V1CallbackRoutingResponse ¶
type V1CallbackRoutingResponse struct { }
type V1Channel ¶
type V1Channel string
V1Channel : - BALANCE: 余额支付 - AlipayQR: 支付宝扫码支付 - AlipayScan: 支付宝条码支付 - AlipayApp: 支付宝 App 支付 - AlipayWap: 支付宝手机网站支付 - AlipayPage: 支付宝电脑网站支付 - AlipayFace: 支付宝刷脸支付 - AlipayLite: 支付宝小程序支付 - WechatpayApp: 微信 App 支付 - WechatpayJSAPI: 微信 JSAPI 支付 - WechatpayH5: 微信 H5 支付 - WechatpayNative: 微信 Native 支付 - WechatpayLite: 微信小程序支付 - WechatpayFace: 刷脸支付 - WechatpayScan: 微信付款码支付
const ( CHANNEL_INVALID_UNSPECIFIED V1Channel = "CHANNEL_INVALID_UNSPECIFIED" BALANCE V1Channel = "BALANCE" ALIPAY_QR V1Channel = "AlipayQR" ALIPAY_SCAN V1Channel = "AlipayScan" ALIPAY_APP V1Channel = "AlipayApp" ALIPAY_WAP V1Channel = "AlipayWap" ALIPAY_PAGE V1Channel = "AlipayPage" ALIPAY_FACE V1Channel = "AlipayFace" ALIPAY_LITE V1Channel = "AlipayLite" WECHATPAY_APP V1Channel = "WechatpayApp" WECHATPAY_JSAPI V1Channel = "WechatpayJSAPI" WECHATPAY_H5 V1Channel = "WechatpayH5" WECHATPAY_NATIVE V1Channel = "WechatpayNative" WECHATPAY_LITE V1Channel = "WechatpayLite" WECHATPAY_FACE V1Channel = "WechatpayFace" WECHATPAY_SCAN V1Channel = "WechatpayScan" )
List of v1Channel
type V1Charge ¶
type V1Charge struct { // 订单金额 Amount float64 `json:"amount"` // 下单金额 AmountFee float32 `json:"amount_fee"` // 订单退款总金额 AmountRefund float32 `json:"amount_refund"` // 分账金额 AmountRoyalty float32 `json:"amount_royalty"` // 结算金额,不一定有,视支付通道情况返回 AmountSettle float64 `json:"amount_settle"` // 应用ID AppId string `json:"app_id"` // 订单描述信息 Body string `json:"body"` // 支付渠道 Channel *Tradev1Channel `json:"channel"` // Charge 对象 id ChargeId string `json:"charge_id"` // 顾客IP ClientIp string `json:"client_ip"` // 是否关闭 Closed bool `json:"closed"` // 关闭时间 ClosedAt time.Time `json:"closed_at,omitempty"` // 关闭时间戳 ClosedTs string `json:"closed_ts,omitempty"` // Charge 对象创建时间 CreatedAt time.Time `json:"created_at,omitempty"` // 支付凭证 Credential *ProtobufAny `json:"credential,omitempty"` // 货币单位,当前仅支持 CNY Currency string `json:"currency"` // 描述信息 Description string `json:"description"` // 订单过期时间戳 ExpiredTs string `json:"expired_ts,omitempty"` // 支付渠道元数据 Extra *V1ChargeExtra `json:"extra,omitempty"` // 收单机构错误码 FailureCode string `json:"failure_code"` // 收单机构错误描述信息 FailureMsg string `json:"failure_msg"` // 表明是否是沙箱环境 LiveMode bool `json:"live_mode"` // 商户系统订单号,APP下需唯一 MerchantTradeId string `json:"merchant_trade_id"` // 订单元数据,原样返回 Metadata map[string]string `json:"metadata,omitempty"` // 对象类型 Object string `json:"object"` // 表明是否已支付 Paid bool `json:"paid"` // 支付时间 PaidAt time.Time `json:"paid_at,omitempty"` // 支付时间戳 PaidTs string `json:"paid_ts,omitempty"` // 表明是否包含退款,含退款失败的 Refunded bool `json:"refunded"` // Refund 对象列表 Refunds []V1Refund `json:"refunds,omitempty"` // 表明是否已经撤销 Reversed bool `json:"reversed"` // 冲正时间 ReversedAt time.Time `json:"reversed_at,omitempty"` // 订单描述主题 Subject string `json:"subject"` // 订单过期时间 TimeExpire time.Time `json:"time_expire,omitempty"` // Charge 的支付单号 TransactionNo string `json:"transaction_no"` // 订单生存时间,单位秒 Ttl int32 `json:"ttl"` }
type V1ChargeExtra ¶
type V1ChargeExtra struct { // 支付宝 App 支付渠道元数据 AlipayApp *V1ExtraAlipayApp `json:"alipay_app,omitempty"` // 支付宝 刷脸 支付渠道元数据 AlipayFace *V1ExtraAlipayFace `json:"alipay_face,omitempty"` // 支付宝 JSAPI 支付渠道元数据 AlipayJsapi *V1ExtraAlipayJsapi `json:"alipay_jsapi,omitempty"` // 支付宝 小程序 支付渠道元数据 AlipayLite *V1ExtraAlipayLite `json:"alipay_lite,omitempty"` // 支付宝 电脑网站 支付渠道元数据 AlipayPage *V1ExtraAlipayPage `json:"alipay_page,omitempty"` // 支付宝 当面付 支付渠道元数据 AlipayQr *V1ExtraAlipayQr `json:"alipay_qr,omitempty"` // 支付宝 扫码(被扫) 支付渠道元数据 AlipayScan *V1ExtraAlipayScan `json:"alipay_scan,omitempty"` // 支付宝 手机网站 支付渠道元数据 AlipayWap *V1ExtraAlipayWap `json:"alipay_wap,omitempty"` // 微信支付 App 支付渠道元数据 WechatpayApp *V1ExtraWechatpayApp `json:"wechatpay_app,omitempty"` // 微信支付 H5 支付渠道元数据 WechatpayH5 *V1ExtraWechatpayH5 `json:"wechatpay_h5,omitempty"` // 微信支付 公众号 支付渠道元数据 WechatpayJsapi *V1ExtraWechatpayJsapi `json:"wechatpay_jsapi,omitempty"` // 微信支付 小程序 支付渠道元数据 WechatpayLite *V1ExtraWechatpayLite `json:"wechatpay_lite,omitempty"` // 微信支付 扫码(被扫) 支付渠道元数据 WechatpayNative *V1ExtraWechatpayNative `json:"wechatpay_native,omitempty"` // 微信支付 扫码(被扫) 支付渠道元数据 WechatpayScan *V1ExtraWechatpayScan `json:"wechatpay_scan,omitempty"` }
type V1ChargeListResponse ¶
type V1ChargeListResponse struct { // 包含一个由请求参数分页后的返回对象实体 Data []V1Charge `json:"data,omitempty"` // 表明获取列表之后是否还有更多的元素实体。如果值为 false,表明当前页是最后一页 HasMore bool `json:"has_more"` // 返回对象的类型,此值为 ChargeList Object string `json:"object,omitempty"` }
返回一个已存在的 charge 对象列表或者一个错误
type V1ChargeResponse ¶
type V1ChargeResponse struct { // Charge 对象 Data *V1Charge `json:"data,omitempty"` // 支付凭据 charge 对象 Object string `json:"object"` }
返回一个支付凭据 charge 对象。
type V1ChargeRoutingResponse ¶
type V1ChargeRoutingResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` // 错误信息 Error_ *V1ServiceError `json:"error"` // 支付单 ID TransactionId int64 `json:"transaction_id"` }
type V1CreateChargeRequest ¶
type V1CreateChargeRequest struct { // [REQUIRED] 订单金额,单位元, 如 0.01 Amount float32 `json:"amount"` // [REQUIRED] 应用 id AppId string `json:"app_id"` // [REQUIRED] 服务明细 Body string `json:"body"` // [OPTIONAL] 回调地址,如不传则使用 APP 设置中的回调地址。若都为空,则无法跳回原页面 CallbackUrl string `json:"callback_url"` // [REQUIRED] 渠道名称 Channel *Tradev1Channel `json:"channel"` // [REQUIRED] 客户端机器 IP ClientIp string `json:"client_ip"` // 货币单位。国内收单机构仅支持 CNY Currency string `json:"currency"` // [OPTIONAL] 交易描述 Description string `json:"description"` // [OPTIONAL] 各支付渠道元数据 Extra *V1CreateChargeRequestExtra `json:"extra,omitempty"` // [REQUIRED] 客户系统的交易单号(订单号),必须在应用下唯一。长度不超过30个字符 MerchantTradeId string `json:"merchant_trade_id"` // [OPTIONAL] 订单元数据,原样返回 Metadata map[string]string `json:"metadata,omitempty"` // [OPTIONAL] 接受通知服务器所在区域,为确保消息能够送达,请选择服务器所在国家的国家码。如不填默认为 CN NotificationArea string `json:"notification_area"` // [OPTIONAL] 通知地址,如不传则使用 APP 设置中的通知地址。若都为空,则不发送通知 NotifyUrl string `json:"notify_url"` // [REQUIRED] 物品或服务名称(交易标题) Subject string `json:"subject"` // [OPTIONAL] 订单超时时间,单位秒 Ttl int32 `json:"ttl"` }
你可以创建一个 charge 对象向用户收款。charge 是一个支付凭据对象,所有和支付相关的要素信息都存储在这个对象中,你的服务端可以通过发起支付请求来创建一个新的 charge 对象,也可以随时查询一个或者多个 charge 对象的状态。每个 charge 对象都拥有一个标识 id,该 id 在系统内唯一。
type V1CreateChargeRequestExtra ¶
type V1CreateChargeRequestExtra struct { // 支付宝 APP 支付元数据 AlipayApp *V1ExtraAlipayApp `json:"alipay_app,omitempty"` // 支付宝刷脸支付元数据 AlipayFace *V1ExtraAlipayFace `json:"alipay_face,omitempty"` // 支付宝 JSAPI 支付元数据 AlipayJsapi *V1ExtraAlipayJsapi `json:"alipay_jsapi,omitempty"` // 支付宝小程序支付元数据 AlipayLite *V1ExtraAlipayLite `json:"alipay_lite,omitempty"` // 支付宝电脑网站支付元数据 AlipayPage *V1ExtraAlipayPage `json:"alipay_page,omitempty"` // 支付宝二维码支付元数据 AlipayQr *V1ExtraAlipayQr `json:"alipay_qr,omitempty"` // 支付宝扫码(被扫)支付元数据 AlipayScan *V1ExtraAlipayScan `json:"alipay_scan,omitempty"` // 支付宝手机网站支付元数据 AlipayWap *V1ExtraAlipayWap `json:"alipay_wap,omitempty"` // 微信支付 APP 支付元数据 WechatpayApp *V1ExtraWechatpayApp `json:"wechatpay_app,omitempty"` // 微信支付 H5 支付元数据 WechatpayH5 *V1ExtraWechatpayH5 `json:"wechatpay_h5,omitempty"` // 微信支付 JSAPI 支付元数据 WechatpayJsapi *V1ExtraWechatpayJsapi `json:"wechatpay_jsapi,omitempty"` // 微信支付小程序支付元数据 WechatpayLite *V1ExtraWechatpayLite `json:"wechatpay_lite,omitempty"` // 微信支付二维码支付元数据 WechatpayNative *V1ExtraWechatpayNative `json:"wechatpay_native,omitempty"` // 微信支付扫码(被扫)支付元数据 WechatpayScan *V1ExtraWechatpayScan `json:"wechatpay_scan,omitempty"` }
type V1CreateCustomerRequest ¶
type V1CreateCustomerRequest struct { Address string `json:"address,omitempty"` AppId string `json:"app_id,omitempty"` AvailableBalance float64 `json:"available_balance,omitempty"` Avatar string `json:"avatar,omitempty"` Created string `json:"created,omitempty"` Currency string `json:"currency,omitempty"` Description string `json:"description,omitempty"` Disabled bool `json:"disabled,omitempty"` Email string `json:"email,omitempty"` Gender *V1Gender `json:"gender,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Name string `json:"name,omitempty"` OutCustomerId string `json:"out_customer_id,omitempty"` ParentCustomerId string `json:"parent_customer_id,omitempty"` Phone string `json:"phone,omitempty"` WithdrawableBalance float64 `json:"withdrawable_balance,omitempty"` }
type V1CreateRefundRequest ¶
type V1CreateRefundRequest struct { // [OPTIONAL] 退款金额大于 0, 单位为对应币种的最小货币单位,例如:人民币为分(如退款金额为 1 元,此处请填 100)。必须小于等于可退款金额,默认为全额退款。 Amount float32 `json:"amount"` // [REQUIRED] 应用 id AppId string `json:"app_id"` // [REQUIRED] 支付 Charge Id ChargeId string `json:"charge_id"` // [REQUIRED] 退款原因,最多 255 个 Unicode 字符。 Description string `json:"description"` // [OPTIONAL] 退款 extra 参数。 Extra *ProtobufAny `json:"extra,omitempty"` // [REQUIRED] 商户系统的退款单号,必须保证唯一。由于 charge 支持多次退款,对于失败重试动作确保使用相同的订单号,以避免重复退款造成损失。 MerchantRefundId string `json:"merchant_refund_id"` // [OPTIONAL] 参考元数据。 Metadata map[string]string `json:"metadata,omitempty"` }
通过发起一次退款请求创建一个新的 refund 对象,只能对已经发生交易并且没有全额退款的 charge 对象发起退款。当进行全额退款之前,可以进行多次退款,直至全额退款。当一次退款成功后,会发送 Webhooks 通知。
type V1CreateRoyaltyRequest ¶
type V1CreateRoyaltyRequest struct { // App ID AppId string `json:"app_id"` // 结果通知地址 CallbackUrl string `json:"callback_url"` // Charge ID ChargeId string `json:"charge_id"` // 分账的原因描述,分账账单中需要体现,不超过 80 个字符 Description string `json:"description"` // Order ID OrderId string `json:"order_id"` // 分润接受方列表 Receivers []CreateRoyaltyRequestRoyaltyReceiver `json:"receivers"` }
type V1CreateSettlementAccountRequest ¶
type V1CreateSettlementAccountRequest struct { AppId string `json:"app_id,omitempty"` BusinessUserId string `json:"business_user_id,omitempty"` Channel *V1SettlementAccountChannel `json:"channel,omitempty"` CustomerId string `json:"customer_id,omitempty"` Recipient *V1SettlementAccountRecipient `json:"recipient,omitempty"` }
type V1CreateUserRequest ¶
type V1CreateUserRequest struct { // [OPTIONAL] 用户地址 Address string `json:"address"` // App ID AppId string `json:"app_id"` // [OPTIONAL] 用户可用余额 AvailableBalance float32 `json:"available_balance"` // [OPTIONAL] 用户头像 Avatar string `json:"avatar"` // [OPTIONAL] 用户创建时间 Created int64 `json:"created"` // [OPTIONAL] 用户货币 Currency string `json:"currency"` // [OPTIONAL] 用户描述 Description string `json:"description"` // [OPTIONAL] 是否禁用,默认为 false Disabled bool `json:"disabled"` // [OPTIONAL] 用户邮箱 Email string `json:"email"` // [OPTIONAL] 用户性别 Gender *V1Gender `json:"gender"` // [OPTIONAL] 用户元数据 Metadata map[string]string `json:"metadata"` // [OPTIONAL] 用户名 Name string `json:"name"` // [OPTIONAL] 用户昵称 Nickname string `json:"nickname"` // [REQUIRED] 商户系统用户 ID OutUserId string `json:"out_user_id"` // [OPTIONAL] 父用户 ID ParentUserId string `json:"parent_user_id"` // [OPTIONAL] 用户手机号 Phone string `json:"phone"` // [OPTIONAL] 用户可提现余额 WithdrawableBalance float32 `json:"withdrawable_balance"` }
type V1Customer ¶
type V1Customer struct { Address string `json:"address,omitempty"` AppId string `json:"app_id,omitempty"` AvailableBalance float64 `json:"available_balance,omitempty"` Avatar string `json:"avatar,omitempty"` Created string `json:"created,omitempty"` Currency string `json:"currency,omitempty"` Description string `json:"description,omitempty"` Disabled string `json:"disabled,omitempty"` Email string `json:"email,omitempty"` Gender *V1Gender `json:"gender,omitempty"` Id string `json:"id,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Name string `json:"name,omitempty"` // 对象类型 Object string `json:"object"` Phone string `json:"phone,omitempty"` WithdrawableBalance float64 `json:"withdrawable_balance,omitempty"` }
type V1CustomerListResponse ¶
type V1CustomerListResponse struct { Data []V1Customer `json:"data,omitempty"` HasMore bool `json:"has_more,omitempty"` // 对象类型 Object string `json:"object"` }
type V1CustomerResponse ¶
type V1CustomerResponse struct { Data *V1Customer `json:"data,omitempty"` Object string `json:"object,omitempty"` }
type V1DeleteProductResponse ¶
type V1DeleteProductResponse struct { }
type V1DeleteUserResponse ¶
type V1ExtraAlipayAgreementSignParams ¶
type V1ExtraAlipayAgreementSignParams struct { // 请按当前接入的方式进行填充,且输入值必须为文档中的参数取值范围 AccessParams *ExtraAlipayAgreementSignParamsAccessParams `json:"access_params,omitempty"` // 外部协议号 ExternalAgreementNo string `json:"external_agreement_no"` // 外部用户唯一标识 ExternalLogonId string `json:"external_logon_id"` // 周期管控规则参数period_rule_params,在签约周期扣款产品(如CYCLE_PAY_AUTH_P)时必传,在签约其他产品时无需传入。 周期扣款产品,会按照这里传入的参数提示用户,并对发起扣款的时间、金额、次数等做相应限制。 PeriodRuleParams *ExtraAlipayAgreementSignParamsPeriodRuleParams `json:"period_rule_params,omitempty"` // 个人签约产品码 PersonalProductCode string `json:"personal_product_code"` // 签约回调地址 SignNotifyUrl string `json:"sign_notify_url"` // 签约场景 SignScene string `json:"sign_scene"` // 此参数用于传递子商户信息,无特殊需求时不用关注。目前商户代扣、海外代扣、淘旅行信用住产品支持传入该参数(在销售方案中“是否允许自定义子商户信息”需要选是)。 SubMerchant *ExtraAlipayAgreementSignParamsSubMerchant `json:"sub_merchant,omitempty"` }
type V1ExtraAlipayApp ¶
type V1ExtraAlipayApp struct { // [ONLY IN RESPONSE] 信用支付协议号 CreditAgreementId string `json:"credit_agreement_id"` // [ONLY IN RESPONSE] 信用支付业务订单号 CreditBizOrderId string `json:"credit_biz_order_id"` // [ONLY IN RESPONSE] 信用支付模式 CreditPayMode string `json:"credit_pay_mode"` // 禁用渠道 DisablePayChannels string `json:"disable_pay_channels"` // 可用渠道 EnablePayChannels string `json:"enable_pay_channels"` // 外部指定买家 ExtUserInfo *V1ExtraAlipayExtUserInfo `json:"ext_user_info,omitempty"` // 业务扩展参数 ExtendParams *V1ExtraAlipayExtendParams `json:"extend_params,omitempty"` // 商品明细列表 GoodsDetail []V1ExtraAlipayGoodsDetail `json:"goods_detail,omitempty"` // 商品类型 GoodsType string `json:"goods_type"` // [ONLY IN RESPONSE] 商户订单号 MerchantTradeId string `json:"merchant_trade_id"` // [ONLY IN RESPONSE] App 用于拉起支付的请求字符串 PayParam string `json:"pay_param"` // 销售产品码,商家和支付宝签约的产品码 ProductCode string `json:"product_code"` // [ONLY IN RESPONSE] 支付宝卖家支付宝用户ID SellerId string `json:"seller_id"` // 商户门店编号 StoreId string `json:"store_id"` }
type V1ExtraAlipayExtUserInfo ¶
type V1ExtraAlipayExtUserInfo struct { // 真实用户的证件号码 CertNo string `json:"cert_no"` // 真实用户的证件类型 CertType string `json:"cert_type"` // 是否是实名用户 FixBuyer string `json:"fix_buyer"` // 真实用户的证件有效期的起始时间 MinAge string `json:"min_age"` // 真实用户的手机号码 Mobile string `json:"mobile"` // 真实用户的姓名 Name string `json:"name"` // 是否需要补充身份信息 NeedCheckInfo string `json:"need_check_info"` }
type V1ExtraAlipayExtendParams ¶
type V1ExtraAlipayExtendParams struct { // 卡类型 CardType string `json:"card_type"` // 使用花呗分期要进行的分期数 HbFqNum string `json:"hb_fq_num"` // 使用花呗分期需要卖家承担的手续费比例的百分值,传入100代表100% HbFqSellerPercent float32 `json:"hb_fq_seller_percent"` // 行业数据回流信息 IndustryRefluxInfo string `json:"industry_reflux_info"` // 指定收款支付宝用户名 SpecifiedSellerName string `json:"specified_seller_name"` // 系统商编号,该参数作为系统商返佣数据提取的依据,请填写系统商签约协议的PID SysServiceProviderId string `json:"sys_service_provider_id"` }
type V1ExtraAlipayFace ¶
type V1ExtraAlipayFace struct { }
type V1ExtraAlipayGoodsDetail ¶
type V1ExtraAlipayGoodsDetail struct { // 支付宝商品编号 AlipayGoodsId string `json:"alipay_goods_id"` // 商品描述 Body string `json:"body"` // 商品类目树 CategoriesTree string `json:"categories_tree"` // 商品类目 GoodsCategory string `json:"goods_category"` // 商品编号 GoodsId string `json:"goods_id"` // 商品名称 GoodsName string `json:"goods_name"` // 价格 Price float32 `json:"price"` // 商品数量 Quantity float32 `json:"quantity"` // 商品显示链接 ShowUrl string `json:"show_url"` }
type V1ExtraAlipayInvoiceInfo ¶
type V1ExtraAlipayInvoiceInfo struct { Details string `json:"details,omitempty"` KeyInfo *ExtraAlipayInvoiceInfoKeyInfo `json:"key_info,omitempty"` }
type V1ExtraAlipayJsapi ¶
type V1ExtraAlipayJsapi struct { // 付款用户信息 Payer *ExtraAlipayJsapiPayer `json:"payer,omitempty"` // 预支付交易会话标识 PrepayId string `json:"prepay_id"` }
type V1ExtraAlipayLite ¶
type V1ExtraAlipayLite struct { // 商品描述 Body string `json:"body"` // 业务扩展参数 BusinessParams *V1ExtraAlipayBusinessParams `json:"business_params,omitempty"` // 买家的支付宝唯一用户号(2088开头的16位纯数字) BuyerId string `json:"buyer_id"` // 可打折金额. 参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果该值未传入,但传入了【订单总金额】,【不可打折金额】则该值默认为【订单总金额】-【不可打折金额】 DiscountableAmount float64 `json:"discountable_amount,omitempty"` // 业务扩展参数 ExtendParams *V1ExtraAlipayExtendParams `json:"extend_params,omitempty"` // 物流信息 LogisticsDetail *V1ExtraAlipayLogisticsDetail `json:"logistics_detail,omitempty"` // 商户操作员编号 OperatorId string `json:"operator_id"` // 销售产品码,商家和支付宝签约的产品码,为固定值 FACE_TO_FACE_PAYMENT ProductCode string `json:"product_code"` // 收货信息 ReceiverAddressInfo *V1ExtraAlipayReceiverAddressInfo `json:"receiver_address_info,omitempty"` // 卖家支付宝用户号 SellerId string `json:"seller_id"` // 结算信息 SettleInfo *V1ExtraAlipaySettleInfo `json:"settle_info,omitempty"` // 商户门店编号 StoreId string `json:"store_id"` // 商户机具终端编号 TerminalId string `json:"terminal_id"` // 绝对超时时间,格式为yyyy-MM-dd HH:mm:ss TimeExpire string `json:"time_expire"` // 订单有效时间,该时间段内订单可以进行支付,结束后订单将关闭,天数为0表示永久有效 TimeoutExpress string `json:"timeout_express"` // [ONLY IN RESPONSE] 支付宝交易号 TradeNo string `json:"trade_no"` // 不可打折金额. 不参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果该值未传入,但传入了【订单总金额】,【可打折金额】,则该值默认为【订单总金额】-【可打折金额】 UndiscountableAmount float64 `json:"undiscountable_amount,omitempty"` }
type V1ExtraAlipayLogisticsDetail ¶
type V1ExtraAlipayLogisticsDetail struct {
LogisticsType string `json:"logistics_type,omitempty"`
}
type V1ExtraAlipayPage ¶
type V1ExtraAlipayPage struct { // 业务扩展参数 BusinessParams float32 `json:"business_params"` // 禁用渠道 DisablePayChannels string `json:"disable_pay_channels"` // 可用渠道 EnablePayChannels string `json:"enable_pay_channels"` // 业务扩展参数 ExtendParams *V1ExtraAlipayExtendParams `json:"extend_params,omitempty"` // 商品明细列表 GoodsDetail []V1ExtraAlipayGoodsDetail `json:"goods_detail,omitempty"` // 商品类型 GoodsType string `json:"goods_type"` // 支付宝用户ID IntegrationType float32 `json:"integration_type"` // 发票信息 InvoiceInfo *V1ExtraAlipayInvoiceInfo `json:"invoice_info,omitempty"` // [ONLY IN RESPONSE] 商户订单号 MerchantTradeId string `json:"merchant_trade_id"` // [ONLY IN RESPONSE] 支付链接 PayUrl string `json:"pay_url"` // 优惠参数 PromoParams string `json:"promo_params"` // 扫码支付模式 QrPayMode string `json:"qr_pay_mode"` // 二维码宽度 QrcodeWidth float32 `json:"qrcode_width"` // 请求来源地址 RequestFromUrl float32 `json:"request_from_url"` // [ONLY IN RESPONSE] 收款支付宝用户ID SellerId string `json:"seller_id"` // 商户门店编号 StoreId string `json:"store_id"` // 二级商户信息 SubMerchant *V1ExtraAlipaySubMerchant `json:"sub_merchant,omitempty"` // 订单失效时间 TimeExpire int32 `json:"time_expire,omitempty"` }
type V1ExtraAlipayPayParams ¶
type V1ExtraAlipayPayParams struct {
AsyncType string `json:"async_type,omitempty"`
}
type V1ExtraAlipayQr ¶
type V1ExtraAlipayQr struct { // 买家的支付宝唯一用户号(2088开头的16位纯数字) BuyerId string `json:"buyer_id"` // 可打折金额. 参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果该值未传入,但传入了【订单总金额】,【不可打折金额】则该值默认为【订单总金额】-【不可打折金额】 DiscountableAmount string `json:"discountable_amount,omitempty"` // 商品明细列表 GoodsDetail []V1ExtraAlipayGoodsDetail `json:"goods_detail,omitempty"` // 商户操作员编号 OperatorId string `json:"operator_id"` // 销售产品码,商家和支付宝签约的产品码,为固定值QUICK_MSECURITY_PAY ProductCode string `json:"product_code"` // [ONLY IN RESPONSE] 二维码 QrCode string `json:"qr_code"` // 支付场景。 条码支付,取值:bar_code; 声波支付,取值:wave_code QrCodeTimeoutExpress string `json:"qr_code_timeout_express"` // [ONLY IN RESPONSE] 二维码图片的URL地址 QrLink string `json:"qr_link"` // 商户门店编号 StoreId string `json:"store_id"` // 商户机具终端编号 TerminalId string `json:"terminal_id"` }
type V1ExtraAlipayRoyaltyInfo ¶
type V1ExtraAlipayRoyaltyInfo struct { // 分账明细的信息,可以描述多条分账指令,json数组。 RoyaltyDetailInfos *ExtraAlipayRoyaltyInfoRoyaltyDetailInfos `json:"royalty_detail_infos,omitempty"` // 周期类型period_type是周期扣款产品必填,枚举值为DAY和MONTH RoyaltyType string `json:"royalty_type"` }
type V1ExtraAlipayScan ¶
type V1ExtraAlipayScan struct { // 预授权类型 AdvancePaymentType string `json:"advance_payment_type"` // 用户的条码 AuthCode string `json:"auth_code"` // 授权确认方式 AuthConfirmMode string `json:"auth_confirm_mode"` // 授权号 AuthNo string `json:"auth_no"` // 买家的支付宝用户id BuyerId string `json:"buyer_id"` // [ONLY IN RESPONSE] 买家支付宝账号 BuyerLogonId string `json:"buyer_logon_id"` // [ONLY IN RESPONSE] 付款金额 BuyerPayAmount float64 `json:"buyer_pay_amount"` // [ONLY IN RESPONSE] 买家在支付宝的用户id BuyerUserId string `json:"buyer_user_id"` // [ONLY IN RESPONSE] 商家优惠金额 DiscountAmount float64 `json:"discount_amount"` // [ONLY IN RESPONSE] 商家优惠商品明细 DiscountGoodsDetail string `json:"discount_goods_detail"` // 可打折金额 DiscountableAmount float64 `json:"discountable_amount"` // 业务扩展参数 ExtendParams *V1ExtraAlipayExtendParams `json:"extend_params,omitempty"` // [ONLY IN RESPONSE] 支付金额信息 FundBillList *V1ExtraAlipayFundBillList `json:"fund_bill_list,omitempty"` // [ONLY IN RESPONSE] 支付时间 GmtPayment string `json:"gmt_payment"` // 商品明细列表 GoodsDetail []V1ExtraAlipayGoodsDetail `json:"goods_detail,omitempty"` // [ONLY IN RESPONSE] 开票金额 InvoiceAmount float64 `json:"invoice_amount"` // 是否异步支付 IsAsyncPay *V1ExtraAlipayPayParams `json:"is_async_pay,omitempty"` // 商户操作员编号 OperatorId string `json:"operator_id"` // [ONLY IN RESPONSE] 支付宝返回的支付参数 PayParams string `json:"pay_params"` // [ONLY IN RESPONSE] 集分宝金额 PointAmount float64 `json:"point_amount"` // 销售产品码 ProductCode string `json:"product_code"` // 商户授权查询类型 QueryOptions string `json:"query_options"` // [ONLY IN RESPONSE] 实收金额 ReceiptAmount float64 `json:"receipt_amount"` // 请求方机构id RequestOrgPid string `json:"request_org_pid"` // 支付场景 Scene string `json:"scene"` // 商户门店编号 StoreId string `json:"store_id"` // [ONLY IN RESPONSE] 商户门店名称 StoreName string `json:"store_name"` // 商户机具终端编号 TerminalId string `json:"terminal_id"` // [ONLY IN RESPONSE] 订单金额 TotalAmount float64 `json:"total_amount"` // [ONLY IN RESPONSE] 商家优惠明细列表 VoucherDetailList *V1ExtraAlipayVoucherDetailList `json:"voucher_detail_list,omitempty"` }
type V1ExtraAlipaySettleInfo ¶
type V1ExtraAlipaySettleInfo struct { SettleDetailInfos *ExtraAlipaySettleInfoSettleDetailInfos `json:"settle_detail_infos,omitempty"` SettlePeriodTime string `json:"settle_period_time,omitempty"` }
type V1ExtraAlipayVoucherDetailList ¶
type V1ExtraAlipayVoucherDetailList struct { Amount float64 `json:"amount,omitempty"` Id string `json:"id,omitempty"` Memo string `json:"memo,omitempty"` MerchantContribute float64 `json:"merchant_contribute,omitempty"` Name string `json:"name,omitempty"` OtherContribute float64 `json:"other_contribute,omitempty"` PurchaseAntContribute float64 `json:"purchase_ant_contribute,omitempty"` PurchaseBuyerContribute float64 `json:"purchase_buyer_contribute,omitempty"` PurchaseMerchantContribute float64 `json:"purchase_merchant_contribute,omitempty"` TemplateId string `json:"template_id,omitempty"` Type_ string `json:"type,omitempty"` }
type V1ExtraAlipayWap ¶
type V1ExtraAlipayWap struct { // 授权码 AuthToken string `json:"auth_token"` // 业务扩展参数 BusinessParams string `json:"business_params"` // 禁用渠道 DisablePayChannels string `json:"disable_pay_channels"` // 可用渠道 EnablePayChannels string `json:"enable_pay_channels"` // 业务扩展参数 ExtendParams *V1ExtraAlipayExtendParams `json:"extend_params,omitempty"` // 支付金额信息 FundBillList []string `json:"fund_bill_list,omitempty"` // 商品明细列表 GoodsDetail []V1ExtraAlipayGoodsDetail `json:"goods_detail,omitempty"` // 商品类型 GoodsType string `json:"goods_type"` // [ONLY IN RESPONSE] 商户订单号 MerchantTradeId string `json:"merchant_trade_id"` // [ONLY IN RESPONSE] 支付链接 PayUrl string `json:"pay_url"` // 销售产品码 ProductCode string `json:"product_code"` // 优惠参数 PromoParams string `json:"promo_params"` // 支付取消跳转的地址 QuitUrl string `json:"quit_url"` // 支付成功跳转的地址 ReturnUrl string `json:"return_url"` // [ONLY IN RESPONSE] 收款支付宝用户ID SellerId string `json:"seller_id"` // 商户门店编号 StoreId string `json:"store_id"` VoucherDetailList *V1ExtraAlipayVoucherDetailList `json:"voucher_detail_list,omitempty"` }
type V1ExtraWechatpayApp ¶
type V1ExtraWechatpayApp struct { // app拉起支付配置信息 AppConfig *V1ExtraWechatpayAppConfig `json:"app_config,omitempty"` // 元数据 Attach string `json:"attach,omitempty"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 预支付交易会话标识 PrepayId string `json:"prepay_id"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` }
type V1ExtraWechatpayAppConfig ¶
type V1ExtraWechatpayAppConfig struct { // 应用appid Appid string `json:"appid"` // 随机字符串 Noncestr string `json:"noncestr"` // 扩展字段 Package_ string `json:"package"` // 商户号 Partnerid string `json:"partnerid"` // 预支付交易会话标识 Prepayid string `json:"prepayid"` // 签名 Sign string `json:"sign"` // 时间戳 Timestamp string `json:"timestamp"` }
type V1ExtraWechatpayDetail ¶
type V1ExtraWechatpayDetail struct { CostPrice string `json:"cost_price,omitempty"` GoodsDetail []ExtraWechatpayDetailGoodsDetail `json:"goods_detail,omitempty"` InvoiceId string `json:"invoice_id,omitempty"` }
type V1ExtraWechatpayH5 ¶
type V1ExtraWechatpayH5 struct { // 元数据 Attach string `json:"attach,omitempty"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 支付签名 PaySign string `json:"pay_sign"` // 支付链接 PayUrl string `json:"pay_url"` // 预支付交易会话标识 PrepayId string `json:"prepay_id"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` // WAP网站名 WapName string `json:"wap_name"` // WAP网站URL WapUrl string `json:"wap_url"` }
type V1ExtraWechatpayJsapi ¶
type V1ExtraWechatpayJsapi struct { // 元数据 Attach string `json:"attach,omitempty"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // jsapi支付配置信息 JsapiConfig *V1ExtraWechatpayJsapiConfig `json:"jsapi_config,omitempty"` // 支付者信息 Payer *V1ExtraWechatpayPayer `json:"payer,omitempty"` // 预支付交易会话标识 PrepayId string `json:"prepay_id"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` }
type V1ExtraWechatpayLite ¶
type V1ExtraWechatpayLite struct { // 小程序拉起支付配置信息 AppletConfig *V1ExtraWechatpayAppletConfig `json:"applet_config,omitempty"` // 元数据 Attach string `json:"attach,omitempty"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 付款人信息 Payer *V1ExtraWechatpayPayer `json:"payer,omitempty"` // 预支付交易会话标识 PrepayId string `json:"prepay_id"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` }
type V1ExtraWechatpayNative ¶
type V1ExtraWechatpayNative struct { // 元数据 Attach string `json:"attach,omitempty"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 二维码数据 QrCode string `json:"qr_code"` // 二维码链接 QrLink string `json:"qr_link"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 交易过期时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` }
type V1ExtraWechatpayPayer ¶
type V1ExtraWechatpayScan ¶
type V1ExtraWechatpayScan struct { // 元数据 Attach string `json:"attach,omitempty"` // 授权码 AuthCode string `json:"auth_code"` // 付款银行 BankType string `json:"bank_type"` // 现金支付金额 CashFee string `json:"cash_fee"` // 现金支付币种 CashFeeType string `json:"cash_fee_type"` // 商品详情 Detail *V1ExtraWechatpayDetail `json:"detail,omitempty"` // 货币种类 FeeType string `json:"fee_type"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 是否关注公众账号 IsSubscribe bool `json:"is_subscribe"` // 付款人信息 Payer *V1ExtraWechatpayPayer `json:"payer,omitempty"` // 场景信息 SceneInfo *V1ExtraWechatpaySceneInfo `json:"scene_info,omitempty"` // 结算信息 SettleInfo *V1ExtraWechatpaySettleInfo `json:"settle_info,omitempty"` // 应结订单金额 SettlementTotalFee float32 `json:"settlement_total_fee"` // 终端IP SpbillCreateIp string `json:"spbill_create_ip"` // 子商户是否关注公众账号 SubIsSubscribe bool `json:"sub_is_subscribe"` // 子商户openid SubOpenid string `json:"sub_openid"` // 支付完成时间 TimeEnd string `json:"time_end"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 交易起始时间 TimeStart string `json:"time_start"` }
type V1ExtraWechatpaySceneInfo ¶
type V1ExtraWechatpaySceneInfo struct { DeviceId string `json:"device_id,omitempty"` H5Info *ExtraWechatpaySceneInfoH5Info `json:"h5_info,omitempty"` PayerClientIp string `json:"payer_client_ip,omitempty"` StoreInfo *ExtraWechatpaySceneInfoStoreInfo `json:"store_info,omitempty"` }
type V1ExtraWechatpaySettleInfo ¶
type V1ExtraWechatpaySettleInfo struct {
ProfitSharing bool `json:"profit_sharing,omitempty"`
}
type V1FinishRoyaltyResponse ¶
type V1FinishRoyaltyResponse struct { }
type V1HealthCheckResponse ¶
type V1HealthCheckResponse struct {
Status *HealthCheckResponseServingStatus `json:"status,omitempty"`
}
type V1NotifyRoutingResponse ¶
type V1NotifyRoutingResponse struct { }
type V1ProductListResponse ¶
type V1ProductListResponse struct { }
type V1ProductResponse ¶
type V1ProductResponse struct { }
type V1Refund ¶
type V1Refund struct { // 支付渠道退款元参数 Account *V1RefundExtra `json:"account,omitempty"` // 退款金额 Amount float32 `json:"amount"` // Charge 对象 id ChargeId string `json:"charge_id"` // 商户系统订单号 ChargeMerchantTradeId string `json:"charge_merchant_trade_id"` // 退款创建时间 Created float32 `json:"created"` // 退款创建时间 CreatedAt time.Time `json:"created_at,omitempty"` // 退款说明 Description string `json:"description"` // 支付渠道失败错误码 FailureCode string `json:"failure_code"` // 支付渠道失败原因描述 FailureMsg string `json:"failure_msg"` // 退款是否成功 IsSuccess bool `json:"is_success"` // 元数据,原样返回 Metadata map[string]string `json:"metadata,omitempty"` // Refund 对象 ID RefundId string `json:"refund_id"` // 退款单号 RefundNo string `json:"refund_no"` // 退款状态 Status string `json:"status"` // 退款成功时间 SucceedTs float32 `json:"succeed_ts"` // 退款成功时间 SuccessAt time.Time `json:"success_at,omitempty"` // 交易号 TransactionNo string `json:"transaction_no"` }
Refund 对象允许你可以对已经支付的 charge 对象发起退款请求。
type V1RefundExtra ¶
type V1RefundExtra struct { // 支付宝退款元参数,可参考 https://opendocs.payment_alipay.com/apis/0287wa PaymentAlipay *V1RefundExtraAlipay `json:"payment_alipay,omitempty"` // 微信支付退款元参数,可参考 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_9.shtml Wechatpay *V1RefundExtraWechatPay `json:"wechatpay,omitempty"` }
type V1RefundExtraAlipay ¶
type V1RefundExtraAlipay struct {
RefundRoyaltyParameters []RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo `json:"refund_royalty_parameters,omitempty"`
}
type V1RefundExtraWechatPay ¶
type V1RefundExtraWechatPay struct { // 出资账户信息 Account *RefundExtraWechatPayAccount `json:"account,omitempty"` // 退款商品 GoodsDetail []RefundExtraWechatPayGoodsDetailItem `json:"goods_detail,omitempty"` }
type V1RefundListResponse ¶
type V1RefundResponse ¶
type V1RefundRoutingResponse ¶
type V1RefundRoutingResponse struct { // 支付单 ID ChargeId int64 `json:"charge_id"` // 错误信息 Error_ *V1ServiceError `json:"error"` // 退款 ID RefundId int64 `json:"refund_id"` }
type V1Royalty ¶
type V1Royalty struct { // Charge ID ChargeId string `json:"charge_id"` // 创建时间 Created int64 `json:"created"` // 分账的原因描述,分账账单中需要体现,不超过 80 个字符 Description string `json:"description"` // 分账 ID Id string `json:"id"` Livemode bool `json:"livemode,omitempty"` // 元数据 Metadata map[string]string `json:"metadata"` // 分账方式 Method *Tradev1RoyaltyMethod `json:"method"` // 对象类型 Object string `json:"object"` // 订单 ID OrderId string `json:"order_id"` // 付款方 App ID PayerAppId string `json:"payer_app_id"` // 付款方结算账户 ID PayerSettleAccountId string `json:"payer_settle_account_id"` // 付款方用户 ID PayerUserId string `json:"payer_user_id"` // 分账结算单 ID RoyaltySettlementId string `json:"royalty_settlement_id"` // 分账状态 Status *V1RoyaltyStatus `json:"status"` // 分账完成时间 TimeSettled int64 `json:"time_settled"` }
type V1RoyaltyListResponse ¶
type V1RoyaltyMethod ¶
type V1RoyaltyMethod string
V1RoyaltyMethod : - Alipay: 支付宝 - Wechatpay: 对应 MERCHANT_ID
const ( ROYALTY_METHOD_UNSET V1RoyaltyMethod = "RoyaltyMethodUnset" BALANCE V1RoyaltyMethod = "Balance" ALIPAY V1RoyaltyMethod = "Alipay" WECHATPAY V1RoyaltyMethod = "Wechatpay" )
List of v1RoyaltyMethod
type V1RoyaltyMode ¶
type V1RoyaltyMode string
const ( ROYALTY_MODE_UNSET V1RoyaltyMode = "royalty_mode_unset" FIXED V1RoyaltyMode = "fixed" RATE V1RoyaltyMode = "rate" )
List of v1RoyaltyMode
type V1RoyaltyResponse ¶
type V1RoyaltyRoutingRequestRoyaltyMethod ¶
type V1RoyaltyRoutingRequestRoyaltyMethod string
const ( ROYALTY_METHOD_UNKNOWN V1RoyaltyRoutingRequestRoyaltyMethod = "ROYALTY_METHOD_UNKNOWN" CREATE_ROYALTY V1RoyaltyRoutingRequestRoyaltyMethod = "CREATE_ROYALTY" QUERY_ROYALTY V1RoyaltyRoutingRequestRoyaltyMethod = "QUERY_ROYALTY" FINISH_ROYALTY V1RoyaltyRoutingRequestRoyaltyMethod = "Finish_ROYALTY" RETURN_ROYALTY V1RoyaltyRoutingRequestRoyaltyMethod = "RETURN_ROYALTY" QUERY_RETURN_ROYALTY V1RoyaltyRoutingRequestRoyaltyMethod = "QUERY_RETURN_ROYALTY" )
List of v1RoyaltyRoutingRequestRoyaltyMethod
type V1RoyaltyRoutingResponse ¶
type V1RoyaltyRoutingResponse struct { // 错误信息 Error_ *V1ServiceError `json:"error"` // 分账单号 RoyaltyId int64 `json:"royalty_id"` }
type V1RoyaltySettlement ¶
type V1RoyaltySettlement struct { // 结算金额 Amount float32 `json:"amount"` // 结算取消金额 AmountCanceled float32 `json:"amount_canceled"` // 结算失败金额 AmountFailed float32 `json:"amount_failed"` // 结算成功金额 AmountSucceeded float32 `json:"amount_succeeded"` // 付款方 App ID AppId string `json:"app_id"` // 分账总笔数 Count int64 `json:"count"` // 分账取消笔数 CountCanceled int64 `json:"count_canceled"` // 分账失败笔数 CountFailed int64 `json:"count_failed"` // 分账成功笔数 CountSucceeded int64 `json:"count_succeeded"` // 手续费 Fee float32 `json:"fee"` // 分账结算单 ID Id string `json:"id"` Livemode bool `json:"livemode,omitempty"` // 元数据 Metadata map[string]string `json:"metadata"` // 对象类型 Object string `json:"object"` // 操作链接 OperationUrl string `json:"operation_url"` // 分账来源 Source *V1RoyaltySettlementSource `json:"source"` // 结算状态 Status *RoyaltySettlementRoyaltySettlementStatus `json:"status"` // 分账完成时间 TimeFinished int64 `json:"time_finished"` // 分账处理流水列表 Transactions []V1RoyaltySettlementTransaction `json:"transactions"` }
type V1RoyaltySettlementListResponse ¶
type V1RoyaltySettlementListResponse struct { // 分账结算单列表 Data *V1RoyaltySettlement `json:"data"` // 是否还有更多 HasMore bool `json:"has_more"` // 对象类型 Object string `json:"object"` }
type V1RoyaltySettlementResponse ¶
type V1RoyaltySettlementResponse struct { // 分账结算单 Data *V1RoyaltySettlement `json:"data"` // 对象类型 Object string `json:"object"` }
type V1RoyaltySettlementSource ¶
type V1RoyaltySettlementSource struct { AvailableSettleAmount float64 `json:"availableSettleAmount,omitempty"` SourceId string `json:"sourceId,omitempty"` Type_ *V1RoyaltySettlementSourceType `json:"type,omitempty"` }
type V1RoyaltySettlementSourceType ¶
type V1RoyaltySettlementSourceType string
const ( TYPE_UNKNOWN V1RoyaltySettlementSourceType = "TYPE_UNKNOWN" CHARGE V1RoyaltySettlementSourceType = "CHARGE" ORDER V1RoyaltySettlementSourceType = "ORDER" )
List of v1RoyaltySettlementSourceType
type V1RoyaltySettlementTransaction ¶
type V1RoyaltySettlementTransaction struct { // 结算金额 Amount float32 `json:"amount"` // 创建时间 Created int64 `json:"created"` // 失败原因 FailureReason string `json:"failure_reason"` Id string `json:"id,omitempty"` Livemode bool `json:"livemode,omitempty"` // 对象类型 Object string `json:"object"` // 接收方 App ID RecipientAppId string `json:"recipient_app_id"` // 接收方用户 ID RecipientUserId string `json:"recipient_user_id"` RoyaltySettlementId string `json:"royalty_settlement_id,omitempty"` // 结算状态 Status *RoyaltySettlementTransactionRoyaltyTransactionStatus `json:"status,omitempty"` // 支付平分账处理流水 ID TransferId string `json:"transfer_id"` // 接收方用户结算账户 ID UserSettlementAccountId string `json:"user_settlement_account_id"` }
type V1RoyaltySettlementTransactionListResponse ¶
type V1RoyaltySettlementTransactionListResponse struct { Data *V1RoyaltySettlementTransaction `json:"data,omitempty"` HasMore bool `json:"hasMore,omitempty"` Object string `json:"object,omitempty"` }
type V1RoyaltySettlementTransactionResponse ¶
type V1RoyaltySettlementTransactionResponse struct { Data *V1RoyaltySettlementTransaction `json:"data,omitempty"` Object string `json:"object,omitempty"` }
type V1RoyaltyStatus ¶
type V1RoyaltyStatus string
const ( ROYALTY_STATUS_UNKNOWN V1RoyaltyStatus = "RoyaltyStatusUnknown" PROCESSING V1RoyaltyStatus = "Processing" FINISHED V1RoyaltyStatus = "Finished" )
List of v1RoyaltyStatus
type V1SearchCustomersRequestCreated ¶
type V1SearchCustomersRequestCreated struct { // 小于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 Gt int64 `json:"gt"` // 小于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 Gte int64 `json:"gte"` // 大于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 Lt int64 `json:"lt"` // 大于或等于 BusinessUser 对象的创建时间,用 Unix 时间戳表示 Lte int64 `json:"lte"` }
type V1ServiceError ¶
type V1SettlementAccount ¶
type V1SettlementAccount struct { // 分账接收方所在的应用 ID AppId string `json:"app_id"` // 分账接收方的用户 ID BusinessUserId string `json:"business_user_id"` // 分账接收方的账户类型 Channel *V1SettlementAccountChannel `json:"channel,omitempty"` // 分账接收方的创建时间 Created int64 `json:"created"` // 分账接收方的用户 ID CustomerId string `json:"customer_id"` // 分账接收方的唯一标识 Id string `json:"id"` // 对象类型 Object string `json:"object"` // 分账接收方的账户信息 Recipient *V1SettlementAccountRecipient `json:"recipient,omitempty"` // 分账接收方的更新时间 Updated int64 `json:"updated"` }
type V1SettlementAccountChannel ¶
type V1SettlementAccountChannel string
const ( CHANNEL_UNKNOWN V1SettlementAccountChannel = "CHANNEL_UNKNOWN" ALIPAY V1SettlementAccountChannel = "ALIPAY" WECHATPAY V1SettlementAccountChannel = "WECHATPAY" BANK V1SettlementAccountChannel = "BANK" BALANCE V1SettlementAccountChannel = "BALANCE" YSEPAY_MERCHANT V1SettlementAccountChannel = "YSEPAY_MERCHANT" )
List of v1SettlementAccountChannel
type V1SettlementAccountListResponse ¶
type V1SettlementAccountListResponse struct { Data []V1SettlementAccount `json:"data,omitempty"` HasMore bool `json:"hasMore,omitempty"` Object string `json:"object,omitempty"` }
type V1SettlementAccountRecipient ¶
type V1SettlementAccountRecipient struct { Balance *SettlementAccountRecipientBalanceChannelRecipient `json:"balance,omitempty"` Bank *SettlementAccountRecipientBankChannelRecipient `json:"bank,omitempty"` PaymentAlipay *SettlementAccountRecipientAlipayChannelRecipient `json:"payment_alipay,omitempty"` Wechatpay *SettlementAccountRecipientWechatpayChannelRecipient `json:"wechatpay,omitempty"` YsepayMerchant *SettlementAccountRecipientYsepayMerchantRecipient `json:"ysepay_merchant,omitempty"` }
type V1SettlementAccountResponse ¶
type V1SettlementAccountResponse struct { Data *V1SettlementAccount `json:"data,omitempty"` Object string `json:"object,omitempty"` }
type V1TransferRoutingResponse ¶
type V1TransferRoutingResponse struct { }
type V1UnionQrRequest ¶
type V1UnionQrRequest struct { // 金额 Amount float64 `json:"amount"` // openid 对应的应用id Appid string `json:"appid"` // 浏览器信息 BrowserAgent string `json:"browser_agent"` // 设备编号 I string `json:"i"` // 打开的app类型,微信/支付宝/qq/闪付 InApp string `json:"in_app"` // 用户openid Openid string `json:"openid"` // 订单备注 Remark string `json:"remark"` // 设备编号的签名 S string `json:"s"` }
type V1UpdateAndPatchRequestBody ¶
type V1UpdateAndPatchRequestBody struct { AppId string `json:"app_id,omitempty"` Channel *V1SettlementAccountChannel `json:"channel,omitempty"` CustomerId string `json:"customer_id,omitempty"` Id string `json:"id,omitempty"` Recipient *V1SettlementAccountRecipient `json:"recipient,omitempty"` UserId string `json:"user_id,omitempty"` }
type V1User ¶
type V1User struct { Address string `json:"address,omitempty"` AppId string `json:"app_id,omitempty"` AvailableBalance float64 `json:"available_balance,omitempty"` Avatar string `json:"avatar,omitempty"` Created string `json:"created,omitempty"` Currency string `json:"currency,omitempty"` Description string `json:"description,omitempty"` Disabled bool `json:"disabled,omitempty"` Email string `json:"email,omitempty"` Gender string `json:"gender,omitempty"` Id string `json:"id,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` Name string `json:"name,omitempty"` Nickname string `json:"nickname,omitempty"` // 对象类型 Object string `json:"object"` ParentId string `json:"parent_id,omitempty"` Phone string `json:"phone,omitempty"` Updated string `json:"updated,omitempty"` WithdrawableBalance float64 `json:"withdrawable_balance,omitempty"` }
type V1UserListResponse ¶
type V1UserResponse ¶
type V1WechatpayCallbackResponse ¶
type V1WechatpayCallbackResponse struct {
CallbackUrl string `json:"callback_url,omitempty"`
}
type V1WechatpayNotifyResponse ¶
type V1WechatpayNotifyResponse struct {
Success bool `json:"success,omitempty"`
}
type V1WechatpayV3PartnerNotifyResponse ¶
type V1WechatpayV3PartnerNotifyResponse struct { }
type V1WechatpayV3PartnerQueryRoyaltyResponse ¶
type V1WechatpayV3PartnerQueryRoyaltyResponse struct { }
type V1WechatpayV3PartnerRoyaltyResponse ¶
type V1WechatpayV3PartnerRoyaltyResponse struct { }
Source Files ¶
- api_.go
- api_business_user_service.go
- api_checkout_service.go
- api_customer_service.go
- api_royalty_service.go
- api_settlement_service.go
- client.go
- configuration.go
- examples.go
- model_charge_routing_request_charge_method.go
- model_create_royalty_request_royalty_fee_mode.go
- model_create_royalty_request_royalty_mode.go
- model_create_royalty_request_royalty_receiver.go
- model_extra_alipay_agreement_sign_params_access_params.go
- model_extra_alipay_agreement_sign_params_period_rule_params.go
- model_extra_alipay_agreement_sign_params_sub_merchant.go
- model_extra_alipay_invoice_info_key_info.go
- model_extra_alipay_jsapi_payer.go
- model_extra_alipay_royalty_info_royalty_detail_infos.go
- model_extra_alipay_settle_info_settle_detail_infos.go
- model_extra_wechatpay_detail_goods_detail.go
- model_extra_wechatpay_scene_info_h5_info.go
- model_extra_wechatpay_scene_info_store_info.go
- model_googlerpc_status.go
- model_health_check_response_serving_status.go
- model_open_api_royalty_detail_info_pojo_trade_fund_bill_item.go
- model_protobuf_any.go
- model_query_charge_list_request_created.go
- model_refund_extra_alipay_open_api_royalty_detail_info_pojo.go
- model_refund_extra_wechat_pay_account.go
- model_refund_extra_wechat_pay_goods_detail_item.go
- model_refund_routing_request_refund_method.go
- model_royalty_receiver_royalty_fee_mode.go
- model_royalty_settlement_royalty_settlement_status.go
- model_royalty_settlement_transaction_royalty_transaction_status.go
- model_rpc_status.go
- model_settlement_account_recipient_account_type.go
- model_settlement_account_recipient_alipay_channel_recipient.go
- model_settlement_account_recipient_balance_channel_recipient.go
- model_settlement_account_recipient_bank_channel_recipient.go
- model_settlement_account_recipient_recipient_type.go
- model_settlement_account_recipient_wechatpay_channel_recipient.go
- model_settlement_account_recipient_ysepay_merchant_recipient.go
- model_tradev1_channel.go
- model_tradev1_royalty_method.go
- model_v1_acquirer_close_transaction_response.go
- model_v1_acquirer_create_refund_response.go
- model_v1_acquirer_create_royalty_response.go
- model_v1_acquirer_create_transaction_response.go
- model_v1_acquirer_payment_notify_response.go
- model_v1_acquirer_query_refund_response.go
- model_v1_acquirer_query_royalty_response.go
- model_v1_acquirer_query_transaction_response.go
- model_v1_acquirer_refund_notify_response.go
- model_v1_acquirer_royalty_notify_response.go
- model_v1_alipay_callback_response.go
- model_v1_alipay_notify_response.go
- model_v1_business_user.go
- model_v1_callback_routing_response.go
- model_v1_channel.go
- model_v1_charge.go
- model_v1_charge_extra.go
- model_v1_charge_list_response.go
- model_v1_charge_response.go
- model_v1_charge_routing_response.go
- model_v1_create_charge_request.go
- model_v1_create_charge_request_extra.go
- model_v1_create_customer_request.go
- model_v1_create_refund_request.go
- model_v1_create_royalty_request.go
- model_v1_create_settlement_account_request.go
- model_v1_create_user_request.go
- model_v1_customer.go
- model_v1_customer_list_response.go
- model_v1_customer_response.go
- model_v1_delete_customer_response.go
- model_v1_delete_product_response.go
- model_v1_delete_settlement_account_response.go
- model_v1_delete_user_response.go
- model_v1_extra_alipay_agreement_params.go
- model_v1_extra_alipay_agreement_sign_params.go
- model_v1_extra_alipay_app.go
- model_v1_extra_alipay_business_params.go
- model_v1_extra_alipay_ext_user_info.go
- model_v1_extra_alipay_extend_params.go
- model_v1_extra_alipay_face.go
- model_v1_extra_alipay_fund_bill_list.go
- model_v1_extra_alipay_goods_detail.go
- model_v1_extra_alipay_invoice_info.go
- model_v1_extra_alipay_jsapi.go
- model_v1_extra_alipay_lite.go
- model_v1_extra_alipay_logistics_detail.go
- model_v1_extra_alipay_page.go
- model_v1_extra_alipay_pay_params.go
- model_v1_extra_alipay_qr.go
- model_v1_extra_alipay_receiver_address_info.go
- model_v1_extra_alipay_royalty_info.go
- model_v1_extra_alipay_scan.go
- model_v1_extra_alipay_settle_info.go
- model_v1_extra_alipay_sub_merchant.go
- model_v1_extra_alipay_voucher_detail_list.go
- model_v1_extra_alipay_wap.go
- model_v1_extra_wechatpay_app.go
- model_v1_extra_wechatpay_app_config.go
- model_v1_extra_wechatpay_applet_config.go
- model_v1_extra_wechatpay_detail.go
- model_v1_extra_wechatpay_h5.go
- model_v1_extra_wechatpay_jsapi.go
- model_v1_extra_wechatpay_jsapi_config.go
- model_v1_extra_wechatpay_lite.go
- model_v1_extra_wechatpay_native.go
- model_v1_extra_wechatpay_payer.go
- model_v1_extra_wechatpay_scan.go
- model_v1_extra_wechatpay_scene_info.go
- model_v1_extra_wechatpay_settle_info.go
- model_v1_finish_royalty_response.go
- model_v1_gender.go
- model_v1_health_check_response.go
- model_v1_list_all_customers_request_created.go
- model_v1_list_all_royalties_request_created.go
- model_v1_list_all_royalties_response.go
- model_v1_list_all_settlement_accounts_request_created.go
- model_v1_list_all_users_request_created.go
- model_v1_notify_routing_response.go
- model_v1_product_list_response.go
- model_v1_product_response.go
- model_v1_query_charge_list_request_created.go
- model_v1_refund.go
- model_v1_refund_extra.go
- model_v1_refund_extra_alipay.go
- model_v1_refund_extra_wechat_pay.go
- model_v1_refund_list_response.go
- model_v1_refund_response.go
- model_v1_refund_routing_response.go
- model_v1_royalty.go
- model_v1_royalty_list_response.go
- model_v1_royalty_method.go
- model_v1_royalty_mode.go
- model_v1_royalty_response.go
- model_v1_royalty_routing_request_royalty_method.go
- model_v1_royalty_routing_response.go
- model_v1_royalty_settlement.go
- model_v1_royalty_settlement_list_response.go
- model_v1_royalty_settlement_response.go
- model_v1_royalty_settlement_source.go
- model_v1_royalty_settlement_source_type.go
- model_v1_royalty_settlement_transaction.go
- model_v1_royalty_settlement_transaction_list_response.go
- model_v1_royalty_settlement_transaction_response.go
- model_v1_royalty_status.go
- model_v1_search_customers_request_created.go
- model_v1_search_royalties_response.go
- model_v1_search_users_request_created.go
- model_v1_service_error.go
- model_v1_settlement_account.go
- model_v1_settlement_account_channel.go
- model_v1_settlement_account_list_response.go
- model_v1_settlement_account_recipient.go
- model_v1_settlement_account_response.go
- model_v1_transfer_routing_response.go
- model_v1_union_qr_request.go
- model_v1_update_and_patch_request_body.go
- model_v1_user.go
- model_v1_user_list_response.go
- model_v1_user_response.go
- model_v1_wechatpay_callback_response.go
- model_v1_wechatpay_notify_response.go
- model_v1_wechatpay_v3_partner_notify_response.go
- model_v1_wechatpay_v3_partner_query_royalty_response.go
- model_v1_wechatpay_v3_partner_royalty_response.go
- response.go
- util.go