|
5 | 5 | ) |
6 | 6 |
|
7 | 7 | import requests |
8 | | - |
9 | 8 | from easypost.constant import ( |
10 | 9 | _FILTERS_KEY, |
11 | 10 | SEND_STRIPE_DETAILS_ERROR, |
@@ -70,13 +69,9 @@ def all(self, **params) -> dict[str, Any]: |
70 | 69 |
|
71 | 70 | url = "/referral_customers" |
72 | 71 |
|
73 | | - response = Requestor(self._client).request( |
74 | | - method=RequestMethod.GET, url=url, params=params |
75 | | - ) |
| 72 | + response = Requestor(self._client).request(method=RequestMethod.GET, url=url, params=params) |
76 | 73 |
|
77 | | - response[_FILTERS_KEY] = ( |
78 | | - filters # Save the filters used to reference in potential get_next_page call |
79 | | - ) |
| 74 | + response[_FILTERS_KEY] = filters # Save the filters used to reference in potential get_next_page call |
80 | 75 |
|
81 | 76 | return convert_to_easypost_object(response=response) |
82 | 77 |
|
@@ -107,7 +102,7 @@ def add_credit_card( |
107 | 102 | expiration_year: int, |
108 | 103 | cvc: str, |
109 | 104 | priority: str = "primary", |
110 | | - ) -> Dict[str, Any]: |
| 105 | + ) -> dict[str, Any]: |
111 | 106 | """Add a credit card to EasyPost for a ReferralCustomer without needing a Stripe account. |
112 | 107 |
|
113 | 108 | This function requires the ReferralCustomer User's API key. |
@@ -138,7 +133,7 @@ def add_credit_card_from_stripe( |
138 | 133 | referral_api_key: str, |
139 | 134 | payment_method_id: str, |
140 | 135 | priority: str = "primary", |
141 | | - ) -> Dict[str, Any]: |
| 136 | + ) -> dict[str, Any]: |
142 | 137 | """Add a credit card to EasyPost for a ReferralCustomer with a payment method ID from Stripe. |
143 | 138 |
|
144 | 139 | This function requires the ReferralCustomer User's API key. |
@@ -166,9 +161,9 @@ def add_bank_account_from_stripe( |
166 | 161 | self, |
167 | 162 | referral_api_key: str, |
168 | 163 | financial_connections_id: str, |
169 | | - mandate_data: Dict[str, Any], |
| 164 | + mandate_data: dict[str, Any], |
170 | 165 | priority: str = "primary", |
171 | | - ) -> Dict[str, Any]: |
| 166 | + ) -> dict[str, Any]: |
172 | 167 | """Add a bank account to EasyPost for a ReferralCustomer. |
173 | 168 |
|
174 | 169 | This function requires the ReferralCustomer User's API key. |
|
0 commit comments