# README
Go API client for justap
- API version: 1.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen
Document
Installation
Put the package under your project folder and add the following in import:
import "./justap"
Documentation for API Endpoints
All URIs are relative to http://127.0.0.1:21011
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | BusinessUserServiceCreateUser | Post /v1/business_users | 创建 Business User 对象 |
DefaultApi | BusinessUserServiceDeleteUser | Delete /v1/business_users/{id} | 删除 Business User 对象 |
DefaultApi | BusinessUserServiceListAllUsers | Get /v1/business_users | 查询 Business User 对象列表 |
DefaultApi | BusinessUserServiceRetrieveUser | Get /v1/business_users/{id} | 查询 Business User 对象 |
DefaultApi | BusinessUserServiceSearchUsers | Get /v1/business_users/search | 查询 Business User 对象列表 |
DefaultApi | BusinessUserServiceUpdateUser | Put /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | BusinessUserServiceUpdateUser2 | Patch /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | ChargeServiceCharges | Post /transaction/v1/charges | 创建 Charge 对象 |
DefaultApi | ChargeServiceCharges2 | Post /v1/charges | 创建 Charge 对象 |
DefaultApi | ChargeServiceQueryCharge | Get /transaction/v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | ChargeServiceQueryCharge2 | Get /v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | ChargeServiceQueryCharge3 | Get /v1/charges/merchant_trade_id/{merchant_trade_id} | 查询 Charge 对象 |
DefaultApi | ChargeServiceQueryChargeList | Get /transaction/v1/charges | 查询 Charge 对象列表 |
DefaultApi | ChargeServiceQueryChargeList2 | Get /v1/charges | 查询 Charge 对象列表 |
DefaultApi | ChargeServiceReverseCharge | Post /transaction/v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | ChargeServiceReverseCharge2 | Post /v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | RefundServiceQueryRefund | Get /transaction/v1/charges/{charge_id}/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | RefundServiceQueryRefund2 | Get /v1/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | RefundServiceQueryRefundList | Get /transaction/v1/charges/{charge_id}/refunds | 查询 Refund 对象列表 |
DefaultApi | RefundServiceQueryRefundList2 | Get /v1/refunds | 查询 Refund 对象列表 |
DefaultApi | RefundServiceRefunds | Post /transaction/v1/refunds | 创建 Refund 对象 |
DefaultApi | RefundServiceRefunds2 | Post /v1/refunds | 创建 Refund 对象 |
DefaultApi | RoyaltyServiceCreateRoyalty | Post /v1/royalties | 创建 Royalty 对象 |
DefaultApi | RoyaltyServiceListAllRoyalties | Get /v1/royalties | 查询 Royalty 对象列表 |
DefaultApi | RoyaltyServiceRetrieveRoyalty | Get /v1/royalties/{id} | 查询 Royalty 对象 |
DefaultApi | SettlementServiceCreateSettlementAccount | Post /v1/settlement_accounts | 创建结算账户 |
DefaultApi | SettlementServiceDeleteSettlementAccount | Delete /v1/settlement_accounts/{id} | 删除结算账户 |
DefaultApi | SettlementServiceListAllSettlementAccounts | Get /v1/settlement_accounts | 查询结算账户列表 |
DefaultApi | SettlementServiceRetrieveSettlementAccount | Get /v1/settlement_accounts/{id} | 查询结算账户 |
DefaultApi | SettlementServiceSearchSettlementAccounts | Get /v1/settlement_accounts/search | 查询结算账户列表 |
DefaultApi | SettlementServiceUpdateSettlementAccount | Put /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
DefaultApi | SettlementServiceUpdateSettlementAccount2 | Patch /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
CheckoutServiceApi | CheckoutServiceCreateUnionQrCheckout | Post /v1/checkout/union_qr | 通过聚合收款码创建订单 |
CustomerServiceApi | CustomerServiceCreateCustomer | Post /v1/customers | |
CustomerServiceApi | CustomerServiceDeleteCustomer | Delete /v1/customers/{id} | |
CustomerServiceApi | CustomerServiceListAllCustomers | Get /v1/customers | |
CustomerServiceApi | CustomerServiceRetrieveCustomer | Get /v1/customers/{id} | |
CustomerServiceApi | CustomerServiceSearchCustomers | Get /v1/customers/search | |
CustomerServiceApi | CustomerServiceUpdateCustomer | Post /v1/customers/{id} |
Documentation For Models
- ChargeRoutingRequestChargeMethod
- CreateRoyaltyRequestRoyaltyMode
- CreateRoyaltyRequestRoyaltyReceiver
- ExtraAlipayInvoiceInfoKeyInfo
- ExtraAlipayJsapiPayer
- ExtraAlipayPageAlipayDirectPayForm
- ExtraAlipaySettleInfoSettleDetailInfos
- ExtraUnionPayCardlessQuickPayCardType
- ExtraWechatpayDetailGoodsDetail
- ExtraWechatpaySceneInfoH5Info
- ExtraWechatpaySceneInfoStoreInfo
- GooglerpcStatus
- OpenApiRoyaltyDetailInfoPojoTradeFundBillItem
- ProtobufAny
- RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo
- RefundExtraWechatPayAccount
- RefundExtraWechatPayGoodsDetailItem
- RefundRoutingRequestRefundMethod
- RoyaltyReceiverRoyaltyFeeMode
- RoyaltySettlementRoyaltySettlementStatus
- RoyaltySettlementTransactionRoyaltyTransactionStatus
- SettlementAccountRecipientAccountType
- SettlementAccountRecipientAlipayChannelRecipient
- SettlementAccountRecipientBalanceChannelRecipient
- SettlementAccountRecipientBankChannelRecipient
- SettlementAccountRecipientRecipientType
- SettlementAccountRecipientWechatpayChannelRecipient
- SettlementAccountRecipientYsepayMerchantRecipient
- Tradev1Channel
- Tradev1RoyaltyMethod
- V1AcquirerCloseTransactionResponse
- V1AcquirerCreateRefundResponse
- V1AcquirerCreateRoyaltyResponse
- V1AcquirerCreateTransactionResponse
- V1AcquirerPaymentNotifyResponse
- V1AcquirerQueryRefundResponse
- V1AcquirerQueryRoyaltyResponse
- V1AcquirerQueryTransactionResponse
- V1AcquirerRefundNotifyResponse
- V1AcquirerRoyaltyNotifyResponse
- V1AlipayCallbackResponse
- V1AlipayNotifyResponse
- V1BusinessUser
- V1CallbackRoutingResponse
- V1Charge
- V1ChargeExtra
- V1ChargeListResponse
- V1ChargeResponse
- V1ChargeRoutingResponse
- V1CreateChargeRequest
- V1CreateChargeRequestExtra
- V1CreateCustomerRequest
- V1CreateRefundRequest
- V1CreateRoyaltyRequest
- V1CreateSettlementAccountRequest
- V1CreateUserRequest
- V1Customer
- V1CustomerListResponse
- V1CustomerResponse
- V1DeleteCustomerResponse
- V1DeleteProductResponse
- V1DeleteSettlementAccountResponse
- V1DeleteUserResponse
- V1ExtraAlipayApp
- V1ExtraAlipayBusinessParams
- V1ExtraAlipayExtUserInfo
- V1ExtraAlipayExtendParams
- V1ExtraAlipayFace
- V1ExtraAlipayFundBillList
- V1ExtraAlipayGoodsDetail
- V1ExtraAlipayInvoiceInfo
- V1ExtraAlipayJsapi
- V1ExtraAlipayLite
- V1ExtraAlipayLogisticsDetail
- V1ExtraAlipayPage
- V1ExtraAlipayPayParams
- V1ExtraAlipayQr
- V1ExtraAlipayReceiverAddressInfo
- V1ExtraAlipayScan
- V1ExtraAlipaySettleInfo
- V1ExtraAlipaySubMerchant
- V1ExtraAlipayVoucherDetailList
- V1ExtraAlipayWap
- V1ExtraUnionPayCardlessQuickPay
- V1ExtraWechatpayApp
- V1ExtraWechatpayAppConfig
- V1ExtraWechatpayAppletConfig
- V1ExtraWechatpayDetail
- V1ExtraWechatpayH5
- V1ExtraWechatpayJsapi
- V1ExtraWechatpayJsapiConfig
- V1ExtraWechatpayLite
- V1ExtraWechatpayNative
- V1ExtraWechatpayPayer
- V1ExtraWechatpayScan
- V1ExtraWechatpaySceneInfo
- V1ExtraWechatpaySettleInfo
- V1FinishRoyaltyResponse
- V1Gender
- V1ListAllCustomersRequestCreated
- V1ListAllRoyaltiesRequestCreated
- V1ListAllRoyaltiesResponse
- V1ListAllSettlementAccountsRequestCreated
- V1ListAllUsersRequestCreated
- V1NotifyRoutingResponse
- V1ProductListResponse
- V1ProductResponse
- V1QueryChargeListRequestCreated
- V1Refund
- V1RefundExtra
- V1RefundExtraAlipay
- V1RefundExtraWechatPay
- V1RefundListResponse
- V1RefundResponse
- V1RefundRoutingResponse
- V1Royalty
- V1RoyaltyResponse
- V1RoyaltyRoutingRequestRoyaltyMethod
- V1RoyaltyRoutingResponse
- V1RoyaltySettlement
- V1RoyaltySettlementListResponse
- V1RoyaltySettlementResponse
- V1RoyaltySettlementSource
- V1RoyaltySettlementSourceType
- V1RoyaltySettlementTransaction
- V1RoyaltySettlementTransactionListResponse
- V1RoyaltySettlementTransactionResponse
- V1RoyaltyStatus
- V1SearchCustomersRequestCreated
- V1SearchRoyaltiesResponse
- V1SearchUsersRequestCreated
- V1ServiceError
- V1SettlementAccount
- V1SettlementAccountChannel
- V1SettlementAccountListResponse
- V1SettlementAccountRecipient
- V1SettlementAccountResponse
- V1TransferRoutingResponse
- V1UnionQrRequest
- V1UpdateAndPatchRequestBody
- V1User
- V1UserListResponse
- V1UserResponse
- V1WechatpayCallbackResponse
- V1WechatpayNotifyResponse
Documentation For Authorization
ApiKeyAuth
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
Author
# Functions
No description provided by the author
No description provided by the author
CacheExpires helper function to determine remaining time before repeating a request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
List of SettlementAccountRecipientAccountType.
List of tradev1RoyaltyMethod.
List of v1RoyaltyMethod.
List of v1SettlementAccountChannel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of SettlementAccountRecipientRecipientType.
List of SettlementAccountRecipientRecipientType.
List of tradev1Channel.
List of tradev1RoyaltyMethod.
List of v1Channel.
List of v1RoyaltyMethod.
List of v1SettlementAccountChannel.
List of v1SettlementAccountChannel.
List of ExtraUnionPayCardlessQuickPayCardType.
List of tradev1Channel.
List of v1Channel.
List of v1SettlementAccountChannel.
List of v1RoyaltySettlementSourceType.
List of ChargeRoutingRequestChargeMethod.
List of ChargeRoutingRequestChargeMethod.
List of RoyaltySettlementTransactionRoyaltyTransactionStatus.
List of RoyaltySettlementRoyaltySettlementStatus.
List of ChargeRoutingRequestChargeMethod.
List of RefundRoutingRequestRefundMethod.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of RoyaltySettlementRoyaltySettlementStatus.
List of ExtraUnionPayCardlessQuickPayCardType.
List of ExtraUnionPayCardlessQuickPayCardType.
List of RoyaltySettlementTransactionRoyaltyTransactionStatus.
List of v1Gender.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of v1RoyaltyStatus.
List of CreateRoyaltyRequestRoyaltyFeeMode.
List of CreateRoyaltyRequestRoyaltyMode.
List of RoyaltyReceiverRoyaltyFeeMode.
List of v1RoyaltyMode.
List of CreateRoyaltyRequestRoyaltyFeeMode.
List of RoyaltyReceiverRoyaltyFeeMode.
List of v1Gender.
List of SettlementAccountRecipientAccountType.
List of v1Gender.
List of SettlementAccountRecipientAccountType.
List of HealthCheckResponseServingStatus.
List of SettlementAccountRecipientAccountType.
List of v1RoyaltySettlementSourceType.
List of RoyaltySettlementRoyaltySettlementStatus.
List of RoyaltySettlementTransactionRoyaltyTransactionStatus.
List of v1Gender.
List of v1RoyaltyStatus.
List of ChargeRoutingRequestChargeMethod.
List of RefundRoutingRequestRefundMethod.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of CreateRoyaltyRequestRoyaltyFeeMode.
List of CreateRoyaltyRequestRoyaltyMode.
List of RoyaltyReceiverRoyaltyFeeMode.
List of v1RoyaltyMode.
List of RefundRoutingRequestRefundMethod.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of v1RoyaltyRoutingRequestRoyaltyMethod.
List of tradev1RoyaltyMethod.
List of v1RoyaltyMethod.
List of CreateRoyaltyRequestRoyaltyMode.
List of v1RoyaltyMode.
List of RoyaltySettlementRoyaltySettlementStatus.
List of v1RoyaltyStatus.
List of HealthCheckResponseServingStatus.
List of HealthCheckResponseServingStatus.
List of SettlementAccountRecipientAccountType.
List of RoyaltySettlementTransactionRoyaltyTransactionStatus.
List of v1Gender.
List of v1RoyaltySettlementSourceType.
List of SettlementAccountRecipientRecipientType.
List of tradev1Channel.
List of tradev1Channel.
List of tradev1Channel.
List of HealthCheckResponseServingStatus.
List of RoyaltySettlementTransactionRoyaltyTransactionStatus.
List of SettlementAccountRecipientAccountType.
List of tradev1RoyaltyMethod.
List of v1RoyaltyMethod.
List of v1SettlementAccountChannel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1Channel.
List of v1Channel.
List of tradev1RoyaltyMethod.
List of v1SettlementAccountChannel.
# Variables
ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
# Structs
APIClient manages communication with the Justap API API v1.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericSwaggerError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
返回一个已存在的 charge 对象列表或者一个错误.
返回一个支付凭据 charge 对象。.
No description provided by the author
你可以创建一个 charge 对象向用户收款。charge 是一个支付凭据对象,所有和支付相关的要素信息都存储在这个对象中,你的服务端可以通过发起支付请求来创建一个新的 charge 对象,也可以随时查询一个或者多个 charge 对象的状态。每个 charge 对象都拥有一个标识 id,该 id 在系统内唯一。.
No description provided by the author
No description provided by the author
通过发起一次退款请求创建一个新的 refund 对象,只能对已经发生交易并且没有全额退款的 charge 对象发起退款。当进行全额退款之前,可以进行多次退款,直至全额退款。当一次退款成功后,会发送 Webhooks 通知。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Refund 对象允许你可以对已经支付的 charge 对象发起退款请求。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Tradev1Channel : - BALANCE: 余额支付 - AlipayQR: 支付宝扫码支付 - AlipayScan: 支付宝条码支付 - AlipayApp: 支付宝 App 支付 - AlipayWap: 支付宝手机网站支付 - AlipayPage: 支付宝电脑网站支付 - AlipayFace: 支付宝刷脸支付 - AlipayLite: 支付宝小程序支付 - AlipayJSAPI: 支付宝 JSAPI 支付 - WechatpayApp: 微信 App 支付 - WechatpayJSAPI: 微信 JSAPI 支付 - WechatpayH5: 微信 H5 支付 - WechatpayNative: 微信 Native 支付 - WechatpayLite: 微信小程序支付 - WechatpayFace: 刷脸支付 - WechatpayScan: 微信付款码支付 - UnionPayQr: 银联二维码支付(云闪付扫码) - UnionPayCardlessQuickPay: 银联无卡快捷支付 - UnionPayAgreementQuickPay: 银联协议快捷支付.
No description provided by the author
V1Channel : - BALANCE: 余额支付 - AlipayQR: 支付宝扫码支付 - AlipayScan: 支付宝条码支付 - AlipayApp: 支付宝 App 支付 - AlipayWap: 支付宝手机网站支付 - AlipayPage: 支付宝电脑网站支付 - AlipayFace: 支付宝刷脸支付 - AlipayLite: 支付宝小程序支付 - WechatpayApp: 微信 App 支付 - WechatpayJSAPI: 微信 JSAPI 支付 - WechatpayH5: 微信 H5 支付 - WechatpayNative: 微信 Native 支付 - WechatpayLite: 微信小程序支付 - WechatpayFace: 刷脸支付 - WechatpayScan: 微信付款码支付.
No description provided by the author
V1RoyaltyMethod : - Alipay: 支付宝 - Wechatpay: 对应 MERCHANT_ID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author