All files / src/suppliers SupplierHimedia.ts

100% Statements 21/21
100% Branches 0/0
100% Functions 0/0
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 341x   1x         1x 1x 1x 1x   1x 1x   1x 1x   1x 1x   1x 1x   1x   1x 1x 1x   1x 1x 1x  
import { SupplierBaseAmazon } from './SupplierBaseAmazon';
 
/**
 * Supplier for Himedia (via Amazon marketplace)
 *
 * {@link https://www.amazon.com/s?k=Himedia | Himedias Amazon Listings}
 * @source
 */
export class SupplierHimedia extends SupplierBaseAmazon implements ISupplier {
  // Name of supplier (for display purposes)
  public static readonly supplierName: string = 'Himedia';
 
  // Shipping scope for HbarSci
  public static readonly shipping: ShippingRange = 'international';
 
  // The country code of the supplier.
  public static readonly country: CountryCode = 'IN';
 
  // Prefix to add to the query (ie: brand name or seller name)
  protected readonly queryPrefix: string = 'himedia';
 
  // The payment methods accepted by the supplier.
  public static readonly paymentMethods: PaymentMethod[] = ['amazononly'];
 
  public readonly amazonStoreURL: string = 'https://www.amazon.com/s?k=HiMedia';
 
  // Pure-search supplier: the initial search returns every field and
  // getProductData is a passthrough, so there's no per-product detail to cache.
  protected readonly skipProductDetailCache: boolean = true;
 
  // This should select Himedia as the "Brand" in the search query
  protected extraParams: string = 'rh=p_123:569363';
}