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
71 lines (67 loc) • 2.01 kB
text/typescript
/**
* Shell Card Management APIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import {
array,
lazy,
number,
object,
optional,
Schema,
string,
} from '../schema.js';
import {
DeliveryAddressUpdate,
deliveryAddressUpdateSchema,
} from './deliveryAddressUpdate.js';
export interface DeliveryAddressUpdateRequest {
/**
* Collecting Company Id of the selected payer.
* Optional if ColCoCode is passed else Mandatory.
*/
colCoId?: number;
/**
* Collecting Company Code (Shell Code) of the selected payer.
* Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if ColCoID is provided.
*/
colCoCode?: number;
/**
* Payer Id (i.e. Customer Id of the Payment Customer) of the selected payer.
* Optional if PayerNumber is passed else Mandatory
*/
payerId?: number;
/**
* Payer Number (Ex: GB000000123) of the selected payer.
* Optional if PayerId is passed else Mandatory
*/
payerNumber?: string;
/**
* Account ID of the customer.
* Optional if AccountNumber is passed, else mandatory.
*/
accountId?: number;
/**
* Account Number of the customer.
* Optional if AccountId is passed, else mandatory.
* This input is a search criterion, if given.
*/
accountNumber?: string;
deliveryAddressUpdates?: DeliveryAddressUpdate[];
}
export const deliveryAddressUpdateRequestSchema: Schema<DeliveryAddressUpdateRequest> = lazy(
() =>
object({
colCoId: ['ColCoId', optional(number())],
colCoCode: ['ColCoCode', optional(number())],
payerId: ['PayerId', optional(number())],
payerNumber: ['PayerNumber', optional(string())],
accountId: ['AccountId', optional(number())],
accountNumber: ['AccountNumber', optional(string())],
deliveryAddressUpdates: [
'DeliveryAddressUpdates',
optional(array(deliveryAddressUpdateSchema)),
],
})
);