UNPKG

@paciolan/cybersource-sdk

Version:
73 lines (72 loc) 5.31 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ export interface PtsV2PaymentsPost201Response1OrderInformationShipTo { /** * First name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field. * @type {string} * @memberof PtsV2PaymentsPost201Response1OrderInformationShipTo */ firstName?: string; /** * Last name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field. * @type {string} * @memberof PtsV2PaymentsPost201Response1OrderInformationShipTo */ lastName?: string; /** * 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ address2?: 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ locality?: 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ administrativeArea?: 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ postalCode?: 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 PtsV2PaymentsPost201Response1OrderInformationShipTo */ country?: string; /** * Phone number associated with the shipping address. * @type {string} * @memberof PtsV2PaymentsPost201Response1OrderInformationShipTo */ phoneNumber?: string; }