/**
   * Enable a product and all of its product variations. This marks the product available for sale.
   *
   * @param product Product
   * @param apiKey apiKey
   * @return JSONObject
   */
  public JSONObject enableProductVariationJSONObject(
      ProductVariation productVariation, String apiKey) {
    String url = PropertiesUtil.getEnableProductVariation();
    // 发起POST请求
    JSONObject jsonObject =
        CommonUtil.httpsRequest(
            url, "POST", productVariation.enableProductVariationObject() + "key=" + apiKey);

    if (null != jsonObject) {
      return jsonObject;
    } else {
      return null;
    }
  }
  /**
   * Enable a product and all of its product variations. This marks the product available for sale.
   *
   * @param product Product
   * @param apiKey apiKey
   * @return Boolean
   */
  public Boolean enableProductVariationBoolean(ProductVariation productVariation, String apiKey) {
    String url = PropertiesUtil.getEnableProductVariation();
    // 发起POST请求
    JSONObject jsonObject =
        CommonUtil.httpsRequest(
            url, "POST", productVariation.enableProductVariationObject() + "key=" + apiKey);

    if (null != jsonObject) {
      int code = jsonObject.getInt("code");
      if (0 == code) {
        return true;
      } else {
        return false;
      }
    } else {
      return false;
    }
  }