All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.electrum.airtime.api.model.VoucherConfirmation Maven / Gradle / Ivy

package io.electrum.airtime.api.model;

import javax.validation.Valid;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.electrum.vas.Utils;
import io.electrum.vas.model.TenderAdvice;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Information about the voucher provision being confirmed. This object refers to a specific voucher which was
 * previously successfully provisioned.
 **/

@ApiModel(description = "Information about the voucher provision being confirmed. This object refers to a specific voucher which was previously successfully provisioned.")
public class VoucherConfirmation extends TenderAdvice {

   private Voucher voucher = null;

   /**
    * Information about the specific voucher being confirmed. This should at a minimum be the voucher serial number
    * returned in the VoucherResponse so that the vendor can look up the voucher to be confirmed within the vendor's
    * system.
    **/
   public VoucherConfirmation voucher(Voucher voucher) {
      this.voucher = voucher;
      return this;
   }

   @ApiModelProperty(value = "Information about the specific voucher being confirmed. This should at a minimum be the voucher serial number returned in the VoucherResponse so that the vendor can look up the voucher to be confirmed within the vendor's system.")
   @JsonProperty("voucher")
   @Valid
   public Voucher getVoucher() {
      return voucher;
   }

   public void setVoucher(Voucher voucher) {
      this.voucher = voucher;
   }

   @Override
   public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class VoucherConfirmation {\n");

      sb.append("    id: ").append(Utils.toIndentedString(id)).append('\n');
      sb.append("    requestId: ").append(Utils.toIndentedString(requestId)).append('\n');
      sb.append("    thirdPartyIdentifiers: ").append(Utils.toIndentedString(thirdPartyIdentifiers)).append('\n');
      sb.append("    time: ").append(Utils.toIndentedString(time)).append('\n');
      sb.append("    tenders: ").append(Utils.toIndentedString(tenders)).append('\n');
      sb.append("    voucher: ").append(Utils.toIndentedString(voucher)).append('\n');
      sb.append('}');
      return sb.toString();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy