import { LineItem } from '../../../models';
import {
  CheckboxField,
  CurrencyField,
  MultiLineTextField,
  MultipleRecordLinksField,
  NumberField,
  SingleLineTextField
} from '../AirtableFields';

import {
  ShopifyObjectAirtableFields
} from './ShopifyObjectAirtableFields';

export interface LineItemAirtableFields extends ShopifyObjectAirtableFields<LineItem> {
  type: LineItem['type'];
  fields: {
    id: SingleLineTextField;
    order_id: SingleLineTextField;
    name: SingleLineTextField;
    order: MultipleRecordLinksField | null;
    quantity: NumberField;
    total_item_price: CurrencyField;
    properties: MultiLineTextField;
    price: CurrencyField;
    sku: SingleLineTextField;
    title: SingleLineTextField;
    total_grams: NumberField;
    variant_id: SingleLineTextField;
    variant_title: SingleLineTextField;
    vendor: SingleLineTextField;
    variant: MultipleRecordLinksField | null;
    requires_shipping: CheckboxField;
    discount_allocations_json: MultiLineTextField;
    duties_json: MultiLineTextField;
    gift_card: CheckboxField;
    grams: NumberField;
    product_id: SingleLineTextField;
    tax_lines_json: MultiLineTextField;
    taxable: CheckboxField;
    total_discount: CurrencyField;
  };
};
