Skip to content

Problem with response #103

@arturmudrytskyi

Description

@arturmudrytskyi

There is an issue when server sends a response with empty $order->Customer->IndividualIdentity object.

[Customer] => stdClass Object
 (
     [CoAddress] => c/o Eriksson, Erik
     [CountryCode] => SE
     [CustomerType] => Individual
     [Email] =>
     [FullName] => Persson, Tess T
     [HouseNumber] =>

     [IndividualIdentity] => null

    [Locality] => Stan
    [NationalIdNumber] => 194605092222
    [PhoneNumber] =>
    [PublicKey] =>
    [Street] => Testgatan 1
    [ZipCode] => 99999
)

Error when IndividualIdentity is null.
There is an error when trying set data in the methods:
$this->customer->setInitials and $this->customer->setName
in the files:
src/AdminService/AdminServiceResponse/GetAccountCreditsResponse.php
src/AdminService/AdminServiceResponse/GetOrdersResponse.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions