/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, object, optional, Schema } from '../schema.js'; import { DisputeCategory, disputeCategorySchema } from './disputeCategory.js'; import { SellerProtectionStatus, sellerProtectionStatusSchema, } from './sellerProtectionStatus.js'; /** The level of protection offered as defined by [PayPal Seller Protection for Merchants](https://www.paypal.com/us/webapps/mpp/security/seller-protection). */ export interface SellerProtection { /** Indicates whether the transaction is eligible for seller protection. For information, see [PayPal Seller Protection for Merchants](https://www.paypal.com/us/webapps/mpp/security/seller-protection). */ status?: SellerProtectionStatus; /** An array of conditions that are covered for the transaction. */ disputeCategories?: DisputeCategory[]; } export const sellerProtectionSchema: Schema = object({ status: ['status', optional(sellerProtectionStatusSchema)], disputeCategories: [ 'dispute_categories', optional(array(disputeCategorySchema)), ], });