All files / src/Batch FapiGetShippingMethodListBatch.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6

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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 528x 8x   8x   8x     8x       2x                                                                              
import { NAME as APPLICATION_NAME } from '../FapiApplication';
import AFapiListBatch from './AFapiListBatch';
 
export const NAME = `${APPLICATION_NAME}-get-shipping-method-list-batch`;
 
export default class FapiGetShippingMethodListBatch extends AFapiListBatch<unknown, IOutput> {
 
    public getName(): string {
        return NAME;
    }
 
    protected getUrl(): string {
        return 'shipping-methods';
    }
 
}
 
export interface IOutput {
    /* eslint-disable @typescript-eslint/naming-convention */
    id: number;
    user_id: number;
    name: string;
    type: string;
    subtype: string;
    description: string;
    address_prices: {
        address: {
            country_code: string;
        };
        prices: {
            currency_code: string;
            price: number;
        }[];
    }[];
    free_of_charges: {
        price: number;
        currency_code: string;
    }[];
    meta_data: {
        carrier_id?: number;
        is_disable_repayment: boolean;
        accounting_code: string;
        pohoda_accounting: string;
        pohoda_centre: string;
        pohoda_store: string;
        pohoda_stock_item: string;
    };
    including_vat: boolean;
    deleted: boolean;
    /* eslint-enable @typescript-eslint/naming-convention */
}