Update UPS shipment API to v2403

It is the only valid values for now even if v1 seems to still work.
This commit is contained in:
Cédric Krier committed 2024-06-17 10:51:59 +02:00
1 parent 61c81e54e8
commit 508ca25607
1 file changed
+2 -2
@@ -60,9 +60,9 @@ class CredentialUPS(sequence_ordered(), ModelSQL, ModelView, MatchMixin):
def get_shipment_url(self):
if self.server == 'production':
return 'https://onlinetools.ups.com/api/shipments/v1/ship'
return 'https://onlinetools.ups.com/api/shipments/v2403/ship'
else:
return 'https://wwwcie.ups.com/api/shipments/v1/ship'
return 'https://wwwcie.ups.com/api/shipments/v2403/ship'
@classmethod
def write(cls, *args):