tech.carpentum.sdk.payment.model.PayMeMethodResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payment-client-v2 Show documentation
Show all versions of payment-client-v2 Show documentation
Carpentum Payment system Java SDK
The newest version!
//THE FILE IS GENERATED, DO NOT MODIFY IT MANUALLY!!!
package tech.carpentum.sdk.payment.model;
import com.squareup.moshi.JsonClass;
import java.util.Objects;
import java.util.Optional;
import org.jetbrains.annotations.NotNull;
import tech.carpentum.sdk.payment.internal.generated.model.*;
import tech.carpentum.sdk.payment.model.*;
/** PAY_ME
*
*
*
*
*
* The model class is immutable.
* Use static {@link #builder} method to create a new {@link Builder} instance to build the model class instance.
*
*/
@JsonClass(generateAdapter = false)
public interface PayMeMethodResponse extends PayinMethodResponse {
/** A discriminator value of property {@link #getPaymentMethodCode}. The model class extends {@link PayinMethodResponse}. */
PayinMethodResponse.PaymentMethodCode PAYMENT_METHOD_CODE = PayinMethodResponse.PaymentMethodCode.PAY_ME;
@NotNull IdPayin getIdPayin();
@NotNull IdPayment getIdPayment();
@NotNull AccountResponsePayMe getAccount();
@NotNull AccountCustomerResponsePayMe getAccountCustomer();
@NotNull MoneyPaymentResponse getMoney();
@NotNull Optional getMoneyRequired();
@NotNull Optional getVat();
@NotNull String getMerchantName();
/** Reference number of transaction. */
@NotNull String getReference();
/** The name of the QR code image to be scanned by a wallet or payment service compatible with this payment method. The QR code of the image can be labeled by qrName to increase the clarity of the payment instruction.
If this parameter contains any value, include it in the payment instructions for your customer. */
@NotNull String getQrName();
/** The URL of the QR code image to be scanned by a wallet or payment service compatible with this payment method. The QR code encodes the instructions how make a payment.
If this parameter contains any value, include it in the payment instructions for your customer. */
@NotNull String getQrCode();
/** It can be used as deep link button target (what is typically known as an intent trigger)
or to generate a QR code that can be scanned with any UPI enabled app. */
@NotNull Optional getPayMeDeepLink();
/** This is the URL where the customers will be redirected after completing a payment.
The URL must be either IP or domain-based. */
@NotNull String getReturnUrl();
/** Date and time when payment was accepted. */
@NotNull java.time.OffsetDateTime getAcceptedAt();
/** Date and time of payment expiration. If no money has been transferred to this time, payment is considered failed and callback with status change event will shortly follow. */
@NotNull java.time.OffsetDateTime getExpireAt();
@NotNull static Builder builder(PayMeMethodResponse copyOf) {
Builder builder = builder();
builder.idPayin(copyOf.getIdPayin());
builder.idPayment(copyOf.getIdPayment());
builder.account(copyOf.getAccount());
builder.accountCustomer(copyOf.getAccountCustomer());
builder.money(copyOf.getMoney());
builder.moneyRequired(copyOf.getMoneyRequired().orElse(null));
builder.vat(copyOf.getVat().orElse(null));
builder.merchantName(copyOf.getMerchantName());
builder.reference(copyOf.getReference());
builder.qrName(copyOf.getQrName());
builder.qrCode(copyOf.getQrCode());
builder.payMeDeepLink(copyOf.getPayMeDeepLink().orElse(null));
builder.returnUrl(copyOf.getReturnUrl());
builder.acceptedAt(copyOf.getAcceptedAt());
builder.expireAt(copyOf.getExpireAt());
return builder;
}
@NotNull static Builder builder() {
return new PayMeMethodResponseImpl.BuilderImpl();
}
/** Builder for {@link PayMeMethodResponse} model class. */
interface Builder {
/**
* Set {@link PayMeMethodResponse#getIdPayin} property.
*
*
*/
@NotNull Builder idPayin(IdPayin idPayin);
/**
* Set {@link PayMeMethodResponse#getIdPayment} property.
*
*
*/
@NotNull Builder idPayment(IdPayment idPayment);
/**
* Set {@link PayMeMethodResponse#getAccount} property.
*
*
*/
@NotNull Builder account(AccountResponsePayMe account);
/**
* Set {@link PayMeMethodResponse#getAccountCustomer} property.
*
*
*/
@NotNull Builder accountCustomer(AccountCustomerResponsePayMe accountCustomer);
/**
* Set {@link PayMeMethodResponse#getMoney} property.
*
*
*/
@NotNull Builder money(MoneyPaymentResponse money);
/**
* Set {@link PayMeMethodResponse#getMoneyRequired} property.
*
*
*/
@NotNull Builder moneyRequired(MoneyRequired moneyRequired);
/**
* Set {@link PayMeMethodResponse#getVat} property.
*
*
*/
@NotNull Builder vat(MoneyVat vat);
/**
* Set {@link PayMeMethodResponse#getMerchantName} property.
*
*
*/
@NotNull Builder merchantName(String merchantName);
/**
* Set {@link PayMeMethodResponse#getReference} property.
*
* Reference number of transaction.
*/
@NotNull Builder reference(String reference);
/**
* Set {@link PayMeMethodResponse#getQrName} property.
*
* The name of the QR code image to be scanned by a wallet or payment service compatible with this payment method. The QR code of the image can be labeled by qrName to increase the clarity of the payment instruction.
If this parameter contains any value, include it in the payment instructions for your customer.
*/
@NotNull Builder qrName(String qrName);
/**
* Set {@link PayMeMethodResponse#getQrCode} property.
*
* The URL of the QR code image to be scanned by a wallet or payment service compatible with this payment method. The QR code encodes the instructions how make a payment.
If this parameter contains any value, include it in the payment instructions for your customer.
*/
@NotNull Builder qrCode(String qrCode);
/**
* Set {@link PayMeMethodResponse#getPayMeDeepLink} property.
*
* It can be used as deep link button target (what is typically known as an intent trigger)
or to generate a QR code that can be scanned with any UPI enabled app.
*/
@NotNull Builder payMeDeepLink(String payMeDeepLink);
/**
* Set {@link PayMeMethodResponse#getReturnUrl} property.
*
* This is the URL where the customers will be redirected after completing a payment.
The URL must be either IP or domain-based.
*/
@NotNull Builder returnUrl(String returnUrl);
/**
* Set {@link PayMeMethodResponse#getAcceptedAt} property.
*
* Date and time when payment was accepted.
*/
@NotNull Builder acceptedAt(java.time.OffsetDateTime acceptedAt);
/**
* Set {@link PayMeMethodResponse#getExpireAt} property.
*
* Date and time of payment expiration. If no money has been transferred to this time, payment is considered failed and callback with status change event will shortly follow.
*/
@NotNull Builder expireAt(java.time.OffsetDateTime expireAt);
/**
* Create new instance of {@link PayMeMethodResponse} model class with the builder instance properties.
*
* @throws NullPointerException in case required properties are not specified.
*/
@NotNull PayMeMethodResponse build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy