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

com.univapay.sdk.models.request.transactiontoken.UpdateReq Maven / Gradle / Ivy

There is a newer version: 0.2.35
Show newest version
package com.univapay.sdk.models.request.transactiontoken;

import com.google.gson.annotations.SerializedName;
import com.univapay.sdk.models.common.UnivapayEmailAddress;
import com.univapay.sdk.types.MetadataMap;
import java.util.Optional;

public class UpdateReq {
  @SerializedName("email")
  private UnivapayEmailAddress email;

  @SerializedName("metadata")
  private MetadataMap metadata;

  @SerializedName("data")
  private UpdateCreditCardReq cardData;

  public UpdateReq(UnivapayEmailAddress email, MetadataMap metadata, Integer cvv) {
    this.email = email;
    this.metadata = metadata;
    this.cardData = Optional.ofNullable(cvv).map(UpdateCreditCardReq::new).orElse(null);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy