@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
75 lines (63 loc) • 2.4 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Ringer Business API
* This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions.
*
* The version of the OpenAPI document: 1.0.6
* Contact: support@ringer.tel
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { CreditCardResponse } from './CreditCardResponse';
import {
CreditCardResponseFromJSON,
CreditCardResponseFromJSONTyped,
CreditCardResponseToJSON,
CreditCardResponseToJSONTyped,
} from './CreditCardResponse';
/**
* A paginated list of credit cards associated with an account.
* @export
* @interface CreditCardListResponse
*/
export interface CreditCardListResponse {
/**
*
* @type {Array<CreditCardResponse>}
* @memberof CreditCardListResponse
*/
creditCards: Array<CreditCardResponse>;
}
/**
* Check if a given object implements the CreditCardListResponse interface.
*/
export function instanceOfCreditCardListResponse(value: object): value is CreditCardListResponse {
if (!('creditCards' in value) || value['creditCards'] === undefined) return false;
return true;
}
export function CreditCardListResponseFromJSON(json: any): CreditCardListResponse {
return CreditCardListResponseFromJSONTyped(json, false);
}
export function CreditCardListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreditCardListResponse {
if (json == null) {
return json;
}
return {
'creditCards': ((json['credit_cards'] as Array<any>).map(CreditCardResponseFromJSON)),
};
}
export function CreditCardListResponseToJSON(json: any): CreditCardListResponse {
return CreditCardListResponseToJSONTyped(json, false);
}
export function CreditCardListResponseToJSONTyped(value?: CreditCardListResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'credit_cards': ((value['creditCards'] as Array<any>).map(CreditCardResponseToJSON)),
};
}