sameday-courier / prestashop-plugin

Prestashop (1.6 and 1.7 versions) plugin for Sameday Courier shipping
Other
4 stars 7 forks source link

Generated awb #36

Open kikiritikosul opened 3 years ago

kikiritikosul commented 3 years ago

Salut,

Am aceasta eroare la generarea awb-ului. Clientul nu este persoana juridica. Prestashop 1.7.7.5 / php 7.3

Multumesc!

DEBUG v1.7.7.5 2021/09/08 - 15:15:50: Generate awb DEBUG v1.7.7.5 2021/09/08 - 15:15:50: Sameday\Requests\SamedayPostAwbRequest Object ( [pickupPointId:protected] => 60326 [contactPersonId:protected] => [packageType:protected] => Sameday\Objects\Types\PackageType Object ( [type:protected] => 0 )

[parcelsDimensions:protected] => Array
    (
        [0] => Sameday\Objects\ParcelDimensionsObject Object
            (
                [weight:protected] => 1
                [width:protected] => 1
                [length:protected] => 1
                [height:protected] => 1
            )

    )

[serviceId:protected] => 7
[awbPayment:protected] => Sameday\Objects\Types\AwbPaymentType Object
    (
        [type:protected] => 1
    )

[awbRecipient:protected] => Sameday\Objects\PostAwb\Request\AwbRecipientEntityObject Object
    (
        [email:protected] => calciuc.......@gmail.com
        [city:protected] => Caracal
        [county:protected] => Olt
        [address:protected] => Str. Huedin , Nr.1
        [name:protected] => Calciu Catalin
        [phone:protected] => 0747461
        [company:protected] => Sameday\Objects\PostAwb\Request\CompanyEntityObject Object
            (
                [name:protected] =>  
                [cui:protected] =>  
                [onrcNumber:protected] => -
                [iban:protected] =>
                [bank:protected] =>
            )

    )

[insuredValue:protected] => 0
[cashOnDeliveryAmount:protected] => 199.00
[cashOnDeliveryCollector:protected] => Sameday\Objects\Types\CodCollectorType Object
    (
        [type:protected] => 1
    )

[thirdPartyPickup:protected] =>
[serviceTaxIds:protected] => Array
    (
    )

[deliveryIntervalServiceType:protected] =>
[reference:protected] => 20
[observation:protected] =>
[priceObservation:protected] =>
[clientObservation:protected] =>
[lockerId:protected] =>

)

ERROR v1.7.7.5 2021/09/08 - 15:15:51: Array ( [0] => Array ( [key] => Array ( [0] => awbRecipient [1] => companyName )

        [errors] => Array
            (
                [0] => This value should not be blank.
            )

    )

)