PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.0.4
Pay with Vipps and MobilePay for WooCommerce v6.0.4
6.2.3 6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 5.4.1 5.4.0 All 185 releases
woo-vipps / recurring / includes / models / WC_Vipps_Checkout_Session_Transaction_Order_Summary.php

WC_Vipps_Checkout_Session_Transaction_Order_Summary.php in Pay with Vipps and MobilePay for WooCommerce 6.0.4, at recurring/includes/models/WC_Vipps_Checkout_Session_Transaction_Order_Summary.php

38 lines 984 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 class WC_Vipps_Checkout_Session_Transaction_Order_Summary extends WC_Vipps_Model {
6 protected array $required_fields = [
7 "order_lines",
8 "order_bottom_line"
9 ];
10
11 public ?array $order_lines = null;
12 public ?WC_Vipps_Checkout_Session_Transaction_Order_Summary_Bottom_Line $order_bottom_line = null;
13
14 public function set_order_lines( array $order_lines ): self {
15 $this->order_lines = $order_lines;
16
17 return $this;
18 }
19
20 public function set_order_bottom_line( $order_bottom_line ): self {
21 return $this->_set_value( "order_bottom_line", $order_bottom_line, WC_Vipps_Checkout_Session_Transaction_Order_Summary_Bottom_Line::class );
22 }
23
24 /**
25 * @throws WC_Vipps_Recurring_Missing_Value_Exception
26 */
27 public function to_array( bool $check_required = false ): array {
28 if ( $check_required ) {
29 $this->check_required();
30 }
31
32 return [
33 "orderLines" => $this->order_lines,
34 "orderBottomLine" => $this->order_bottom_line,
35 ];
36 }
37 }
38