♻️ Use a shorter attribute name for send-only

This commit is contained in:
Philipp Stracker 2025-01-10 19:15:48 +01:00
parent 54e2258d62
commit 4fa6c78f83
No known key found for this signature in database
2 changed files with 19 additions and 19 deletions

View file

@ -53,7 +53,7 @@ class GeneralSettings extends AbstractDataModel {
$this->woo_settings['country'] = $country;
$this->woo_settings['currency'] = $currency;
$this->data['is_current_country_send_only'] = $is_send_only_country;
$this->data['is_send_only_country'] = $is_send_only_country;
$this->data['merchant_connected'] = $this->is_merchant_connected();
}
@ -66,7 +66,7 @@ class GeneralSettings extends AbstractDataModel {
return array(
'use_sandbox' => false, // UI state, not a connection detail.
'use_manual_connection' => false, // UI state, not a connection detail.
'is_current_country_send_only' => false, // Read-only flag.
'is_send_only_country' => false, // Read-only flag.
// Details about connected merchant account.
'merchant_connected' => false,

View file

@ -79,8 +79,8 @@ class CommonRestEndpoint extends RestEndpoint {
'client_secret' => array(
'js_name' => 'clientSecret',
),
'is_current_country_send_only' => array(
'js_name' => 'isCurrentCountrySendOnly',
'is_send_only_country' => array(
'js_name' => 'isSendOnlyCountry',
),
);