|
13 | 13 | # Error messages
|
14 | 14 | COMMUNICATION_ERROR = "Unexpected error communicating with EasyPost. If this problem persists please let us know at {}. Original error: {}"
|
15 | 15 | INVALID_DELIVER_ACCURACY_ERROR = "Invalid delivery_accuracy value, must be one of: {}"
|
16 |
| -INVALID_PAYMENT_METHOD_ERROR = ( |
17 |
| - "The chosen payment method is not valid. Please try again." |
18 |
| -) |
19 |
| -INVALID_REQUEST_LIB_ERROR = ( |
20 |
| - "Bug discovered: invalid request_lib: {}. Please report to {}." |
21 |
| -) |
22 |
| -INVALID_REQUEST_METHOD_ERROR = ( |
23 |
| - "Bug discovered: invalid request method: {}. Please report to {}." |
24 |
| -) |
| 16 | +INVALID_PAYMENT_METHOD_ERROR = "The chosen payment method is not valid. Please try again." |
| 17 | +INVALID_REQUEST_LIB_ERROR = "Bug discovered: invalid request_lib: {}. Please report to {}." |
| 18 | +INVALID_REQUEST_METHOD_ERROR = "Bug discovered: invalid request method: {}. Please report to {}." |
25 | 19 | INVALID_REQUEST_PARAMETERS_ERROR = "Only GET and DELETE requests support parameters."
|
26 | 20 | INVALID_REQUESTS_VERSION_ERROR = 'EasyPost requires an up to date requests library. Update requests via "pip install -U requests" or contact us at {}.'
|
27 | 21 | INVALID_RESPONSE_BODY_ERROR = "Invalid response from API: ({}) {}"
|
28 | 22 | INVALID_SIGNATURE_ERROR = "Webhook received does not contain an HMAC signature."
|
29 |
| -INVALID_WEBHOOK_VALIDATION_ERROR = ( |
30 |
| - "Webhook received did not originate from EasyPost or had a webhook secret mismatch." |
31 |
| -) |
| 23 | +INVALID_WEBHOOK_VALIDATION_ERROR = "Webhook received did not originate from EasyPost or had a webhook secret mismatch." |
32 | 24 | MISSING_PARAMETER_ERROR = "Missing required parameter: {}"
|
33 | 25 | NO_ATTRIBUTE_ERROR = "{} object has no attribute {}"
|
34 |
| -NO_BILLING_ERROR = ( |
35 |
| - "Billing has not been setup for this user. Please add a payment method." |
36 |
| -) |
| 26 | +NO_BILLING_ERROR = "Billing has not been setup for this user. Please add a payment method." |
37 | 27 | NO_MORE_PAGES_ERROR = "There are no more pages to retrieve."
|
38 | 28 | NO_RATES_ERROR = "No rates found."
|
39 | 29 | NO_USER_FOUND = "No user found with the given id."
|
40 |
| -SEND_STRIPE_DETAILS_ERROR = ( |
41 |
| - "Could not send card details to Stripe, please try again later." |
42 |
| -) |
| 30 | +SEND_STRIPE_DETAILS_ERROR = "Could not send card details to Stripe, please try again later." |
43 | 31 | TIMEOUT_ERROR = "Request timed out."
|
44 | 32 |
|
45 | 33 | # Internal constants (user's should not use these)
|
|
0 commit comments