Git Product home page Git Product logo

oneflow-sdk-php's People

Contributors

bernhardh avatar billywhizz avatar gionatan-mongiovi avatar joseandrespg avatar juanjoseruiz avatar kirylmalenchyk avatar paulskinner avatar paulskinnerlibris avatar sekforde avatar thekiwi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oneflow-sdk-php's Issues

$component->setComponentId('1234567890') working correctly?

While creating an order, I'm trying to add to each "component" our own unique identifier.

For "order" and "item" the fields are called

  • sourceOrderId
  • sourceItemId

In the documentation
https://docs.oneflowcloud.com/products/siteflow-order-structure/
it states as well that the field for a component is called

  • sourceComponentId

But I'm not able to find a corresponding method setSourceComponentId. I only find setComponentId and this will only set componentId in order.josn. I'm not sure if this will work as this is not even documented anywhere. Could you please check this and add the correct method setSourceComponentId?

If you need further details, please don't hesitate to ask.

Trying to get property 'retries' of non-object

We just got the new code from version 1.2.0 via composer update.

Our first tries failed with the following error

Trying to get property 'retries' of non-object
This blocked us from using this library as we are currently not able to send new orders to siteflow.

We identified the error in OneflowSDK.php in line 59 and following
$this->retries = $options->retries ?: 3;
You must not try to directly access objects' attributes or methods if they can be null!

A simple fix for this would be
$this->retries = isset($options->retries) ? $options->retries : 3;

Keep in mind that you have the same issue in the next lines again for other attributes of the object.

Please let me know, as soon as you're done with the fix.

Add support for PHP8

PHP 8 requires the optional parameters to come after the required ones in method signatures.

Deprecated: Required parameter ($town | $postcode | $isoCountry) follows optional parameter $address2 in ...\vendor\oneflow\php-sdk\src\order\orderData\shipment\shipment.php on line 97

Deprecated: Required parameter ($town | $postcode | $isoCountry) follows optional parameter $address2 in ...\vendor\oneflow\php-sdk\src\order\orderData\shipment\shipment.php on line 129

The deprecation notice is triggered at the compile time and it will be raised even if the method is not called.

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.