Skip to content

Rest V2 submitOrder return raw response data instead of Order model class #80

Description

@RoadRoller

Issue type

  • bug
  • missing functionality
  • performance
  • feature request

Brief description

submitOrder method return raw array of values, but it would be more convenient to receive Order model class.

Steps to reproduce

Call submitOrder method.

Additional Notes:

I think it could be simple fixed by replacing:

return orders[0] || []

with

return new Order(orders[0]) || []

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions