/* 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 SitePaymentConfigResource */ export interface SitePaymentConfigResource { /** * * @type {number} * @memberof SitePaymentConfigResource */ id: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ shippingAmount: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ freeShippingThreshold: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ insuranceThreshold: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ insuranceBase: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ insuranceAdditional: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ amexSurcharge: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ acCouponValue: number; /** * * @type {string} * @memberof SitePaymentConfigResource */ acCouponDiscountType: string; /** * * @type {number} * @memberof SitePaymentConfigResource */ acCouponExpiryDays: number; /** * * @type {number} * @memberof SitePaymentConfigResource */ cartExpiryDays: number; /** * * @type {boolean} * @memberof SitePaymentConfigResource */ acCouponEnabled: boolean; } /** * Check if a given object implements the SitePaymentConfigResource interface. */ export function instanceOfSitePaymentConfigResource(value: object): value is SitePaymentConfigResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('shippingAmount' in value) || value['shippingAmount'] === undefined) return false; if (!('freeShippingThreshold' in value) || value['freeShippingThreshold'] === undefined) return false; if (!('insuranceThreshold' in value) || value['insuranceThreshold'] === undefined) return false; if (!('insuranceBase' in value) || value['insuranceBase'] === undefined) return false; if (!('insuranceAdditional' in value) || value['insuranceAdditional'] === undefined) return false; if (!('amexSurcharge' in value) || value['amexSurcharge'] === undefined) return false; if (!('acCouponValue' in value) || value['acCouponValue'] === undefined) return false; if (!('acCouponDiscountType' in value) || value['acCouponDiscountType'] === undefined) return false; if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined) return false; if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined) return false; if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined) return false; return true; } export function SitePaymentConfigResourceFromJSON(json: any): SitePaymentConfigResource { return SitePaymentConfigResourceFromJSONTyped(json, false); } export function SitePaymentConfigResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SitePaymentConfigResource { if (json == null) { return json; } return { 'id': json['id'], 'shippingAmount': json['shippingAmount'], 'freeShippingThreshold': json['freeShippingThreshold'], 'insuranceThreshold': json['insuranceThreshold'], 'insuranceBase': json['insuranceBase'], 'insuranceAdditional': json['insuranceAdditional'], 'amexSurcharge': json['amexSurcharge'], 'acCouponValue': json['acCouponValue'], 'acCouponDiscountType': json['acCouponDiscountType'], 'acCouponExpiryDays': json['acCouponExpiryDays'], 'cartExpiryDays': json['cartExpiryDays'], 'acCouponEnabled': json['acCouponEnabled'], }; } export function SitePaymentConfigResourceToJSON(json: any): SitePaymentConfigResource { return SitePaymentConfigResourceToJSONTyped(json, false); } export function SitePaymentConfigResourceToJSONTyped(value?: SitePaymentConfigResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'shippingAmount': value['shippingAmount'], 'freeShippingThreshold': value['freeShippingThreshold'], 'insuranceThreshold': value['insuranceThreshold'], 'insuranceBase': value['insuranceBase'], 'insuranceAdditional': value['insuranceAdditional'], 'amexSurcharge': value['amexSurcharge'], 'acCouponValue': value['acCouponValue'], 'acCouponDiscountType': value['acCouponDiscountType'], 'acCouponExpiryDays': value['acCouponExpiryDays'], 'cartExpiryDays': value['cartExpiryDays'], 'acCouponEnabled': value['acCouponEnabled'], }; }