cl.transbank.onepay.net.GetTransactionNumberRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transbank-sdk-java Show documentation
Show all versions of transbank-sdk-java Show documentation
Tranbank API integration SDK for Java Projects
package cl.transbank.onepay.net;
import cl.transbank.onepay.model.Signable;
import lombok.*;
import java.util.Objects;
@NoArgsConstructor
@RequiredArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
public class GetTransactionNumberRequest extends BaseRequest
implements Signable {
@NonNull private String occ;
@NonNull private String externalUniqueNumber;
@NonNull private Long issuedAt;
private String signature;
@Override
public String getHashableString() {
final String occ = Objects.toString(getOcc(), "");
final String externalUniqueNumber = Objects.toString(getExternalUniqueNumber(), "");
final String issuedAtAsString = String.valueOf(getIssuedAt());
return occ.length() + occ
+ externalUniqueNumber.length() + externalUniqueNumber
+ issuedAtAsString.length() + issuedAtAsString;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy