Class PaymentGateway.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.common.PaymentGateway.Builder
Enclosing class:
PaymentGateway

public static class PaymentGateway.Builder extends Object
Represents a builder for the PaymentGateway class.
  • Method Details

    • build

      public PaymentGateway build()
      Builds the PaymentGateway instance.
      Returns:
      The built PaymentGateway instance.
    • setMethod

      public PaymentGateway.Builder setMethod(PaymentMethod value)
      Sets the payment method.
      Parameters:
      value - The payment method to set.
      Returns:
      The builder instance.
    • setProvider

      public PaymentGateway.Builder setProvider(String value)
      Sets the payment provider.
      Parameters:
      value - The payment provider to set.
      Returns:
      The builder instance.
    • setExecutedAtUtc

      public PaymentGateway.Builder setExecutedAtUtc(long value)
      Sets the UTC millis timestamp when the payment was executed.
      Parameters:
      value - The UTC millis timestamp when the payment was executed to set.
      Returns:
      The builder instance.
    • setInitiatedAtUtc

      public PaymentGateway.Builder setInitiatedAtUtc(Long value)
      Sets the UTC millis timestamp when the payment was initiated.
      Parameters:
      value - The UTC millis timestamp when the payment was initiated to set.
      Returns:
      The builder instance.
    • setReferenceId

      public PaymentGateway.Builder setReferenceId(String value)
      Sets the reference ID of the payment.
      Parameters:
      value - The reference ID of the payment to set.
      Returns:
      The builder instance.