/* 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. */ /** * * @export */ export const PaymentSource = { Checkout: 'checkout', ExpressCheckout: 'express_checkout', AdminPortal: 'admin_portal', PaymentLink: 'payment_link' } as const; export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource]; export function instanceOfPaymentSource(value: any): boolean { for (const key in PaymentSource) { if (Object.prototype.hasOwnProperty.call(PaymentSource, key)) { if (PaymentSource[key as keyof typeof PaymentSource] === value) { return true; } } } return false; } export function PaymentSourceFromJSON(json: any): PaymentSource { return PaymentSourceFromJSONTyped(json, false); } export function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource { return json as PaymentSource; } export function PaymentSourceToJSON(value?: PaymentSource | null): any { return value as any; } export function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource { return value as PaymentSource; }