hpinc / oneflow-sdk-php Goto Github PK
View Code? Open in Web Editor NEWHP Site Flow's PHP SDK
Home Page: https://hpsiteflow.com/
License: MIT License
HP Site Flow's PHP SDK
Home Page: https://hpsiteflow.com/
License: MIT License
Reference to $this->printTypes is written as $this->$printTypes by mistake.
While creating an order, I'm trying to add to each "component" our own unique identifier.
For "order" and "item" the fields are called
In the documentation
https://docs.oneflowcloud.com/products/siteflow-order-structure/
it states as well that the field for a component is called
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.