Basic structure for classes returned by module. Established constants based of v4.4 API static values, as well as local classes for validating and truncating input for object types of first sync client method. Client constructor has optional argument values for returnRaw, returnSoapHeader, and stripWrapper. By default, all methods of client will return an object with a single property (result) that is in turn a parsed response object. If args.returnRaw and/or args.returnSoapHeader are set to true in client constructor, methods will add 'raw' and/or 'soapHeader' properties to the returned object and include a string of unparsed response data and/or header data, respectively. If args.stripWrapper is set to true, callbacks will only return the 'result' object without wrapping it in a generic object, and will not return raw or soapHeader data regardless of whether the other arguments are set to true. Added logic for client.producInfo, which accepts array of ProductInfoDat objects as first param and callback as second. ProductInfoDat varies from FECB spec in that only required values are differentiated as individual named arguments in the constructor; all optional values are named values of the optionalArgs object, included as the last argument of the constructor. If CartonsDat values are included for a ProductInfoDat object, it should be passed as an object with the FECB named properties (L,W,H,WT). Will test and continue building remaining methods for client object.
Basic structure for classes returned by module. Established constants based of v4.4 API static values, as well as local classes for validating and truncating input for object types of first sync client method. Client constructor has optional argument values for returnRaw, returnSoapHeader, and stripWrapper. By default, all methods of client will return an object with a single property (result) that is in turn a parsed response object. If args.returnRaw and/or args.returnSoapHeader are set to true in client constructor, methods will add 'raw' and/or 'soapHeader' properties to the returned object and include a string of unparsed response data and/or header data, respectively. If args.stripWrapper is set to true, callbacks will only return the 'result' object without wrapping it in a generic object, and will not return raw or soapHeader data regardless of whether the other arguments are set to true. Added logic for client.producInfo, which accepts array of ProductInfoDat objects as first param and callback as second. ProductInfoDat varies from FECB spec in that only required values are differentiated as individual named arguments in the constructor; all optional values are named values of the optionalArgs object, included as the last argument of the constructor. If CartonsDat values are included for a ProductInfoDat object, it should be passed as an object with the FECB named properties (L,W,H,WT). Will test and continue building remaining methods for client object.

bangerkuwranger/node-fedex-cross-border-api