UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree Storefront API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on.

20 lines (19 loc) 579 B
import { JsonApiDocument, JsonApiListResponse } from '@spree/core-api-v2-sdk'; import { ResultResponse } from '@spree/core-api-v2-sdk'; export interface PaymentMethodAttr extends JsonApiDocument { type: string; id: string; attributes: { type: string; name: string; description: string; preferences: { [key: string]: string; }; }; } export interface IPaymentMethods extends JsonApiListResponse { data: PaymentMethodAttr[]; } export interface IPaymentMethodsResult extends ResultResponse<IPaymentMethods> { }