Giter Site home page Giter Site logo

allegro-api-client-php's People

Contributors

arkowsky avatar lukaszwit avatar lwillems avatar nediam avatar tomaszdurka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

allegro-api-client-php's Issues

No FULFILLMENT_STATUS_CHANGED status in \AllegroApi\Model\CheckoutFormStatus

Hi, while calling getOrderEventsUsingGET method I'm getting an error like:

Uncaught PHP Exception InvalidArgumentException: "Invalid value for enum '\AllegroApi\Model\CheckoutFormStatus', must be one of: 'BOUGHT', 'FILLED_IN', 'READY_FOR_PROCESSING'" at ../vendor/coffeedesk/allegro-api-client-php/src/ObjectSerializer.php line 300

As I see in response theres event type named FULFILLMENT_STATUS_CHANGED
image

image

I've checked swagger.yaml file and found that there is that status but in different enum
image

Any solution for this? ;)

Content is lost when deserializing offer

Hi

First : thanks for your work, very useful to deal with Allegro.

I have encountered a bug when working with offer where description is defined.
Calling getOfferUsingGET on UsersOfferInformationApi class.

On raw API reply description is ok

  "description": {
    "sections": [
      {
        "items": [
          {
            "type": "TEXT",
            "content": "<h1>A description</h1>"
          }
        ]
      }
    ]
  },

But when deseriazing items model is hardcoded to parent ($openApiTypes) which does not handle content (only type) so content is lost

//vendor/coffeedesk/allegro-api-client-php/src/Model/DescriptionSection.php
    protected static $openAPITypes = [
        'items' => '\AllegroApi\Model\DescriptionSectionItem[]'
    ];

Instead child model shoud be used

  • vendor/coffeedesk/allegro-api-client-php/src/Model/DescriptionSectionItemText.php
  • vendor/coffeedesk/allegro-api-client-php/src/Model/DescriptionSectionItemImage.php

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.