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

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

/**
 * google 支付单据参数.
 *
 * @author pengliang on 2019/12/19 18:52
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GooglePurchaseCmd extends AbstractPurchaseCmd {

  private static final long serialVersionUID = 1L;

  /**
   * 单据签名.
   */
  @NotBlank(message = "signature required.")
  private String signature;

  /**
   * 产品数据.
   */
  @NotBlank(message = "purchaseData required.")
  private String purchaseData;

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

}
