PackageCODType Property
The code that indicates the type of funds that will be used for the COD payment for this package.
Syntax
canadapostshipintl.getPackageCODType(index, [callback]) canadapostshipintl.setPackageCODType(index, packageCODType, [callback])
Possible Values
0 (codtpAny), 1 (codtpCash), 2 (codtpGuaranteedFunds), 3 (codtpCompanyCheck), 4 (codtpPersonalCheck)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getPackageCODType([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setPackageCODType([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
The code that indicates the type of funds that will be used for the COD payment for this package.
This property is only applicable to FedEx and UPS and identifies the type of funds that should be collected upon package delivery. It is required to be provided in the request only if COD is requested for this package (i.e., PackageCODAmount is set to a value other than "0.00").
Valid values are:
Value | Description |
codtpAny (0) | Company check, personal check, cashier's check or money order - UPS no cash allowed. Not applicable for Canada Post |
codtpCash (1) | Cash - FedEx only, only valid for Ground shipments |
codtpGuaranteedFunds (2) | Cashier's check or money order |
codtpCompanyCheck (3) | Company check - FedEx and Canada Post only |
codtpPersonalCheck (4) | Personal check - FedEx and Canada Post only |
Note: COD special service is not valid for return service movements.
Also note that only codtpAny (0) and codtGuaranteedFunds (2) are valid for UPS. For CanadaPost codtpAny is not valid and any type of check is accepted.
The size of the array is controlled by the PackageCount property.
This property is not available at design time.
Data Type
Integer