This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ "Distrito Federal", "DIF" ], | |
[ "Aguascalientes", "AGU" ], | |
[ "Baja California", "BCN" ], | |
[ "Baja California Sur", "BCS" ], | |
[ "Campeche", "CAM" ], | |
[ "Chiapas", "CHP" ], | |
[ "Chihuahua", "CHH" ], | |
[ "Coahuila", "COA" ], | |
[ "Colima", "COL" ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
["Auvergne-Rhône-Alpes", "ARA"], | |
["Bourgogne-Franche-Comté", "BFC"], | |
["Brittany", "BRE"], | |
["Centre", "CVL"], | |
["Corsica", "COR"], | |
["Grand Est", "GES"], | |
["Hauts-de-France", "HDF"], | |
["Île-de-France", "IDF"], | |
["Normandy", "NOR"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stripeWebhooks = [ | |
"account.updated", | |
"account.application.authorized", | |
"attributesaccount.application.deauthorized", | |
"attributesaccount.external_account.created", | |
"account.external_account.deleted", | |
"account.external_account.updated", | |
"application_fee.created", | |
"application_fee.refunded", | |
"application_fee.refund.updated", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
['Baden-Württemberg', 'BW'], | |
['Bavaria', 'BY'], | |
['Berlin', 'BE'], | |
['Brandenburg', 'BB'], | |
['Bremen', 'HB'], | |
['Hamburg', 'HH'], | |
['Hesse', 'HE'], | |
['Lower Saxony', 'NI'], | |
['Mecklenburg-Vorpommern', 'MV'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
['ENG', 'England'], | |
['NIR', 'Northern Ireland'], | |
['SCT', 'Scotland'], | |
['WLS', 'Wales'] | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
['Australian Capital Territory', 'ACT'], | |
['Jervis Bay Territory', 'JBT'], | |
['New South Wales', 'NSW'], | |
['Northern Territory', 'NT'], | |
['Queensland', 'QLD'], | |
['South Australia', 'SA'], | |
['Victoria', 'VIC'], | |
['Tasmania', 'TAS'], | |
['Western Australia', 'WA'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
['ALB', 'Alberta'], | |
['BC', 'British Columbia'], | |
['LAB', 'Labrador'], | |
['MAN', 'Manitoba'], | |
['NB', 'New Brunswick'], | |
['NFD', 'Newfoundland'], | |
['NFD', 'Newfoundland & Labrador'], | |
['NS', 'Nova Scotia'], | |
['NU', 'Nunavut'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const statesArray = [ | |
{ name: 'Alabama', value: 'AL', type: 'state' }, | |
{ name: 'Alaska', value: 'AK', type: 'state' }, | |
{ name: 'American Samoa', value: 'AS', type: 'territory' }, | |
{ name: 'Arizona', value: 'AZ', type: 'state' }, | |
{ name: 'Arkansas', value: 'AR', type: 'state' }, | |
{ name: 'California', value: 'CA', type: 'state' }, | |
{ name: 'Colorado', value: 'CO', type: 'state' }, | |
{ name: 'Connecticut', value: 'CT', type: 'state' }, | |
{ name: 'Delaware', value: 'DE', type: 'state' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isAsyncCallback = (func: Function): boolean => { | |
return ( | |
func.constructor.name == 'AsyncFunction' || | |
types.isAsyncFunction(func) || | |
func.toString().indexOf('__awaiter(') > 0 | |
); | |
}; |