npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@one-view/order-detail-types

v1.0.20

Published

oneview backend order API

Downloads

5

Readme

FORMAT: 1A VERSION: 1.0.0

Order Detail

oneview backend order API

Order Detail [/order-detail/v1/{orderCode}/detail]

Order detail information

  • Parameters

    • orderCode (required, string, vsba-nhas)
  • Attributes (OrderDetail)

Get order detail [GET]

  • Request

    • Headers

        Authorization: bearer token
  • Response 200 (application/json)

    • Attributes (OrderDetail)
  • Response 400 (application/json)

    • Attributes (Error_400)
  • Response 401 (application/json)

    • Attributes (Error_401)
  • Response 403 (application/json)

    • Attributes (Error_403)
  • Response 404 (application/json)

    • Attributes (Error_404)
  • Response 500 (application/json)

    • Attributes (Error_500)

Order Receipt [/order-detail/v1/{orderCode}/receipt]

  • Parameters

    • orderCode (required, string, vsba-nhas)
  • Attributes (OrderReceipt)

Get order receipt [GET]

  • Request

    • Headers

        Authorization: bearer token
  • Response 200 (application/json)

    • Attributes (OrderReceipt)
  • Response 400 (application/json)

    • Attributes (Error_400)
  • Response 401 (application/json)

    • Attributes (Error_401)
  • Response 403 (application/json)

    • Attributes (Error_403)
  • Response 404 (application/json)

    • Attributes (Error_404)
  • Response 500 (application/json)

    • Attributes (Error_500)

Order Status [/order-detail/v1/{order_code}/status]

list the order status of a current order

  • Parameters

    • order_code (required, string, vsba-nhas)
  • Attributes (OrderStatusList)

Get order status [GET]

  • Request

    • Headers

        Authorization: bearer token
  • Response 200 (application/json)

    • Attributes (OrderStatusList)
  • Response 400 (application/json)

    • Attributes (Error_400)
  • Response 401 (application/json)

    • Attributes (Error_401)
  • Response 403 (application/json)

    • Attributes (Error_403)
  • Response 404 (application/json)

    • Attributes (Error_404)
  • Response 500 (application/json)

    • Attributes (Error_500)

Data Structures

int64 (number)

integer (number)

float (number)

date (string)

Error (object)

  • errorCode (number)
  • errorMessage (string)

Error_401 (object)

  • errorCode : 401 (number)
  • errorMessage : not authorize (string)

Error_404 (object)

  • errorCode : 404 (number)
  • errorMessage : not found (string)

Error_403 (object)

  • errorCode : 403 (number)
  • errorMessage : forbidden (string)

Error_400 (object)

  • errorCode : 400 (number)
  • errorMessage : bad request (string)

Error_500 (object)

  • errorCode : 500 (number)
  • errorMessage : internal server error (string)

Payment

  • mode : cod, credit-card, online-payment (string)
  • paid : true (boolean)
  • amount (number)
  • vouchers (array[Voucher])

Voucher

  • code (string) - voucher code
  • description (string)

OrderStatus

  • timestamp : 1572499999 (int64) - epoch time stamp of status
  • status : ACCEPTED (string) - order status
  • estimatedTimestamp : 1572499999 (int64) - epoch time stamp of estimated timestamp
  • reason (string) - Additional data for status reason
  • comment (string) - Additional comment for status reason

Comment

  • data : (string)

OrderReceiptItem

  • id (string) - product id
  • name (string) - product name
  • variantTitle (string) - variation title of product
  • basePrice (number) - product base price
  • toppingPrice (number) - topping price
  • quantity (int64) - quantity of product

OrderReceiptData

  • description : "Sub Total" (string) - description of receipt meta data
  • amount : 3.42 (number) - amount tied to it

OrderDetail

  • code : vsba-nhas (string, required) - order code
  • vendorCode : vsba (string) - vendor code. usually used to get vendor detail information
  • customerCode : asd2sas (string) - Customer code. usually used to get constumer detail information
  • platform : Android-foodpanda-5.9.0(258704) (string) - platform used for order
  • source : android (string) - device source of order. exp : android
  • invoiceURL : http://unknown (string) - url to generate the invoice
  • cookingInstruction : do something (string)
  • orderTimestamp : 1572493929 (int64) - epoch timestamp of order
  • preorderTimestamp : 1572493929 (int64) - epoch timestamp of the preorder time
  • promisedTimestamp : 1572493929 (int64) - epoch timestamp of the promised delivery time
  • deliveryProvider : RPS (string) - delivery provider. e.g: RPS
  • comments (array[Comment]) - comment of order
  • internalComments (array[Comment]) - internal comment of order
  • vendorOrderReference (string)
  • expeditionType (string) - expedition type used for order. exp : pickup, delivery, etc.
  • payment (Payment) - payment used for order
  • lastStatus (OrderStatus) - last known status of order
  • canceled (string) - Valid string containing reason if order is canceled. Null otherwise.
  • refundStatus : NONE (string) - Refund status. NONE, PENDING, REFUNDED

OrderReceipt

  • items (array[OrderReceiptItem]) - List of order item
  • data (array[OrderReceiptData]) - arbitrary receipt data. could refer to order payment flow.

OrderStatusList

  • data (array[OrderStatus]) - List of order status