goshippo / shippo-python-sdk

MIT License
11 stars 1 forks source link

[Orders] SHIPPO OrderShopApp enums missing #84

Closed jfriedr closed 4 months ago

jfriedr commented 4 months ago

Getting an exception when running the example code to retrieve list of orders:

https://github.com/goshippo/shippo-python-sdk/blob/main/docs/sdks/orders/README.md#example-usage

import shippo
from shippo.models import components, operations

s = shippo.Shippo(
    api_key_header="<YOUR_API_KEY_HERE>",
    shippo_api_version='2018-02-08',
)

res = s.orders.list(request=operations.ListOrdersRequest(
    order_status=[
        components.OrderStatusEnum.PAID,
    ],
    shop_app=components.OrderShopAppEnum.SHIPPO,
))

if res is not None:
    # handle response
    pass
python get_orders.py 
Traceback (most recent call last):
  File "/Users/<username>/hippo/shippo-python-sdk/.idea/get_orders.py", line 21, in <module>
    shop_app=components.OrderShopAppEnum.SHIPPO,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

The SHIPPO enum is missing.

image

List of enums:

https://github.com/goshippo/shippo-python-sdk/blob/main/docs/models/components/ordershopappenum.md

jfriedr commented 4 months ago

image

DLTADragonHawk commented 4 months ago

@jfriedr I was able to run the example code as is but, only after an update from 3.5.2->3.7.0. It looks like the OrderShopAppEnum component didn't exist in the previous version. Could you confirm which version you are trying this on?

jfriedr commented 4 months ago

🤔 Thanks for pointing that out, it looks like I was pointed to an older spec when trying to replicate another issue. The version was 3.5.1.

Thanks 🙏