Skip to content

Commit

Permalink
modified payment-schema, customInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav2010 committed Oct 23, 2023
1 parent ac946a3 commit ef62384
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { PaymentLinks } from "razorpay/dist/types/paymentLink";
export declare enum PaymentStates {
PaymentPending = "pending",
PaymentSuccess = "success",
Expand All @@ -15,7 +14,10 @@ export interface PaymentSchema {
currency: "INR";
paymentState: PaymentStates;
paymentStateHistory: PaymentStates[];
customInfo: PaymentLinks.RazorpayPaymentLink;
customInfo?: {
name: string;
value: any;
}[];
createdAt: Date;
lastModifiedAt: Date;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { PaymentLinks } from "razorpay/dist/types/paymentLink";
export declare enum PaymentStates {
PaymentPending = "pending",
PaymentSuccess = "success",
Expand All @@ -15,7 +14,10 @@ export interface PaymentSchema {
currency: "INR";
paymentState: PaymentStates;
paymentStateHistory: PaymentStates[];
customInfo: PaymentLinks.RazorpayPaymentLink;
customInfo?: {
name: string;
value: any;
}[];
createdAt: Date;
lastModifiedAt: Date;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/interfaces/repositories/PaymentRepositoryInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface PaymentSchema {
paymentState: PaymentStates;
paymentStateHistory: PaymentStates[];

customInfo: PaymentLinks.RazorpayPaymentLink;
customInfo?: { name: string; value: any }[];

createdAt: Date;
lastModifiedAt: Date;
Expand Down

0 comments on commit ef62384

Please sign in to comment.