'42', 'currency' => Currency_Code::UNITED_STATES_DOLLAR, 'subtotal' => 0, 'line_items' => [ [ 'name' => 'Sample', 'quantity' => 1, 'subtotal' => 0, 'product' => [ 'price' => 0, 'regular_price' => 1, 'id' => 'sample', ], ], [ 'name' => 'Sample', 'quantity' => 1, 'subtotal' => 0, 'product' => [ 'price' => 0, 'regular_price' => 1, 'id' => 'sample', ], ], ], 'coupon_lines' => [ [ 'code' => 'DISCOUNT', 'description' => 'sample', 'discount' => 0, ], ], 'tax_lines' => [ [ 'rate_percent' => 0, 'tax_total' => '0', ], ], 'total' => 0, 'shipping_tax' => 0, 'total_fees' => 0, ]; /** * __construct */ public function __construct() { // noop. } /** * Returns order data * * @return array */ public function get_data(): array { return self::PREVIEW_RECEIPT_ORDER_DATA; } }