/* tslint:disable */ /* eslint-disable */ // @ts-nocheck /** * Audius API * * The version of the OpenAPI document: 1.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 { exists, mapValues } from '../runtime'; /** * * @export * @interface UsdcPurchaseBuyerNotificationActionData */ export interface UsdcPurchaseBuyerNotificationActionData { /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ contentType: string; /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ buyerUserId: string; /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ sellerUserId: string; /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ amount: string; /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ extraAmount: string; /** * * @type {string} * @memberof UsdcPurchaseBuyerNotificationActionData */ contentId: string; } /** * Check if a given object implements the UsdcPurchaseBuyerNotificationActionData interface. */ export function instanceOfUsdcPurchaseBuyerNotificationActionData(value: object): value is UsdcPurchaseBuyerNotificationActionData { let isInstance = true; isInstance = isInstance && "contentType" in value && value["contentType"] !== undefined; isInstance = isInstance && "buyerUserId" in value && value["buyerUserId"] !== undefined; isInstance = isInstance && "sellerUserId" in value && value["sellerUserId"] !== undefined; isInstance = isInstance && "amount" in value && value["amount"] !== undefined; isInstance = isInstance && "extraAmount" in value && value["extraAmount"] !== undefined; isInstance = isInstance && "contentId" in value && value["contentId"] !== undefined; return isInstance; } export function UsdcPurchaseBuyerNotificationActionDataFromJSON(json: any): UsdcPurchaseBuyerNotificationActionData { return UsdcPurchaseBuyerNotificationActionDataFromJSONTyped(json, false); } export function UsdcPurchaseBuyerNotificationActionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsdcPurchaseBuyerNotificationActionData { if ((json === undefined) || (json === null)) { return json; } return { 'contentType': json['content_type'], 'buyerUserId': json['buyer_user_id'], 'sellerUserId': json['seller_user_id'], 'amount': json['amount'], 'extraAmount': json['extra_amount'], 'contentId': json['content_id'], }; } export function UsdcPurchaseBuyerNotificationActionDataToJSON(value?: UsdcPurchaseBuyerNotificationActionData | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'content_type': value.contentType, 'buyer_user_id': value.buyerUserId, 'seller_user_id': value.sellerUserId, 'amount': value.amount, 'extra_amount': value.extraAmount, 'content_id': value.contentId, }; }