Skip to content

Commit 4da67af

Browse files
authored
add ITippingConfig for tip eligible amounts (#54)
1 parent c3999cc commit 4da67af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

types/terminal.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ export interface ICollectConfig {
9494
// Bypass tipping selection if it would have otherwise been shown.
9595
// For more information, see the official Stripe docs: [On Reader Tipping](https://stripe.com/docs/terminal/features/collecting-tips/on-reader)
9696
skip_tipping?: boolean | null;
97+
tipping?: ITippingConfig | null;
98+
}
99+
100+
// Contains per-transaction configuration information relevant to collecting tips
101+
export interface ITippingConfig {
102+
// Calculate percentage-based tips based on this amount.
103+
// For more information, see the official Stripe docs: [On Reader Tipping](https://stripe.com/docs/terminal/features/collecting-tips/on-reader)
104+
eligible_amount?: number | null;
97105
}
98106

99107
export declare type ConnectOptions = Pick<

0 commit comments

Comments
 (0)