1
0
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:
David Bomba 2019-12-17 21:57:15 +11:00 committed by GitHub
parent f6f5b89af9
commit b6cb0172c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View File

@ -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 = [

View File

@ -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',
];
/**

View File

@ -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 ?: '',
];
}

View File

@ -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 ?: '',
];
}