@@ 130-145 (lines=16) @@ | ||
127 | * @since 3.0.0 |
|
128 | * @return array |
|
129 | */ |
|
130 | public function get_data() { |
|
131 | return array_merge( |
|
132 | array( |
|
133 | 'id' => $this->get_id(), |
|
134 | ), |
|
135 | $this->data, |
|
136 | array( |
|
137 | 'meta_data' => $this->get_meta_data(), |
|
138 | 'line_items' => $this->get_items( 'line_item' ), |
|
139 | 'tax_lines' => $this->get_items( 'tax' ), |
|
140 | 'shipping_lines' => $this->get_items( 'shipping' ), |
|
141 | 'fee_lines' => $this->get_items( 'fee' ), |
|
142 | 'coupon_lines' => $this->get_items( 'coupon' ), |
|
143 | ) |
|
144 | ); |
|
145 | } |
|
146 | ||
147 | /* |
|
148 | |-------------------------------------------------------------------------- |
@@ 403-419 (lines=17) @@ | ||
400 | * @since 3.0.0 |
|
401 | * @return array |
|
402 | */ |
|
403 | public function get_data() { |
|
404 | return array_merge( |
|
405 | array( |
|
406 | 'id' => $this->get_id(), |
|
407 | ), |
|
408 | $this->data, |
|
409 | array( |
|
410 | 'number' => $this->get_order_number(), |
|
411 | 'meta_data' => $this->get_meta_data(), |
|
412 | 'line_items' => $this->get_items( 'line_item' ), |
|
413 | 'tax_lines' => $this->get_items( 'tax' ), |
|
414 | 'shipping_lines' => $this->get_items( 'shipping' ), |
|
415 | 'fee_lines' => $this->get_items( 'fee' ), |
|
416 | 'coupon_lines' => $this->get_items( 'coupon' ), |
|
417 | ) |
|
418 | ); |
|
419 | } |
|
420 | ||
421 | /** |
|
422 | * Expands the shipping and billing information in the changes array. |