UNPKG

bananas-commerce

Version:

A client for bananas-commerce with support for TypeScript

20 lines (19 loc) 956 B
import { CamelCasedObjectKeys } from "../util/casedObjectKeys.js"; import { components } from "./openapi.js"; /** The identifier of the site that data is retrieved and requests are made for. */ export type SiteCode = string; /** The country code that data is retrieved and requests are made for. */ export type CountryCode = NonNullable<components["schemas"]["ACOCheckoutRequest"]["country_code"]>; /** CustomerAddress */ export type CustomerAddressModel = CamelCasedObjectKeys<components["schemas"]["CustomerAddressModel"]>; export interface SiteArgs { /** The identifier of the site that data is retrieved and requests are made for. */ siteCode?: SiteCode; } export interface CountryCodeArgs { /** The country code that data is retrieved and requests are made for. */ countryCode?: CountryCode; } /** Default arguments for `bananas-commerce` endpoints. */ export interface BananasCommerceDefaultArgs extends SiteArgs, CountryCodeArgs { }