@ikas/storefront 0.1.24-alpha.5 → 0.1.24-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ export declare class IkasCart {
5
5
  updatedAt: string;
6
6
  dueDate?: string | null;
7
7
  currencyCode: string;
8
+ currencySymbol: string;
8
9
  customerId?: string | null;
9
10
  itemCount: number;
10
11
  items: IkasOrderLineItem[];
@@ -1,7 +1,6 @@
1
1
  import { IkasOrderAddress } from "./address/index";
2
2
  import { IkasOrderShippingLine } from "./shipping-line/index";
3
3
  import { IkasOrderLineItem } from "./line-item/index";
4
- import { IkasCustomerStore } from "../../../store/customer";
5
4
  export declare class IkasOrder {
6
5
  id: string;
7
6
  orderNumber: string;
@@ -9,6 +8,7 @@ export declare class IkasOrder {
9
8
  totalPrice: number | null;
10
9
  totalFinalPrice: number | null;
11
10
  currencyCode: string;
11
+ currencySymbol: string;
12
12
  orderedAt: number;
13
13
  cancelledAt: number | null;
14
14
  status: IkasOrderStatus;
@@ -25,7 +25,6 @@ export declare class IkasOrder {
25
25
  taxLines: IkasOrderTaxLine[] | null;
26
26
  orderPackages: IkasOrderPackage[] | null;
27
27
  currencyRates: IkasOrderCurrencyRate[] | null;
28
- customerStore: IkasCustomerStore;
29
28
  private _refundSettings;
30
29
  constructor(data: IkasOrder);
31
30
  get refundableItems(): IkasOrderLineItem[];
@@ -7,6 +7,7 @@ export declare class IkasOrderLineItem {
7
7
  orderedAt: number;
8
8
  deleted: boolean;
9
9
  currencyCode: string;
10
+ currencySymbol: string;
10
11
  discount?: IkasOrderLineDiscount | null;
11
12
  discountPrice?: number | null;
12
13
  finalPrice: number;
@@ -3,6 +3,7 @@ export declare class IkasOrderTransaction {
3
3
  checkoutId: string | null;
4
4
  createdAt: number | null;
5
5
  currencyCode: string | null;
6
+ currencySymbol: string | null;
6
7
  customerId: string | null;
7
8
  error: IkasTransactionError | null;
8
9
  id: string | null;
@@ -2,6 +2,7 @@ export declare class IkasProductPrice {
2
2
  sellPrice: number;
3
3
  discountPrice: number | null;
4
4
  currency: string;
5
+ currencySymbol: string;
5
6
  constructor(data?: Partial<IkasProductPrice>);
6
7
  get finalPrice(): number;
7
8
  get hasDiscount(): boolean;
@@ -1 +1,7 @@
1
+ /**
2
+ *
3
+ * @param price Price to format
4
+ * @param currency Code for the currency, USD, EUR, TRY, etc..
5
+ */
1
6
  export declare const formatMoney: (price: number, currency: string) => string;
7
+ export declare function getCurrencySymbol(currencyCode: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.1.24-alpha.5",
3
+ "version": "0.1.24-alpha.7",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",