Metadata-Version: 2.4
Name: devdraft
Version: 1.0.0
Summary: Devdraft AI Payment & Business Management API
Home-page: https://github.com/devdraftengineer/python
Author: Devdraft
Author-email: Devdraft <support@devdraft.com>
Project-URL: Repository, https://github.com/devdraftengineer/python
Project-URL: Homepage, https://github.com/devdraftengineer/python
Keywords: OpenAPI,OpenAPI-Generator,Devdraft AI Payment & Business Management API
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page

# devdraft-sdk

A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
    

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python 3.9+

## Installation & Usage
### pip install

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

```sh
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:
```python
import devdraft
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

Then import the package:
```python
import devdraft
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

import devdraft
from devdraft.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.devdraft.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = devdraft.Configuration(
    host = "https://api.devdraft.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: x-client-secret
configuration.api_key['x-client-secret'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-client-secret'] = 'Bearer'

# Configure API key authorization: x-client-key
configuration.api_key['x-client-key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-client-key'] = 'Bearer'


# Enter a context with an instance of the API client
with devdraft.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = devdraft.APIHealthApi(api_client)

    try:
        # Authenticated health check endpoint
        api_response = api_instance.health_controller_check_v0()
        print("The response of APIHealthApi->health_controller_check_v0:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling APIHealthApi->health_controller_check_v0: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *https://api.devdraft.ai*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*APIHealthApi* | [**health_controller_check_v0**](docs/APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
*APIHealthApi* | [**health_controller_public_health_check_v0**](docs/APIHealthApi.md#health_controller_public_health_check_v0) | **GET** /api/v0/health/public | Public health check endpoint
*AppBalancesApi* | [**balance_controller_get_all_balances**](docs/AppBalancesApi.md#balance_controller_get_all_balances) | **GET** /api/v0/balance | Get all stablecoin balances for an app
*AppBalancesApi* | [**balance_controller_get_eurc_balance**](docs/AppBalancesApi.md#balance_controller_get_eurc_balance) | **GET** /api/v0/balance/eurc | Get EURC balance for an app
*AppBalancesApi* | [**balance_controller_get_usdc_balance**](docs/AppBalancesApi.md#balance_controller_get_usdc_balance) | **GET** /api/v0/balance/usdc | Get USDC balance for an app
*CustomersApi* | [**customer_controller_create**](docs/CustomersApi.md#customer_controller_create) | **POST** /api/v0/customers | Create a new customer
*CustomersApi* | [**customer_controller_find_all**](docs/CustomersApi.md#customer_controller_find_all) | **GET** /api/v0/customers | Get all customers with filters
*CustomersApi* | [**customer_controller_find_one**](docs/CustomersApi.md#customer_controller_find_one) | **GET** /api/v0/customers/{id} | Get a customer by ID
*CustomersApi* | [**customer_controller_update**](docs/CustomersApi.md#customer_controller_update) | **PATCH** /api/v0/customers/{id} | Update a customer
*ExchangeRatesApi* | [**exchange_rate_controller_get_eurto_usd_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_eurto_usd_rate) | **GET** /api/v0/exchange-rate/eur-to-usd | Get EUR to USD exchange rate
*ExchangeRatesApi* | [**exchange_rate_controller_get_exchange_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_exchange_rate) | **GET** /api/v0/exchange-rate | Get exchange rate between specified currencies
*ExchangeRatesApi* | [**exchange_rate_controller_get_usdto_eur_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_usdto_eur_rate) | **GET** /api/v0/exchange-rate/usd-to-eur | Get USD to EUR exchange rate
*InvoicesApi* | [**invoice_controller_create**](docs/InvoicesApi.md#invoice_controller_create) | **POST** /api/v0/invoices | Create a new invoice
*InvoicesApi* | [**invoice_controller_find_all**](docs/InvoicesApi.md#invoice_controller_find_all) | **GET** /api/v0/invoices | Get all invoices
*InvoicesApi* | [**invoice_controller_find_one**](docs/InvoicesApi.md#invoice_controller_find_one) | **GET** /api/v0/invoices/{id} | Get an invoice by ID
*InvoicesApi* | [**invoice_controller_update**](docs/InvoicesApi.md#invoice_controller_update) | **PUT** /api/v0/invoices/{id} | Update an invoice
*LiquidationAddressesApi* | [**liquidation_address_controller_create_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer
*LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address
*LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_addresses**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer
*PaymentIntentsApi* | [**payment_intent_controller_create_bank_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent
*PaymentIntentsApi* | [**payment_intent_controller_create_stable_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent
*PaymentLinksApi* | [**payment_links_controller_create**](docs/PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
*PaymentLinksApi* | [**payment_links_controller_find_all**](docs/PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
*PaymentLinksApi* | [**payment_links_controller_find_one**](docs/PaymentLinksApi.md#payment_links_controller_find_one) | **GET** /api/v0/payment-links/{id} | Get a payment link by ID
*PaymentLinksApi* | [**payment_links_controller_update**](docs/PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
*ProductsApi* | [**product_controller_create**](docs/ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
*ProductsApi* | [**product_controller_find_all**](docs/ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
*ProductsApi* | [**product_controller_find_one**](docs/ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
*ProductsApi* | [**product_controller_remove**](docs/ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
*ProductsApi* | [**product_controller_update**](docs/ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
*ProductsApi* | [**product_controller_upload_image**](docs/ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
*TaxesApi* | [**tax_controller_create**](docs/TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
*TaxesApi* | [**tax_controller_delete_without_id**](docs/TaxesApi.md#tax_controller_delete_without_id) | **DELETE** /api/v0/taxes | Tax ID required for deletion
*TaxesApi* | [**tax_controller_find_all**](docs/TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes with filters
*TaxesApi* | [**tax_controller_find_one**](docs/TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
*TaxesApi* | [**tax_controller_remove**](docs/TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
*TaxesApi* | [**tax_controller_update**](docs/TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
*TaxesApi* | [**tax_controller_update_without_id**](docs/TaxesApi.md#tax_controller_update_without_id) | **PUT** /api/v0/taxes | Tax ID required for updates
*TestPaymentsApi* | [**test_payment_controller_create_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_create_payment_v0) | **POST** /api/v0/test-payment | Process a test payment
*TestPaymentsApi* | [**test_payment_controller_get_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_get_payment_v0) | **GET** /api/v0/test-payment/{id} | Get payment details by ID
*TestPaymentsApi* | [**test_payment_controller_refund_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_refund_payment_v0) | **POST** /api/v0/test-payment/{id}/refund | Refund a payment
*TransfersApi* | [**transfer_controller_create_direct_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
*TransfersApi* | [**transfer_controller_create_direct_wallet_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
*TransfersApi* | [**transfer_controller_create_external_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_external_bank_transfer) | **POST** /api/v0/transfers/external-bank-transfer | Create an external bank transfer
*TransfersApi* | [**transfer_controller_create_external_stablecoin_transfer**](docs/TransfersApi.md#transfer_controller_create_external_stablecoin_transfer) | **POST** /api/v0/transfers/external-stablecoin-transfer | Create an external stablecoin transfer
*TransfersApi* | [**transfer_controller_create_stablecoin_conversion**](docs/TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
*WalletsApi* | [**wallet_controller_get_wallets**](docs/WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
*WebhooksApi* | [**webhook_controller_create**](docs/WebhooksApi.md#webhook_controller_create) | **POST** /api/v0/webhooks | Create a new webhook
*WebhooksApi* | [**webhook_controller_find_all**](docs/WebhooksApi.md#webhook_controller_find_all) | **GET** /api/v0/webhooks | Get all webhooks
*WebhooksApi* | [**webhook_controller_find_one**](docs/WebhooksApi.md#webhook_controller_find_one) | **GET** /api/v0/webhooks/{id} | Get a webhook by id
*WebhooksApi* | [**webhook_controller_remove**](docs/WebhooksApi.md#webhook_controller_remove) | **DELETE** /api/v0/webhooks/{id} | Delete a webhook
*WebhooksApi* | [**webhook_controller_update**](docs/WebhooksApi.md#webhook_controller_update) | **PATCH** /api/v0/webhooks/{id} | Update a webhook


## Documentation For Models

 - [AggregatedBalanceResponse](docs/AggregatedBalanceResponse.md)
 - [AllBalancesResponse](docs/AllBalancesResponse.md)
 - [BridgeFiatPaymentRail](docs/BridgeFiatPaymentRail.md)
 - [BridgePaymentRail](docs/BridgePaymentRail.md)
 - [CreateBankPaymentIntentDto](docs/CreateBankPaymentIntentDto.md)
 - [CreateCustomerDto](docs/CreateCustomerDto.md)
 - [CreateDirectBankTransferDto](docs/CreateDirectBankTransferDto.md)
 - [CreateDirectWalletTransferDto](docs/CreateDirectWalletTransferDto.md)
 - [CreateExternalBankTransferDto](docs/CreateExternalBankTransferDto.md)
 - [CreateExternalStablecoinTransferDto](docs/CreateExternalStablecoinTransferDto.md)
 - [CreateInvoiceDto](docs/CreateInvoiceDto.md)
 - [CreateLiquidationAddressDto](docs/CreateLiquidationAddressDto.md)
 - [CreatePaymentLinkDto](docs/CreatePaymentLinkDto.md)
 - [CreateStablePaymentIntentDto](docs/CreateStablePaymentIntentDto.md)
 - [CreateStablecoinConversionDto](docs/CreateStablecoinConversionDto.md)
 - [CreateTaxDto](docs/CreateTaxDto.md)
 - [CreateWebhookDto](docs/CreateWebhookDto.md)
 - [CustomerStatus](docs/CustomerStatus.md)
 - [CustomerType](docs/CustomerType.md)
 - [DestinationCurrency](docs/DestinationCurrency.md)
 - [ExchangeRateResponseDto](docs/ExchangeRateResponseDto.md)
 - [FiatCurrency](docs/FiatCurrency.md)
 - [HealthResponseDto](docs/HealthResponseDto.md)
 - [InvoiceProductDto](docs/InvoiceProductDto.md)
 - [LiquidationAddressResponseDto](docs/LiquidationAddressResponseDto.md)
 - [PaymentLinkProductDto](docs/PaymentLinkProductDto.md)
 - [PaymentRequestDto](docs/PaymentRequestDto.md)
 - [PaymentResponseDto](docs/PaymentResponseDto.md)
 - [PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
 - [RefundResponseDto](docs/RefundResponseDto.md)
 - [StableCoinCurrency](docs/StableCoinCurrency.md)
 - [TaxControllerCreate201Response](docs/TaxControllerCreate201Response.md)
 - [TaxControllerDeleteWithoutId400Response](docs/TaxControllerDeleteWithoutId400Response.md)
 - [TaxControllerUpdateWithoutId400Response](docs/TaxControllerUpdateWithoutId400Response.md)
 - [UpdateCustomerDto](docs/UpdateCustomerDto.md)
 - [UpdateTaxDto](docs/UpdateTaxDto.md)
 - [UpdateWebhookDto](docs/UpdateWebhookDto.md)
 - [WebhookResponseDto](docs/WebhookResponseDto.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization


Authentication schemes defined for the API:
<a id="x-client-key"></a>
### x-client-key

- **Type**: API key
- **API key parameter name**: x-client-key
- **Location**: HTTP header

<a id="x-client-secret"></a>
### x-client-secret

- **Type**: API key
- **API key parameter name**: x-client-secret
- **Location**: HTTP header

<a id="idempotency-key"></a>
### idempotency-key

- **Type**: API key
- **API key parameter name**: idempotency-key
- **Location**: HTTP header


## Author




