Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UniBee-Billing/unibee-python-client

Repository files navigation

openapi-client

This is UniBee api server

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: buildtime:202404131246
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/UniB-e-e/unibee-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/UniB-e-e/unibee-python-client.git)

Then import the package:

import openapi_client

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 openapi_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.Auth(api_client)
    unibee_api_merchant_auth_login_otp_req = openapi_client.UnibeeApiMerchantAuthLoginOtpReq() # UnibeeApiMerchantAuthLoginOtpReq | 

    try:
        # Login OTP
        api_response = api_instance.auth_sso_login_otp_post(unibee_api_merchant_auth_login_otp_req)
        print("The response of Auth->auth_sso_login_otp_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling Auth->auth_sso_login_otp_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
Auth auth_sso_login_otp_post POST /merchant/auth/sso/loginOTP Login OTP
Auth auth_sso_login_otp_verify_post POST /merchant/auth/sso/loginOTPVerify Merchant User OTP Login Verify
Auth auth_sso_login_post POST /merchant/auth/sso/login Login
Auth auth_sso_password_forget_otp_post POST /merchant/auth/sso/passwordForgetOTP Merchant Password Forget OTP
Auth auth_sso_password_forget_otp_verify_post POST /merchant/auth/sso/passwordForgetOTPVerify Merchant Password Forget OTP Verify
Auth auth_sso_register_post POST /merchant/auth/sso/register Merchant Register
Auth auth_sso_register_verify_post POST /merchant/auth/sso/registerVerify Merchant Register Verify
Balance balance_merchant_balance_query_get GET /merchant/balance/merchant_balance_query Query Merchant Gateway Balance
Balance balance_merchant_balance_query_post POST /merchant/balance/merchant_balance_query Query Merchant Gateway Balance
Balance balance_user_balance_query_get GET /merchant/balance/user_balance_query Query User Balance
Balance balance_user_balance_query_post POST /merchant/balance/user_balance_query Query User Balance
Email email_gateway_setup_post POST /merchant/email/gateway_setup Merchant Email Gateway Setup
EmailTemplate email_template_activate_post POST /merchant/email/template_activate Merchant Email Template Activate
EmailTemplate email_template_deactivate_post POST /merchant/email/template_deactivate Merchant Email Template Deactivate
EmailTemplate email_template_list_get GET /merchant/email/template_list Merchant Email Template List
EmailTemplate email_template_set_default_post POST /merchant/email/template_set_default Merchant Email Template Set Default
EmailTemplate email_template_update_post POST /merchant/email/template_update Merchant Email Template Update
File oss_file_post POST /merchant/oss/file Upload File
Gateway gateway_edit_country_config_post POST /merchant/gateway/edit_country_config Gateway Webhook Edit Country Config
Gateway gateway_edit_post POST /merchant/gateway/edit Gateway Webhook Edit
Gateway gateway_list_get GET /merchant/gateway/list Gateway List
Gateway gateway_setup_post POST /merchant/gateway/setup Gateway Setup
Gateway gateway_setup_webhook_post POST /merchant/gateway/setup_webhook Gateway Webhook Setup
Invoice invoice_cancel_post POST /merchant/invoice/cancel Admin Cancel Invoice Of Processing Status
Invoice invoice_delete_post POST /merchant/invoice/delete Admin Delete Invoice Of Pending Status
Invoice invoice_detail_get GET /merchant/invoice/detail Invoice Detail
Invoice invoice_detail_post POST /merchant/invoice/detail Invoice Detail
Invoice invoice_edit_post POST /merchant/invoice/edit Admin Edit Invoice
Invoice invoice_finish_post POST /merchant/invoice/finish Admin Finish Invoice,Generate Pay Link
Invoice invoice_list_get GET /merchant/invoice/list Invoice List
Invoice invoice_list_post POST /merchant/invoice/list Invoice List
Invoice invoice_mark_refund_post POST /merchant/invoice/mark_refund Admin Mark Refund For Invoice
Invoice invoice_new_post POST /merchant/invoice/new Admin Create New Invoice
Invoice invoice_pdf_generate_post POST /merchant/invoice/pdf_generate Admin Generate Merchant Invoice pdf
Invoice invoice_reconvert_crypto_and_send_email_post POST /merchant/invoice/reconvert_crypto_and_send_email Admin Reconvert Crypto Data and Send Invoice Email to User
Invoice invoice_refund_post POST /merchant/invoice/refund Admin Create Refund For Invoice
Invoice invoice_send_email_post POST /merchant/invoice/send_email Admin Send Merchant Invoice Email to User
Member member_list_get GET /merchant/member/list Get Merchant Member List
Member member_logout_post POST /merchant/member/logout Merchant Member Logout
Member member_new_member_post POST /merchant/member/new_member Invite member
Member member_password_reset_post POST /merchant/member/passwordReset Merchant Member Reset Password
Member member_profile_get GET /merchant/member/profile Get Merchant Member Profile
Member member_update_member_role_post POST /merchant/member/update_member_role Update Member Role
Metric metric_delete_post POST /merchant/metric/delete Delete Merchant Metric
Metric metric_detail_post POST /merchant/metric/detail Merchant Metric Detail
Metric metric_edit_post POST /merchant/metric/edit Edit Merchant Metric
Metric metric_event_delete_post POST /merchant/metric/event/delete Del Merchant Metric Event
Metric metric_event_new_post POST /merchant/metric/event/new Merchant Metric Event
Metric metric_list_get GET /merchant/metric/list Merchant Metric list
Metric metric_new_post POST /merchant/metric/new New Merchant Metric
Metric metric_plan_limit_delete_post POST /merchant/metric/plan/limit/delete Delete Merchant Metric Plan TotalLimit
Metric metric_plan_limit_edit_post POST /merchant/metric/plan/limit/edit Edit Merchant Metric Plan TotalLimit
Metric metric_plan_limit_new_post POST /merchant/metric/plan/limit/new New Merchant Metric Plan TotalLimit
Payment payment_cancel_post POST /merchant/payment/cancel Cancel Payment
Payment payment_capture_post POST /merchant/payment/capture Capture Payment
Payment payment_detail_get GET /merchant/payment/detail Query Payment Detail
Payment payment_list_get GET /merchant/payment/list Query Payment List
Payment payment_method_get_get GET /merchant/payment/method_get Query Payment Method
Payment payment_method_list_get GET /merchant/payment/method_list Query Payment Method List
Payment payment_method_new_post POST /merchant/payment/method_new Create New Payment Method And Attach To User
Payment payment_new_post POST /merchant/payment/new New Payment
Payment payment_refund_cancel_post POST /merchant/payment/refund/cancel Cancel Payment Refund
Payment payment_refund_detail_get GET /merchant/payment/refund/detail Query Payment Refund Detail
Payment payment_refund_list_get GET /merchant/payment/refund/list Query Payment Refund List
Payment payment_refund_new_post POST /merchant/payment/refund/new New Payment Refund
Payment payment_timeline_list_get GET /merchant/payment/timeline/list Payment TimeLine List
Plan plan_activate_post POST /merchant/plan/activate Activate Plan
Plan plan_addons_binding_post POST /merchant/plan/addons_binding Plan Binding Addons
Plan plan_delete_post POST /merchant/plan/delete Delete A Plan Before Activate
Plan plan_detail_get GET /merchant/plan/detail Query Plan Detail
Plan plan_detail_post POST /merchant/plan/detail Query Plan Detail
Plan plan_edit_post POST /merchant/plan/edit Edit Plan
Plan plan_expire_post POST /merchant/plan/expire Expire Plan
Plan plan_list_get GET /merchant/plan/list Plan List
Plan plan_list_post POST /merchant/plan/list Plan List
Plan plan_new_post POST /merchant/plan/new Create Plan
Plan plan_publish_post POST /merchant/plan/publish Publish Plan,Will Be Visible To UserPortal
Plan plan_unpublished_post POST /merchant/plan/unpublished UnPublish Plan
Profile country_config_list_post POST /merchant/country_config_list Merchant Edit Country Config
Profile edit_country_config_post POST /merchant/edit_country_config Merchant Country Config List
Profile get_get GET /merchant/get Get Merchant Info
Profile new_apikey_post POST /merchant/new_apikey Merchant New ApiKey, The old key will expire in one hour
Profile update_post POST /merchant/update Update Merchant Info
Role role_delete_post POST /merchant/role/delete Delete Merchant Role
Role role_edit_post POST /merchant/role/edit Edit Merchant Role
Role role_list_get GET /merchant/role/list Get Merchant Role List
Role role_new_post POST /merchant/role/new New Merchant Role
Search search_key_search_get GET /merchant/search/key_search Merchant Search
Search search_key_search_post POST /merchant/search/key_search Merchant Search
Session session_new_session_post POST /merchant/session/new_session New User Portal Session
Subscription subscription_add_new_trial_start_post POST /merchant/subscription/add_new_trial_start Merchant Edit Subscription-add appendTrialEndHour For Free
Subscription subscription_cancel_at_period_end_post POST /merchant/subscription/cancel_at_period_end Merchant Edit Subscription-Set Cancel Ad Period End
Subscription subscription_cancel_last_cancel_at_period_end_post POST /merchant/subscription/cancel_last_cancel_at_period_end Merchant Edit Subscription-Cancel Last CancelAtPeriod
Subscription subscription_cancel_post POST /merchant/subscription/cancel Merchant Cancel Subscription Immediately (Will Not Generate Proration Invoice)
Subscription subscription_change_gateway_post POST /merchant/subscription/change_gateway Change Subscription Gateway
Subscription subscription_config_get GET /merchant/subscription/config Get Merchant Subscription Config
Subscription subscription_config_update_get GET /merchant/subscription/config/update Update Merchant Subscription Config
Subscription subscription_create_preview_post POST /merchant/subscription/create_preview Create Subscription Preview
Subscription subscription_create_submit_post POST /merchant/subscription/create_submit Create Subscription
Subscription subscription_detail_get GET /merchant/subscription/detail Subscription Detail
Subscription subscription_detail_post POST /merchant/subscription/detail Subscription Detail
Subscription subscription_list_get GET /merchant/subscription/list Subscription List
Subscription subscription_list_post POST /merchant/subscription/list Subscription List
Subscription subscription_new_onetime_addon_payment_post POST /merchant/subscription/new_onetime_addon_payment New Subscription Onetime Addon Payment
Subscription subscription_onetime_addon_list_get GET /merchant/subscription/onetime_addon_list Merchant Subscription OnetimeAddon List
Subscription subscription_renew_post POST /merchant/subscription/renew Renew Subscription, will create new subscription based on one provided
Subscription subscription_resume_post POST /merchant/subscription/resume Merchant Edit Subscription-Resume
Subscription subscription_suspend_post POST /merchant/subscription/suspend Merchant Edit Subscription-Stop
Subscription subscription_update_preview_post POST /merchant/subscription/update_preview Merchant Update Subscription Preview
Subscription subscription_update_submit_post POST /merchant/subscription/update_submit Merchant Update Subscription Submit
Subscription subscription_user_subscription_detail_get GET /merchant/subscription/user_subscription_detail Subscription Detail
Subscription subscription_user_subscription_detail_post POST /merchant/subscription/user_subscription_detail Subscription Detail
SubscriptionPendingUpdate subscription_pending_update_list_get GET /merchant/subscription/pending_update_list Merchant SubscriptionPendingUpdate List
SubscriptionPendingUpdate subscription_pending_update_list_post POST /merchant/subscription/pending_update_list Merchant SubscriptionPendingUpdate List
SubscriptionNote subscription_admin_note_list_get GET /merchant/subscription/admin_note_list Merchant Subscription Note List
SubscriptionNote subscription_admin_note_list_post POST /merchant/subscription/admin_note_list Merchant Subscription Note List
SubscriptionNote subscription_new_admin_note_post POST /merchant/subscription/new_admin_note Merchant New Subscription Note
SubscriptionTimeline subscription_timeline_list_get GET /merchant/subscription/timeline_list Merchant Subscription TimeLine List
SubscriptionTimeline subscription_timeline_list_post POST /merchant/subscription/timeline_list Merchant Subscription TimeLine List
User user_frozen_user_post POST /merchant/user/frozen_user Merchant Frozen User
User user_get_get GET /merchant/user/get Get User Profile
User user_list_get GET /merchant/user/list User List
User user_list_post POST /merchant/user/list User List
User user_release_user_post POST /merchant/user/release_user Merchant Release User
User user_search_get GET /merchant/user/search User Search
User user_search_post POST /merchant/user/search User Search
User user_update_post POST /merchant/user/update Update User Profile
UserMetric metric_user_metric_get GET /merchant/metric/user/metric Query User Metric
Vat vat_country_list_get GET /merchant/vat/country_list Vat Country List
Vat vat_country_list_post POST /merchant/vat/country_list Vat Country List
Vat vat_init_default_gateway_post POST /merchant/vat/init_default_gateway Init Default Vat Gateway
Vat vat_setup_gateway_post POST /merchant/vat/setup_gateway Vat Gateway Setup
Webhook webhook_delete_endpoint_post POST /merchant/webhook/delete_endpoint Merchant Delete Webhook Endpoint
Webhook webhook_endpoint_list_get GET /merchant/webhook/endpoint_list Merchant Webhook Endpoint list
Webhook webhook_endpoint_log_list_get GET /merchant/webhook/endpoint_log_list Merchant Webhook Endpoint Log list
Webhook webhook_event_list_get GET /merchant/webhook/event_list Webhook Event list
Webhook webhook_new_endpoint_post POST /merchant/webhook/new_endpoint Merchant New Webhook Endpoint
Webhook webhook_resend_post POST /merchant/webhook/resend Merchant Resent Webhook
Webhook webhook_update_endpoint_post POST /merchant/webhook/update_endpoint Merchant Update Webhook Endpoint

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

About

python client for unibee open api

Resources

Stars

1 star

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages