OrderApi class

Inheritance
Annotations

Constructors

OrderApi({Route base, Map<String, CodecRepo> converters, Duration timeout = const Duration(minutes: 2)})

Properties

base Route
final
basePath String
final, inherited
converters Map<String, CodecRepo>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
jsonConverter CodecRepo<String>
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeout Duration
final

Methods

createFeedback(String id, String xAPIKey, CreateFeedback body) Future<Feedback>
Create Feedback [...]
@PostReq(path: "/order/:id/feedback")
createOrder(String authorization, String xAPIKey, String xPin, Order body) Future<Order>
Create Order [...]
@PostReq(path: "/order", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
createRefundByOrderID(String id, String authorization, String xAPIKey, String xPin, RefundOrder body) Future<RefundOrder>
Create Refund By Order ID [...]
@PostReq(path: "/order/:id/refund", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
createSendReceiptByOrderID(String id, String authorization, String xAPIKey, String xPin, SendReceipt body) Future<SendReceipt>
Create Send Receipt By Order ID [...]
@PostReq(path: "/order/:id/send-receipt", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
decodeList<T>(StringResponse response) Future<List<T>>
inherited
decodeOne<T>(StringResponse response) Future<T>
inherited
deleteOrderByID(String id, String authorization, String xAPIKey, String xPin) Future<void>
Delete Order By ID [...]
@DeleteReq(path: "/order/:id", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
findFeedback(String authorization, String xAPIKey, String xPin, num limit, num offset, String sort, String direction, List<String> filter, bool withDeleted) Future<List<Feedback>>
Get Feedback List [...]
@GetReq(path: "/order/feedback", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
findOrder(String authorization, String xAPIKey, String xPin, num limit, num offset, String sort, String direction, List<String> filter, bool withDeleted) Future<List<Order>>
Get Order List [...]
@GetReq(path: "/order", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
getFeedbackByID(String id, String authorization, String xAPIKey, String xPin) Future<Feedback>
Get Feedback By ID [...]
@GetReq(path: "/order/:id/feedback", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
getOrderByID(String id, String authorization, String xAPIKey, String xPin) Future<Order>
Get Order By ID [...]
@GetReq(path: "/order/:id", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
updateOrderByID(String id, String authorization, String xAPIKey, String xPin, Order body) Future<Order>
Update Order By ID [...]
@PutReq(path: "/order/:id", metadata: const {"auth" : const [const {"type" : "apiKey", "name" : "JWT", "keyName" : "Authorization", "where" : "header"}]})

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited