Skip to content

Commit

Permalink
feat: added format to DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRill00 committed Feb 28, 2024
1 parent 4c2996b commit 64ec3ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/models/Batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { PaginatedResponse } from "./PaginatedResponse";
import { Order } from "./Order";
import { Address } from "./Address";
import { IOrder } from "./_interfaces/IOrder";
import { Format } from "src/enums/Format";

export type CreateBatch = {
name: string;
Expand Down Expand Up @@ -51,6 +52,10 @@ export class Batch {
return this._data.finish as Finish;
}

public get format(): Format {
return this._data.format as Format;
}

public get isBillable(): boolean {
return this._data.isBillable;
}
Expand Down
1 change: 1 addition & 0 deletions src/models/_interfaces/IBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type IBatch = {
name: string;
billingId: string;
finish: string;
format: string;
isBillable: boolean;
templateId: string;
estimatedPrice: number;
Expand Down

0 comments on commit 64ec3ad

Please sign in to comment.