File tree Expand file tree Collapse file tree
src/interfaces/payment-stripe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ interface IPrice extends IEntity {
1414 updatedAt ?: Date ;
1515 product ?: IProduct ;
1616 metadata ?: Record < string , any > | null ;
17+ customUnitAmount ?: {
18+ enabled : boolean ;
19+ preset ?: number ;
20+ minimum ?: number ;
21+ maximum ?: number ;
22+ } ;
1723}
1824
1925export default IPrice ;
Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ interface ITransaction extends IEntity {
9898 entityId ?: string ;
9999 // Smallest currency unit amount
100100 amount ?: number ;
101- // Custom amount paid by user for PWYW transactions (in cents)
102- customAmount ?: number ;
103101 // Smallest currency unit tax
104102 tax ?: number ;
105103 // Smallest currency unit fee
Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ interface IPriceCreateInput {
44 productId : string ;
55 currency : string ;
66 userId : string ;
7- unitAmount : number ;
7+ unitAmount ? : number ; // Optional when customUnitAmount is provided
88 metadata ?: Record < string , any > ;
9+ customUnitAmount ?: {
10+ enabled : boolean ;
11+ preset ?: number ;
12+ minimum ?: number ;
13+ maximum ?: number ;
14+ } ;
915}
1016
1117interface IPriceCreateOutput {
You can’t perform that action at this time.
0 commit comments