-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconstants.go
26 lines (23 loc) · 1.37 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package easypost
func getCarrierAccountTypesWithCustomWorkflows() []string {
return []string{"FedexAccount", "FedexSmartpostAccount"}
}
func getUpsCarrierAccountTypes() []string {
return []string{"UpsAccount", "UpsMailInnovationsAccount", "UpsSurepostAccount"}
}
var ApiDidNotReturnErrorDetails = "API did not return error details"
var ApiErrorDetailsParsingError = "RESPONSE.PARSE_ERROR"
var InvalidParameter = "Invalid parameter: "
var JsonDeserializationErrorMessage = "Error deserializing JSON into object of type "
var JsonNoDataErrorMessage = "No data was provided to serialize"
var JsonSerializationErrorMessage = "Error serializing object of type "
var MismatchWebhookSignature = "Webhook received did not originate from EasyPost or had a webhook secret mismatch"
var MissingProperty = "Missing property: "
var MissingRequiredParameter = "Missing required parameter: "
var MissingWebhookSignature = "Webhook does not contain a valid HMAC signature."
var NoMatchingPaymentMethod = "No matching payment method type found"
var NoPagesLeftToRetrieve = "There are no more pages to retrieve"
var NoPaymentMethods = "No payment methods are set up. Please add a payment method and try again."
var NoRatesFoundMatchingFilters = "No rates found matching the given filters"
var NoUserFoundForId = "No user found for the given ID"
var PaymentMethodNotSetUp = "The chosen payment method is not set up yet"