Change prop naming
This commit is contained in:
parent
937652a34c
commit
a4541c8dab
|
|
@ -531,14 +531,14 @@ class CompanySettings extends BaseSettings
|
||||||
public bool $unlock_invoice_documents_after_payment = false;
|
public bool $unlock_invoice_documents_after_payment = false;
|
||||||
|
|
||||||
public string $ses_secret_key = '';
|
public string $ses_secret_key = '';
|
||||||
public string $ses_access_key_id = '';
|
public string $ses_access_key = '';
|
||||||
public string $ses_region = '';
|
public string $ses_region = '';
|
||||||
public string $ses_topic_arn = '';
|
public string $ses_topic_arn = '';
|
||||||
|
|
||||||
public static $casts = [
|
public static $casts = [
|
||||||
'ses_topic_arn' => 'string',
|
'ses_topic_arn' => 'string',
|
||||||
'ses_secret_key' => 'string',
|
'ses_secret_key' => 'string',
|
||||||
'ses_access_key_id' => 'string',
|
'ses_access_key' => 'string',
|
||||||
'ses_region' => 'string',
|
'ses_region' => 'string',
|
||||||
'unlock_invoice_documents_after_payment' => 'bool',
|
'unlock_invoice_documents_after_payment' => 'bool',
|
||||||
'preference_product_notes_for_html_view' => 'bool',
|
'preference_product_notes_for_html_view' => 'bool',
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ class UpdateCompanyRequest extends Request
|
||||||
// ];
|
// ];
|
||||||
|
|
||||||
$rules['settings.ses_secret_key'] = 'required_if:settings.email_sending_method,client_ses';
|
$rules['settings.ses_secret_key'] = 'required_if:settings.email_sending_method,client_ses';
|
||||||
$rules['settings.ses_access_key_id'] = 'required_if:settings.email_sending_method,client_ses';
|
$rules['settings.ses_access_key'] = 'required_if:settings.email_sending_method,client_ses';
|
||||||
$rules['settings.ses_region'] = 'required_if:settings.email_sending_method,client_ses';
|
$rules['settings.ses_region'] = 'required_if:settings.email_sending_method,client_ses';
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
|
|
||||||
|
|
@ -5618,7 +5618,7 @@ $lang = array(
|
||||||
'ses_topic_arn_help' => 'The SES topic (optional, only for webhook tracking)',
|
'ses_topic_arn_help' => 'The SES topic (optional, only for webhook tracking)',
|
||||||
'ses_region_help' => 'The AWS region, ie us-east-1',
|
'ses_region_help' => 'The AWS region, ie us-east-1',
|
||||||
'ses_secret_key' => 'SES Secret Key',
|
'ses_secret_key' => 'SES Secret Key',
|
||||||
'ses_access_key_id' => 'SES Access Key ID'
|
'ses_access_key' => 'SES Access Key ID'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $lang;
|
return $lang;
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,8 @@ class ClassificationTest extends TestCase
|
||||||
|
|
||||||
$this->company->settings = $settings;
|
$this->company->settings = $settings;
|
||||||
|
|
||||||
|
nlog($settings);
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue