From 54b241e76bdbef75f9cdd5b084001053dbf00485 Mon Sep 17 00:00:00 2001 From: Aleksei Tsikov Date: Fri, 12 Jan 2024 17:46:25 +0000 Subject: [PATCH] Allow more currencies in Revolut Pay button cashback message --- src/types.ts | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 151e73c..d4c1d48 100644 --- a/src/types.ts +++ b/src/types.ts @@ -344,10 +344,40 @@ export type FieldStatus = Omit, 'default'> export type FieldStyles = Partial>> export type FieldClasses = Partial> +type RevolutPayButtonCashbackCurrency = + | 'AED' + | 'AUD' + | 'BGN' + | 'CAD' + | 'CHF' + | 'CZK' + | 'DKK' + | 'EUR' + | 'GBP' + | 'HKD' + | 'HUF' + | 'ILS' + | 'JPY' + | 'MXN' + | 'NOK' + | 'NZD' + | 'PLN' + | 'QAR' + | 'RON' + | 'RUB' + | 'SAR' + | 'SEK' + | 'SGD' + | 'THB' + | 'TRY' + | 'USD' + | 'ZAR' + type RevolutPayButtonStyleOptions = { cashback: boolean - cashbackAmount: 1000 | 2000 - cashbackCurrency: 'USD' | 'GBP' | 'EUR' + /** @deprecated */ + cashbackAmount?: 1000 | 2000 + cashbackCurrency: RevolutPayButtonCashbackCurrency } export type ButtonStyleOptions = {