"typeId" fields replaced by "databaseId".

This commit is contained in:
Geoff Taylor
2020-09-16 16:32:14 -04:00
parent 589cede136
commit 449d3b1674
43 changed files with 434 additions and 434 deletions
+2 -2
View File
@@ -65,8 +65,8 @@ class Customer extends Model {
? Relay::toGlobalId( 'customer', $this->data->get_id() )
: 'new_customer';
},
'customerId' => function() {
return ( ! empty( $this->data->get_id() ) ) ? $this->data->get_id() : null;
'databaseId' => function() {
return $this->ID;
},
'isVatExempt' => function() {
return ! is_null( $this->data->get_is_vat_exempt() ) ? $this->data->get_is_vat_exempt() : null;