patch-api
Advanced tools
@@ -1,15 +0,22 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: patch-api | ||
| Version: 2.3.0 | ||
| Version: 2.3.1 | ||
| Summary: Patch API V2 | ||
| Home-page: UNKNOWN | ||
| Home-page: | ||
| Author: Developer Support | ||
| Author-email: engineering@usepatch.com | ||
| License: UNKNOWN | ||
| Keywords: OpenAPI,OpenAPI-Generator,Patch API V2 | ||
| Platform: UNKNOWN | ||
| Requires-Python: >=3.6 | ||
| Requires-Dist: urllib3>=1.25.3 | ||
| Requires-Dist: python-dateutil | ||
| Requires-Dist: certifi | ||
| Dynamic: author | ||
| Dynamic: author-email | ||
| Dynamic: description | ||
| Dynamic: keywords | ||
| Dynamic: requires-dist | ||
| Dynamic: requires-python | ||
| Dynamic: summary | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
@@ -18,3 +18,3 @@ # coding: utf-8 | ||
| __version__ = "2.3.0" | ||
| __version__ = "2.3.1" | ||
@@ -21,0 +21,0 @@ # import ApiClient |
| # coding: utf-8 | ||
| """ | ||
| Patch API V2 | ||
| Patch API V2 | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
| The version of the OpenAPI document: 2 | ||
| Contact: engineering@usepatch.com | ||
| Generated by: https://openapi-generator.tech | ||
| The version of the OpenAPI document: 2 | ||
| Contact: engineering@usepatch.com | ||
| Generated by: https://openapi-generator.tech | ||
| """ | ||
@@ -95,3 +95,3 @@ | ||
| # Set default User-Agent. | ||
| self.user_agent = "patch-python/2.3.0" | ||
| self.user_agent = "patch-python/2.3.1" | ||
| # Set default Patch-Version | ||
@@ -134,5 +134,2 @@ self.patch_version = 2 | ||
| def set_default_header(self, header_name, header_value): | ||
| self.default_headers[header_name] = header_value | ||
| @property | ||
@@ -147,2 +144,5 @@ def patch_version(self): | ||
| def set_default_header(self, header_name, header_value): | ||
| self.default_headers[header_name] = header_value | ||
| def __call_api( | ||
@@ -149,0 +149,0 @@ self, |
@@ -344,3 +344,3 @@ # coding: utf-8 | ||
| "Version of the API: 2\n" | ||
| "SDK Package Version: 2.3.0".format(env=sys.platform, pyversion=sys.version) | ||
| "SDK Package Version: 2.3.1".format(env=sys.platform, pyversion=sys.version) | ||
| ) | ||
@@ -347,0 +347,0 @@ |
@@ -24,5 +24,2 @@ # coding: utf-8 | ||
| ) | ||
| from patch_api.models.create_ecommerce_estimate_request import ( | ||
| CreateEcommerceEstimateRequest, | ||
| ) | ||
| from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest | ||
@@ -29,0 +26,0 @@ from patch_api.models.create_hotel_estimate_request import CreateHotelEstimateRequest |
+13
-6
@@ -1,15 +0,22 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: patch-api | ||
| Version: 2.3.0 | ||
| Version: 2.3.1 | ||
| Summary: Patch API V2 | ||
| Home-page: UNKNOWN | ||
| Home-page: | ||
| Author: Developer Support | ||
| Author-email: engineering@usepatch.com | ||
| License: UNKNOWN | ||
| Keywords: OpenAPI,OpenAPI-Generator,Patch API V2 | ||
| Platform: UNKNOWN | ||
| Requires-Python: >=3.6 | ||
| Requires-Dist: urllib3>=1.25.3 | ||
| Requires-Dist: python-dateutil | ||
| Requires-Dist: certifi | ||
| Dynamic: author | ||
| Dynamic: author-email | ||
| Dynamic: description | ||
| Dynamic: keywords | ||
| Dynamic: requires-dist | ||
| Dynamic: requires-python | ||
| Dynamic: summary | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
+1
-1
@@ -14,3 +14,3 @@ """ | ||
| NAME = "patch-api" | ||
| VERSION = "2.3.0" | ||
| VERSION = "2.3.1" | ||
| # To install the library, run the following | ||
@@ -17,0 +17,0 @@ # |
| # coding: utf-8 | ||
| """ | ||
| Patch API V1 | ||
| Patch API V1 | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
| The core API used to integrate with Patch's service # noqa: E501 | ||
| The version of the OpenAPI document: v1 | ||
| Contact: developers@usepatch.com | ||
| Generated by: https://openapi-generator.tech | ||
| The version of the OpenAPI document: v1 | ||
| Contact: developers@usepatch.com | ||
| Generated by: https://openapi-generator.tech | ||
| """ | ||
@@ -116,23 +116,2 @@ | ||
| def test_create_and_retrieve_ecommerce_estimate(self): | ||
| """Test case for create_ecommerce_estimate | ||
| Create an estimate based on the shipping distance, transportation method, and package mass # noqa: E501 | ||
| """ | ||
| distance_m = 10000000 | ||
| package_mass_g = 1000 | ||
| transportation_method = "sea" | ||
| estimate = self.api.create_ecommerce_estimate( | ||
| distance_m=distance_m, | ||
| package_mass_g=package_mass_g, | ||
| transportation_method=transportation_method, | ||
| create_order=False, | ||
| ) | ||
| self.assertEqual(estimate.data.order, None) | ||
| self.assertEqual(estimate.data.type, "ecommerce") | ||
| self.assertGreater(estimate.data.mass_g, 200) | ||
| retrieved_estimate = self.api.retrieve_estimate(id=estimate.data.id) | ||
| self.assertTrue(retrieved_estimate) | ||
| def test_create_air_shipping_estimate_airport_iatas(self): | ||
@@ -139,0 +118,0 @@ """Test case for create_air_shipping_estimate |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
627734
-1.51%14805
-1.35%