lasselehtinen/groschen

Wrapper for Mockingbird

v6.9.0 2024-11-18 11:37 UTC

This package is auto-updated.

Last update: 2024-11-20 14:12:50 UTC


README

Basics

Purpose

Groschen is an API wrapper for Mockingbird. Purpose is to provide a general library, that will return basic information for the product like title, stakeholders, media type and so on. Elements that can return multiple values usually return a Laravel Collection and the structure is usually copied from the Onix standard. For example the getProductIdentifiers method returns the following Collection:

Illuminate\Support\Collection {#224
  #items: array:3 [
    0 => array:5 [
      "PriceType" => "05"
      "PriceAmount" => 16.25
      "Tax" => array:5 [
        "TaxType" => "01"
        "TaxRateCode" => "Z"
        "TaxRatePercent" => 10.0
        "TaxableAmount" => 16.25
        "TaxAmount" => 0.0
      ]
      "CurrencyCode" => "EUR"
      "Territory" => array:1 [
        "RegionsIncluded" => "WORLD"
      ]
    ]
    1 => array:5 [
      "PriceType" => "07"
      "PriceAmount" => 17.87
      "Tax" => array:5 [
        "TaxType" => "01"
        "TaxRateCode" => "S"
        "TaxRatePercent" => 10.0
        "TaxableAmount" => 16.25
        "TaxAmount" => 1.62
      ]
      "CurrencyCode" => "EUR"
      "Territory" => array:1 [
        "RegionsIncluded" => "WORLD"
      ]
    ]
    2 => array:5 [
      "PriceType" => "42"
      "PriceAmount" => 26.0
      "Tax" => array:5 [
        "TaxType" => "01"
        "TaxRateCode" => "S"
        "TaxRatePercent" => 10.0
        "TaxableAmount" => 23.64
        "TaxAmount" => 2.36
      ]
      "CurrencyCode" => "EUR"
      "Territory" => array:1 [
        "RegionsIncluded" => "WORLD"
      ]
    ]
  ]
}

Methods