Skip to content

Commit

Permalink
fix(chowly-api): modified type scheduled_time to string
Browse files Browse the repository at this point in the history
  • Loading branch information
tudormd committed Jun 9, 2020
1 parent 3fe9d56 commit 4c2c891
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@goparrot/chowly-api-client",
"version": "0.0.5",
"version": "0.0.6",
"description": "Typescript library which implements Chowly API",
"engines": {
"node": ">=12"
Expand Down
11 changes: 2 additions & 9 deletions src/interface/order.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DayOfWeekEnum, ServiceTypeEnum, PaymentTypeEnum } from '../enum';
import { ITimePeriod } from './chowly.interface';
import { ServiceTypeEnum, PaymentTypeEnum } from '../enum';

export interface ICustomer {
id: string;
Expand All @@ -17,7 +16,7 @@ export interface ICustomer {

export interface IOrderInfo {
id: string;
scheduled_time?: IScheduledTime[];
scheduled_time?: string;
pickup_code?: string;
service_type: ServiceTypeEnum;
payment_is_cash: boolean;
Expand Down Expand Up @@ -58,9 +57,3 @@ export interface ICreateOrder {
items: IOrderItem[];
id?: string;
}

export interface IScheduledTime {
time_periods: ITimePeriod[];
enabled: boolean;
day_of_week: DayOfWeekEnum;
}
4 changes: 2 additions & 2 deletions src/model/create-order.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IOrderInfo, ICustomer, IOrderItem, IScheduledTime, IMod, ICreateOrder } from '../interface';
import { IOrderInfo, ICustomer, IOrderItem, IMod, ICreateOrder } from '../interface';
import { ServiceTypeEnum, PaymentTypeEnum } from '../enum';

export class Order implements ICreateOrder {
Expand All @@ -24,7 +24,7 @@ export class Customer implements ICustomer {

export class Info implements IOrderInfo {
id: string;
scheduled_time?: IScheduledTime[];
scheduled_time?: string;
pickup_code?: string;
service_type: ServiceTypeEnum;
payment_is_cash: boolean;
Expand Down

0 comments on commit 4c2c891

Please sign in to comment.