-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to use new private_lastPaymentMethod
- Loading branch information
Showing
6 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
/** | ||
* The new lastPaymentMethod object | ||
*/ | ||
type LastPaymentMethodType = { | ||
/** The default last payment method, this one hold the existing data of the old lastPaymentMethod value which is string */ | ||
DEFAULT: string; | ||
/** The lastPaymentMethod of an IOU */ | ||
IOU: string; | ||
/** The lastPaymentMethod of an Expense */ | ||
EXPENSE: string; | ||
/** The lastPaymentMethod of an Invoice */ | ||
INVOICE: string; | ||
}; | ||
|
||
/** Record of last payment methods, indexed by policy id */ | ||
type LastPaymentMethod = Record<string, string>; | ||
type LastPaymentMethod = Record<string, LastPaymentMethodType | string>; | ||
|
||
export default LastPaymentMethod; | ||
export type {LastPaymentMethodType, LastPaymentMethod}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters