mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add custom values to user and companygateway transformer (#3157)
This commit is contained in:
parent
f6f5b89af9
commit
b6cb0172c3
@ -37,6 +37,10 @@ class CompanyGateway extends BaseModel
|
||||
'update_details',
|
||||
'config',
|
||||
'fees_and_limits',
|
||||
'custom_value1',
|
||||
'custom_value2',
|
||||
'custom_value3',
|
||||
'custom_value4',
|
||||
];
|
||||
|
||||
public static $credit_cards = [
|
||||
|
@ -73,6 +73,10 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
'oauth_user_id',
|
||||
'oauth_provider_id',
|
||||
'oauth_user_token',
|
||||
'custom_value1',
|
||||
'custom_value2',
|
||||
'custom_value3',
|
||||
'custom_value4',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -55,6 +55,10 @@ class CompanyGatewayTransformer extends EntityTransformer
|
||||
'fees_and_limits' => $company_gateway->fees_and_limits ?: '',
|
||||
'updated_at' => $company_gateway->updated_at,
|
||||
'deleted_at' => $company_gateway->deleted_at,
|
||||
'custom_value1' => $company_gateway->custom_value1 ?: '',
|
||||
'custom_value2' => $company_gateway->custom_value2 ?: '',
|
||||
'custom_value3' => $company_gateway->custom_value3 ?: '',
|
||||
'custom_value4' => $company_gateway->custom_value4 ?: '',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,10 @@ class UserTransformer extends EntityTransformer
|
||||
'phone' => $user->phone ?: '',
|
||||
'email_verified_at' => $user->getEmailVerifiedAt(),
|
||||
'signature' => $user->signature ?: '',
|
||||
'custom_value1' => $user->custom_value1 ?: '',
|
||||
'custom_value2' => $user->custom_value2 ?: '',
|
||||
'custom_value3' => $user->custom_value3 ?: '',
|
||||
'custom_value4' => $user->custom_value4 ?: '',
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user