Skip to content

The platform for continuously improving AI agents.

1.7 KB
Raw Blame
/* tslint:disable */
/* eslint-disable */
/**
 * Overbae API
 * Backend API for the Overclaw / Overmind platform.
 *
 * The version of the OpenAPI document: 2.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';
/**
 * Stripe Checkout Session URL for redirecting the browser.
 * @export
 * @interface CheckoutSessionResponse
 */
export interface CheckoutSessionResponse {
    /**
     *
     * @type {string}
     * @memberof CheckoutSessionResponse
     */
    checkoutUrl: string;
}

/**
 * Check if a given object implements the CheckoutSessionResponse interface.
 */
export function instanceOfCheckoutSessionResponse(value: object): value is CheckoutSessionResponse {
    if (!('checkoutUrl' in value) || value['checkoutUrl'] === undefined) return false;
    return true;
}

export function CheckoutSessionResponseFromJSON(json: any): CheckoutSessionResponse {
    return CheckoutSessionResponseFromJSONTyped(json, false);
}

export function CheckoutSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSessionResponse {
    if (json == null) {
        return json;
    }
    return {

        'checkoutUrl': json['checkout_url'],
    };
}

export function CheckoutSessionResponseToJSON(json: any): CheckoutSessionResponse {
    return CheckoutSessionResponseToJSONTyped(json, false);
}

export function CheckoutSessionResponseToJSONTyped(value?: CheckoutSessionResponse | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'checkout_url': value['checkoutUrl'],
    };
}