package com.red.circle.order.app.dto.cmd;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 华为支付.
 *
 * @author pengliang on 2022/3/11
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class HuaweiPurchaseCmd extends AbstractPurchaseCmd {

  private static final long serialVersionUID = 1L;

  /**
   * 华为待下发商品的购买数据.
   */
  @NotBlank(message = "purchaseData required.")
  private String purchaseData;

  /**
   * 华为待下发商品的购买数据，签名.
   */
  @NotBlank(message = "purchaseSignature required.")
  private String purchaseSignature;

  @Override
  public String extractStrategyName() {
    return "huaweiExtractAppPurchaseOrderStrategy";
  }

}
