2017 © Pedro Peláez
 

library jura-partnernet-client

A PHP Client for the Jura Partnernet

image

stemis/jura-partnernet-client

A PHP Client for the Jura Partnernet

  • Wednesday, November 1, 2017
  • by stemis
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-jura-partnernet

Makes connecting with Jura Partnernet much easier., (*1)

Although Jura does not have any form of API to create orders in their system, dealers can use the "Jura Partner Net" to create all orders. This can be useful when A person orders bean machines via either a webshop or other external system and directly order them with Jura with no delay., (*2)

This client utilizes the web portal and copies the exact HTTP calls made to the Cobalt back-end to achieve the goals., (*3)

Installation

composer require stemis/jura-partnernet-client, (*4)

Example code

// Create the connection
$connection = new Connection('YOUR_USERNAME', 'YOUR_PASSWORD');

// Create a new cart
$cart = new Cart($connection);

// Search for the item you want to add to the carrt
$itemRepository = new ItemRepository($connection);
$item = $itemRepository->find(15157);

// Add Item
$cart->addItem($item);

// Create and set address
$address = new Address();
$address->name = 'John Doe';
$address->address = 'Stationsplein';
$address->postal = '1012AB';
$address->city = 'Amsterdam';
$address->attention = 'Afd. XXXX';

$cart->setAddress($address);

// Proceed with order and send confirmation email
$cart->orderCart();

Exceptions

  • NoAddressDataException
  • NoItemsInCartException

Issues

There are currently no known issues., (*5)

If you do find an issue, please use the issues tab to report it!, (*6)

Future Work

  • Adding Unit Tests using Mockery
  • Adding more detailed information about items
  • Adding more exceptions such as ItemNotFound in the ItemRepository

The Versions

01/11 2017

dev-master

9999999-dev http://github.com/stemis/jura-partnernet-php-client

A PHP Client for the Jura Partnernet

  Sources   Download

MIT

The Requires

 

The Development Requires

by Steff Missot

api php jura partnernet dealerportal