card-management-sdk
Version:
The Shell Card Management API is REST-based and employs OAUTH 2.0,Basic and ApiKey authentication. The API endpoints accept JSON-encoded request bodies, return JSON-encoded responses and use standard HTTP response codes. All resources are located in the S
84 lines (80 loc) • 2.46 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { number, object, optional, Schema, string } from '../schema.js';
export interface UpdateCardRenewalAddress2 {
/**
* Contact name
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
* Max Length: 50
*/
contactName: string;
/**
* Title
* Max Length: 50
*/
contactTitle?: string;
/**
* Company name.
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
* Max Length: 50
*/
companyName: string;
/**
* Address line 1,2 and 3
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
* Max Length: 128
* Note: -Each address line should be separated by “\r\n”.
*/
addressLine: string;
/**
* ZipCode
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
* Max Length: 10
*/
zipCode: string;
/**
* City
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
* Max Length: 40
*/
city?: string;
/** Region id of card. */
regionID?: number;
/**
* Country ID
* Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The field is ignored otherwise.
*/
countryID: number;
/**
* Email Address
* Max Length: 90
* Note: -
* Based on the international standard that there can be
* • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
* • Max Lenth after the (the domain) = 88 (Minimum of 2)
*/
emailAddress?: string;
/**
* Phone number
* Optional
* Max Length: 16
*/
phoneNumber?: string;
}
export const updateCardRenewalAddress2Schema: Schema<UpdateCardRenewalAddress2> = object(
{
contactName: ['ContactName', string()],
contactTitle: ['ContactTitle', optional(string())],
companyName: ['CompanyName', string()],
addressLine: ['AddressLine', string()],
zipCode: ['ZipCode', string()],
city: ['City', optional(string())],
regionID: ['RegionID', optional(number())],
countryID: ['CountryID', number()],
emailAddress: ['EmailAddress', optional(string())],
phoneNumber: ['PhoneNumber', optional(string())],
}
);