Skip to content

Commit

Permalink
Insurance EndDate ⇒ ExpiryDate
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAdamek committed Sep 4, 2024
1 parent 8a99ee9 commit 424b0e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tigerbay",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"description": "API Client library for TigerBay",
"main": "lib/client.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions src/models/passengers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class PassengerAPI extends APIGroup {
return (await this.axios.get(`${this.path}/insurances`)).data
}

public async addInsurance(insurance: Omit<Insurance, 'Id'>): Promise<Insurance> {
public async addInsurance(insurance: Omit<Omit<Insurance, 'Id'>, 'CreatedDate'>): Promise<Insurance> {
return (await this.axios.post(`${this.path}/insurances`, insurance)).data
}

Expand Down Expand Up @@ -110,7 +110,7 @@ export interface Insurance {
PolicyNumber: string;
Description: string;
StartDate: string | Date;
EndDate: string | Date;
ExpiryDate: string | Date;
CreatedDate: string | Date;
TermsAccepted: boolean;
IsArchived: boolean;
Expand Down

0 comments on commit 424b0e5

Please sign in to comment.