diff --git a/previous-versions/commerce/.gitattributes b/previous-versions/commerce/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/previous-versions/commerce/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.py linguist-generated=false \ No newline at end of file diff --git a/previous-versions/commerce/RELEASES.md b/previous-versions/commerce/RELEASES.md index 370efd571..9d97a44e1 100644 --- a/previous-versions/commerce/RELEASES.md +++ b/previous-versions/commerce/RELEASES.md @@ -606,4 +606,14 @@ Based on: - OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml - Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy ### Releases -- [PyPI v0.33.1] https://pypi.org/project/codat-commerce/0.33.1 - commerce \ No newline at end of file +- [PyPI v0.33.1] https://pypi.org/project/codat-commerce/0.33.1 - commerce + +## 2023-09-01 16:59:11 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml +- Speakeasy CLI 1.77.1 (2.91.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.1.0] previous-versions/commerce +### Releases +- [PyPI v0.1.0] https://pypi.org/project/codat-commerce/0.1.0 - previous-versions/commerce \ No newline at end of file diff --git a/previous-versions/commerce/USAGE.md b/previous-versions/commerce/USAGE.md index ca6bfbd84..754ea2466 100755 --- a/previous-versions/commerce/USAGE.md +++ b/previous-versions/commerce/USAGE.md @@ -1,7 +1,9 @@ + + ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/models/operations/getcompanyinfo409applicationjson.md b/previous-versions/commerce/docs/models/operations/getcompanyinfo409applicationjson.md deleted file mode 100755 index 245a37899..000000000 --- a/previous-versions/commerce/docs/models/operations/getcompanyinfo409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetCompanyInfo409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getcompanyinforesponse.md b/previous-versions/commerce/docs/models/operations/getcompanyinforesponse.md index ae585a128..88b734067 100755 --- a/previous-versions/commerce/docs/models/operations/getcompanyinforesponse.md +++ b/previous-versions/commerce/docs/models/operations/getcompanyinforesponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `company_info` | [Optional[shared.CompanyInfo]](../../models/shared/companyinfo.md) | :heavy_minus_sign: | OK | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_company_info_409_application_json_object` | [Optional[GetCompanyInfo409ApplicationJSON]](../../models/operations/getcompanyinfo409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `company_info` | [Optional[shared.CompanyInfo]](../../models/shared/companyinfo.md) | :heavy_minus_sign: | OK | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getcustomer409applicationjson.md b/previous-versions/commerce/docs/models/operations/getcustomer409applicationjson.md deleted file mode 100755 index 9f87475e0..000000000 --- a/previous-versions/commerce/docs/models/operations/getcustomer409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetCustomer409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getcustomerresponse.md b/previous-versions/commerce/docs/models/operations/getcustomerresponse.md index 721c89054..c9b76230c 100755 --- a/previous-versions/commerce/docs/models/operations/getcustomerresponse.md +++ b/previous-versions/commerce/docs/models/operations/getcustomerresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_customer_409_application_json_object` | [Optional[GetCustomer409ApplicationJSON]](../../models/operations/getcustomer409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | OK | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getdispute409applicationjson.md b/previous-versions/commerce/docs/models/operations/getdispute409applicationjson.md deleted file mode 100755 index 17f490099..000000000 --- a/previous-versions/commerce/docs/models/operations/getdispute409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDispute409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getdisputeresponse.md b/previous-versions/commerce/docs/models/operations/getdisputeresponse.md index ecd7c5dc7..e8c7be65e 100755 --- a/previous-versions/commerce/docs/models/operations/getdisputeresponse.md +++ b/previous-versions/commerce/docs/models/operations/getdisputeresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `dispute` | [Optional[shared.Dispute]](../../models/shared/dispute.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_dispute_409_application_json_object` | [Optional[GetDispute409ApplicationJSON]](../../models/operations/getdispute409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `dispute` | [Optional[shared.Dispute]](../../models/shared/dispute.md) | :heavy_minus_sign: | OK | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getlocation409applicationjson.md b/previous-versions/commerce/docs/models/operations/getlocation409applicationjson.md deleted file mode 100755 index bbd4b3849..000000000 --- a/previous-versions/commerce/docs/models/operations/getlocation409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetLocation409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getlocationresponse.md b/previous-versions/commerce/docs/models/operations/getlocationresponse.md index 092bcc9ef..ce4f675e1 100755 --- a/previous-versions/commerce/docs/models/operations/getlocationresponse.md +++ b/previous-versions/commerce/docs/models/operations/getlocationresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `location` | [Optional[shared.Location]](../../models/shared/location.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_location_409_application_json_object` | [Optional[GetLocation409ApplicationJSON]](../../models/operations/getlocation409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `location` | [Optional[shared.Location]](../../models/shared/location.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getorder409applicationjson.md b/previous-versions/commerce/docs/models/operations/getorder409applicationjson.md deleted file mode 100755 index 4cb4722ed..000000000 --- a/previous-versions/commerce/docs/models/operations/getorder409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrder409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getorderresponse.md b/previous-versions/commerce/docs/models/operations/getorderresponse.md index cb8309ad2..da592a48c 100755 --- a/previous-versions/commerce/docs/models/operations/getorderresponse.md +++ b/previous-versions/commerce/docs/models/operations/getorderresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `order` | [Optional[shared.Order]](../../models/shared/order.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_order_409_application_json_object` | [Optional[GetOrder409ApplicationJSON]](../../models/operations/getorder409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `order` | [Optional[shared.Order]](../../models/shared/order.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getpayment409applicationjson.md b/previous-versions/commerce/docs/models/operations/getpayment409applicationjson.md deleted file mode 100755 index 957796d64..000000000 --- a/previous-versions/commerce/docs/models/operations/getpayment409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetPayment409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getpaymentmethod409applicationjson.md b/previous-versions/commerce/docs/models/operations/getpaymentmethod409applicationjson.md deleted file mode 100755 index 94011857c..000000000 --- a/previous-versions/commerce/docs/models/operations/getpaymentmethod409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetPaymentMethod409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getpaymentmethodresponse.md b/previous-versions/commerce/docs/models/operations/getpaymentmethodresponse.md index 815cb32e8..f239e9e8b 100755 --- a/previous-versions/commerce/docs/models/operations/getpaymentmethodresponse.md +++ b/previous-versions/commerce/docs/models/operations/getpaymentmethodresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `payment_method` | [Optional[shared.PaymentMethod]](../../models/shared/paymentmethod.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_payment_method_409_application_json_object` | [Optional[GetPaymentMethod409ApplicationJSON]](../../models/operations/getpaymentmethod409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `payment_method` | [Optional[shared.PaymentMethod]](../../models/shared/paymentmethod.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getpaymentresponse.md b/previous-versions/commerce/docs/models/operations/getpaymentresponse.md index b9d8d404c..fa5f6fc10 100755 --- a/previous-versions/commerce/docs/models/operations/getpaymentresponse.md +++ b/previous-versions/commerce/docs/models/operations/getpaymentresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `payment` | [Optional[shared.Payment]](../../models/shared/payment.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_payment_409_application_json_object` | [Optional[GetPayment409ApplicationJSON]](../../models/operations/getpayment409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `payment` | [Optional[shared.Payment]](../../models/shared/payment.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getproduct409applicationjson.md b/previous-versions/commerce/docs/models/operations/getproduct409applicationjson.md deleted file mode 100755 index b34ddf939..000000000 --- a/previous-versions/commerce/docs/models/operations/getproduct409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProduct409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getproductcategory409applicationjson.md b/previous-versions/commerce/docs/models/operations/getproductcategory409applicationjson.md deleted file mode 100755 index 05340b72b..000000000 --- a/previous-versions/commerce/docs/models/operations/getproductcategory409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProductCategory409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getproductcategoryresponse.md b/previous-versions/commerce/docs/models/operations/getproductcategoryresponse.md index b6a576534..9868488e3 100755 --- a/previous-versions/commerce/docs/models/operations/getproductcategoryresponse.md +++ b/previous-versions/commerce/docs/models/operations/getproductcategoryresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `product_category` | [Optional[shared.ProductCategory]](../../models/shared/productcategory.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_product_category_409_application_json_object` | [Optional[GetProductCategory409ApplicationJSON]](../../models/operations/getproductcategory409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `product_category` | [Optional[shared.ProductCategory]](../../models/shared/productcategory.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/getproductresponse.md b/previous-versions/commerce/docs/models/operations/getproductresponse.md index 359b879a0..d393c99da 100755 --- a/previous-versions/commerce/docs/models/operations/getproductresponse.md +++ b/previous-versions/commerce/docs/models/operations/getproductresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `product` | [Optional[shared.Product]](../../models/shared/product.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `get_product_409_application_json_object` | [Optional[GetProduct409ApplicationJSON]](../../models/operations/getproduct409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `product` | [Optional[shared.Product]](../../models/shared/product.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/gettaxcomponent409applicationjson.md b/previous-versions/commerce/docs/models/operations/gettaxcomponent409applicationjson.md deleted file mode 100755 index 05a41ff3a..000000000 --- a/previous-versions/commerce/docs/models/operations/gettaxcomponent409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetTaxComponent409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/gettaxcomponentresponse.md b/previous-versions/commerce/docs/models/operations/gettaxcomponentresponse.md index 94ba61c1e..3d4484d67 100755 --- a/previous-versions/commerce/docs/models/operations/gettaxcomponentresponse.md +++ b/previous-versions/commerce/docs/models/operations/gettaxcomponentresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `tax_component` | [Optional[shared.TaxComponent]](../../models/shared/taxcomponent.md) | :heavy_minus_sign: | OK | -| `get_tax_component_409_application_json_object` | [Optional[GetTaxComponent409ApplicationJSON]](../../models/operations/gettaxcomponent409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `tax_component` | [Optional[shared.TaxComponent]](../../models/shared/taxcomponent.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/gettransaction409applicationjson.md b/previous-versions/commerce/docs/models/operations/gettransaction409applicationjson.md deleted file mode 100755 index 2db509b3a..000000000 --- a/previous-versions/commerce/docs/models/operations/gettransaction409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetTransaction409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/gettransactionresponse.md b/previous-versions/commerce/docs/models/operations/gettransactionresponse.md index 651190a69..65d6409f7 100755 --- a/previous-versions/commerce/docs/models/operations/gettransactionresponse.md +++ b/previous-versions/commerce/docs/models/operations/gettransactionresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `transaction` | [Optional[shared.Transaction]](../../models/shared/transaction.md) | :heavy_minus_sign: | OK | -| `get_transaction_409_application_json_object` | [Optional[GetTransaction409ApplicationJSON]](../../models/operations/gettransaction409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your API request was not properly authorized. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `transaction` | [Optional[shared.Transaction]](../../models/shared/transaction.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listcustomers409applicationjson.md b/previous-versions/commerce/docs/models/operations/listcustomers409applicationjson.md deleted file mode 100755 index 04461efbd..000000000 --- a/previous-versions/commerce/docs/models/operations/listcustomers409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListCustomers409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listcustomersresponse.md b/previous-versions/commerce/docs/models/operations/listcustomersresponse.md index b5f11cdd8..2240b385a 100755 --- a/previous-versions/commerce/docs/models/operations/listcustomersresponse.md +++ b/previous-versions/commerce/docs/models/operations/listcustomersresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `customers` | [Optional[shared.Customers]](../../models/shared/customers.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_customers_409_application_json_object` | [Optional[ListCustomers409ApplicationJSON]](../../models/operations/listcustomers409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `customers` | [Optional[shared.Customers]](../../models/shared/customers.md) | :heavy_minus_sign: | OK | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listdisputes409applicationjson.md b/previous-versions/commerce/docs/models/operations/listdisputes409applicationjson.md deleted file mode 100755 index 6a39958a0..000000000 --- a/previous-versions/commerce/docs/models/operations/listdisputes409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListDisputes409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listdisputesresponse.md b/previous-versions/commerce/docs/models/operations/listdisputesresponse.md index 33727952d..25e161621 100755 --- a/previous-versions/commerce/docs/models/operations/listdisputesresponse.md +++ b/previous-versions/commerce/docs/models/operations/listdisputesresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `disputes` | [Optional[shared.Disputes]](../../models/shared/disputes.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_disputes_409_application_json_object` | [Optional[ListDisputes409ApplicationJSON]](../../models/operations/listdisputes409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `disputes` | [Optional[shared.Disputes]](../../models/shared/disputes.md) | :heavy_minus_sign: | OK | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listlocations409applicationjson.md b/previous-versions/commerce/docs/models/operations/listlocations409applicationjson.md deleted file mode 100755 index 4d303a9b1..000000000 --- a/previous-versions/commerce/docs/models/operations/listlocations409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListLocations409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listlocationsresponse.md b/previous-versions/commerce/docs/models/operations/listlocationsresponse.md index fe13a0cf0..23abc31fe 100755 --- a/previous-versions/commerce/docs/models/operations/listlocationsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listlocationsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `locations` | [Optional[shared.Locations]](../../models/shared/locations.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_locations_409_application_json_object` | [Optional[ListLocations409ApplicationJSON]](../../models/operations/listlocations409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `locations` | [Optional[shared.Locations]](../../models/shared/locations.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listorders409applicationjson.md b/previous-versions/commerce/docs/models/operations/listorders409applicationjson.md deleted file mode 100755 index fe0a0e572..000000000 --- a/previous-versions/commerce/docs/models/operations/listorders409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListOrders409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listordersresponse.md b/previous-versions/commerce/docs/models/operations/listordersresponse.md index 3104baedd..348ce7dfe 100755 --- a/previous-versions/commerce/docs/models/operations/listordersresponse.md +++ b/previous-versions/commerce/docs/models/operations/listordersresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `orders` | [Optional[shared.Orders]](../../models/shared/orders.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_orders_409_application_json_object` | [Optional[ListOrders409ApplicationJSON]](../../models/operations/listorders409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `orders` | [Optional[shared.Orders]](../../models/shared/orders.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listpaymentmethods409applicationjson.md b/previous-versions/commerce/docs/models/operations/listpaymentmethods409applicationjson.md deleted file mode 100755 index 46f70e097..000000000 --- a/previous-versions/commerce/docs/models/operations/listpaymentmethods409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListPaymentMethods409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listpaymentmethodsresponse.md b/previous-versions/commerce/docs/models/operations/listpaymentmethodsresponse.md index 16e722b46..d70bf739b 100755 --- a/previous-versions/commerce/docs/models/operations/listpaymentmethodsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listpaymentmethodsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `payment_methods` | [Optional[shared.PaymentMethods]](../../models/shared/paymentmethods.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_payment_methods_409_application_json_object` | [Optional[ListPaymentMethods409ApplicationJSON]](../../models/operations/listpaymentmethods409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `payment_methods` | [Optional[shared.PaymentMethods]](../../models/shared/paymentmethods.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listpayments409applicationjson.md b/previous-versions/commerce/docs/models/operations/listpayments409applicationjson.md deleted file mode 100755 index d2d35e334..000000000 --- a/previous-versions/commerce/docs/models/operations/listpayments409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListPayments409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listpaymentsresponse.md b/previous-versions/commerce/docs/models/operations/listpaymentsresponse.md index 1425f56b0..0593bef3c 100755 --- a/previous-versions/commerce/docs/models/operations/listpaymentsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listpaymentsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `payments` | [Optional[shared.Payments]](../../models/shared/payments.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_payments_409_application_json_object` | [Optional[ListPayments409ApplicationJSON]](../../models/operations/listpayments409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `payments` | [Optional[shared.Payments]](../../models/shared/payments.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listproductcategories409applicationjson.md b/previous-versions/commerce/docs/models/operations/listproductcategories409applicationjson.md deleted file mode 100755 index edd534195..000000000 --- a/previous-versions/commerce/docs/models/operations/listproductcategories409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListProductCategories409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listproductcategoriesresponse.md b/previous-versions/commerce/docs/models/operations/listproductcategoriesresponse.md index 2ef172b44..314f623a3 100755 --- a/previous-versions/commerce/docs/models/operations/listproductcategoriesresponse.md +++ b/previous-versions/commerce/docs/models/operations/listproductcategoriesresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `product_categories` | [Optional[shared.ProductCategories]](../../models/shared/productcategories.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_product_categories_409_application_json_object` | [Optional[ListProductCategories409ApplicationJSON]](../../models/operations/listproductcategories409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `product_categories` | [Optional[shared.ProductCategories]](../../models/shared/productcategories.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listproducts409applicationjson.md b/previous-versions/commerce/docs/models/operations/listproducts409applicationjson.md deleted file mode 100755 index 7062aeb7c..000000000 --- a/previous-versions/commerce/docs/models/operations/listproducts409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListProducts409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listproductsresponse.md b/previous-versions/commerce/docs/models/operations/listproductsresponse.md index 076bbf949..108502f6b 100755 --- a/previous-versions/commerce/docs/models/operations/listproductsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listproductsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `products` | [Optional[shared.Products]](../../models/shared/products.md) | :heavy_minus_sign: | OK | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `list_products_409_application_json_object` | [Optional[ListProducts409ApplicationJSON]](../../models/operations/listproducts409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `products` | [Optional[shared.Products]](../../models/shared/products.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listtaxcomponents409applicationjson.md b/previous-versions/commerce/docs/models/operations/listtaxcomponents409applicationjson.md deleted file mode 100755 index 9466f484d..000000000 --- a/previous-versions/commerce/docs/models/operations/listtaxcomponents409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListTaxComponents409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listtaxcomponentsresponse.md b/previous-versions/commerce/docs/models/operations/listtaxcomponentsresponse.md index 4d640274e..76b97007f 100755 --- a/previous-versions/commerce/docs/models/operations/listtaxcomponentsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listtaxcomponentsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `tax_components` | [Optional[shared.TaxComponents]](../../models/shared/taxcomponents.md) | :heavy_minus_sign: | OK | -| `list_tax_components_409_application_json_object` | [Optional[ListTaxComponents409ApplicationJSON]](../../models/operations/listtaxcomponents409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `tax_components` | [Optional[shared.TaxComponents]](../../models/shared/taxcomponents.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listtransactions409applicationjson.md b/previous-versions/commerce/docs/models/operations/listtransactions409applicationjson.md deleted file mode 100755 index 2a27f3f29..000000000 --- a/previous-versions/commerce/docs/models/operations/listtransactions409applicationjson.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListTransactions409ApplicationJSON - -The data type's dataset has not been requested or is still syncing. - - -## Fields - -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `error` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `service` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status_code` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/operations/listtransactionsresponse.md b/previous-versions/commerce/docs/models/operations/listtransactionsresponse.md index aa33bf270..cabfe1d87 100755 --- a/previous-versions/commerce/docs/models/operations/listtransactionsresponse.md +++ b/previous-versions/commerce/docs/models/operations/listtransactionsresponse.md @@ -3,11 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | -| `transactions` | [Optional[shared.Transactions]](../../models/shared/transactions.md) | :heavy_minus_sign: | OK | -| `list_transactions_409_application_json_object` | [Optional[ListTransactions409ApplicationJSON]](../../models/operations/listtransactions409applicationjson.md) | :heavy_minus_sign: | The data type's dataset has not been requested or is still syncing. | -| `schema` | [Optional[shared.Schema]](../../models/shared/schema.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your `query` parameter was not correctly formed | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `transactions` | [Optional[shared.Transactions]](../../models/shared/transactions.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/address.md b/previous-versions/commerce/docs/models/shared/address.md index 03858dced..716991fc1 100755 --- a/previous-versions/commerce/docs/models/shared/address.md +++ b/previous-versions/commerce/docs/models/shared/address.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `city` | *Optional[str]* | :heavy_minus_sign: | The third line of the address, or city | -| `country` | *Optional[str]* | :heavy_minus_sign: | The country for the address | -| `line1` | *Optional[str]* | :heavy_minus_sign: | The first line of the address | -| `line2` | *Optional[str]* | :heavy_minus_sign: | The second line of the address | -| `postal_code` | *Optional[str]* | :heavy_minus_sign: | The postal (or zip) code for the address | -| `region` | *Optional[str]* | :heavy_minus_sign: | The fourth line of the address, or region | -| `type` | [Optional[AddressType]](../../models/shared/addresstype.md) | :heavy_minus_sign: | The type of the address | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `city` | *Optional[str]* | :heavy_minus_sign: | The third line of the address, or city | +| `country` | *Optional[str]* | :heavy_minus_sign: | The country for the address | +| `line1` | *Optional[str]* | :heavy_minus_sign: | The first line of the address | +| `line2` | *Optional[str]* | :heavy_minus_sign: | The second line of the address | +| `postal_code` | *Optional[str]* | :heavy_minus_sign: | The postal (or zip) code for the address | +| `region` | *Optional[str]* | :heavy_minus_sign: | The fourth line of the address, or region | +| `type` | [Optional[CommerceAddressType]](../../models/shared/commerceaddresstype.md) | :heavy_minus_sign: | The type of the address | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/addresstype.md b/previous-versions/commerce/docs/models/shared/commerceaddresstype.md similarity index 91% rename from previous-versions/commerce/docs/models/shared/addresstype.md rename to previous-versions/commerce/docs/models/shared/commerceaddresstype.md index 0fc5cf86b..5cfbee621 100755 --- a/previous-versions/commerce/docs/models/shared/addresstype.md +++ b/previous-versions/commerce/docs/models/shared/commerceaddresstype.md @@ -1,4 +1,4 @@ -# AddressType +# CommerceAddressType The type of the address diff --git a/previous-versions/commerce/docs/models/shared/customerref.md b/previous-versions/commerce/docs/models/shared/commercecustomerref.md similarity index 98% rename from previous-versions/commerce/docs/models/shared/customerref.md rename to previous-versions/commerce/docs/models/shared/commercecustomerref.md index df9fea920..979435426 100755 --- a/previous-versions/commerce/docs/models/shared/customerref.md +++ b/previous-versions/commerce/docs/models/shared/commercecustomerref.md @@ -1,4 +1,4 @@ -# CustomerRef +# CommerceCustomerRef Reference to the customer that placed the order. diff --git a/previous-versions/commerce/docs/models/shared/schema.md b/previous-versions/commerce/docs/models/shared/errormessage.md similarity index 98% rename from previous-versions/commerce/docs/models/shared/schema.md rename to previous-versions/commerce/docs/models/shared/errormessage.md index fae3ca376..b32400646 100755 --- a/previous-versions/commerce/docs/models/shared/schema.md +++ b/previous-versions/commerce/docs/models/shared/errormessage.md @@ -1,4 +1,4 @@ -# Schema +# ErrorMessage Your `query` parameter was not correctly formed diff --git a/previous-versions/commerce/docs/models/shared/href.md b/previous-versions/commerce/docs/models/shared/halref.md similarity index 96% rename from previous-versions/commerce/docs/models/shared/href.md rename to previous-versions/commerce/docs/models/shared/halref.md index 84a484683..fef2ab2fc 100755 --- a/previous-versions/commerce/docs/models/shared/href.md +++ b/previous-versions/commerce/docs/models/shared/halref.md @@ -1,4 +1,4 @@ -# HRef +# HalRef ## Fields diff --git a/previous-versions/commerce/docs/models/shared/links.md b/previous-versions/commerce/docs/models/shared/links.md index 999a91392..7aad1ea5d 100755 --- a/previous-versions/commerce/docs/models/shared/links.md +++ b/previous-versions/commerce/docs/models/shared/links.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `current` | [HRef](../../models/shared/href.md) | :heavy_check_mark: | N/A | -| `next` | [Optional[HRef]](../../models/shared/href.md) | :heavy_minus_sign: | N/A | -| `previous` | [Optional[HRef]](../../models/shared/href.md) | :heavy_minus_sign: | N/A | -| `self_` | [HRef](../../models/shared/href.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `current` | [HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | +| `next` | [Optional[HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | +| `previous` | [Optional[HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | +| `self_` | [HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/order.md b/previous-versions/commerce/docs/models/shared/order.md index 581ea3e73..f9f86f85b 100755 --- a/previous-versions/commerce/docs/models/shared/order.md +++ b/previous-versions/commerce/docs/models/shared/order.md @@ -14,7 +14,7 @@ Explore our [data coverage](https://knowledge.codat.io/supported-features/commer | `country` | *Optional[str]* | :heavy_minus_sign: | The Codat country property is returned as it was provided in the underlying platform by the company without any formatting on our part.

Depending on the platform the value of this property will either be an ISO 3166 code (2-alpha or 3-alpha) or free-form text returned as a string name in our model.

For POST operations against platforms that demand a specific format for the country code, we have documented accepted values in the [options](https://docs.codat.io/codat-api#/operations/get-companies-companyId-connections-connectionId-push) endpoint. | GBR | | `created_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `currency` | *Optional[str]* | :heavy_minus_sign: | N/A | GBP | -| `customer_ref` | [Optional[CustomerRef]](../../models/shared/customerref.md) | :heavy_minus_sign: | Reference to the customer that placed the order. | | +| `customer_ref` | [Optional[CommerceCustomerRef]](../../models/shared/commercecustomerref.md) | :heavy_minus_sign: | Reference to the customer that placed the order. | | | `id` | *str* | :heavy_check_mark: | A unique, persistent identifier for this record | 13d946f0-c5d5-42bc-b092-97ece17923ab | | `location_ref` | [Optional[LocationRef]](../../models/shared/locationref.md) | :heavy_minus_sign: | Reference to the geographic location where the order was placed. | | | `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | diff --git a/previous-versions/commerce/docs/models/shared/payment.md b/previous-versions/commerce/docs/models/shared/payment.md index 1b7796dd1..b888a81bf 100755 --- a/previous-versions/commerce/docs/models/shared/payment.md +++ b/previous-versions/commerce/docs/models/shared/payment.md @@ -19,7 +19,7 @@ Explore our [data coverage](https://knowledge.codat.io/supported-features/commer | `due_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `id` | *str* | :heavy_check_mark: | A unique, persistent identifier for this record | 13d946f0-c5d5-42bc-b092-97ece17923ab | | `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `payment_method_ref` | [Optional[PaymentMethodRef]](../../models/shared/paymentmethodref.md) | :heavy_minus_sign: | The payment method the payment is linked to in the commerce platform. | | +| `payment_method_ref` | *Optional[Any]* | :heavy_minus_sign: | N/A | | | `payment_provider` | *Optional[str]* | :heavy_minus_sign: | Service provider of the payment, if applicable. | Amazon Pay | | `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `status` | [Optional[PaymentStatus]](../../models/shared/paymentstatus.md) | :heavy_minus_sign: | Status of the payment | | \ No newline at end of file +| `status` | [Optional[PaymentStatus]](../../models/shared/paymentstatus.md) | :heavy_minus_sign: | Status of the payment. | | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/paymentmethodref.md b/previous-versions/commerce/docs/models/shared/paymentmethodref.md deleted file mode 100755 index b56464200..000000000 --- a/previous-versions/commerce/docs/models/shared/paymentmethodref.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentMethodRef - -The payment method the payment is linked to in the commerce platform. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | The unique identitifer of the location being referenced. | -| `name` | *Optional[str]* | :heavy_minus_sign: | Name of the location being referenced. | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/paymentref.md b/previous-versions/commerce/docs/models/shared/paymentref.md index 9b3562185..fdc4fd6d5 100755 --- a/previous-versions/commerce/docs/models/shared/paymentref.md +++ b/previous-versions/commerce/docs/models/shared/paymentref.md @@ -13,5 +13,5 @@ | `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `payment_provider` | *Optional[str]* | :heavy_minus_sign: | Service provider of the payment, if applicable. | Amazon Pay | | `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `status` | [Optional[PaymentStatus]](../../models/shared/paymentstatus.md) | :heavy_minus_sign: | Status of the payment | | -| `type` | [Optional[PaymentType]](../../models/shared/paymenttype.md) | :heavy_minus_sign: | Status of the payment | Cash | \ No newline at end of file +| `status` | [Optional[PaymentStatus]](../../models/shared/paymentstatus.md) | :heavy_minus_sign: | Status of the payment. | | +| `type` | [Optional[PaymentType]](../../models/shared/paymenttype.md) | :heavy_minus_sign: | Type of payment. | Cash | \ No newline at end of file diff --git a/previous-versions/commerce/docs/models/shared/paymentstatus.md b/previous-versions/commerce/docs/models/shared/paymentstatus.md index 1b1ba022d..9a74e9316 100755 --- a/previous-versions/commerce/docs/models/shared/paymentstatus.md +++ b/previous-versions/commerce/docs/models/shared/paymentstatus.md @@ -1,6 +1,6 @@ # PaymentStatus -Status of the payment +Status of the payment. ## Values diff --git a/previous-versions/commerce/docs/models/shared/paymenttype.md b/previous-versions/commerce/docs/models/shared/paymenttype.md index 99523b5db..a72ccf82b 100755 --- a/previous-versions/commerce/docs/models/shared/paymenttype.md +++ b/previous-versions/commerce/docs/models/shared/paymenttype.md @@ -1,6 +1,6 @@ # PaymentType -Status of the payment +Type of payment. ## Values diff --git a/previous-versions/commerce/docs/sdks/companyinfo/README.md b/previous-versions/commerce/docs/sdks/companyinfo/README.md index 998c5dca6..269036b28 100755 --- a/previous-versions/commerce/docs/sdks/companyinfo/README.md +++ b/previous-versions/commerce/docs/sdks/companyinfo/README.md @@ -18,7 +18,7 @@ This may include information like addresses, tax registration details and social ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/customers/README.md b/previous-versions/commerce/docs/sdks/customers/README.md index e174c6794..e14a99db8 100755 --- a/previous-versions/commerce/docs/sdks/customers/README.md +++ b/previous-versions/commerce/docs/sdks/customers/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/disputes/README.md b/previous-versions/commerce/docs/sdks/disputes/README.md index 3373f83fc..d6876b2b9 100755 --- a/previous-versions/commerce/docs/sdks/disputes/README.md +++ b/previous-versions/commerce/docs/sdks/disputes/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/locations/README.md b/previous-versions/commerce/docs/sdks/locations/README.md index 68700daad..3520ada14 100755 --- a/previous-versions/commerce/docs/sdks/locations/README.md +++ b/previous-versions/commerce/docs/sdks/locations/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/orders/README.md b/previous-versions/commerce/docs/sdks/orders/README.md index 640bafbc8..f699c052d 100755 --- a/previous-versions/commerce/docs/sdks/orders/README.md +++ b/previous-versions/commerce/docs/sdks/orders/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/payments/README.md b/previous-versions/commerce/docs/sdks/payments/README.md index ef38feede..0317824ab 100755 --- a/previous-versions/commerce/docs/sdks/payments/README.md +++ b/previous-versions/commerce/docs/sdks/payments/README.md @@ -26,7 +26,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -74,7 +74,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -120,7 +120,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -169,7 +169,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/products/README.md b/previous-versions/commerce/docs/sdks/products/README.md index 44d8b30aa..6a15e5248 100755 --- a/previous-versions/commerce/docs/sdks/products/README.md +++ b/previous-versions/commerce/docs/sdks/products/README.md @@ -26,7 +26,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -74,7 +74,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -120,7 +120,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -169,7 +169,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/taxcomponents/README.md b/previous-versions/commerce/docs/sdks/taxcomponents/README.md index 1b19fcef3..e4aaf8531 100755 --- a/previous-versions/commerce/docs/sdks/taxcomponents/README.md +++ b/previous-versions/commerce/docs/sdks/taxcomponents/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/docs/sdks/transactions/README.md b/previous-versions/commerce/docs/sdks/transactions/README.md index e4c34b477..3b87d6934 100755 --- a/previous-versions/commerce/docs/sdks/transactions/README.md +++ b/previous-versions/commerce/docs/sdks/transactions/README.md @@ -24,7 +24,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( @@ -70,7 +70,7 @@ Before using this endpoint, you must have [retrieved data for the company](https ```python import codatcommerce -from codatcommerce.models import operations +from codatcommerce.models import operations, shared s = codatcommerce.CodatCommerce( security=shared.Security( diff --git a/previous-versions/commerce/files.gen b/previous-versions/commerce/files.gen index d1be6e968..2f649724f 100755 --- a/previous-versions/commerce/files.gen +++ b/previous-versions/commerce/files.gen @@ -13,6 +13,7 @@ pylintrc setup.py src/codatcommerce/__init__.py src/codatcommerce/models/__init__.py +src/codatcommerce/models/errors/sdkerror.py src/codatcommerce/utils/__init__.py src/codatcommerce/utils/retries.py src/codatcommerce/utils/utils.py @@ -38,17 +39,17 @@ src/codatcommerce/models/operations/list_tax_components.py src/codatcommerce/models/operations/get_transaction.py src/codatcommerce/models/operations/list_transactions.py src/codatcommerce/models/operations/__init__.py -src/codatcommerce/models/shared/schema.py +src/codatcommerce/models/shared/errormessage.py src/codatcommerce/models/shared/companyinfo.py src/codatcommerce/models/shared/phonenumber.py src/codatcommerce/models/shared/phonenumbertype.py src/codatcommerce/models/shared/address.py -src/codatcommerce/models/shared/addresstype.py +src/codatcommerce/models/shared/commerceaddresstype.py src/codatcommerce/models/shared/accountbalance.py src/codatcommerce/models/shared/customer.py src/codatcommerce/models/shared/customers.py src/codatcommerce/models/shared/links.py -src/codatcommerce/models/shared/href.py +src/codatcommerce/models/shared/halref.py src/codatcommerce/models/shared/dispute.py src/codatcommerce/models/shared/disputestatus.py src/codatcommerce/models/shared/transactionsourceref.py @@ -69,10 +70,9 @@ src/codatcommerce/models/shared/productvariantref.py src/codatcommerce/models/shared/productref.py src/codatcommerce/models/shared/orderdiscountallocation.py src/codatcommerce/models/shared/locationref.py -src/codatcommerce/models/shared/customerref.py +src/codatcommerce/models/shared/commercecustomerref.py src/codatcommerce/models/shared/orders.py src/codatcommerce/models/shared/payment.py -src/codatcommerce/models/shared/paymentmethodref.py src/codatcommerce/models/shared/paymentmethod.py src/codatcommerce/models/shared/paymentmethodstatus.py src/codatcommerce/models/shared/payments.py @@ -94,6 +94,7 @@ src/codatcommerce/models/shared/transactiontype.py src/codatcommerce/models/shared/transactions.py src/codatcommerce/models/shared/security.py src/codatcommerce/models/shared/__init__.py +src/codatcommerce/models/errors/__init__.py docs/sdks/codatcommerce/README.md docs/models/utils/retryconfig.md docs/sdks/companyinfo/README.md @@ -107,81 +108,60 @@ docs/sdks/taxcomponents/README.md docs/sdks/transactions/README.md USAGE.md docs/models/operations/getcompanyinforequest.md -docs/models/operations/getcompanyinfo409applicationjson.md docs/models/operations/getcompanyinforesponse.md docs/models/operations/getcustomerrequest.md -docs/models/operations/getcustomer409applicationjson.md docs/models/operations/getcustomerresponse.md docs/models/operations/listcustomersrequest.md -docs/models/operations/listcustomers409applicationjson.md docs/models/operations/listcustomersresponse.md docs/models/operations/getdisputerequest.md -docs/models/operations/getdispute409applicationjson.md docs/models/operations/getdisputeresponse.md docs/models/operations/listdisputesrequest.md -docs/models/operations/listdisputes409applicationjson.md docs/models/operations/listdisputesresponse.md docs/models/operations/getlocationrequest.md -docs/models/operations/getlocation409applicationjson.md docs/models/operations/getlocationresponse.md docs/models/operations/listlocationsrequest.md -docs/models/operations/listlocations409applicationjson.md docs/models/operations/listlocationsresponse.md docs/models/operations/getorderrequest.md -docs/models/operations/getorder409applicationjson.md docs/models/operations/getorderresponse.md docs/models/operations/listordersrequest.md -docs/models/operations/listorders409applicationjson.md docs/models/operations/listordersresponse.md docs/models/operations/getpaymentrequest.md -docs/models/operations/getpayment409applicationjson.md docs/models/operations/getpaymentresponse.md docs/models/operations/getpaymentmethodrequest.md -docs/models/operations/getpaymentmethod409applicationjson.md docs/models/operations/getpaymentmethodresponse.md docs/models/operations/listpaymentsrequest.md -docs/models/operations/listpayments409applicationjson.md docs/models/operations/listpaymentsresponse.md docs/models/operations/listpaymentmethodsrequest.md -docs/models/operations/listpaymentmethods409applicationjson.md docs/models/operations/listpaymentmethodsresponse.md docs/models/operations/getproductrequest.md -docs/models/operations/getproduct409applicationjson.md docs/models/operations/getproductresponse.md docs/models/operations/getproductcategoryrequest.md -docs/models/operations/getproductcategory409applicationjson.md docs/models/operations/getproductcategoryresponse.md docs/models/operations/listproductsrequest.md -docs/models/operations/listproducts409applicationjson.md docs/models/operations/listproductsresponse.md docs/models/operations/listproductcategoriesrequest.md -docs/models/operations/listproductcategories409applicationjson.md docs/models/operations/listproductcategoriesresponse.md docs/models/operations/gettaxcomponentrequest.md -docs/models/operations/gettaxcomponent409applicationjson.md docs/models/operations/gettaxcomponentresponse.md docs/models/operations/listtaxcomponentsrequest.md -docs/models/operations/listtaxcomponents409applicationjson.md docs/models/operations/listtaxcomponentsresponse.md docs/models/operations/gettransactionrequest.md -docs/models/operations/gettransaction409applicationjson.md docs/models/operations/gettransactionresponse.md docs/models/operations/listtransactionsrequest.md -docs/models/operations/listtransactions409applicationjson.md docs/models/operations/listtransactionsresponse.md -docs/models/shared/schema.md +docs/models/shared/errormessage.md docs/models/shared/companyinfoweblinktype.md docs/models/shared/companyinfoweblink.md docs/models/shared/companyinfo.md docs/models/shared/phonenumber.md docs/models/shared/phonenumbertype.md docs/models/shared/address.md -docs/models/shared/addresstype.md +docs/models/shared/commerceaddresstype.md docs/models/shared/accountbalance.md docs/models/shared/customer.md docs/models/shared/customers.md docs/models/shared/links.md -docs/models/shared/href.md +docs/models/shared/halref.md docs/models/shared/dispute.md docs/models/shared/disputestatus.md docs/models/shared/transactionsourceref.md @@ -203,10 +183,9 @@ docs/models/shared/productvariantref.md docs/models/shared/productref.md docs/models/shared/orderdiscountallocation.md docs/models/shared/locationref.md -docs/models/shared/customerref.md +docs/models/shared/commercecustomerref.md docs/models/shared/orders.md docs/models/shared/payment.md -docs/models/shared/paymentmethodref.md docs/models/shared/paymentmethod.md docs/models/shared/paymentmethodstatus.md docs/models/shared/payments.md @@ -226,4 +205,5 @@ docs/models/shared/taxcomponents.md docs/models/shared/transaction.md docs/models/shared/transactiontype.md docs/models/shared/transactions.md -docs/models/shared/security.md \ No newline at end of file +docs/models/shared/security.md +.gitattributes \ No newline at end of file diff --git a/previous-versions/commerce/gen.yaml b/previous-versions/commerce/gen.yaml index de87ae7dc..ee595fcc3 100644 --- a/previous-versions/commerce/gen.yaml +++ b/previous-versions/commerce/gen.yaml @@ -1,15 +1,23 @@ configVersion: 1.0.0 management: - docChecksum: 853aebc76021ec17db9b1abb7a33f340 - docVersion: 2.1.0 - speakeasyVersion: 1.53.0 - generationVersion: 2.58.0 + docChecksum: dd5d8fec6f472c584e5cbe12380dcf63 + docVersion: 3.0.0 + speakeasyVersion: 1.77.1 + generationVersion: 2.91.4 generation: sdkClassName: CodatCommerce singleTagPerOp: false telemetryEnabled: true +features: + python: + core: 2.85.1 + examples: 2.81.1 + globalSecurity: 2.81.1 + globalServerURLs: 2.82.0 + nameOverrides: 2.81.1 + retries: 2.81.1 python: - version: 0.0.0 + version: 0.1.0 author: Codat description: Access standardized commerce data from our commerce integrations. maxMethodParams: 0 diff --git a/previous-versions/commerce/pylintrc b/previous-versions/commerce/pylintrc index 1ce47d88d..ab6495dd6 100755 --- a/previous-versions/commerce/pylintrc +++ b/previous-versions/commerce/pylintrc @@ -438,7 +438,9 @@ disable=raw-checker-failed, using-constant-test, too-many-statements, cyclic-import, - too-many-nested-blocks + too-many-nested-blocks, + too-many-boolean-expressions, + no-else-raise # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -619,7 +621,7 @@ additional-builtins= allow-global-unused-variables=yes # List of names allowed to shadow builtins -allowed-redefined-builtins= +allowed-redefined-builtins=id,object # List of strings which can identify a callback function by name. A callback # name must start or end with one of those strings. diff --git a/previous-versions/commerce/setup.py b/previous-versions/commerce/setup.py index 61a302ee9..15681e9e1 100755 --- a/previous-versions/commerce/setup.py +++ b/previous-versions/commerce/setup.py @@ -10,16 +10,16 @@ setuptools.setup( name="codat-commerce", - version="0.33.1", - author="Speakeasy", - description="Python Client SDK Generated by Speakeasy", + version="0.1.0", + author="Codat", + description="Access standardized commerce data from our commerce integrations.", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(where="src"), install_requires=[ "certifi>=2022.12.7", "charset-normalizer>=2.1.1", - "dataclasses-json-speakeasy>=0.5.8", + "dataclasses-json>=0.5.12", "idna>=3.3", "jsonpath-python>=1.0.6 ", "marshmallow>=3.17.1", diff --git a/previous-versions/commerce/src/codatcommerce/company_info.py b/previous-versions/commerce/src/codatcommerce/company_info.py index 05b648a85..148972c87 100755 --- a/previous-versions/commerce/src/codatcommerce/company_info.py +++ b/previous-versions/commerce/src/codatcommerce/company_info.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class CompanyInfo: @@ -16,14 +16,14 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetCompanyInfoRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCompanyInfoResponse: r"""Get company info Retrieve information about the company, as seen in the commerce platform. - + This may include information like addresses, tax registration details and social media or website information. """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetCompanyInfoRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-info', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -48,14 +48,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.CompanyInfo]) res.company_info = out - elif http_res.status_code in [401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetCompanyInfo409ApplicationJSON]) - res.get_company_info_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/customers.py b/previous-versions/commerce/src/codatcommerce/customers.py index 50175313f..eb6a7a4da 100755 --- a/previous-versions/commerce/src/codatcommerce/customers.py +++ b/previous-versions/commerce/src/codatcommerce/customers.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Customers: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetCustomerRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetCustomerResponse: r"""Get customer The *Get customer* endpoint returns a single customer for a given customerId. - + [Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and receive goods and/or services from the SMB. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-customers) for integrations that support getting a specific customer. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetCustomerRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-customers/{customerId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Customer]) res.customer = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetCustomer409ApplicationJSON]) - res.get_customer_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,9 +67,9 @@ def do_request(): def list(self, request: operations.ListCustomersRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListCustomersResponse: r"""List customers The *List customers* endpoint returns a list of [customers](https://docs.codat.io/commerce-api#/schemas/Customer) for a given company's connection. - + [Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and recieve goods and/or services from the SMB. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -77,7 +77,7 @@ def list(self, request: operations.ListCustomersRequest, retries: Optional[utils url = utils.generate_url(operations.ListCustomersRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-customers', request) headers = {} query_params = utils.get_query_params(operations.ListCustomersRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -102,14 +102,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Customers]) res.customers = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListCustomers409ApplicationJSON]) - res.list_customers_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/disputes.py b/previous-versions/commerce/src/codatcommerce/disputes.py index 2e2cc236a..36a8e6322 100755 --- a/previous-versions/commerce/src/codatcommerce/disputes.py +++ b/previous-versions/commerce/src/codatcommerce/disputes.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Disputes: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetDisputeRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetDisputeResponse: r"""Get dispute The *Get dispute* endpoint returns a single dispute for a given disputeId. - + [Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-disputes) for integrations that support getting a specific dispute. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetDisputeRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes/{disputeId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Dispute]) res.dispute = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetDispute409ApplicationJSON]) - res.get_dispute_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,9 +67,9 @@ def do_request(): def list(self, request: operations.ListDisputesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListDisputesResponse: r"""List disputes The *List disputes* endpoint returns a list of [disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) for a given company's connection. - + [Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -77,7 +77,7 @@ def list(self, request: operations.ListDisputesRequest, retries: Optional[utils. url = utils.generate_url(operations.ListDisputesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes', request) headers = {} query_params = utils.get_query_params(operations.ListDisputesRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -102,14 +102,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Disputes]) res.disputes = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListDisputes409ApplicationJSON]) - res.list_disputes_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/locations.py b/previous-versions/commerce/src/codatcommerce/locations.py index 935aaa250..f08d6eff6 100755 --- a/previous-versions/commerce/src/codatcommerce/locations.py +++ b/previous-versions/commerce/src/codatcommerce/locations.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Locations: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetLocationRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetLocationResponse: r"""Get location The *Get location* endpoint returns a single location for a given locationId. - + [Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-locations) for integrations that support getting a specific location. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetLocationRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-locations/{locationId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Location]) res.location = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetLocation409ApplicationJSON]) - res.get_location_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,16 +67,16 @@ def do_request(): def list(self, request: operations.ListLocationsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListLocationsResponse: r"""List locations The *List locations* endpoint returns a list of [locations](https://docs.codat.io/commerce-api#/schemas/Location) for a given company's connection. - + [Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.ListLocationsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-locations', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -101,14 +101,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Locations]) res.locations = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListLocations409ApplicationJSON]) - res.list_locations_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/models/errors/__init__.py b/previous-versions/commerce/src/codatcommerce/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/previous-versions/commerce/src/codatcommerce/models/errors/__init__.py @@ -0,0 +1,4 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from .sdkerror import SDKError +__all__ = ["SDKError"] diff --git a/previous-versions/commerce/src/codatcommerce/models/errors/sdkerror.py b/previous-versions/commerce/src/codatcommerce/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/previous-versions/commerce/src/codatcommerce/models/errors/sdkerror.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +import requests as requests_http + + +class SDKError(Exception): + """Represents an error returned by the API.""" + message: str + status_code: int + body: str + raw_response: requests_http.Response + + def __init__(self, message: str, status_code: int, body: str, raw_response: requests_http.Response): + self.message = message + self.status_code = status_code + self.body = body + self.raw_response = raw_response + + def __str__(self): + body = '' + if len(self.body) > 0: + body = f'\n{self.body}' + + return f'{self.message}: Status {self.status_code}{body}' diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/__init__.py b/previous-versions/commerce/src/codatcommerce/models/operations/__init__.py index ba79d741c..f5a3f0325 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/__init__.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/__init__.py @@ -22,4 +22,4 @@ from .list_tax_components import * from .list_transactions import * -__all__ = ["GetCompanyInfo409ApplicationJSON","GetCompanyInfoRequest","GetCompanyInfoResponse","GetCustomer409ApplicationJSON","GetCustomerRequest","GetCustomerResponse","GetDispute409ApplicationJSON","GetDisputeRequest","GetDisputeResponse","GetLocation409ApplicationJSON","GetLocationRequest","GetLocationResponse","GetOrder409ApplicationJSON","GetOrderRequest","GetOrderResponse","GetPayment409ApplicationJSON","GetPaymentMethod409ApplicationJSON","GetPaymentMethodRequest","GetPaymentMethodResponse","GetPaymentRequest","GetPaymentResponse","GetProduct409ApplicationJSON","GetProductCategory409ApplicationJSON","GetProductCategoryRequest","GetProductCategoryResponse","GetProductRequest","GetProductResponse","GetTaxComponent409ApplicationJSON","GetTaxComponentRequest","GetTaxComponentResponse","GetTransaction409ApplicationJSON","GetTransactionRequest","GetTransactionResponse","ListCustomers409ApplicationJSON","ListCustomersRequest","ListCustomersResponse","ListDisputes409ApplicationJSON","ListDisputesRequest","ListDisputesResponse","ListLocations409ApplicationJSON","ListLocationsRequest","ListLocationsResponse","ListOrders409ApplicationJSON","ListOrdersRequest","ListOrdersResponse","ListPaymentMethods409ApplicationJSON","ListPaymentMethodsRequest","ListPaymentMethodsResponse","ListPayments409ApplicationJSON","ListPaymentsRequest","ListPaymentsResponse","ListProductCategories409ApplicationJSON","ListProductCategoriesRequest","ListProductCategoriesResponse","ListProducts409ApplicationJSON","ListProductsRequest","ListProductsResponse","ListTaxComponents409ApplicationJSON","ListTaxComponentsRequest","ListTaxComponentsResponse","ListTransactions409ApplicationJSON","ListTransactionsRequest","ListTransactionsResponse"] +__all__ = ["GetCompanyInfoRequest","GetCompanyInfoResponse","GetCustomerRequest","GetCustomerResponse","GetDisputeRequest","GetDisputeResponse","GetLocationRequest","GetLocationResponse","GetOrderRequest","GetOrderResponse","GetPaymentMethodRequest","GetPaymentMethodResponse","GetPaymentRequest","GetPaymentResponse","GetProductCategoryRequest","GetProductCategoryResponse","GetProductRequest","GetProductResponse","GetTaxComponentRequest","GetTaxComponentResponse","GetTransactionRequest","GetTransactionResponse","ListCustomersRequest","ListCustomersResponse","ListDisputesRequest","ListDisputesResponse","ListLocationsRequest","ListLocationsResponse","ListOrdersRequest","ListOrdersResponse","ListPaymentMethodsRequest","ListPaymentMethodsResponse","ListPaymentsRequest","ListPaymentsResponse","ListProductCategoriesRequest","ListProductCategoriesResponse","ListProductsRequest","ListProductsResponse","ListTaxComponentsRequest","ListTaxComponentsResponse","ListTransactionsRequest","ListTransactionsResponse"] diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_company_info.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_company_info.py index c5d7ff392..088b87f60 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_company_info.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_company_info.py @@ -4,9 +4,7 @@ import dataclasses import requests as requests_http from ..shared import companyinfo as shared_companyinfo -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json +from ..shared import errormessage as shared_errormessage from typing import Optional @@ -19,21 +17,6 @@ class GetCompanyInfoRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetCompanyInfo409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetCompanyInfoResponse: @@ -41,10 +24,8 @@ class GetCompanyInfoResponse: status_code: int = dataclasses.field() company_info: Optional[shared_companyinfo.CompanyInfo] = dataclasses.field(default=None) r"""OK""" - get_company_info_409_application_json_object: Optional[GetCompanyInfo409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your API request was not properly authorized.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_customer.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_customer.py index 8c9663794..f2b44c117 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_customer.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_customer.py @@ -4,9 +4,7 @@ import dataclasses import requests as requests_http from ..shared import customer as shared_customer -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json +from ..shared import errormessage as shared_errormessage from typing import Optional @@ -21,21 +19,6 @@ class GetCustomerRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetCustomer409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetCustomerResponse: @@ -43,10 +26,8 @@ class GetCustomerResponse: status_code: int = dataclasses.field() customer: Optional[shared_customer.Customer] = dataclasses.field(default=None) r"""OK""" - get_customer_409_application_json_object: Optional[GetCustomer409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your API request was not properly authorized.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_dispute.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_dispute.py index 1a9e681a4..8b7278c90 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_dispute.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_dispute.py @@ -4,9 +4,7 @@ import dataclasses import requests as requests_http from ..shared import dispute as shared_dispute -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json +from ..shared import errormessage as shared_errormessage from typing import Optional @@ -21,21 +19,6 @@ class GetDisputeRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetDispute409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetDisputeResponse: @@ -43,10 +26,8 @@ class GetDisputeResponse: status_code: int = dataclasses.field() dispute: Optional[shared_dispute.Dispute] = dataclasses.field(default=None) r"""OK""" - get_dispute_409_application_json_object: Optional[GetDispute409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your API request was not properly authorized.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_location.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_location.py index 623b68599..79e05e53a 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_location.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_location.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import location as shared_location -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetLocationRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetLocation409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetLocationResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_location_409_application_json_object: Optional[GetLocation409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" location: Optional[shared_location.Location] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_order.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_order.py index 986ab3176..0088a69d2 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_order.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_order.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import order as shared_order -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetOrderRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetOrder409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetOrderResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_order_409_application_json_object: Optional[GetOrder409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" order: Optional[shared_order.Order] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_payment.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_payment.py index 5720545dc..1c59eac25 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_payment.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_payment.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import payment as shared_payment -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetPaymentRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetPayment409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetPaymentResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_payment_409_application_json_object: Optional[GetPayment409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" payment: Optional[shared_payment.Payment] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_payment_method.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_payment_method.py index 2dacb66f1..1a145c3f6 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_payment_method.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_payment_method.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import paymentmethod as shared_paymentmethod -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetPaymentMethodRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetPaymentMethod409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetPaymentMethodResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_payment_method_409_application_json_object: Optional[GetPaymentMethod409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" payment_method: Optional[shared_paymentmethod.PaymentMethod] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_product.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_product.py index 29fe2f7a3..c20a35435 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_product.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_product.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import product as shared_product -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetProductRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetProduct409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetProductResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_product_409_application_json_object: Optional[GetProduct409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" product: Optional[shared_product.Product] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_product_category.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_product_category.py index ad18bd52a..6d0cf8f85 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_product_category.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_product_category.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import productcategory as shared_productcategory -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,32 +19,15 @@ class GetProductCategoryRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetProductCategory409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetProductCategoryResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_product_category_409_application_json_object: Optional[GetProductCategory409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" product_category: Optional[shared_productcategory.ProductCategory] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your API request was not properly authorized.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_tax_component.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_tax_component.py index 420829dae..cae478c9b 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_tax_component.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_tax_component.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import schema as shared_schema +from ..shared import errormessage as shared_errormessage from ..shared import taxcomponent as shared_taxcomponent -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,31 +19,14 @@ class GetTaxComponentRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetTaxComponent409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetTaxComponentResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_tax_component_409_application_json_object: Optional[GetTaxComponent409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your API request was not properly authorized.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) tax_component: Optional[shared_taxcomponent.TaxComponent] = dataclasses.field(default=None) r"""OK""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/get_transaction.py b/previous-versions/commerce/src/codatcommerce/models/operations/get_transaction.py index aa4747bdc..99d12bc3e 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/get_transaction.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/get_transaction.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import schema as shared_schema +from ..shared import errormessage as shared_errormessage from ..shared import transaction as shared_transaction -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -21,31 +19,14 @@ class GetTransactionRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class GetTransaction409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class GetTransactionResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - get_transaction_409_application_json_object: Optional[GetTransaction409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your API request was not properly authorized.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) transaction: Optional[shared_transaction.Transaction] = dataclasses.field(default=None) r"""OK""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_customers.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_customers.py index 045780384..8e80c1a88 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_customers.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_customers.py @@ -4,9 +4,7 @@ import dataclasses import requests as requests_http from ..shared import customers as shared_customers -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json +from ..shared import errormessage as shared_errormessage from typing import Optional @@ -27,21 +25,6 @@ class ListCustomersRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListCustomers409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListCustomersResponse: @@ -49,10 +32,8 @@ class ListCustomersResponse: status_code: int = dataclasses.field() customers: Optional[shared_customers.Customers] = dataclasses.field(default=None) r"""OK""" - list_customers_409_application_json_object: Optional[ListCustomers409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your `query` parameter was not correctly formed""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_disputes.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_disputes.py index 396e37258..7cadbfc93 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_disputes.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_disputes.py @@ -4,9 +4,7 @@ import dataclasses import requests as requests_http from ..shared import disputes as shared_disputes -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json +from ..shared import errormessage as shared_errormessage from typing import Optional @@ -27,21 +25,6 @@ class ListDisputesRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListDisputes409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListDisputesResponse: @@ -49,10 +32,8 @@ class ListDisputesResponse: status_code: int = dataclasses.field() disputes: Optional[shared_disputes.Disputes] = dataclasses.field(default=None) r"""OK""" - list_disputes_409_application_json_object: Optional[ListDisputes409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your `query` parameter was not correctly formed""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_locations.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_locations.py index c2fea522d..e8c8fb716 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_locations.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_locations.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import locations as shared_locations -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -19,32 +17,15 @@ class ListLocationsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListLocations409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListLocationsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_locations_409_application_json_object: Optional[ListLocations409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" locations: Optional[shared_locations.Locations] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_orders.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_orders.py index 9b758a108..b9cc15676 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_orders.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_orders.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import orders as shared_orders -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,32 +25,15 @@ class ListOrdersRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListOrders409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListOrdersResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_orders_409_application_json_object: Optional[ListOrders409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" orders: Optional[shared_orders.Orders] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_payment_methods.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_payment_methods.py index 1a03765b4..128c802cb 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_payment_methods.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_payment_methods.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import paymentmethods as shared_paymentmethods -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,32 +25,15 @@ class ListPaymentMethodsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListPaymentMethods409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListPaymentMethodsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_payment_methods_409_application_json_object: Optional[ListPaymentMethods409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" payment_methods: Optional[shared_paymentmethods.PaymentMethods] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_payments.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_payments.py index d0c829bcc..1c7e431db 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_payments.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_payments.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import payments as shared_payments -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,32 +25,15 @@ class ListPaymentsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListPayments409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListPaymentsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_payments_409_application_json_object: Optional[ListPayments409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" payments: Optional[shared_payments.Payments] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_product_categories.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_product_categories.py index 89721a7da..89a7ed267 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_product_categories.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_product_categories.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import productcategories as shared_productcategories -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,32 +25,15 @@ class ListProductCategoriesRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListProductCategories409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListProductCategoriesResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_product_categories_409_application_json_object: Optional[ListProductCategories409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" product_categories: Optional[shared_productcategories.ProductCategories] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_products.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_products.py index 91fe87767..7b7779b20 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_products.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_products.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import errormessage as shared_errormessage from ..shared import products as shared_products -from ..shared import schema as shared_schema -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,32 +25,15 @@ class ListProductsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListProducts409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListProductsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_products_409_application_json_object: Optional[ListProducts409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your `query` parameter was not correctly formed""" products: Optional[shared_products.Products] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) - r"""Your `query` parameter was not correctly formed""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_tax_components.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_tax_components.py index ad572b6e1..098121f8f 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_tax_components.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_tax_components.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import schema as shared_schema +from ..shared import errormessage as shared_errormessage from ..shared import taxcomponents as shared_taxcomponents -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,31 +25,14 @@ class ListTaxComponentsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListTaxComponents409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListTaxComponentsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_tax_components_409_application_json_object: Optional[ListTaxComponents409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your `query` parameter was not correctly formed""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) tax_components: Optional[shared_taxcomponents.TaxComponents] = dataclasses.field(default=None) r"""OK""" diff --git a/previous-versions/commerce/src/codatcommerce/models/operations/list_transactions.py b/previous-versions/commerce/src/codatcommerce/models/operations/list_transactions.py index a13305780..6b5693274 100755 --- a/previous-versions/commerce/src/codatcommerce/models/operations/list_transactions.py +++ b/previous-versions/commerce/src/codatcommerce/models/operations/list_transactions.py @@ -3,10 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import schema as shared_schema +from ..shared import errormessage as shared_errormessage from ..shared import transactions as shared_transactions -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -27,31 +25,14 @@ class ListTransactionsRequest: -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class ListTransactions409ApplicationJSON: - r"""The data type's dataset has not been requested or is still syncing.""" - can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) - correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) - detailed_error_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detailedErrorCode'), 'exclude': lambda f: f is None }}) - error: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('error'), 'exclude': lambda f: f is None }}) - service: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }}) - status_code: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('statusCode'), 'exclude': lambda f: f is None }}) - - - - @dataclasses.dataclass class ListTransactionsResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - list_transactions_409_application_json_object: Optional[ListTransactions409ApplicationJSON] = dataclasses.field(default=None) - r"""The data type's dataset has not been requested or is still syncing.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - schema: Optional[shared_schema.Schema] = dataclasses.field(default=None) + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) r"""Your `query` parameter was not correctly formed""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) transactions: Optional[shared_transactions.Transactions] = dataclasses.field(default=None) r"""OK""" diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/__init__.py b/previous-versions/commerce/src/codatcommerce/models/shared/__init__.py index d3c734b1f..57afd5b5d 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/__init__.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/__init__.py @@ -2,15 +2,16 @@ from .accountbalance import * from .address import * -from .addresstype import * +from .commerceaddresstype import * +from .commercecustomerref import * from .companyinfo import * from .customer import * -from .customerref import * from .customers import * from .dispute import * from .disputes import * from .disputestatus import * -from .href import * +from .errormessage import * +from .halref import * from .links import * from .location import * from .locationref import * @@ -21,7 +22,6 @@ from .orders import * from .payment import * from .paymentmethod import * -from .paymentmethodref import * from .paymentmethods import * from .paymentmethodstatus import * from .paymentref import * @@ -42,7 +42,6 @@ from .productvariantref import * from .productvariantstatus import * from .recordref import * -from .schema import * from .security import * from .servicecharge import * from .servicechargetype import * @@ -56,4 +55,4 @@ from .transactionsourcetype import * from .transactiontype import * -__all__ = ["AccountBalance","Address","AddressType","CompanyInfo","CompanyInfoWeblink","CompanyInfoWeblinkType","Customer","CustomerRef","Customers","Dispute","DisputeStatus","Disputes","HRef","Links","Location","LocationRef","Locations","Order","OrderDiscountAllocation","OrderLineItem","OrderSupplementalData","Orders","Payment","PaymentMethod","PaymentMethodRef","PaymentMethodStatus","PaymentMethods","PaymentRef","PaymentStatus","PaymentType","Payments","PhoneNumber","PhoneNumberType","Product","ProductCategories","ProductCategory","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","Products","RecordRef","Schema","Security","ServiceCharge","ServiceChargeType","TaxComponent","TaxComponentAllocation","TaxComponentRef","TaxComponents","Transaction","TransactionSourceRef","TransactionSourceType","TransactionType","Transactions"] +__all__ = ["AccountBalance","Address","CommerceAddressType","CommerceCustomerRef","CompanyInfo","CompanyInfoWeblink","CompanyInfoWeblinkType","Customer","Customers","Dispute","DisputeStatus","Disputes","ErrorMessage","HalRef","Links","Location","LocationRef","Locations","Order","OrderDiscountAllocation","OrderLineItem","OrderSupplementalData","Orders","Payment","PaymentMethod","PaymentMethodStatus","PaymentMethods","PaymentRef","PaymentStatus","PaymentType","Payments","PhoneNumber","PhoneNumberType","Product","ProductCategories","ProductCategory","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","Products","RecordRef","Security","ServiceCharge","ServiceChargeType","TaxComponent","TaxComponentAllocation","TaxComponentRef","TaxComponents","Transaction","TransactionSourceRef","TransactionSourceType","TransactionType","Transactions"] diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/address.py b/previous-versions/commerce/src/codatcommerce/models/shared/address.py index dd13bce40..60aa91947 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/address.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/address.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import addresstype as shared_addresstype +from ..shared import commerceaddresstype as shared_commerceaddresstype from codatcommerce import utils from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -24,7 +24,7 @@ class Address: r"""The postal (or zip) code for the address""" region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is None }}) r"""The fourth line of the address, or region""" - type: Optional[shared_addresstype.AddressType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + type: Optional[shared_commerceaddresstype.CommerceAddressType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) r"""The type of the address""" diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/addresstype.py b/previous-versions/commerce/src/codatcommerce/models/shared/commerceaddresstype.py similarity index 88% rename from previous-versions/commerce/src/codatcommerce/models/shared/addresstype.py rename to previous-versions/commerce/src/codatcommerce/models/shared/commerceaddresstype.py index 9177a1bd4..d8b09761c 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/addresstype.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/commerceaddresstype.py @@ -3,7 +3,7 @@ from __future__ import annotations from enum import Enum -class AddressType(str, Enum): +class CommerceAddressType(str, Enum): r"""The type of the address""" BILLING = 'Billing' DELIVERY = 'Delivery' diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/customerref.py b/previous-versions/commerce/src/codatcommerce/models/shared/commercecustomerref.py similarity index 96% rename from previous-versions/commerce/src/codatcommerce/models/shared/customerref.py rename to previous-versions/commerce/src/codatcommerce/models/shared/commercecustomerref.py index ac410627a..eddcf6e5b 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/customerref.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/commercecustomerref.py @@ -10,7 +10,7 @@ @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass -class CustomerRef: +class CommerceCustomerRef: r"""Reference to the customer that placed the order.""" id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) r"""The unique identitifer of the customer being referenced""" diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/companyinfo.py b/previous-versions/commerce/src/codatcommerce/models/shared/companyinfo.py index 57427e3f2..f3a3e787f 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/companyinfo.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/companyinfo.py @@ -36,7 +36,7 @@ class CompanyInfoWeblink: class CompanyInfo: r"""In the Codat system, company information includes standard commercial details about a linked company, such as their address, phone number, and company registration. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=companyInfo) for this data type. """ account_balances: Optional[list[shared_accountbalance.AccountBalance]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accountBalances'), 'exclude': lambda f: f is None }}) @@ -45,11 +45,11 @@ class CompanyInfo: r"""Addresses associated with the company""" base_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('baseCurrency'), 'exclude': lambda f: f is None }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ commerce_platform_ref: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('commercePlatformRef'), 'exclude': lambda f: f is None }}) @@ -60,20 +60,20 @@ class CompanyInfo: r"""The name of the company""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/customer.py b/previous-versions/commerce/src/codatcommerce/models/shared/customer.py index cc3c19f2b..cfd3eed08 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/customer.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/customer.py @@ -13,7 +13,7 @@ @dataclasses.dataclass class Customer: r"""When a customer places an order with the connected commerce store their details are added to the Customers dataset. You can use the data from the Customers endpoints to calculate key metrics, such as customer churn. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-customers) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) @@ -22,20 +22,20 @@ class Customer: r"""Addresses of the customer""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/dispute.py b/previous-versions/commerce/src/codatcommerce/models/shared/dispute.py index bb8ea9f81..b8d29aab9 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/dispute.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/dispute.py @@ -17,38 +17,38 @@ class Dispute: - They didn't receive an order. - The product they received was different to the commerce store's description. - They've been the victim of online fraud. - + You can use data from the Disputes endpoints to calculate key metrics, such as the number of chargebacks. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-disputes) for this data type. """ currency: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency') }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) r"""A unique, persistent identifier for this record""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -58,20 +58,20 @@ class Dispute: r"""Link to the source event(s) which triggered this transaction.""" due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/schema.py b/previous-versions/commerce/src/codatcommerce/models/shared/errormessage.py similarity index 98% rename from previous-versions/commerce/src/codatcommerce/models/shared/schema.py rename to previous-versions/commerce/src/codatcommerce/models/shared/errormessage.py index cd62dcaa0..7a3c41275 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/schema.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/errormessage.py @@ -10,7 +10,7 @@ @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass -class Schema: +class ErrorMessage: r"""Your `query` parameter was not correctly formed""" can_be_retried: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('canBeRetried'), 'exclude': lambda f: f is None }}) correlation_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('correlationId'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/href.py b/previous-versions/commerce/src/codatcommerce/models/shared/halref.py similarity index 97% rename from previous-versions/commerce/src/codatcommerce/models/shared/href.py rename to previous-versions/commerce/src/codatcommerce/models/shared/halref.py index 88751673c..7bef5b55b 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/href.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/halref.py @@ -10,7 +10,7 @@ @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass -class HRef: +class HalRef: href: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('href'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/links.py b/previous-versions/commerce/src/codatcommerce/models/shared/links.py index ff23232eb..89a592bcf 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/links.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/links.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import href as shared_href +from ..shared import halref as shared_halref from codatcommerce import utils from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -12,9 +12,9 @@ @dataclasses.dataclass class Links: - current: shared_href.HRef = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('current') }}) - self_: shared_href.HRef = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('self') }}) - next: Optional[shared_href.HRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('next'), 'exclude': lambda f: f is None }}) - previous: Optional[shared_href.HRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('previous'), 'exclude': lambda f: f is None }}) + current: shared_halref.HalRef = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('current') }}) + self_: shared_halref.HalRef = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('self') }}) + next: Optional[shared_halref.HalRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('next'), 'exclude': lambda f: f is None }}) + previous: Optional[shared_halref.HalRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('previous'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/location.py b/previous-versions/commerce/src/codatcommerce/models/shared/location.py index 1e9461767..e166f63f6 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/location.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/location.py @@ -13,9 +13,9 @@ @dataclasses.dataclass class Location: r"""The Location datatype holds information on the geographic location at which stocks of products may be held, as referenced in the Products data type. - + A Location also holds information on geographic locations where orders were placed, as referenced in the Orders data type. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-locations) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/order.py b/previous-versions/commerce/src/codatcommerce/models/shared/order.py index fade0cba5..67745c351 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/order.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/order.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import customerref as shared_customerref +from ..shared import commercecustomerref as shared_commercecustomerref from ..shared import locationref as shared_locationref from ..shared import orderlineitem as shared_orderlineitem from ..shared import paymentref as shared_paymentref @@ -17,7 +17,7 @@ @dataclasses.dataclass class OrderSupplementalData: r"""Supplemental data is additional data you can include in our standard data types. - + It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/additional-data) about supplemental data. """ content: Optional[dict[str, dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('content'), 'exclude': lambda f: f is None }}) @@ -30,27 +30,27 @@ class OrderSupplementalData: @dataclasses.dataclass class Order: r"""Orders contain the transaction details for all products sold by the company, and include details of any payments, service charges, or refunds related to each order. You can use data from the Orders endpoints to calculate key metrics, such as gross sales values and monthly recurring revenue (MRR). - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-orders) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) r"""A unique, persistent identifier for this record""" closed_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closedDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -58,34 +58,34 @@ class Order: """ country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is None }}) r"""The Codat country property is returned as it was provided in the underlying platform by the company without any formatting on our part. - + Depending on the platform the value of this property will either be an ISO 3166 code (2-alpha or 3-alpha) or free-form text returned as a string name in our model. - + For POST operations against platforms that demand a specific format for the country code, we have documented accepted values in the [options](https://docs.codat.io/codat-api#/operations/get-companies-companyId-connections-connectionId-push) endpoint. """ created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. """ currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }}) - customer_ref: Optional[shared_customerref.CustomerRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerRef'), 'exclude': lambda f: f is None }}) + customer_ref: Optional[shared_commercecustomerref.CommerceCustomerRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('customerRef'), 'exclude': lambda f: f is None }}) r"""Reference to the customer that placed the order.""" location_ref: Optional[shared_locationref.LocationRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('locationRef'), 'exclude': lambda f: f is None }}) r"""Reference to the geographic location where the order was placed.""" @@ -98,7 +98,7 @@ class Order: source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }}) supplemental_data: Optional[OrderSupplementalData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplementalData'), 'exclude': lambda f: f is None }}) r"""Supplemental data is additional data you can include in our standard data types. - + It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/additional-data) about supplemental data. """ total_amount: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('totalAmount'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/payment.py b/previous-versions/commerce/src/codatcommerce/models/shared/payment.py index 11ec1e4a7..d075eb70f 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/payment.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/payment.py @@ -2,11 +2,10 @@ from __future__ import annotations import dataclasses -from ..shared import paymentmethodref as shared_paymentmethodref from ..shared import paymentstatus as shared_paymentstatus from codatcommerce import utils from dataclasses_json import Undefined, dataclass_json -from typing import Optional +from typing import Any, Optional @dataclass_json(undefined=Undefined.EXCLUDE) @@ -14,11 +13,11 @@ @dataclasses.dataclass class Payment: r"""Payments contain details of all payments made by customers to a company, including: amounts, currency used, payment method, payment provider, and payment status. - + Refunds are recorded as separate, negative payments. Note that a refund can only occur in relation to a payment that has been completed (i.e. has a status of `Paid`). When a customer cancels an order _before_ a payment has been completed, the payment shows as `Cancelled`. - + You can use data from the Payments endpoints to calculate key metrics, such as gross sales and monthly recurring revenue (MRR). - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-payments) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) @@ -27,20 +26,20 @@ class Payment: r"""Payment Amount (including gratuity)""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -48,41 +47,40 @@ class Payment: """ currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. """ modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }}) - payment_method_ref: Optional[shared_paymentmethodref.PaymentMethodRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('paymentMethodRef'), 'exclude': lambda f: f is None }}) - r"""The payment method the payment is linked to in the commerce platform.""" + payment_method_ref: Optional[Any] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('paymentMethodRef'), 'exclude': lambda f: f is None }}) payment_provider: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('paymentProvider'), 'exclude': lambda f: f is None }}) r"""Service provider of the payment, if applicable.""" source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }}) status: Optional[shared_paymentstatus.PaymentStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }}) - r"""Status of the payment""" + r"""Status of the payment.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethod.py b/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethod.py index bae6b82e0..a55526bf4 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethod.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethod.py @@ -13,7 +13,7 @@ @dataclasses.dataclass class PaymentMethod: r"""A Payment Method represents the payment method(s) used to make payments. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-paymentMethods) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethodref.py b/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethodref.py deleted file mode 100755 index 125c76f90..000000000 --- a/previous-versions/commerce/src/codatcommerce/models/shared/paymentmethodref.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" - -from __future__ import annotations -import dataclasses -from codatcommerce import utils -from dataclasses_json import Undefined, dataclass_json -from typing import Optional - - -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class PaymentMethodRef: - r"""The payment method the payment is linked to in the commerce platform.""" - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - r"""The unique identitifer of the location being referenced.""" - name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) - r"""Name of the location being referenced.""" - - diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/paymentref.py b/previous-versions/commerce/src/codatcommerce/models/shared/paymentref.py index a88bf7c1b..b58f9f00f 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/paymentref.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/paymentref.py @@ -19,20 +19,20 @@ class PaymentRef: r"""Payment Amount (including gratuity).""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -40,29 +40,29 @@ class PaymentRef: """ currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -73,8 +73,8 @@ class PaymentRef: r"""Service provider of the payment, if applicable.""" source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }}) status: Optional[shared_paymentstatus.PaymentStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is None }}) - r"""Status of the payment""" + r"""Status of the payment.""" type: Optional[shared_paymenttype.PaymentType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - r"""Status of the payment""" + r"""Type of payment.""" diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/paymentstatus.py b/previous-versions/commerce/src/codatcommerce/models/shared/paymentstatus.py index f1111a520..c2de6b871 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/paymentstatus.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/paymentstatus.py @@ -4,7 +4,7 @@ from enum import Enum class PaymentStatus(str, Enum): - r"""Status of the payment""" + r"""Status of the payment.""" PENDING = 'Pending' AUTHORIZED = 'Authorized' PAID = 'Paid' diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/paymenttype.py b/previous-versions/commerce/src/codatcommerce/models/shared/paymenttype.py index 8ca93826a..10bd5a590 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/paymenttype.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/paymenttype.py @@ -4,7 +4,7 @@ from enum import Enum class PaymentType(str, Enum): - r"""Status of the payment""" + r"""Type of payment.""" CASH = 'Cash' CARD = 'Card' INVOICE = 'Invoice' diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/product.py b/previous-versions/commerce/src/codatcommerce/models/shared/product.py index cae09a8ea..1f4b3211f 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/product.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/product.py @@ -13,7 +13,7 @@ @dataclasses.dataclass class Product: r"""A Product is an item in the company's inventory, and includes information about the price and quantity of all products, and variants thereof, available for sale. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-products) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/productcategory.py b/previous-versions/commerce/src/codatcommerce/models/shared/productcategory.py index 5c7f1a0fc..3e6c70b7b 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/productcategory.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/productcategory.py @@ -13,7 +13,7 @@ @dataclasses.dataclass class ProductCategory: r"""Product categories are used to classify a group of products together, either by type (e.g. \\"Furniture\\"), or sometimes by tax profile. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-productCategories) for this data type. """ ancestor_refs: Optional[list[shared_recordref.RecordRef]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ancestorRefs'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/productprice.py b/previous-versions/commerce/src/codatcommerce/models/shared/productprice.py index 720b6d0a2..cce74be2e 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/productprice.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/productprice.py @@ -13,11 +13,11 @@ class ProductPrice: currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ unit_price: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unitPrice'), 'exclude': lambda f: f is None }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/productvariant.py b/previous-versions/commerce/src/codatcommerce/models/shared/productvariant.py index 5fe294026..958e08021 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/productvariant.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/productvariant.py @@ -21,20 +21,20 @@ class ProductVariant: r"""Unique product number of the variant. This might be a barcode, UPC, ISBN, etc.""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/taxcomponent.py b/previous-versions/commerce/src/codatcommerce/models/shared/taxcomponent.py index 62ae859bd..b4308e2b6 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/taxcomponent.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/taxcomponent.py @@ -12,7 +12,7 @@ @dataclasses.dataclass class TaxComponent: r"""The Tax Components endpoints return tax rates data from the commerce platform, including tax rate names and values. This is to support the mapping of tax rates from the commerce platform to those in the accounting platform. - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-disputes) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/previous-versions/commerce/src/codatcommerce/models/shared/transaction.py b/previous-versions/commerce/src/codatcommerce/models/shared/transaction.py index 736c4d8d1..d4ae49679 100755 --- a/previous-versions/commerce/src/codatcommerce/models/shared/transaction.py +++ b/previous-versions/commerce/src/codatcommerce/models/shared/transaction.py @@ -14,34 +14,34 @@ @dataclasses.dataclass class Transaction: r"""Details of all financial transactions recorded in the commerce or point of sale system are added to the Transactions data type. For example, payments, service charges, and fees. - + You can use data from the Transactions endpoints to calculate key metrics, such as: - Transaction volumes - Average transaction volume - Average transaction value - Returns - Payouts - + Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-transactions) for this data type. """ id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) r"""A unique, persistent identifier for this record""" created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. @@ -49,30 +49,30 @@ class Transaction: """ currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }}) r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. - + ## Unknown currencies - + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - + There are only a very small number of edge cases where this currency code is returned by the Codat system. """ modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }}) source_created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceCreatedDate'), 'exclude': lambda f: f is None }}) r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - + ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` - - - + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` - + > Time zones > > Not all dates from Codat will contain information about time zones. diff --git a/previous-versions/commerce/src/codatcommerce/orders.py b/previous-versions/commerce/src/codatcommerce/orders.py index 13769afa3..dd82684b3 100755 --- a/previous-versions/commerce/src/codatcommerce/orders.py +++ b/previous-versions/commerce/src/codatcommerce/orders.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Orders: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetOrderRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetOrderResponse: r"""Get order The *Get order* endpoint returns a single order for a given orderId. - + [Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-orders) for integrations that support getting a specific order. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetOrderRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-orders/{orderId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Order]) res.order = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetOrder409ApplicationJSON]) - res.get_order_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,9 +67,9 @@ def do_request(): def list(self, request: operations.ListOrdersRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListOrdersResponse: r"""List orders The *List orders* endpoint returns a list of [orders](https://docs.codat.io/commerce-api#/schemas/Order) for a given company's connection. - + [Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -77,7 +77,7 @@ def list(self, request: operations.ListOrdersRequest, retries: Optional[utils.Re url = utils.generate_url(operations.ListOrdersRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-orders', request) headers = {} query_params = utils.get_query_params(operations.ListOrdersRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -102,14 +102,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Orders]) res.orders = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListOrders409ApplicationJSON]) - res.list_orders_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/payments.py b/previous-versions/commerce/src/codatcommerce/payments.py index 0eef7f1f5..9821a22c2 100755 --- a/previous-versions/commerce/src/codatcommerce/payments.py +++ b/previous-versions/commerce/src/codatcommerce/payments.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Payments: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetPaymentRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetPaymentResponse: r"""Get payment The *Get payment* endpoint returns a single payment for a given paymentId. - + [Payments](https://docs.codat.io/commerce-api#/schemas/Payment) contain details of all payments made by customers to the company. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-payments) for integrations that support getting a specific payment. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetPaymentRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-payments/{paymentId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Payment]) res.payment = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetPayment409ApplicationJSON]) - res.get_payment_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,18 +67,18 @@ def do_request(): def get_method(self, request: operations.GetPaymentMethodRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetPaymentMethodResponse: r"""Get payment method The *Get payment method* endpoint returns a single payment method for a given paymentMethodId. - + [Payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-paymentMethods) for integrations that support getting a specific payment method. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetPaymentMethodRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods/{paymentMethodId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -103,14 +103,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.PaymentMethod]) res.payment_method = out - elif http_res.status_code in [401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetPaymentMethod409ApplicationJSON]) - res.get_payment_method_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -118,9 +118,9 @@ def do_request(): def list(self, request: operations.ListPaymentsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListPaymentsResponse: r"""List payments The *List payments* endpoint returns a list of [payments](https://docs.codat.io/commerce-api#/schemas/Payment) for a given company's connection. - + [Payments](https://docs.codat.io/commerce-api#/schemas/Payment) contain details of all payments made by customers to the company. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -128,7 +128,7 @@ def list(self, request: operations.ListPaymentsRequest, retries: Optional[utils. url = utils.generate_url(operations.ListPaymentsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-payments', request) headers = {} query_params = utils.get_query_params(operations.ListPaymentsRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -153,14 +153,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Payments]) res.payments = out - elif http_res.status_code in [400, 401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListPayments409ApplicationJSON]) - res.list_payments_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -168,9 +168,9 @@ def do_request(): def list_methods(self, request: operations.ListPaymentMethodsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListPaymentMethodsResponse: r"""List payment methods The *List payment methods* endpoint returns a list of [payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) for a given company's connection. - + [Payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -178,7 +178,7 @@ def list_methods(self, request: operations.ListPaymentMethodsRequest, retries: O url = utils.generate_url(operations.ListPaymentMethodsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods', request) headers = {} query_params = utils.get_query_params(operations.ListPaymentMethodsRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -203,14 +203,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.PaymentMethods]) res.payment_methods = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListPaymentMethods409ApplicationJSON]) - res.list_payment_methods_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/products.py b/previous-versions/commerce/src/codatcommerce/products.py index 9b79b0d20..e8a2a9cf9 100755 --- a/previous-versions/commerce/src/codatcommerce/products.py +++ b/previous-versions/commerce/src/codatcommerce/products.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Products: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetProductRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetProductResponse: r"""Get product The *Get product* endpoint returns a single product for a given productId. - + [Products](https://docs.codat.io/commerce-api#/schemas/Product) are items in the company's inventory that are available for sale. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-products) for integrations that support getting a specific product. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetProductRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-products/{productId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Product]) res.product = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetProduct409ApplicationJSON]) - res.get_product_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,18 +67,18 @@ def do_request(): def get_category(self, request: operations.GetProductCategoryRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetProductCategoryResponse: r"""Get product category The *Get product* endpoint returns a single product for a given productId. - + [Product categories](https://docs.codat.io/commerce-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. \"Furniture\"), or sometimes by tax profile. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-productCategories) for integrations that support getting a specific product. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetProductCategoryRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories/{productId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -103,14 +103,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ProductCategory]) res.product_category = out - elif http_res.status_code in [401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetProductCategory409ApplicationJSON]) - res.get_product_category_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -118,9 +118,9 @@ def do_request(): def list(self, request: operations.ListProductsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListProductsResponse: r"""List products The *List products* endpoint returns a list of [products](https://docs.codat.io/commerce-api#/schemas/Product) for a given company's connection. - + [Products](https://docs.codat.io/commerce-api#/schemas/Product) are items in the company's inventory that are available for sale. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -128,7 +128,7 @@ def list(self, request: operations.ListProductsRequest, retries: Optional[utils. url = utils.generate_url(operations.ListProductsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-products', request) headers = {} query_params = utils.get_query_params(operations.ListProductsRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -153,14 +153,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Products]) res.products = out - elif http_res.status_code in [400, 401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListProducts409ApplicationJSON]) - res.list_products_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -168,9 +168,9 @@ def do_request(): def list_categories(self, request: operations.ListProductCategoriesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListProductCategoriesResponse: r"""List product categories The *List product categories* endpoint returns a list of [product categories](https://docs.codat.io/commerce-api#/schemas/ProductCategory) for a given company's connection. - + [Product categories](https://docs.codat.io/commerce-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. \"Furniture\"), or sometimes by tax profile. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -178,7 +178,7 @@ def list_categories(self, request: operations.ListProductCategoriesRequest, retr url = utils.generate_url(operations.ListProductCategoriesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories', request) headers = {} query_params = utils.get_query_params(operations.ListProductCategoriesRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -203,14 +203,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ProductCategories]) res.product_categories = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListProductCategories409ApplicationJSON]) - res.list_product_categories_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/sdk.py b/previous-versions/commerce/src/codatcommerce/sdk.py index a5b5d1096..9ad9377c5 100755 --- a/previous-versions/commerce/src/codatcommerce/sdk.py +++ b/previous-versions/commerce/src/codatcommerce/sdk.py @@ -17,11 +17,11 @@ class CodatCommerce: r"""Commerce API: Codat's standardized API for accessing commerce data Codat's Commerce API allows you to access standardised data from over 11 commerce and POS systems. - + Standardize how you connect to your customers’ payment, PoS, and eCommerce systems. Retrieve orders, payouts, payments, and product data in the same way for all the leading commerce platforms. - + [Read more...](https://docs.codat.io/commerce-api/overview) - + [See our OpenAPI spec](https://github.com/codatio/oas) """ company_info: CompanyInfo diff --git a/previous-versions/commerce/src/codatcommerce/sdkconfiguration.py b/previous-versions/commerce/src/codatcommerce/sdkconfiguration.py index 41e0807d0..b76f7c247 100755 --- a/previous-versions/commerce/src/codatcommerce/sdkconfiguration.py +++ b/previous-versions/commerce/src/codatcommerce/sdkconfiguration.py @@ -17,9 +17,9 @@ class SDKConfiguration: server_url: str = '' server_idx: int = 0 language: str = 'python' - openapi_doc_version: str = '2.1.0' - sdk_version: str = '0.33.1' - gen_version: str = '2.58.0' + openapi_doc_version: str = '3.0.0' + sdk_version: str = '0.1.0' + gen_version: str = '2.91.4' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/previous-versions/commerce/src/codatcommerce/tax_components.py b/previous-versions/commerce/src/codatcommerce/tax_components.py index 61175c741..6a7b72fb5 100755 --- a/previous-versions/commerce/src/codatcommerce/tax_components.py +++ b/previous-versions/commerce/src/codatcommerce/tax_components.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class TaxComponents: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetTaxComponentRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetTaxComponentResponse: r"""Get tax component The *Get tax* endpoint returns a single tax for a given taxId. - + [Tax components](https://docs.codat.io/commerce-api#/schemas/TaxComponent) are tax rates from the commerce platform, including tax rate's name and value. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-taxComponents) for integrations that support getting a specific tax. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetTaxComponentRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-taxComponents/{taxId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.TaxComponent]) res.tax_component = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetTaxComponent409ApplicationJSON]) - res.get_tax_component_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,9 +67,9 @@ def do_request(): def list(self, request: operations.ListTaxComponentsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListTaxComponentsResponse: r"""List tax components The *List tax components* endpoint returns a list of [tax components](https://docs.codat.io/commerce-api#/schemas/TaxComponent) for a given company's connection. - + [Tax components](https://docs.codat.io/commerce-api#/schemas/TaxComponent) are tax rates from the commerce platform, including tax rate's name and value. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -77,7 +77,7 @@ def list(self, request: operations.ListTaxComponentsRequest, retries: Optional[u url = utils.generate_url(operations.ListTaxComponentsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-taxComponents', request) headers = {} query_params = utils.get_query_params(operations.ListTaxComponentsRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -102,14 +102,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.TaxComponents]) res.tax_components = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListTaxComponents409ApplicationJSON]) - res.list_tax_components_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/transactions.py b/previous-versions/commerce/src/codatcommerce/transactions.py index 99319c2b1..3ab13f721 100755 --- a/previous-versions/commerce/src/codatcommerce/transactions.py +++ b/previous-versions/commerce/src/codatcommerce/transactions.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from codatcommerce import utils -from codatcommerce.models import operations, shared +from codatcommerce.models import errors, operations, shared from typing import Optional class Transactions: @@ -16,18 +16,18 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def get(self, request: operations.GetTransactionRequest, retries: Optional[utils.RetryConfig] = None) -> operations.GetTransactionResponse: r"""Get transaction The *Get transaction* endpoint returns a single transaction for a given transactionId. - + [Transactions](https://docs.codat.io/commerce-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system. - + Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-transactions) for integrations that support getting a specific transaction. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetTransactionRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions/{transactionId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -52,14 +52,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Transaction]) res.transaction = out - elif http_res.status_code in [401, 404, 429]: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.GetTransaction409ApplicationJSON]) - res.get_transaction_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -67,9 +67,9 @@ def do_request(): def list(self, request: operations.ListTransactionsRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListTransactionsResponse: r"""List transactions The *List transactions* endpoint returns a list of [transactions](https://docs.codat.io/commerce-api#/schemas/Transaction) for a given company's connection. - + [Transactions](https://docs.codat.io/commerce-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system. - + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -77,7 +77,7 @@ def list(self, request: operations.ListTransactionsRequest, retries: Optional[ut url = utils.generate_url(operations.ListTransactionsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions', request) headers = {} query_params = utils.get_query_params(operations.ListTransactionsRequest, request) - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -102,14 +102,14 @@ def do_request(): if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.Transactions]) res.transactions = out - elif http_res.status_code in [400, 401, 404, 429]: - if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[shared.Schema]) - res.schema = out - elif http_res.status_code == 409: + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [400, 401, 404, 409, 429]: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[operations.ListTransactions409ApplicationJSON]) - res.list_transactions_409_application_json_object = out + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/previous-versions/commerce/src/codatcommerce/utils/utils.py b/previous-versions/commerce/src/codatcommerce/utils/utils.py index 6b39ecf74..ea9792d0d 100755 --- a/previous-versions/commerce/src/codatcommerce/utils/utils.py +++ b/previous-versions/commerce/src/codatcommerce/utils/utils.py @@ -675,10 +675,13 @@ def _serialize_header(explode: bool, obj: any) -> str: def unmarshal_json(data, typ): - unmarhsal = make_dataclass('Unmarhsal', [('res', typ)], + unmarshal = make_dataclass('Unmarshal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) - out = unmarhsal.from_dict({"res": json_dict}) + try: + out = unmarshal.from_dict({"res": json_dict}) + except AttributeError as attr_err: + raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err return out.res