1 Star 0 Fork 0

justapnet/justap-server-sdk-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

justap-server-sdk-python

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

Document

https://www.justap.cn/docs

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import justap_server_sdk_python 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import justap_server_sdk_python

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import justap_server_sdk_python
from justap_server_sdk_python.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = justap_server_sdk_python.Configuration()
configuration.api_key['X-JUSTAP-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-JUSTAP-API-KEY'] = 'Bearer'

# create an instance of the API class
api_instance = justap_server_sdk_python.DefaultApi(justap_server_sdk_python.ApiClient(configuration))
body = justap_server_sdk_python.V1CreateUserRequest() # V1CreateUserRequest | 

try:
    # 创建 Business User 对象
    api_response = api_instance.business_user_service_create_user(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->business_user_service_create_user: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:21011

Class Method HTTP request Description
DefaultApi business_user_service_create_user POST /v1/business_users 创建 Business User 对象
DefaultApi business_user_service_delete_user DELETE /v1/business_users/{id} 删除 Business User 对象
DefaultApi business_user_service_list_all_users GET /v1/business_users 查询 Business User 对象列表
DefaultApi business_user_service_retrieve_user GET /v1/business_users/{id} 查询 Business User 对象
DefaultApi business_user_service_search_users GET /v1/business_users/search 查询 Business User 对象列表
DefaultApi business_user_service_update_user PUT /v1/business_users/{user.id} 更新 Business User 对象
DefaultApi business_user_service_update_user2 PATCH /v1/business_users/{user.id} 更新 Business User 对象
DefaultApi charge_service_charges POST /transaction/v1/charges 创建 Charge 对象
DefaultApi charge_service_charges2 POST /v1/charges 创建 Charge 对象
DefaultApi charge_service_query_charge GET /transaction/v1/charges/{charge_id} 查询 Charge 对象
DefaultApi charge_service_query_charge2 GET /v1/charges/{charge_id} 查询 Charge 对象
DefaultApi charge_service_query_charge3 GET /v1/charges/merchant_trade_id/{merchant_trade_id} 查询 Charge 对象
DefaultApi charge_service_query_charge_list GET /transaction/v1/charges 查询 Charge 对象列表
DefaultApi charge_service_query_charge_list2 GET /v1/charges 查询 Charge 对象列表
DefaultApi charge_service_reverse_charge POST /transaction/v1/charges/{charge_id}/reverse 撤销 Charge 对象
DefaultApi charge_service_reverse_charge2 POST /v1/charges/{charge_id}/reverse 撤销 Charge 对象
DefaultApi refund_service_query_refund GET /transaction/v1/charges/{charge_id}/refunds/{refund_id} 查询 Refund 对象
DefaultApi refund_service_query_refund2 GET /v1/refunds/{refund_id} 查询 Refund 对象
DefaultApi refund_service_query_refund_list GET /transaction/v1/charges/{charge_id}/refunds 查询 Refund 对象列表
DefaultApi refund_service_query_refund_list2 GET /v1/refunds 查询 Refund 对象列表
DefaultApi refund_service_refunds POST /transaction/v1/refunds 创建 Refund 对象
DefaultApi refund_service_refunds2 POST /v1/refunds 创建 Refund 对象
DefaultApi royalty_service_create_royalty POST /v1/royalties 创建 Royalty 对象
DefaultApi royalty_service_list_all_royalties GET /v1/royalties 查询 Royalty 对象列表
DefaultApi royalty_service_retrieve_royalty GET /v1/royalties/{id} 查询 Royalty 对象
DefaultApi settlement_service_create_settlement_account POST /v1/settlement_accounts 创建结算账户
DefaultApi settlement_service_delete_settlement_account DELETE /v1/settlement_accounts/{id} 删除结算账户
DefaultApi settlement_service_list_all_settlement_accounts GET /v1/settlement_accounts 查询结算账户列表
DefaultApi settlement_service_retrieve_settlement_account GET /v1/settlement_accounts/{id} 查询结算账户
DefaultApi settlement_service_search_settlement_accounts GET /v1/settlement_accounts/search 查询结算账户列表
DefaultApi settlement_service_update_settlement_account PUT /v1/settlement_accounts/{settlementAccount.id} 更新结算账户
DefaultApi settlement_service_update_settlement_account2 PATCH /v1/settlement_accounts/{settlementAccount.id} 更新结算账户
CheckoutServiceApi checkout_service_create_union_qr_checkout POST /v1/checkout/union_qr 通过聚合收款码创建订单
CustomerServiceApi customer_service_create_customer POST /v1/customers
CustomerServiceApi customer_service_delete_customer DELETE /v1/customers/{id}
CustomerServiceApi customer_service_list_all_customers GET /v1/customers
CustomerServiceApi customer_service_retrieve_customer GET /v1/customers/{id}
CustomerServiceApi customer_service_search_customers GET /v1/customers/search
CustomerServiceApi customer_service_update_customer POST /v1/customers/{id}

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-JUSTAP-API-KEY
  • Location: HTTP header

Author

support@justap.net

空文件

简介

Justap 是为中小微企业及线下商家适应数字化转型而打造的面向移动端应用和PC端应用的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户提供了完整的支持。 展开 收起
取消

发行版 (3)

全部
3年前

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/justapnet/justap-server-sdk-python.git
git@gitee.com:justapnet/justap-server-sdk-python.git
justapnet
justap-server-sdk-python
justap-server-sdk-python
master

搜索帮助