| @@ 353-365 (lines=13) @@ | ||
| 350 | * @since 2.7.0 |
|
| 351 | * @return array |
|
| 352 | */ |
|
| 353 | public function get_data() { |
|
| 354 | return array_merge( |
|
| 355 | $this->_data, |
|
| 356 | array( |
|
| 357 | 'meta_data' => $this->get_meta_data(), |
|
| 358 | 'line_items' => $this->get_items( 'line_item' ), |
|
| 359 | 'tax_lines' => $this->get_items( 'tax' ), |
|
| 360 | 'shipping_lines' => $this->get_items( 'shipping' ), |
|
| 361 | 'fee_lines' => $this->get_items( 'fee' ), |
|
| 362 | 'coupon_lines' => $this->get_items( 'coupon' ), |
|
| 363 | ) |
|
| 364 | ); |
|
| 365 | } |
|
| 366 | ||
| 367 | /** |
|
| 368 | * Get order ID. |
|
| @@ 471-484 (lines=14) @@ | ||
| 468 | * @since 2.7.0 |
|
| 469 | * @return array |
|
| 470 | */ |
|
| 471 | public function get_data() { |
|
| 472 | return array_merge( |
|
| 473 | $this->_data, |
|
| 474 | array( |
|
| 475 | 'number' => $this->get_order_number(), |
|
| 476 | 'meta_data' => $this->get_meta_data(), |
|
| 477 | 'line_items' => $this->get_items( 'line_item' ), |
|
| 478 | 'tax_lines' => $this->get_items( 'tax' ), |
|
| 479 | 'shipping_lines' => $this->get_items( 'shipping' ), |
|
| 480 | 'fee_lines' => $this->get_items( 'fee' ), |
|
| 481 | 'coupon_lines' => $this->get_items( 'coupon' ), |
|
| 482 | ) |
|
| 483 | ); |
|
| 484 | } |
|
| 485 | ||
| 486 | /** |
|
| 487 | * get_order_number function. |
|