Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xvantage-integration committed Feb 20, 2024
1 parent db5a30c commit 7cc0af9
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 23 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@ Python 3.7+

## Installation & Usage
### pip install
If you want to install from PyPI:
```sh
pip install xi.sdk.resellers
```

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

```sh
pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.git
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.git`)
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)

Then import the package:
```python
Expand Down Expand Up @@ -326,10 +322,7 @@ Authentication schemes defined for the API:


## Author
-[Ingram Micro Xvantage](https://github.com/ingrammicro-xvantage)

## Contact

For any inquiries or support, please feel free to contact us at:

- Email: [xi_support@ingrammicro.com](xi_support@ingrammicro.com)

5 changes: 4 additions & 1 deletion docs/InvoiceSearchResponseInvoicesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ Name | Type | Description | Notes
**invoice_due_date** | **str** | Invoice Due Date. | [optional]
**invoiced_amount_due** | **float** | Invoice Amount. | [optional]
**customer_order_number** | **str** | Customer Order No. | [optional]
**order_create_date** | **str** | Order Create Date. | [optional]
**end_customer_order_number** | **str** | End Customer Order number. | [optional]
**order_create_date** | **str** | Order Create Date. | [optional]
**invoice_amount_incl_tax** | **float** | Invoice Amount Inclusive of Taxes | [optional]
**forgntotalamount** | **float** | | [optional]
**gst_invoice_number** | **str** | | [optional]
**isfeccenabled** | **bool** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/RenewalsDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**renewal_id** | **str** | Unique Ingram renewal ID. | [optional]
**renewal_id** | **int** | Unique Ingram renewal ID. | [optional]
**ingram_order_number** | **str** | The IngramMicro sales order number. | [optional]
**ingram_order_date** | **date** | The IngramMicro sales order date. | [optional]
**expiration_date** | **date** | Renewal expiration date. | [optional]
Expand Down
7 changes: 5 additions & 2 deletions test/test_invoice_search_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ def make_instance(self, include_optional) -> InvoiceSearchResponse:
invoice_due_date = '',
invoiced_amount_due = 1.337,
customer_order_number = '',
order_create_date = '',
end_customer_order_number = '',
invoice_amount_incl_tax = 1.337, )
order_create_date = '',
invoice_amount_incl_tax = 1.337,
forgntotalamount = 1.337,
gst_invoice_number = '',
isfeccenabled = True, )
],
next_page = ''
)
Expand Down
7 changes: 5 additions & 2 deletions test/test_invoice_search_response_invoices_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ def make_instance(self, include_optional) -> InvoiceSearchResponseInvoicesInner:
invoice_due_date = '',
invoiced_amount_due = 1.337,
customer_order_number = '',
order_create_date = '',
end_customer_order_number = '',
invoice_amount_incl_tax = 1.337
order_create_date = '',
invoice_amount_incl_tax = 1.337,
forgntotalamount = 1.337,
gst_invoice_number = '',
isfeccenabled = True
)
else:
return InvoiceSearchResponseInvoicesInner(
Expand Down
2 changes: 1 addition & 1 deletion test/test_renewals_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> RenewalsDetailsResponse:
model = RenewalsDetailsResponse()
if include_optional:
return RenewalsDetailsResponse(
renewal_id = '',
renewal_id = 56,
ingram_order_number = '',
ingram_order_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
Expand Down
16 changes: 11 additions & 5 deletions xi/sdk/resellers/models/invoice_search_response_invoices_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import re # noqa: F401
import json

from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
from typing import Optional, Set
from typing_extensions import Self
Expand All @@ -34,10 +34,13 @@ class InvoiceSearchResponseInvoicesInner(BaseModel):
invoice_due_date: Optional[StrictStr] = Field(default=None, description="Invoice Due Date.", alias="invoiceDueDate")
invoiced_amount_due: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Invoice Amount.", alias="invoicedAmountDue")
customer_order_number: Optional[StrictStr] = Field(default=None, description="Customer Order No.", alias="customerOrderNumber")
order_create_date: Optional[StrictStr] = Field(default=None, description="Order Create Date.", alias="orderCreateDate")
end_customer_order_number: Optional[StrictStr] = Field(default=None, description="End Customer Order number.", alias="endCustomerOrderNumber")
order_create_date: Optional[StrictStr] = Field(default=None, description="Order Create Date.", alias="orderCreateDate")
invoice_amount_incl_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Invoice Amount Inclusive of Taxes", alias="invoiceAmountInclTax")
__properties: ClassVar[List[str]] = ["paymentTermsDueDate", "erpOrderNumber", "invoiceNumber", "invoiceStatus", "invoiceDate", "invoiceDueDate", "invoicedAmountDue", "customerOrderNumber", "orderCreateDate", "endCustomerOrderNumber", "invoiceAmountInclTax"]
forgntotalamount: Optional[Union[StrictFloat, StrictInt]] = None
gst_invoice_number: Optional[StrictStr] = Field(default=None, alias="gstInvoiceNumber")
isfeccenabled: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["paymentTermsDueDate", "erpOrderNumber", "invoiceNumber", "invoiceStatus", "invoiceDate", "invoiceDueDate", "invoicedAmountDue", "customerOrderNumber", "endCustomerOrderNumber", "orderCreateDate", "invoiceAmountInclTax", "forgntotalamount", "gstInvoiceNumber", "isfeccenabled"]

model_config = {
"populate_by_name": True,
Expand Down Expand Up @@ -98,9 +101,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"invoiceDueDate": obj.get("invoiceDueDate"),
"invoicedAmountDue": obj.get("invoicedAmountDue"),
"customerOrderNumber": obj.get("customerOrderNumber"),
"orderCreateDate": obj.get("orderCreateDate"),
"endCustomerOrderNumber": obj.get("endCustomerOrderNumber"),
"invoiceAmountInclTax": obj.get("invoiceAmountInclTax")
"orderCreateDate": obj.get("orderCreateDate"),
"invoiceAmountInclTax": obj.get("invoiceAmountInclTax"),
"forgntotalamount": obj.get("forgntotalamount"),
"gstInvoiceNumber": obj.get("gstInvoiceNumber"),
"isfeccenabled": obj.get("isfeccenabled")
})
return _obj

Expand Down
2 changes: 1 addition & 1 deletion xi/sdk/resellers/models/renewals_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RenewalsDetailsResponse(BaseModel):
"""
RenewalsDetailsResponse
""" # noqa: E501
renewal_id: Optional[StrictStr] = Field(default=None, description="Unique Ingram renewal ID.", alias="renewalId")
renewal_id: Optional[StrictInt] = Field(default=None, description="Unique Ingram renewal ID.", alias="renewalId")
ingram_order_number: Optional[StrictStr] = Field(default=None, description="The IngramMicro sales order number.", alias="ingramOrderNumber")
ingram_order_date: Optional[date] = Field(default=None, description="The IngramMicro sales order date.", alias="ingramOrderDate")
expiration_date: Optional[date] = Field(default=None, description="Renewal expiration date.", alias="expirationDate")
Expand Down

0 comments on commit 7cc0af9

Please sign in to comment.