/** * 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 type { TransactionType } from './TransactionType'; import type { PaymentMethod } from './PaymentMethod'; import type { PaymentSource } from './PaymentSource'; import type { PaymentStatus } from './PaymentStatus'; /** * * @export * @interface TransactionResource */ export interface TransactionResource { /** * * @type {number} * @memberof TransactionResource */ id?: number | null; /** * * @type {PaymentSource} * @memberof TransactionResource */ paymentSource: PaymentSource; /** * * @type {PaymentMethod} * @memberof TransactionResource */ paymentMethod: PaymentMethod; /** * * @type {TransactionType} * @memberof TransactionResource */ type: TransactionType; /** * * @type {PaymentStatus} * @memberof TransactionResource */ status: PaymentStatus; /** * * @type {number} * @memberof TransactionResource */ amount: number; /** * * @type {number} * @memberof TransactionResource */ surcharge: number; /** * * @type {number} * @memberof TransactionResource */ totalAmount: number; /** * * @type {number} * @memberof TransactionResource */ refundedAmount: number; /** * * @type {number} * @memberof TransactionResource */ unrefundedAmount: number; /** * * @type {string} * @memberof TransactionResource */ reference: string; /** * * @type {string} * @memberof TransactionResource */ description?: string | null; /** * * @type {string} * @memberof TransactionResource */ extendedData?: string | null; /** * * @type {string} * @memberof TransactionResource */ riskScore?: string | null; /** * * @type {string} * @memberof TransactionResource */ fraudDecision?: string | null; /** * * @type {number} * @memberof TransactionResource */ refundedTransactionId?: number | null; /** * * @type {Date} * @memberof TransactionResource */ createdAt?: Date | null; } /** * Check if a given object implements the TransactionResource interface. */ export declare function instanceOfTransactionResource(value: object): value is TransactionResource; export declare function TransactionResourceFromJSON(json: any): TransactionResource; export declare function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResource; export declare function TransactionResourceToJSON(json: any): TransactionResource; export declare function TransactionResourceToJSONTyped(value?: TransactionResource | null, ignoreDiscriminator?: boolean): any;