picnic-api
Version:
Unofficial wrapper for the API of the online supermarket Picnic
86 lines • 2.23 kB
TypeScript
import { OrderLine } from "../cart/types";
export type BankInformation = {
bank_id: string;
name: string;
};
export type AvailablePaymentMethod = {
available_banks?: BankInformation[];
payment_method: string;
};
export type PaymentMethodBrand = {
brand: string;
display_name: string;
icon_url: string;
};
export type PaymentMethod = {
brands: PaymentMethodBrand[];
data: object;
display_name: string;
icon_url: string;
payment_method: string;
visibility: string;
visibility_reason: null | string;
};
export type StoredPaymentOption = {
account: string | null;
brand: string;
display_name: string;
icon_url: string;
id: string;
payment_method: string;
};
export type PaymentProfile = {
available_payment_method_item: any | null;
available_payment_methods: AvailablePaymentMethod[];
checkout_banner: any | null;
payment_methods: PaymentMethod[];
preferred_payment_option_id: string;
stored_payment_options: StoredPaymentOption[];
};
export type WalletTransactionsInput = {
page_number: number;
};
export type WalletTransaction = {
account: string;
amount_in_cents: number;
brand: string;
display_name: string;
domains: string[];
icon_url: string;
id: string;
status: string;
timestamp: number;
transaction_method: string;
transaction_type: string;
};
export type ReturnedContainer = {
localized_name: string;
price: number;
quantity: number;
type: string;
};
export type Deposit = {
count: number;
type: string;
value: number;
};
export type WalletTransactionDetails = {
amount_in_cents: number;
article_issue_refunds: any[];
debt_resolution: any | null;
delivery_debt: any | null;
delivery_id: string;
deposits: Deposit[];
fees: any[];
payment_execution_timestamp: number;
payment_method_icon_url: string;
payment_option_account: string;
payment_option_display_name: string;
refunded_items: any[];
returned_containers: ReturnedContainer[];
shop_items: OrderLine[];
transaction_method: string;
transaction_status: string;
transaction_type: string;
};
//# sourceMappingURL=types.d.ts.map