choco-one-click-payment 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -88,6 +88,12 @@ export interface ChocoOneClickConfig {
|
|
|
88
88
|
*/
|
|
89
89
|
onConfirmPay?: () => void;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Callback вызываемый при включении/выключении бонусов
|
|
93
|
+
* @param useBonuses - true если бонусы включены, false если выключены
|
|
94
|
+
*/
|
|
95
|
+
onAppliedBonus?: (useBonuses: boolean) => void;
|
|
96
|
+
|
|
91
97
|
/**
|
|
92
98
|
* Акцентный цвет (фон кнопки оплаты и включенного тумблера баланса)
|
|
93
99
|
* @default "#2F2F2F"
|