New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@heseya/store-core

Package Overview
Dependencies
Maintainers
1
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heseya/store-core - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

36

dist/interfaces/Order.d.ts

@@ -0,6 +1,40 @@

import { DiscountCode } from '.';
export interface OrderStatus {
id: string;
name: string;
description: string;
color: string;
cancel: boolean;
}
export interface Address {
id?: string;
address: string;
city: string;
country: string;
country_name: string;
name: string;
phone: string;
vat?: string;
zip: string;
}
export interface Order {
id: string;
code: string;
comment?: string;
created_at: string;
currency: string;
delivery_address: Address;
discounts: DiscountCode[];
email: string;
invoice_address: Address;
payable: boolean;
payed: boolean;
shipping_method_id: string;
payments: any[];
products: any[];
shipping_method: any;
shipping_number?: string;
shipping_price: number;
status: OrderStatus;
summary: number;
summary_paid: number;
}
export interface PaymentMethod {
id: string;
alias: string;
name: string;
public: boolean;
}

@@ -19,2 +19,4 @@ import { Schema } from './Schema';

description_html: string;
description_md: string;
meta_description: string;
public: boolean;

@@ -21,0 +23,0 @@ visible: boolean;

2

package.json
{
"name": "@heseya/store-core",
"version": "0.2.9",
"version": "0.2.10",
"author": {

@@ -5,0 +5,0 @@ "name": "Heseya"

@@ -0,6 +1,43 @@

import { DiscountCode } from '.'
export interface OrderStatus {
id: string
name: string
description: string
color: string
cancel: boolean
}
export interface Address {
id?: string
address: string
city: string
country: string
country_name: string
name: string
phone: string
vat?: string
zip: string
}
export interface Order {
id: string
code: string
comment?: string
created_at: string
currency: string
delivery_address: Address
discounts: DiscountCode[]
email: string
invoice_address: Address
payable: boolean
payed: boolean
shipping_method_id: string
payments: any[] // TODO: Payment[]
products: any[] // TODO: CartItem[]
shipping_method: any // TODO: ShippingMethod
shipping_number?: string
shipping_price: number
status: OrderStatus
summary: number
summary_paid: number
}
export interface PaymentMethod {
id: string
alias: string
name: string
public: boolean
}

@@ -22,2 +22,4 @@ import { Schema } from './Schema'

description_html: string
description_md: string
meta_description: string
public: boolean

@@ -24,0 +26,0 @@ visible: boolean

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc