src/Genesis/API/Request/Financial/Alternatives/Klarna/Item.php
public function toArray()
    {
        return [
            'name'                  => $this->name,
            'item_type'             => $this->item_type,
            'quantity'              => $this->quantity,
            'unit_price'            => CurrencyUtils::amountToExponent($this->unit_price, $this->currency),
            'tax_rate'              => CurrencyUtils::amountToExponent($this->tax_rate, $this->currency),
            'total_discount_amount' => CurrencyUtils::amountToExponent($this->total_discount_amount, $this->currency),
            'total_amount'          => CurrencyUtils::amountToExponent($this->getTotalAmount(), $this->currency),
            'total_tax_amount'      => CurrencyUtils::amountToExponent($this->getTotalTaxAmount(), $this->currency),
            'reference'             => $this->reference,
            'image_url'             => $this->image_url,
            'product_url'           => $this->product_url,
            'quantity_unit'         => $this->quantity_unit,
            'product_identifiers'   => $this->getProductIdentifiersParamsStructure(),
            'merchant_data'         => $this->getMerchantDataParamsStructure()
        ];
    }
public function toArray()
    {
        return [
            'name'                  => $this->name,
            'item_type'             => $this->item_type,
            'quantity'              => $this->quantity,
            'unit_price'            => CurrencyUtils::amountToExponent($this->unit_price, $this->currency),
            'tax_rate'              => CurrencyUtils::amountToExponent($this->tax_rate, $this->currency),
            'total_discount_amount' => CurrencyUtils::amountToExponent($this->total_discount_amount, $this->currency),
            'total_amount'          => CurrencyUtils::amountToExponent($this->getTotalAmount(), $this->currency),
            'total_tax_amount'      => CurrencyUtils::amountToExponent($this->getTotalTaxAmount(), $this->currency),
            'reference'             => $this->reference,
            'image_url'             => $this->image_url,
            'product_url'           => $this->product_url,
            'quantity_unit'         => $this->quantity_unit,
            'product_identifiers'   => $this->getProductIdentifiersParamsStructure(),
            'merchant_data'         => $this->getMerchantDataParamsStructure()
        ];
    }
public function toArray ( ) { return [ 'name' => $ this -> name , 'item_type' => $ this -> item_type , 'quantity' => $ this -> quantity , 'unit_price' => CurrencyUtils :: amountToExponent ( $ this -> unit_price , $ this -> currency ) , 'tax_rate' => CurrencyUtils :: amountToExponent ( $ this -> tax_rate , $ this -> currency ) , 'total_discount_amount' => CurrencyUtils :: amountToExponent ( $ this -> total_discount_amount , $ this -> currency ) , 'total_amount' => CurrencyUtils :: amountToExponent ( $ this -> getTotalAmount ( ) , $ this -> currency ) , 'total_tax_amount' => CurrencyUtils :: amountToExponent ( $ this -> getTotalTaxAmount ( ) , $ this -> currency ) , 'reference' => $ this -> reference , 'image_url' => $ this -> image_url , 'product_url' => $ this -> product_url , 'quantity_unit' => $ this -> quantity_unit , 'product_identifiers' => $ this -> getProductIdentifiersParamsStructure ( ) , 'merchant_data' => $ this -> getMerchantDataParamsStructure ( ) ] ; }
Convert item to array

@return array
Convert item to array