Skip to content

Commit 861290d

Browse files
committed
fix: create/update based on changes
1 parent 64f546c commit 861290d

4 files changed

+19
-328
lines changed

easypost/services/carrier_account_service.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ def update(self, id: str, **params) -> CarrierAccount:
5757

5858
if carrier_account.get("type") in _UPS_OAUTH_CARRIER_ACCOUNT_TYPES:
5959
class_name = "UpsOauthRegistrations"
60-
elif carrier_account.get("type") in _CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_OAUTH:
61-
response = Requestor(self._client).request(
62-
method=RequestMethod.PATCH,
63-
url=f"/carrier_accounts/register_oauth/{id}",
64-
params={"carrier_account_oauth_registrations": params},
65-
)
66-
return convert_to_easypost_object(response=response)
6760
else:
6861
class_name = self._model_class
6962

tests/cassettes/test_carrier_account_create_amazon_shipping.yaml

Lines changed: 19 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cassettes/test_carrier_account_update_amazon_shipping.yaml

Lines changed: 0 additions & 271 deletions
This file was deleted.

0 commit comments

Comments
 (0)