ChemPal Documentation - v1.7.0
    Preparing search index...

    Interface ISupplier

    Interface defining the required properties for a supplier. This ensures all suppliers have the necessary readonly properties.

    interface ISupplier {
        supplierName: string;
        baseURL: string;
        shipping: ShippingRange;
        country: valueof;
        paymentMethods: PaymentMethod[];
        ebayStoreURL?: string;
        amazonStoreURL?: string;
    }

    Implemented by

    Index

    Properties

    supplierName: string

    The name of the supplier

    baseURL: string

    The base URL for the supplier

    shipping: ShippingRange

    The shipping scope of the supplier

    country: valueof

    The country code of the supplier

    paymentMethods: PaymentMethod[]

    The payment methods accepted by the supplier

    ebayStoreURL?: string

    The supplier's eBay storefront. Required when paymentMethods includes "ebayonly" — TypeScript can't make a property conditional on an array's contents, so the implication is enforced by src/suppliers/__tests__/storeOnlyPaymentMethods.test.ts.

    amazonStoreURL?: string

    The supplier's Amazon storefront. Required when paymentMethods includes "amazononly", enforced the same way as ISupplier.ebayStoreURL.