From 3654f75759d0c1e9890dedb5f10a138aa5f7b933 Mon Sep 17 00:00:00 2001 From: Tomasz Kolek Date: Fri, 24 Sep 2021 09:43:24 +0200 Subject: [PATCH] Add pbvs to allowed_values in Manifest carrier method. --- pbshipping/models/carrier.py | 3 ++- pbshipping/models/manifest.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pbshipping/models/carrier.py b/pbshipping/models/carrier.py index 48248a0..0eb9e51 100644 --- a/pbshipping/models/carrier.py +++ b/pbshipping/models/carrier.py @@ -35,8 +35,9 @@ class Carrier(object): PBI = "PBI" FEDEX = "FEDEX" USP = "USP" + PBCS = "PBCS" - allowable_values = [USPS, PBPRESORT, NEWGISTICS, PBI, FEDEX, USP] # noqa: E501 + allowable_values = [USPS, PBPRESORT, NEWGISTICS, PBI, FEDEX, USP, PBCS] # noqa: E501 """ Attributes: diff --git a/pbshipping/models/manifest.py b/pbshipping/models/manifest.py index 96bb8f6..904f5dd 100644 --- a/pbshipping/models/manifest.py +++ b/pbshipping/models/manifest.py @@ -111,7 +111,7 @@ def carrier(self, carrier): """ if self.local_vars_configuration.client_side_validation and carrier is None: # noqa: E501 raise ValueError("Invalid value for `carrier`, must not be `None`") # noqa: E501 - allowed_values = ["USPS", "NEWGISTICS", "PBPresort"] # noqa: E501 + allowed_values = ["USPS", "NEWGISTICS", "PBPresort", "pbcs"] # noqa: E501 if self.local_vars_configuration.client_side_validation and carrier not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `carrier` ({0}), must be one of {1}" # noqa: E501