Paazl / magento2-checkout-widget

6 stars 15 forks source link

Insured value missing in Paazl order #46

Closed ericclaeren closed 4 years ago

ericclaeren commented 4 years ago

Hi,

We are running into a problem where insured packages don't contain the insured amount.

image

Can find the value in code, submitted to the API for sending the insuredValue https://github.com/Paazl/magento2-checkout-widget/blob/1.2.3/Model/Api/Builder/Order.php#L133

But on the /v1/order endpoint, can't find any reference to the insuredValue or can't find any references in other models of insuredValue https://support.paazl.com/hc/en-us/articles/360008633973-REST-API-reference#/Order/saveOrderUsingPOST

{
  "additionalInstruction": "string",
  "consignee": {
    "companyName": "string",
    "email": "string",
    "name": "string",
    "other": "string",
    "phone": "string",
    "locale": "string",
    "address": {
      "city": "string",
      "country": "string",
      "postalCode": "string",
      "province": "string",
      "street": "string",
      "streetLines": [
        "string"
      ],
      "houseNumber": 0,
      "houseNumberExtension": "string"
    }
  },
  "customsValue": {
    "value": 0,
    "currency": "string"
  },
  "codValue": {
    "value": 0,
    "currency": "string"
  },
  "description": "string",
  "requestedDeliveryDate": "string",
  "products": [
    {
      "height": 0,
      "length": 0,
      "unitPrice": {
        "value": 0,
        "currency": "string"
      },
      "quantity": 0,
      "volume": 0,
      "weight": 0,
      "width": 0,
      "countryOfManufacture": "string",
      "description": "string",
      "hsTariffCode": "string"
    }
  ],
  "reference": "string",
  "invoiceNumber": "string",
  "return": {
    "name": "string",
    "address": {
      "city": "string",
      "country": "string",
      "postalCode": "string",
      "province": "string",
      "street": "string",
      "streetLines": [
        "string"
      ],
      "houseNumber": 0,
      "houseNumberExtension": "string"
    }
  },
  "sender": {
    "name": "string",
    "address": {
      "city": "string",
      "country": "string",
      "postalCode": "string",
      "province": "string",
      "street": "string",
      "streetLines": [
        "string"
      ],
      "houseNumber": 0,
      "houseNumberExtension": "string"
    }
  },
  "shipping": {
    "option": "string",
    "pickupLocation": {
      "accountNumber": "string",
      "code": "string"
    },
    "contract": "string",
    "returnContract": "string",
    "packageCount": 0,
    "multiPackageShipment": true
  },
  "weight": 0
}

How is this supposed to work of am I missing a setting or am I looking for the wrong reference.

Marvin-Magmodules commented 4 years ago

Hi @ericclaeren we have just released the v1.3.0 version that has this implemented. Thanks for the detailed reports and patience. We are closing this issue now but please feel free to reopen the issue if this still occurs.