Skip to content

Commit 2a686ae

Browse files
committed
💰 Changed model for currency property
1 parent bc61ad6 commit 2a686ae

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

projects/pixel/src/lib/pixel.models.ts

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export interface PixelEventProperties {
3232
*/
3333
contents?: object[];
3434

35-
/** The currency for the `value` specified. */
36-
currency?: string;
37-
3835
/**
3936
* Used with `InitiateCheckout` event.
4037
* The number of items when checkout was initiated.
@@ -55,4 +52,30 @@ export interface PixelEventProperties {
5552

5653
/** The value of a user performing this event to the business. */
5754
value?: number;
55+
56+
/**
57+
* The currency for the `value` specified.
58+
* @see {@link https://developers.facebook.com/docs/marketing-api/currencies}
59+
*/
60+
currency?:
61+
'AED' | 'ARS' | 'AUD' |
62+
'BDT' | 'BOB' | 'BRL' |
63+
'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CZK' |
64+
'DKK' | 'DZD' |
65+
'EGP' | 'EUR' |
66+
'GBP' | 'GTQ' |
67+
'HKD' | 'HNL' | 'HUF' |
68+
'IDR' | 'ILS' | 'INR' | 'ISK' |
69+
'JPY' |
70+
'KES' | 'KRW' |
71+
'MOP' | 'MXN' | 'MYR' |
72+
'NGN' | 'NIO' | 'NOK' | 'NZD' |
73+
'PEN' | 'PHP' | 'PKR' | 'PLN' | 'PYG' |
74+
'QAR' |
75+
'RON' | 'RUB' |
76+
'SAR' | 'SEK' | 'SGD' |
77+
'THB' | 'TRY' | 'TWD' |
78+
'USD' | 'UYU' |
79+
'VEF' | 'VND' |
80+
'ZAR';
5881
}

0 commit comments

Comments
 (0)