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

com.checkout.sessions.completion.HostedCompletionInfo Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.sessions.completion;

import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class HostedCompletionInfo extends CompletionInfo {

    @SerializedName("callback_url")
    private String callbackUrl;

    @SerializedName("success_url")
    private String successUrl;

    @SerializedName("failure_url")
    private String failureUrl;

    @Builder
    private HostedCompletionInfo(final String callbackUrl,
                                 final String successUrl,
                                 final String failureUrl) {
        super(CompletionInfoType.HOSTED);
        this.callbackUrl = callbackUrl;
        this.successUrl = successUrl;
        this.failureUrl = failureUrl;
    }

    public HostedCompletionInfo() {
        super(CompletionInfoType.NON_HOSTED);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy