Skip to content

manually gen sdk and rollup latest #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ from apideck.model.bills_filter import BillsFilter
from apideck.model.bills_sort import BillsSort
from apideck.model.create_accounting_department_response import CreateAccountingDepartmentResponse
from apideck.model.create_accounting_location_response import CreateAccountingLocationResponse
from apideck.model.create_attachment_request import CreateAttachmentRequest
from apideck.model.create_attachment_response import CreateAttachmentResponse
from apideck.model.create_bill_response import CreateBillResponse
from apideck.model.create_credit_note_response import CreateCreditNoteResponse
from apideck.model.create_customer_response import CreateCustomerResponse
Expand Down Expand Up @@ -353,8 +351,6 @@ _AccountingApi_ | [**attachments_download**](docs/apis/AccountingApi.md#attachme

_AccountingApi_ | [**attachments_one**](docs/apis/AccountingApi.md#attachments_one) | **GET** /accounting/attachments/{reference_type}/{reference_id}/{id} | Get Attachment |

_AccountingApi_ | [**attachments_upload**](docs/apis/AccountingApi.md#attachments_upload) | **POST** /accounting/attachments/{reference_type}/{reference_id} | Upload attachment |

_AccountingApi_ | [**balance_sheet_one**](docs/apis/AccountingApi.md#balance_sheet_one) | **GET** /accounting/balance-sheet | Get BalanceSheet |

_AccountingApi_ | [**bills_add**](docs/apis/AccountingApi.md#bills_add) | **POST** /accounting/bills | Create Bill |
Expand Down Expand Up @@ -1435,6 +1431,7 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) |
- [OrderRefunds](docs/models/OrderRefunds.md)
- [OrderTenders](docs/models/OrderTenders.md)
- [OrderType](docs/models/OrderType.md)
- [OrdersSort](docs/models/OrdersSort.md)
- [Owner](docs/models/Owner.md)
- [PaginationCoverage](docs/models/PaginationCoverage.md)
- [PassThroughQuery](docs/models/PassThroughQuery.md)
Expand Down
160 changes: 22 additions & 138 deletions docs/apis/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Method | HTTP request | Description
[**attachments_delete**](AccountingApi.md#attachments_delete) | **DELETE** /accounting/attachments/{reference_type}/{reference_id}/{id} | Delete Attachment
[**attachments_download**](AccountingApi.md#attachments_download) | **GET** /accounting/attachments/{reference_type}/{reference_id}/{id}/download | Download Attachment
[**attachments_one**](AccountingApi.md#attachments_one) | **GET** /accounting/attachments/{reference_type}/{reference_id}/{id} | Get Attachment
[**attachments_upload**](AccountingApi.md#attachments_upload) | **POST** /accounting/attachments/{reference_type}/{reference_id} | Upload attachment
[**balance_sheet_one**](AccountingApi.md#balance_sheet_one) | **GET** /accounting/balance-sheet | Get BalanceSheet
[**bills_add**](AccountingApi.md#bills_add) | **POST** /accounting/bills | Create Bill
[**bills_all**](AccountingApi.md#bills_all) | **GET** /accounting/bills | List Bills
Expand Down Expand Up @@ -537,121 +536,6 @@ Name | Type | Description | Notes

[[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)

# **attachments_upload**
> CreateAttachmentResponse attachments_upload(reference_type, reference_id)

Upload attachment

Upload attachment

### Example

* Api Key Authentication (apiKey):

```python
import time
import apideck
from apideck.api import accounting_api
from apideck.model.create_attachment_response import CreateAttachmentResponse
from apideck.model.bad_request_response import BadRequestResponse
from apideck.model.payment_required_response import PaymentRequiredResponse
from apideck.model.unexpected_error_response import UnexpectedErrorResponse
from apideck.model.attachment_reference_type import AttachmentReferenceType
from apideck.model.unauthorized_response import UnauthorizedResponse
from apideck.model.unprocessable_response import UnprocessableResponse
from apideck.model.create_attachment_request import CreateAttachmentRequest
from apideck.model.not_found_response import NotFoundResponse
from pprint import pprint
# Defining the host is optional and defaults to https://unify.apideck.com
# See configuration.py for a list of all supported configuration parameters.
configuration = apideck.Configuration(
host = "https://unify.apideck.com"
)

# 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: apiKey
configuration.api_key['apiKey'] = 'YOUR_API_KEY'

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

# Enter a context with an instance of the API client
with apideck.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = accounting_api.AccountingApi(api_client)
reference_type = AttachmentReferenceType("invoice") # AttachmentReferenceType | The reference type of the document.
reference_id = "123456" # str | The reference id of the object to retrieve.
raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False
x_apideck_metadata = # CreateAttachmentRequest | Metadata to attach to the attachment file (optional)
consumer_id = "x-apideck-consumer-id_example" # str | ID of the consumer which you want to get or push data from (optional)
app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional)
service_id = "x-apideck-service-id_example" # str | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional)
body = open('/path/to/file', 'rb') # file_type | (optional)

# example passing only required values which don't have defaults set
try:
# Upload attachment
api_response = api_instance.attachments_upload(reference_type, reference_id)
pprint(api_response)
except apideck.ApiException as e:
print("Exception when calling AccountingApi->attachments_upload: %s\n" % e)

# example passing only required values which don't have defaults set
# and optional values
try:
# Upload attachment
api_response = api_instance.attachments_upload(reference_type, reference_id, raw=raw, x_apideck_metadata=x_apideck_metadata, consumer_id=consumer_id, app_id=app_id, service_id=service_id, body=body)
pprint(api_response)
except apideck.ApiException as e:
print("Exception when calling AccountingApi->attachments_upload: %s\n" % e)
```


### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**reference_type** | **AttachmentReferenceType**| The reference type of the document. |
**reference_id** | **str**| The reference id of the object to retrieve. |
**raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False
**x_apideck_metadata** | **CreateAttachmentRequest**| Metadata to attach to the attachment file | [optional]
**consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional]
**app_id** | **str**| The ID of your Unify application | [optional]
**service_id** | **str**| Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | [optional]
**body** | **file_type**| | [optional]

### Return type

[**CreateAttachmentResponse**](CreateAttachmentResponse.md)

### Authorization

[apiKey](../../README.md#apiKey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | Attachments | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**402** | Payment Required | - |
**404** | The specified resource was not found | - |
**422** | Unprocessable | - |
**0** | Unexpected error | - |

[[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)

# **balance_sheet_one**
> GetBalanceSheetResponse balance_sheet_one()

Expand Down Expand Up @@ -839,9 +723,9 @@ with apideck.ApiClient(configuration) as api_client:
currency=Currency("USD"),
currency_rate=0.69,
tax_inclusive=True,
bill_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
paid_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
bill_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
due_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
paid_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
po_number="90000117",
reference="123456",
line_items=[
Expand Down Expand Up @@ -1388,9 +1272,9 @@ with apideck.ApiClient(configuration) as api_client:
currency=Currency("USD"),
currency_rate=0.69,
tax_inclusive=True,
bill_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
paid_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
bill_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
due_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
paid_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
po_number="90000117",
reference="123456",
line_items=[
Expand Down Expand Up @@ -3811,7 +3695,7 @@ with apideck.ApiClient(configuration) as api_client:
purchased=True,
tracked=True,
taxable=True,
inventory_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
inventory_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
type="inventory",
sales_details=InvoiceItemSalesDetails(
unit_price=27500.5,
Expand Down Expand Up @@ -4298,7 +4182,7 @@ with apideck.ApiClient(configuration) as api_client:
purchased=True,
tracked=True,
taxable=True,
inventory_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
inventory_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
type="inventory",
sales_details=InvoiceItemSalesDetails(
unit_price=27500.5,
Expand Down Expand Up @@ -4459,8 +4343,8 @@ with apideck.ApiClient(configuration) as api_client:
name="Windsurf Shop",
),
company_id="12345",
invoice_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
invoice_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
due_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
terms="Net 30 days",
po_number="90000117",
reference="123456",
Expand Down Expand Up @@ -5059,8 +4943,8 @@ with apideck.ApiClient(configuration) as api_client:
name="Windsurf Shop",
),
company_id="12345",
invoice_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
invoice_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
due_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
terms="Net 30 days",
po_number="90000117",
reference="123456",
Expand Down Expand Up @@ -6047,7 +5931,7 @@ with apideck.ApiClient(configuration) as api_client:
display_id="1-1100",
),
sub_account=False,
last_reconciliation_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
last_reconciliation_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
row_version="1-12345",
) # LedgerAccount |
raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False
Expand Down Expand Up @@ -6532,7 +6416,7 @@ with apideck.ApiClient(configuration) as api_client:
display_id="1-1100",
),
sub_account=False,
last_reconciliation_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
last_reconciliation_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
row_version="1-12345",
) # LedgerAccount |
consumer_id = "x-apideck-consumer-id_example" # str | ID of the consumer which you want to get or push data from (optional)
Expand Down Expand Up @@ -8106,9 +7990,9 @@ with apideck.ApiClient(configuration) as api_client:
),
company_id="12345",
status="open",
issued_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
delivery_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
expected_arrival_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
issued_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
delivery_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
expected_arrival_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
currency=Currency("USD"),
currency_rate=0.69,
sub_total=27500,
Expand Down Expand Up @@ -8203,7 +8087,7 @@ with apideck.ApiClient(configuration) as api_client:
currency=Currency("USD"),
),
accounting_by_row=False,
due_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
payment_method="cash",
tax_code="1234",
channel="email",
Expand Down Expand Up @@ -8682,9 +8566,9 @@ with apideck.ApiClient(configuration) as api_client:
),
company_id="12345",
status="open",
issued_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
delivery_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
expected_arrival_date=dateutil_parser('Wed Sep 30 00:00:00 UTC 2020').date(),
issued_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
delivery_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
expected_arrival_date=dateutil_parser('Wed Sep 30 02:00:00 CEST 2020').date(),
currency=Currency("USD"),
currency_rate=0.69,
sub_total=27500,
Expand Down Expand Up @@ -8779,7 +8663,7 @@ with apideck.ApiClient(configuration) as api_client:
currency=Currency("USD"),
),
accounting_by_row=False,
due_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
due_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
payment_method="cash",
tax_code="1234",
channel="email",
Expand Down
4 changes: 2 additions & 2 deletions docs/apis/AtsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ with apideck.ApiClient(configuration) as api_client:
last_name="Musk",
middle_name="D.",
initials="EM",
birthday=dateutil_parser('Sat Aug 12 00:00:00 UTC 2000').date(),
birthday=dateutil_parser('Sat Aug 12 02:00:00 CEST 2000').date(),
cover_letter="I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...",
photo_url="https://unavatar.io/elon-musk",
headline="PepsiCo, Inc, Central Perk",
Expand Down Expand Up @@ -599,7 +599,7 @@ with apideck.ApiClient(configuration) as api_client:
last_name="Musk",
middle_name="D.",
initials="EM",
birthday=dateutil_parser('Sat Aug 12 00:00:00 UTC 2000').date(),
birthday=dateutil_parser('Sat Aug 12 02:00:00 CEST 2000').date(),
cover_letter="I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...",
photo_url="https://unavatar.io/elon-musk",
headline="PepsiCo, Inc, Central Perk",
Expand Down
8 changes: 4 additions & 4 deletions docs/apis/CrmApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ with apideck.ApiClient(configuration) as api_client:
tags=Tags(["New"]),
read_only=False,
salutation="Mr",
birthday=dateutil_parser('Sat Aug 12 00:00:00 UTC 2000').date(),
birthday=dateutil_parser('Sat Aug 12 02:00:00 CEST 2000').date(),
) # Company |
raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False
consumer_id = "x-apideck-consumer-id_example" # str | ID of the consumer which you want to get or push data from (optional)
Expand Down Expand Up @@ -1482,7 +1482,7 @@ with apideck.ApiClient(configuration) as api_client:
tags=Tags(["New"]),
read_only=False,
salutation="Mr",
birthday=dateutil_parser('Sat Aug 12 00:00:00 UTC 2000').date(),
birthday=dateutil_parser('Sat Aug 12 02:00:00 CEST 2000').date(),
) # Company |
raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False
consumer_id = "x-apideck-consumer-id_example" # str | ID of the consumer which you want to get or push data from (optional)
Expand Down Expand Up @@ -3626,7 +3626,7 @@ with apideck.ApiClient(configuration) as api_client:
monetary_amount=75000,
currency=Currency("USD"),
win_probability=40,
close_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
close_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
loss_reason_id="12345",
loss_reason="No budget",
won_reason_id="12345",
Expand Down Expand Up @@ -4112,7 +4112,7 @@ with apideck.ApiClient(configuration) as api_client:
monetary_amount=75000,
currency=Currency("USD"),
win_probability=40,
close_date=dateutil_parser('Fri Oct 30 00:00:00 UTC 2020').date(),
close_date=dateutil_parser('Fri Oct 30 01:00:00 CET 2020').date(),
loss_reason_id="12345",
loss_reason="No budget",
won_reason_id="12345",
Expand Down
Loading
Loading