Documentation

Constants
in package

Table of Contents

API_BASE  = 'https://api.easypost.com'
API_VERSION  = 'v2'
ARRAY_REQUIRED_ERROR  = 'You must pass an array as the first argument to EasyPost API method calls.'
BETA_API_VERSION  = 'beta'
CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_WORKFLOWS  = ['FedexAccount', 'FedexSmartpostAccount']
COMMUNICATION_ERROR  = 'Unexpected error communicating with %s. If this problem persists please let us know at ' . self::SUPPORT_EMAIL . '. %s'
DECODE_WEBHOOK_ERROR  = 'There was a problem decoding the webhook.'
END_OF_PAGINATION  = 'There are no more pages to retrieve.'
INVALID_PARAMETER_ERROR_WITH_SUGGESTION  = 'Invalid %s value, must be one of: %s'
INVALID_PAYMENT_METHOD_ERROR  = 'The chosen payment method is not valid. Please try again.'
INVALID_SIGNATURE_ERROR  = 'Webhook received does not contain an HMAC signature.'
INVALID_WEBHOOK_VALIDATION_ERROR  = 'Webhook received did not originate from EasyPost or had a webhook secret mismatch.'
LIBRARY_VERSION  = '7.4.2'
MISSING_PARAMETER_ERROR  = '%s is required.'
NO_BILLING_ERROR  = 'Billing has not been setup for this user. Please add a payment method.'
NO_ID_URL_ERROR  = 'Could not determine which URL to request: %s instance has invalid ID: %s'
NO_MATCHING_MOCK_REQUEST  = 'No matching mock request found for %s %s'
NO_RATES_ERROR  = 'No rates found.'
NO_RESPONSE_ERROR  = 'Did not receive a response from %s.'
NO_USER_FOUND_ERROR  = 'No user found with the given ID.'
SEND_STRIPE_DETAILS_ERROR  = 'Could not send card details to Stripe, please try again later.'
SUPPORT_EMAIL  = 'support@easypost.com'
TIMEOUT  = 60.0
UNDEFINED_PROPERTY_ERROR  = 'EasyPost Notice: Undefined property of %s instance: %s'
UPS_OAUTH_ACCOUNT_TYPES  = ['UpsAccount', 'UpsMailInnovationsAccount', 'UpsSurepostAccount']

Constants

API_BASE

public mixed API_BASE = 'https://api.easypost.com'

ARRAY_REQUIRED_ERROR

public mixed ARRAY_REQUIRED_ERROR = 'You must pass an array as the first argument to EasyPost API method calls.'

BETA_API_VERSION

public mixed BETA_API_VERSION = 'beta'

CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_WORKFLOWS

public mixed CARRIER_ACCOUNT_TYPES_WITH_CUSTOM_WORKFLOWS = ['FedexAccount', 'FedexSmartpostAccount']

COMMUNICATION_ERROR

public mixed COMMUNICATION_ERROR = 'Unexpected error communicating with %s. If this problem persists please let us know at ' . self::SUPPORT_EMAIL . '. %s'

DECODE_WEBHOOK_ERROR

public mixed DECODE_WEBHOOK_ERROR = 'There was a problem decoding the webhook.'

END_OF_PAGINATION

public mixed END_OF_PAGINATION = 'There are no more pages to retrieve.'

INVALID_PARAMETER_ERROR_WITH_SUGGESTION

public mixed INVALID_PARAMETER_ERROR_WITH_SUGGESTION = 'Invalid %s value, must be one of: %s'

INVALID_PAYMENT_METHOD_ERROR

public mixed INVALID_PAYMENT_METHOD_ERROR = 'The chosen payment method is not valid. Please try again.'

INVALID_SIGNATURE_ERROR

public mixed INVALID_SIGNATURE_ERROR = 'Webhook received does not contain an HMAC signature.'

INVALID_WEBHOOK_VALIDATION_ERROR

public mixed INVALID_WEBHOOK_VALIDATION_ERROR = 'Webhook received did not originate from EasyPost or had a webhook secret mismatch.'

LIBRARY_VERSION

public mixed LIBRARY_VERSION = '7.4.2'

MISSING_PARAMETER_ERROR

public mixed MISSING_PARAMETER_ERROR = '%s is required.'

NO_BILLING_ERROR

public mixed NO_BILLING_ERROR = 'Billing has not been setup for this user. Please add a payment method.'

NO_ID_URL_ERROR

public mixed NO_ID_URL_ERROR = 'Could not determine which URL to request: %s instance has invalid ID: %s'

NO_MATCHING_MOCK_REQUEST

public mixed NO_MATCHING_MOCK_REQUEST = 'No matching mock request found for %s %s'

NO_RATES_ERROR

public mixed NO_RATES_ERROR = 'No rates found.'

NO_RESPONSE_ERROR

public mixed NO_RESPONSE_ERROR = 'Did not receive a response from %s.'

NO_USER_FOUND_ERROR

public mixed NO_USER_FOUND_ERROR = 'No user found with the given ID.'

SEND_STRIPE_DETAILS_ERROR

public mixed SEND_STRIPE_DETAILS_ERROR = 'Could not send card details to Stripe, please try again later.'

SUPPORT_EMAIL

public mixed SUPPORT_EMAIL = 'support@easypost.com'

UNDEFINED_PROPERTY_ERROR

public mixed UNDEFINED_PROPERTY_ERROR = 'EasyPost Notice: Undefined property of %s instance: %s'

UPS_OAUTH_ACCOUNT_TYPES

public mixed UPS_OAUTH_ACCOUNT_TYPES = ['UpsAccount', 'UpsMailInnovationsAccount', 'UpsSurepostAccount']

Search results