Categorygithub.com/justapnet/justap-server-sdk-go
repositorypackage
0.0.0-20240904001335-00c198adc4bb
Repository: https://github.com/justapnet/justap-server-sdk-go.git
Documentation: pkg.go.dev

# README

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

ClassMethodHTTP requestDescription
DefaultApiBusinessUserServiceCreateUserPost /v1/business_users创建 Business User 对象
DefaultApiBusinessUserServiceDeleteUserDelete /v1/business_users/{id}删除 Business User 对象
DefaultApiBusinessUserServiceListAllUsersGet /v1/business_users查询 Business User 对象列表
DefaultApiBusinessUserServiceRetrieveUserGet /v1/business_users/{id}查询 Business User 对象
DefaultApiBusinessUserServiceSearchUsersGet /v1/business_users/search查询 Business User 对象列表
DefaultApiBusinessUserServiceUpdateUserPut /v1/business_users/{user.id}更新 Business User 对象
DefaultApiBusinessUserServiceUpdateUser2Patch /v1/business_users/{user.id}更新 Business User 对象
DefaultApiChargeServiceChargesPost /transaction/v1/charges创建 Charge 对象
DefaultApiChargeServiceCharges2Post /v1/charges创建 Charge 对象
DefaultApiChargeServiceQueryChargeGet /transaction/v1/charges/{charge_id}查询 Charge 对象
DefaultApiChargeServiceQueryCharge2Get /v1/charges/{charge_id}查询 Charge 对象
DefaultApiChargeServiceQueryCharge3Get /v1/charges/merchant_trade_id/{merchant_trade_id}查询 Charge 对象
DefaultApiChargeServiceQueryChargeListGet /transaction/v1/charges查询 Charge 对象列表
DefaultApiChargeServiceQueryChargeList2Get /v1/charges查询 Charge 对象列表
DefaultApiChargeServiceReverseChargePost /transaction/v1/charges/{charge_id}/reverse撤销 Charge 对象
DefaultApiChargeServiceReverseCharge2Post /v1/charges/{charge_id}/reverse撤销 Charge 对象
DefaultApiRefundServiceQueryRefundGet /transaction/v1/charges/{charge_id}/refunds/{refund_id}查询 Refund 对象
DefaultApiRefundServiceQueryRefund2Get /v1/refunds/{refund_id}查询 Refund 对象
DefaultApiRefundServiceQueryRefundListGet /transaction/v1/charges/{charge_id}/refunds查询 Refund 对象列表
DefaultApiRefundServiceQueryRefundList2Get /v1/refunds查询 Refund 对象列表
DefaultApiRefundServiceRefundsPost /transaction/v1/refunds创建 Refund 对象
DefaultApiRefundServiceRefunds2Post /v1/refunds创建 Refund 对象
DefaultApiRoyaltyServiceCreateRoyaltyPost /v1/royalties创建 Royalty 对象
DefaultApiRoyaltyServiceListAllRoyaltiesGet /v1/royalties查询 Royalty 对象列表
DefaultApiRoyaltyServiceRetrieveRoyaltyGet /v1/royalties/{id}查询 Royalty 对象
DefaultApiSettlementServiceCreateSettlementAccountPost /v1/settlement_accounts创建结算账户
DefaultApiSettlementServiceDeleteSettlementAccountDelete /v1/settlement_accounts/{id}删除结算账户
DefaultApiSettlementServiceListAllSettlementAccountsGet /v1/settlement_accounts查询结算账户列表
DefaultApiSettlementServiceRetrieveSettlementAccountGet /v1/settlement_accounts/{id}查询结算账户
DefaultApiSettlementServiceSearchSettlementAccountsGet /v1/settlement_accounts/search查询结算账户列表
DefaultApiSettlementServiceUpdateSettlementAccountPut /v1/settlement_accounts/{settlementAccount.id}更新结算账户
DefaultApiSettlementServiceUpdateSettlementAccount2Patch /v1/settlement_accounts/{settlementAccount.id}更新结算账户
CheckoutServiceApiCheckoutServiceCreateUnionQrCheckoutPost /v1/checkout/union_qr通过聚合收款码创建订单
CustomerServiceApiCustomerServiceCreateCustomerPost /v1/customers
CustomerServiceApiCustomerServiceDeleteCustomerDelete /v1/customers/{id}
CustomerServiceApiCustomerServiceListAllCustomersGet /v1/customers
CustomerServiceApiCustomerServiceRetrieveCustomerGet /v1/customers/{id}
CustomerServiceApiCustomerServiceSearchCustomersGet /v1/customers/search
CustomerServiceApiCustomerServiceUpdateCustomerPost /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

[email protected]