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

com.univapay.sdk.models.common.OnlinePayment Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
import com.univapay.sdk.models.request.transactiontoken.PaymentData;
import com.univapay.sdk.types.PaymentTypeName;
import com.univapay.sdk.types.brand.OnlineBrand;

public class OnlinePayment implements PaymentData {

  /** This defines which service will be used when creating the TransactionToken & Charge */
  @SerializedName("brand")
  private final OnlineBrand brand;

  @SerializedName("call_method")
  private CallMethod callMethod;

  @SerializedName("user_identifier")
  private String userIdentifier;

  @Override
  public PaymentTypeName getPaymentType() {
    return PaymentTypeName.ONLINE;
  }

  public OnlinePayment(OnlineBrand brand) {
    this.brand = brand;
  }

  public OnlinePayment withCallMethod(CallMethod callMethod) {
    this.callMethod = callMethod;
    return this;
  }

  public OnlinePayment withUserIdentifier(String userIdentifier) {
    this.userIdentifier = userIdentifier;
    return this;
  }

  public OnlineBrand getBrand() {
    return brand;
  }

  public CallMethod getCallMethod() {
    return callMethod;
  }

  public String getUserIdentifier() {
    return userIdentifier;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy