createOrder method

Future<ShopifyOrderCreatedResponse?> createOrder(
  1. ShopifyOrder shopifyOrder
)

Implementation

Future<ShopifyOrderCreatedResponse?> createOrder(
    ShopifyOrder shopifyOrder) async {
  try {
    Response response =
        await this.client.post("/order", data: shopifyOrder.toJson());
    return ShopifyOrderCreatedResponse.fromJson(response.data);
  } on Exception catch (e) {
    logResponse(e.toString());
  }
  return null;
}