UNPKG

@paciolan/cybersource-sdk

Version:
103 lines (102 loc) 7.01 kB
/** * CyberSource Merged Spec * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html * * OpenAPI spec version: 0.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /** * * @export * @interface Riskv1decisionsOrderInformationShipTo */ export interface Riskv1decisionsOrderInformationShipTo { /** * First line of the shipping address. Required field for authorization if any shipping address information is included in the request; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ address1?: string; /** * Second line of the shipping address. Optional field. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ address2?: string; /** * Third line of the shipping address. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ address3?: string; /** * State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) (maximum length: 2) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ administrativeArea?: string; /** * Country of the shipping address. Use the two-character [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) Required field for authorization if any shipping address information is included in the request; otherwise, optional. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ country?: string; /** * Shipping destination of item. Example: Commercial, Residential, Store * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ destinationTypes?: string; /** * City of the shipping address. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ locality?: string; /** * First name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ firstName?: string; /** * Last name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ lastName?: string; /** * Middle name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ middleName?: string; /** * Phone number associated with the shipping address. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ phoneNumber?: string; /** * Postal code for the shipping address. The postal code must consist of 5 to 9 digits. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 #### American Express Direct Before sending the postal code to the processor, all nonalphanumeric characters are removed and, if the remaining value is longer than nine characters, the value is truncated starting from the right side. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present. * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ postalCode?: string; /** * Indicates destination chosen for the transaction. Possible values: - 01- Ship to cardholder billing address - 02- Ship to another verified address on file with merchant - 03- Ship to address that is different than billing address - 04- Ship to store (store address should be populated on request) - 05- Digital goods - 06- Travel and event tickets, not shipped - 07- Other * @type {number} * @memberof Riskv1decisionsOrderInformationShipTo */ destinationCode?: number; /** * Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription Required for American Express SafeKey (U.S.). * @type {string} * @memberof Riskv1decisionsOrderInformationShipTo */ method?: string; }