mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +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,8 +53,8 @@ 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['merchant_connected'] = $this->is_merchant_connected();
|
||||
$this->data['is_send_only_country'] = $is_send_only_country;
|
||||
$this->data['merchant_connected'] = $this->is_merchant_connected();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,17 +64,17 @@ class GeneralSettings extends AbstractDataModel {
|
|||
*/
|
||||
protected function get_defaults() : array {
|
||||
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.
|
||||
'use_sandbox' => false, // UI state, not a connection detail.
|
||||
'use_manual_connection' => false, // UI state, not a connection detail.
|
||||
'is_send_only_country' => false, // Read-only flag.
|
||||
|
||||
// Details about connected merchant account.
|
||||
'merchant_connected' => false,
|
||||
'sandbox_merchant' => false,
|
||||
'merchant_id' => '',
|
||||
'merchant_email' => '',
|
||||
'client_id' => '',
|
||||
'client_secret' => '',
|
||||
'merchant_connected' => false,
|
||||
'sandbox_merchant' => false,
|
||||
'merchant_id' => '',
|
||||
'merchant_email' => '',
|
||||
'client_id' => '',
|
||||
'client_secret' => '',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -61,26 +61,26 @@ class CommonRestEndpoint extends RestEndpoint {
|
|||
* @var array
|
||||
*/
|
||||
private array $merchant_info_map = array(
|
||||
'merchant_connected' => array(
|
||||
'merchant_connected' => array(
|
||||
'js_name' => 'isConnected',
|
||||
),
|
||||
'sandbox_merchant' => array(
|
||||
'sandbox_merchant' => array(
|
||||
'js_name' => 'isSandbox',
|
||||
),
|
||||
'merchant_id' => array(
|
||||
'merchant_id' => array(
|
||||
'js_name' => 'id',
|
||||
),
|
||||
'merchant_email' => array(
|
||||
'merchant_email' => array(
|
||||
'js_name' => 'email',
|
||||
),
|
||||
'client_id' => array(
|
||||
'client_id' => array(
|
||||
'js_name' => 'clientId',
|
||||
),
|
||||
'client_secret' => array(
|
||||
'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