All files / src/suppliers SupplierInnovatingScience.ts

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

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 34 351x   1x         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 Aldon Innovating Science (via Amazon marketplace)
 *
 * {@link https://www.amazon.com/stores/InnovatingScience/page/7D52B12B-90B5-4526-9355-D3F6B80B2E9D| Aldon Innovating Science Amazon Listings}
 * @source
 */
export class SupplierInnovatingScience extends SupplierBaseAmazon implements ISupplier {
  // Name of supplier (for display purposes)
  public static readonly supplierName: string = 'Innovating Science';
 
  // Shipping scope for HbarSci
  public static readonly shipping: ShippingRange = 'international';
 
  // The country code of the supplier.
  public static readonly country: CountryCode = 'US';
 
  // Prefix to add to the query (ie: brand name or seller name)
  protected readonly queryPrefix: string = 'Aldon';
 
  // The payment methods accepted by the supplier.
  public static readonly paymentMethods: PaymentMethod[] = ['mastercard', 'visa'];
 
  // 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;
 
  // Terms that much be found in the listing (one of these terms must be found)
  protected termsFoundInListing: string[] = ['innovating science', 'aldon'];
 
  // This should select Innovating Science as the "Brand" in the search query
  protected extraParams: string = 'rh=p_123:157164';
}