Add header
This commit is contained in:
parent
b0acee7301
commit
a23fd479b3
|
|
@ -162,7 +162,7 @@ Map<String, String> _getHeaders(String url, String token,
|
|||
secret = Config.API_SECRET;
|
||||
}
|
||||
final headers = {
|
||||
//'X-CLIENT-VERSION': kClientVersion,
|
||||
'X-CLIENT-VERSION': kClientVersion,
|
||||
'X-API-SECRET': secret,
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'auto_bill_enabled': 'Auto Bill Enabled',
|
||||
'total_taxes': 'Total Taxes',
|
||||
'line_taxes': 'Line Taxes',
|
||||
'total_fields': 'Total Fields',
|
||||
|
|
@ -4598,6 +4599,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
|
||||
String get lineTaxes => _localizedValues[localeCode]['line_taxes'] ?? '';
|
||||
|
||||
String get autoBillEnabled =>
|
||||
_localizedValues[localeCode]['auto_bill_enabled'] ?? '';
|
||||
|
||||
String lookup(String key) {
|
||||
final lookupKey = toSnakeCase(key);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue