You've already forked akaunting-py
Update test data
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -6,6 +6,10 @@ __pycache__
|
|||||||
.coverage
|
.coverage
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
|
||||||
|
# distribution files
|
||||||
|
dist/
|
||||||
|
*egg-info/
|
||||||
|
|
||||||
# Ignore Scratch files
|
# Ignore Scratch files
|
||||||
scratch/*
|
scratch/*
|
||||||
!/scratch/README.md
|
!/scratch/README.md
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import requests
|
import requests
|
||||||
import logging
|
gimport logging
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
|
||||||
from akauntingpy import exceptions
|
from akauntingpy import exceptions
|
||||||
@@ -7,9 +7,9 @@ from akauntingpy.helpers import *
|
|||||||
|
|
||||||
__version__ = "1.0.5"
|
__version__ = "1.0.5"
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
"""
|
"""
|
||||||
Akaunting interface.
|
Akaunting interface.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"id":2,
|
"id":2,
|
||||||
"company_id":1,
|
"company_id":1,
|
||||||
"name":"Some Account",
|
"name":"Some Account",
|
||||||
"number":"**-9011-*******-03",
|
"number":"00-0000-0000000-00",
|
||||||
"currency_code":"NZD",
|
"currency_code":"NZD",
|
||||||
"opening_balance":0,
|
"opening_balance":0,
|
||||||
"opening_balance_formatted":"$0.00",
|
"opening_balance_formatted":"$0.00",
|
||||||
56
data/v3/GetAccountsSearch.json
Normal file
56
data/v3/GetAccountsSearch.json
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"data":[
|
||||||
|
{
|
||||||
|
"id":2,
|
||||||
|
"company_id":1,
|
||||||
|
"type":"bank",
|
||||||
|
"name":"Some Account",
|
||||||
|
"number":"00-0000-0000000-00",
|
||||||
|
"currency_code":"NZD",
|
||||||
|
"opening_balance":351.17,
|
||||||
|
"opening_balance_formatted":"$351.17",
|
||||||
|
"current_balance":306.3600000000006,
|
||||||
|
"current_balance_formatted":"$306.36",
|
||||||
|
"bank_name":"None",
|
||||||
|
"bank_phone":"None",
|
||||||
|
"bank_address":"None",
|
||||||
|
"enabled":true,
|
||||||
|
"created_from":"core::ui",
|
||||||
|
"created_by":1,
|
||||||
|
"created_at":"2022-05-30T11:06:21+12:00",
|
||||||
|
"updated_at":"2022-05-30T11:10:47+12:00"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"links":{
|
||||||
|
"first":"https://someakaunting-url/api/accounts?page=1",
|
||||||
|
"last":"https://someakaunting-url/api/accounts?page=1",
|
||||||
|
"prev":"None",
|
||||||
|
"next":"None"
|
||||||
|
},
|
||||||
|
"meta":{
|
||||||
|
"current_page":1,
|
||||||
|
"from":1,
|
||||||
|
"last_page":1,
|
||||||
|
"links":[
|
||||||
|
{
|
||||||
|
"url":"None",
|
||||||
|
"label":"Previous",
|
||||||
|
"active":false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url":"https://someakaunting-url/api/accounts?page=1",
|
||||||
|
"label":"1",
|
||||||
|
"active":true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url":"None",
|
||||||
|
"label":"Next",
|
||||||
|
"active":false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"path":"https://someakaunting-url/api/accounts",
|
||||||
|
"per_page":100,
|
||||||
|
"to":1,
|
||||||
|
"total":1
|
||||||
|
}
|
||||||
|
}
|
||||||
13
data/v3/GetAccountsSearchNotFound.json
Normal file
13
data/v3/GetAccountsSearchNotFound.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"data":[],
|
||||||
|
"meta":{
|
||||||
|
"total":0,
|
||||||
|
"count":0,
|
||||||
|
"per_page":100,
|
||||||
|
"current_page":0,
|
||||||
|
"total_pages":0,
|
||||||
|
"links":{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
setup.py
3
setup.py
@@ -8,7 +8,7 @@ with open('README.md', 'r') as readme:
|
|||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='akauntingpy',
|
name='akaunting-py',
|
||||||
use_scm_version=True,
|
use_scm_version=True,
|
||||||
author='CyberCinch',
|
author='CyberCinch',
|
||||||
description='Python interface to the Akaunting API.',
|
description='Python interface to the Akaunting API.',
|
||||||
@@ -16,6 +16,7 @@ setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
|
version='1.0.5',
|
||||||
keywords='akaunting api library',
|
keywords='akaunting api library',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
Reference in New Issue
Block a user