Skip to content

Commit

Permalink
SP-731 Node.js - Review Types
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Nov 29, 2023
1 parent 845113f commit 08f59da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Model/Invoice/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface InvoiceInterface {
invoiceTime?: number;
expirationTime?: number;
currentTime?: number;
exceptionStatus?: boolean;
exceptionStatus?: boolean | string;
targetConfirmations?: number;
transactions?: InvoiceTransaction[];
refundAddresses?: unknown;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Invoice implements InvoiceInterface {
invoiceTime?: number;
expirationTime?: number;
currentTime?: number;
exceptionStatus?: boolean;
exceptionStatus?: boolean | string;
targetConfirmations?: number;
transactions?: InvoiceTransaction[];
refundAddresses?: unknown;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Invoice/Invoice.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const invoiceSchema = z.object({
invoiceTime: z.number().optional(),
expirationTime: z.number().optional(),
currentTime: z.number().optional(),
exceptionStatus: z.boolean().optional(),
exceptionStatus: z.union([z.boolean(), z.string()]).optional(),
targetConfirmations: z.number().optional(),
refundAddresses: z.unknown().optional(),
refundAddressRequestPending: z.boolean().optional(),
Expand Down

0 comments on commit 08f59da

Please sign in to comment.