Skip to content

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

@RoadRoller

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]) || []

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