Skip to content

Commit

Permalink
Merge pull request #76 from xendit/v3.6.0-branch
Browse files Browse the repository at this point in the history
V3.6.0 branch
  • Loading branch information
sekaranglila authored Nov 16, 2023
2 parents f79f609 + 1d62ca7 commit 62e56e1
Show file tree
Hide file tree
Showing 795 changed files with 19,260 additions and 5,823 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/generate-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,28 @@ jobs:
release_name: ${{ github.event.client_payload.version }}
body: ${{ steps.parse-changelog.outputs.changelog }}
draft: false
prerelease: false
prerelease: false

publish-pypi:
needs: [build]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xendit-python
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'
- name: Build Package
run: |
poetry install
poetry build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
343 changes: 164 additions & 179 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
![Xendit Python SDK](docs/header.jpg "Xendit Python SDK")
![Xendit Python SDK](images/header.jpg "Xendit Python SDK")

# Xendit Python SDK

The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Python.

* Package version: 3.2.0
* Package version: 3.6.0

## Requirements.
## Requirements

Python >=3.10
Python >= 3.10

# Getting Started

Expand Down Expand Up @@ -66,13 +66,14 @@ except xendit.XenditSdkException as e:

Find detailed API information and examples for each of our product's by clicking the links below,

* [Balance](docs/BalanceApi.md)
* [Invoice](docs/InvoiceApi.md)
* [PaymentMethod](docs/PaymentMethodApi.md)
* [PaymentRequest](docs/PaymentRequestApi.md)
* [Payout](docs/PayoutApi.md)
* [PaymentMethod](docs/PaymentMethodApi.md)
* [Refund](docs/RefundApi.md)
* [Balance](docs/BalanceApi.md)
* [Transaction](docs/TransactionApi.md)
* [Customer](docs/CustomerApi.md)
* [Payout](docs/PayoutApi.md)

All URIs are relative to *https://api.xendit.co*. For more information about our API, please refer to *https://developers.xendit.co/*.

Expand Down
18 changes: 0 additions & 18 deletions docs/AddressObject.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/AlternativeDisplayItem.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/BadRequestError.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/Balance.md

This file was deleted.

71 changes: 40 additions & 31 deletions docs/BalanceApi.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,51 @@
# xendit.apis.BalanceApi
# BalanceApi


You can use the APIs below to interface with Xendit's `BalanceApi`.
To start using the API, you need to configure the secret key and initiate the client instance.

```python
import time
import xendit
from xendit.apis import BalanceApi

# See configuration.py for a list of all supported configuration parameters.
xendit.set_api_key('XENDIT API KEY')

# Enter a context with an instance of the API client
api_client = xendit.ApiClient()

# Create an instance of the API class
api_instance = BalanceApi(api_client)
```

All URIs are relative to *https://api.xendit.co*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_balance**](BalanceApi.md#get_balance) | **GET** /balance | Retrieves balances for a business, default to CASH type
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**get_balance**](BalanceApi.md#get_balance-function) | **GET** /balance | Retrieves balances for a business, default to CASH type |


# **get_balance**
# `get_balance()` Function
> Balance get_balance()
Retrieves balances for a business, default to CASH type

Retrieves balance for your business, defaults to CASH type
| Name | Value |
|--------------------|:-------------:|
| Function Name | `get_balance` |
| Request Parameters | [GetBalanceRequestParams](#request-parameters--GetBalanceRequestParams) |
| Return Type | [**Balance**](balance_and_transaction/Balance.md) |

### Example
### Request Parameters - GetBalanceRequestParams

| Name | Type | Required | Default |
|-------------|:-------------:|:-------------:|-------------|
| **account_type** | **str**| | "CASH" |
| **currency** | **str**| | |
| **for_user_id** | **str**| | |

### Usage Example
```python
import time
import xendit
Expand All @@ -34,6 +63,9 @@ xendit.set_api_key('XENDIT API KEY')
api_client = xendit.ApiClient()
# Create an instance of the API class
api_instance = BalanceApi(api_client)
account_type = "CASH" # str | The selected balance type
currency = "IDR" # str | Currency for filter for customers with multi currency accounts
for_user_id = "5dbf20d7c8eb0c0896f811b6" # str | The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information

# example passing only required values which don't have defaults set
# and optional values
Expand All @@ -45,27 +77,4 @@ except xendit.XenditSdkException as e:
print("Exception when calling BalanceApi->get_balance: %s\n" % e)
```


### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_type** | **str**| The selected balance type | [optional] if omitted the server will use the default value of "CASH"
**currency** | **str**| Currency for filter for customers with multi currency accounts | [optional]
**for_user_id** | **str**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information | [optional]

### Return type

[**Balance**](Balance.md)


### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | success | - |
**400** | invalid input, object invalid | - |
**0** | Errors | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

[[Back to README]](../README.md)
18 changes: 0 additions & 18 deletions docs/Bank.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/BankCode.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/BillingInformation.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/Capture.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/CaptureList.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/CaptureListResponse.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/CaptureParameters.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/Card.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/CardChannelProperties.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/CardInformation.md

This file was deleted.

Loading

0 comments on commit 62e56e1

Please sign in to comment.