/* 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'; import type { TransactionResource } from './TransactionResource'; import { TransactionResourceFromJSON, TransactionResourceFromJSONTyped, TransactionResourceToJSON, TransactionResourceToJSONTyped, } from './TransactionResource'; /** * * @export * @interface StoreTransactionResource */ export interface StoreTransactionResource { /** * * @type {TransactionResource} * @memberof StoreTransactionResource */ transaction: TransactionResource | null; /** * * @type {number} * @memberof StoreTransactionResource */ orderId: number; } /** * Check if a given object implements the StoreTransactionResource interface. */ export function instanceOfStoreTransactionResource(value: object): value is StoreTransactionResource { if (!('transaction' in value) || value['transaction'] === undefined) return false; if (!('orderId' in value) || value['orderId'] === undefined) return false; return true; } export function StoreTransactionResourceFromJSON(json: any): StoreTransactionResource { return StoreTransactionResourceFromJSONTyped(json, false); } export function StoreTransactionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreTransactionResource { if (json == null) { return json; } return { 'transaction': TransactionResourceFromJSON(json['transaction']), 'orderId': json['orderId'], }; } export function StoreTransactionResourceToJSON(json: any): StoreTransactionResource { return StoreTransactionResourceToJSONTyped(json, false); } export function StoreTransactionResourceToJSONTyped(value?: StoreTransactionResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'transaction': TransactionResourceToJSON(value['transaction']), 'orderId': value['orderId'], }; }