Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Shiphero/sixriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

6river

6River client

Sending a PickWave message

from sixriver import SixRiverClient, messages as sixr_messages, models as sixr_models

picks = [
    sixr_models.Pick(
        pick_id='test-pick-id,
        group_type=sixr_models.GroupType.ORDER_PICK,
        group_id='test-group-id,
        source_location='locaiton-id',
        each_quantity=1,
        product=sixr_models.Product(
            id='product-id',
            name='test name,
            description='test description',
            unit_of_measure="instances",
            unit_of_measure_quantity=1,
            dimension_unit_of_measure="inches",
            weight_unit_of_measure="oz",
            length='1.0,
            width='1.0
            height='1.0,
            weight='1.0',
            identifiers=[
                sixr_models.Identifier(
                    label="barcode",
                    allowed_values=[
                        'some barcode',
                    ]
                ),
            ]
        ),
        data={},
        )    
    )
]

pickwave = sixr_messages.PickWaveMessage(*picks)

client = SixRvierClient(
    username='test',
    assword='test',
    host='http://test',
    env='dev',
    version='v2',
)
    
res = client.send(pickwave)