Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
generate and release node client for 2021.11 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Dec 14, 2021
1 parent 592f40f commit 7d45d15
Show file tree
Hide file tree
Showing 84 changed files with 787 additions and 289 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

Purplship is a Multi-carrier Shipping API that simplifies the integration of logistic carrier services.

Visit [purplship.com](https://purplship.com) to deploy your private cloud multi-carrier shipping API instance.
Visit [purplship.com](https://next.purplship.com) to deploy your private cloud multi-carrier shipping API instance.

## Documentation

See the full [Python API docs](https://next.purplship.com/docs/reference).

## Requirements

Python 3.4+
Python >= 3.6

## Installation & Usage

Expand Down Expand Up @@ -65,6 +65,7 @@ except ApiException as e:
- [Duty](docs/Duty.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [Message](docs/Message.md)
- [Metadata](docs/Metadata.md)
- [Operation](docs/Operation.md)
- [OperationConfirmation](docs/OperationConfirmation.md)
- [OperationResponse](docs/OperationResponse.md)
Expand Down Expand Up @@ -107,4 +108,4 @@ except ApiException as e:

## Author

PurplShip Team | [email protected] | [purplship.com](https://purplship.com)
Purplship Team | [email protected] | [purplship.com](https://purplship.com)
9 changes: 3 additions & 6 deletions docs/Customs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commodities** | [**[Commodity]**](Commodity.md) | The parcel content items |
**id** | **str** | A unique identifier | [optional]
**aes** | **str, none_type** | | [optional]
**eel_pfc** | **str, none_type** | | [optional]
**duty** | [**Duty**](Duty.md) | | [optional]
**content_type** | **str, none_type** | | [optional]
**content_description** | **str, none_type** | | [optional]
**incoterm** | **str, none_type** | The customs 'term of trade' also known as 'incoterm' | [optional]
**commodities** | [**[Commodity], none_type**](Commodity.md) | The parcel content items | [optional]
**duty** | [**Duty**](Duty.md) | | [optional]
**invoice** | **str, none_type** | The invoice reference number | [optional]
**invoice_date** | **str, none_type** | The invoice date | [optional]
**commercial_invoice** | **bool, none_type** | Indicates if the shipment is commercial | [optional]
**certify** | **bool, none_type** | Indicate that signer certified confirmed all | [optional]
**signer** | **str, none_type** | | [optional]
**certificate_number** | **str, none_type** | | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>Customs identification options.</summary> ``` { \"aes\": \"5218487281\", \"eel_pfc\": \"5218487281\", \"license_number\": \"5218487281\", \"certificate_number\": \"5218487281\", \"nip_number\": \"5218487281\", \"eori_number\": \"5218487281\", \"vat_registration_number\": \"5218487281\", } ``` Please check the docs for carrier specific options. </details> | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
9 changes: 3 additions & 6 deletions docs/CustomsData.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**aes** | **str, none_type** | | [optional]
**eel_pfc** | **str, none_type** | | [optional]
**commodities** | [**[Commodity]**](Commodity.md) | The parcel content items |
**duty** | [**Duty**](Duty.md) | | [optional]
**content_type** | **str, none_type** | | [optional]
**content_description** | **str, none_type** | | [optional]
**incoterm** | **str, none_type** | The customs 'term of trade' also known as 'incoterm' | [optional]
**commodities** | [**[Commodity], none_type**](Commodity.md) | The parcel content items | [optional]
**duty** | [**Duty**](Duty.md) | | [optional]
**invoice** | **str, none_type** | The invoice reference number | [optional]
**invoice_date** | **str, none_type** | The invoice date | [optional]
**commercial_invoice** | **bool, none_type** | Indicates if the shipment is commercial | [optional]
**certify** | **bool, none_type** | Indicate that signer certified confirmed all | [optional]
**signer** | **str, none_type** | | [optional]
**certificate_number** | **str, none_type** | | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>Customs identification options.</summary> ``` { \"aes\": \"5218487281\", \"eel_pfc\": \"5218487281\", \"license_number\": \"5218487281\", \"certificate_number\": \"5218487281\", \"nip_number\": \"5218487281\", \"eori_number\": \"5218487281\", \"vat_registration_number\": \"5218487281\", } ``` Please check the docs for carrier specific options. </details> | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
18 changes: 18 additions & 0 deletions docs/Metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Metadata


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**app_name** | **str** | |
**app_version** | **str** | |
**app_website** | **str** | |
**multi_organizations** | **bool** | |
**admin** | **str** | |
**openapi** | **str** | |
**graphql** | **str** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/RateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**recipient** | [**AddressData**](AddressData.md) | |
**parcels** | [**[ParcelData]**](ParcelData.md) | The shipment's parcels |
**services** | **[str], none_type** | The requested carrier service for the shipment.<br/> Please consult [the reference](#operation/references) for specific carriers services. Note that this is a list because on a Multi-carrier rate request you could specify a service per carrier. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | The options available for the shipment. Please consult [the reference](#operation/references) for additional specific carriers options. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>The options available for the shipment.</summary> ``` { \"currency\": \"USD\", \"insurance\": 100.00, \"cash_on_delivery\": 30.00, \"shipment_date\": \"2020-01-01\", \"dangerous_good\": true, \"declared_value\": 150.00, \"email_notification\": true, \"email_notification_to\": [email protected], \"signature_confirmation\": true, } ``` Please check the docs for carrier specific options. </details> | [optional]
**reference** | **str, none_type** | The shipment reference | [optional]
**carrier_ids** | **[str], none_type** | The list of configured carriers you wish to get rates from. | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
4 changes: 4 additions & 0 deletions docs/References.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Name | Type | Description | Notes
**app_version** | **str** | |
**app_website** | **str** | |
**multi_organizations** | **bool** | |
**admin** | **str** | |
**openapi** | **str** | |
**graphql** | **str** | |
**address_auto_complete** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**countries** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**currencies** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
Expand All @@ -23,6 +26,7 @@ Name | Type | Description | Notes
**packaging_types** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**payment_types** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**carrier_capabilities** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**service_levels** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Shipment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Name | Type | Description | Notes
**tracking_url** | **str, none_type** | The shipment tracking url | [optional]
**service** | **str, none_type** | The selected service | [optional]
**services** | **[str], none_type** | The carriers services requested for the shipment. Please consult [the reference](#operation/references) for specific carriers services.<br/> Note that this is a list because on a Multi-carrier rate request you could specify a service per carrier. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | The options available for the shipment.<br/> Please consult [the reference](#operation/references) for additional specific carriers options. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>The options available for the shipment.</summary> ``` { \"currency\": \"USD\", \"insurance\": 100.00, \"cash_on_delivery\": 30.00, \"shipment_date\": \"2020-01-01\", \"dangerous_good\": true, \"declared_value\": 150.00, \"email_notification\": true, \"email_notification_to\": [email protected], \"signature_confirmation\": true, } ``` Please check the docs for carrier specific options. </details> | [optional]
**payment** | [**Payment**](Payment.md) | | [optional]
**customs** | [**Customs**](Customs.md) | | [optional]
**reference** | **str, none_type** | The shipment reference | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ShipmentData.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**shipper** | [**AddressData**](AddressData.md) | |
**recipient** | [**AddressData**](AddressData.md) | |
**parcels** | [**[ParcelData]**](ParcelData.md) | The shipment's parcels |
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | The options available for the shipment.<br/> Please consult [the reference](#operation/references) for additional specific carriers options. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>The options available for the shipment.</summary> ``` { \"currency\": \"USD\", \"insurance\": 100.00, \"cash_on_delivery\": 30.00, \"shipment_date\": \"2020-01-01\", \"dangerous_good\": true, \"declared_value\": 150.00, \"email_notification\": true, \"email_notification_to\": [email protected], \"signature_confirmation\": true, } ``` Please check the docs for carrier specific options. </details> | [optional]
**payment** | [**Payment**](Payment.md) | | [optional]
**customs** | [**CustomsData**](CustomsData.md) | | [optional]
**reference** | **str, none_type** | The shipment reference | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ShippingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**payment** | [**Payment**](Payment.md) | |
**selected_rate_id** | **str** | The shipment selected rate. |
**rates** | [**[Rate]**](Rate.md) | The list for shipment rates fetched previously |
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | The options available for the shipment.<br/> Please consult [the reference](#operation/references) for additional specific carriers options. | [optional]
**options** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | <details> <summary>The options available for the shipment.</summary> ``` { \"currency\": \"USD\", \"insurance\": 100.00, \"cash_on_delivery\": 30.00, \"shipment_date\": \"2020-01-01\", \"dangerous_good\": true, \"declared_value\": 150.00, \"email_notification\": true, \"email_notification_to\": [email protected], \"signature_confirmation\": true, } ``` Please check the docs for carrier specific options. </details> | [optional]
**customs** | [**CustomsData**](CustomsData.md) | | [optional]
**reference** | **str, none_type** | The shipment reference | [optional]
**label_type** | **str** | The shipment label file type. | [optional] if omitted the server will use the default value of "PDF"
Expand Down
2 changes: 2 additions & 0 deletions docs/TrackingStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Name | Type | Description | Notes
**events** | [**[TrackingEvent], none_type**](TrackingEvent.md) | The tracking details events | [optional]
**delivered** | **bool** | Specified whether the related shipment was delivered | [optional]
**status** | **str** | The current tracking status | [optional] if omitted the server will use the default value of "pending"
**estimated_delivery** | **str** | The delivery estimated date | [optional]
**messages** | [**[Message]**](Message.md) | The list of note or warning messages | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion purplship/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Purplship API
The version of the OpenAPI document: 2021.10
The version of the OpenAPI document: 2021.11
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
4 changes: 2 additions & 2 deletions purplship/api/addresses_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
Purplship API
## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.10`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. # noqa: E501
## API Reference Purplship is an open source multi-carrier shipping API that simplifies the integration of logistic carrier services. The Purplship API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The Purplship API differs for every account as we release new versions. These docs are customized to your version of the API. ## Versioning When backwards-incompatible changes are made to the API, a new, dated version is released. The current version is `2021.11`. Read our API changelog and to learn more about backwards compatibility. As a precaution, use API versioning to check a new API version before committing to an upgrade. ## Pagination All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can list addresses, list shipments, and list trackers. These list API methods share a common structure, taking at least these two parameters: limit, and offset. Purplship utilizes offset-based pagination via the offset and limit parameters. Both parameters take a number as value (see below) and return objects in reverse chronological order. The offset parameter returns objects listed after an index. The limit parameter take a limit on the number of objects to be returned from 1 to 100. ```json { \"next\": \"/v1/shipments?limit=25&offset=25\", \"previous\": \"/v1/shipments?limit=25&offset=25\", \"results\": [ ] } ``` ## Environments The Purplship API offer the possibility to create and retrieve certain objects in `test_mode`. In development, it is therefore possible to add carrier connections, get live rates, buy labels, create trackers and schedule pickups in `test_mode`. # noqa: E501
The version of the OpenAPI document: 2021.10
The version of the OpenAPI document: 2021.11
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading

0 comments on commit 7d45d15

Please sign in to comment.