Skip to content

justapnet/justap-server-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for justap

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Document

https://www.justap.cn/docs

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

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

support@justap.net