/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * 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'; /** * * @export * @interface UpdateCustomerAddressRequest */ export interface UpdateCustomerAddressRequest { /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ addresseeName?: string | null; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ company?: string | null; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ line1: string; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ line2?: string | null; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ suburb: string; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ state: string; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ postcode: string; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ country?: string | null; /** * * @type {string} * @memberof UpdateCustomerAddressRequest */ type?: UpdateCustomerAddressRequestTypeEnum; } /** * @export */ export const UpdateCustomerAddressRequestTypeEnum = { Shipping: 'shipping', Billing: 'billing', ShippingBilling: 'shipping-billing', Others: 'others' } as const; export type UpdateCustomerAddressRequestTypeEnum = typeof UpdateCustomerAddressRequestTypeEnum[keyof typeof UpdateCustomerAddressRequestTypeEnum]; /** * Check if a given object implements the UpdateCustomerAddressRequest interface. */ export function instanceOfUpdateCustomerAddressRequest(value: object): value is UpdateCustomerAddressRequest { if (!('line1' in value) || value['line1'] === undefined) return false; if (!('suburb' in value) || value['suburb'] === undefined) return false; if (!('state' in value) || value['state'] === undefined) return false; if (!('postcode' in value) || value['postcode'] === undefined) return false; return true; } export function UpdateCustomerAddressRequestFromJSON(json: any): UpdateCustomerAddressRequest { return UpdateCustomerAddressRequestFromJSONTyped(json, false); } export function UpdateCustomerAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomerAddressRequest { if (json == null) { return json; } return { 'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'], 'company': json['company'] == null ? undefined : json['company'], 'line1': json['line_1'], 'line2': json['line_2'] == null ? undefined : json['line_2'], 'suburb': json['suburb'], 'state': json['state'], 'postcode': json['postcode'], 'country': json['country'] == null ? undefined : json['country'], 'type': json['type'] == null ? undefined : json['type'], }; } export function UpdateCustomerAddressRequestToJSON(json: any): UpdateCustomerAddressRequest { return UpdateCustomerAddressRequestToJSONTyped(json, false); } export function UpdateCustomerAddressRequestToJSONTyped(value?: UpdateCustomerAddressRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'addressee_name': value['addresseeName'], 'company': value['company'], 'line_1': value['line1'], 'line_2': value['line2'], 'suburb': value['suburb'], 'state': value['state'], 'postcode': value['postcode'], 'country': value['country'], 'type': value['type'], }; }