mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
♻️ Use a shorter attribute name for send-only
This commit is contained in:
parent
54e2258d62
commit
4fa6c78f83
2 changed files with 19 additions and 19 deletions
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue