正在查看: Clash Legends v0.0.1 应用的 CFUPIIntentCheckoutPayment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Clash Legends v0.0.1 应用的 CFUPIIntentCheckoutPayment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.cashfree.pg.ui.api.upi.intent;
import com.cashfree.pg.core.api.CFSession;
import com.cashfree.pg.core.api.base.CFPayment;
import com.cashfree.pg.core.api.exception.CFInvalidArgumentException;
import com.cashfree.pg.core.api.utils.CFError;
import com.cashfree.pg.ui.api.upi.intent.CFIntentTheme;
import com.cashfree.pg.ui.api.upi.intent.CFUPIIntentCheckout;
public final class CFUPIIntentCheckoutPayment extends CFPayment {
private final CFUPIIntentCheckout cfupiIntentCheckout;
private final CFIntentTheme intentTheme;
private CFUPIIntentCheckoutPayment(CFSession cfSession, CFUPIIntentCheckout cfupiIntentCheckout, CFIntentTheme cfIntentTheme) {
super(cfSession);
this.cfupiIntentCheckout = cfupiIntentCheckout;
this.intentTheme = cfIntentTheme;
setTheme(cfIntentTheme);
setCfSDKFlavour(CFPayment.CFSDKFlavour.INTENT);
}
public CFUPIIntentCheckout getCfUPI() {
return this.cfupiIntentCheckout;
}
@Override
public String getDescription() {
return "UPI Payment Details\n---------------\n" + getCfSession().getDescription() + "\n" + this.cfupiIntentCheckout.getDescription() + "\n---------------";
}
public CFIntentTheme getIntentTheme() {
return this.intentTheme;
}
public static final class CFUPIIntentPaymentBuilder {
private CFIntentTheme cfIntentTheme;
private CFSession cfSession;
private CFUPIIntentCheckout cfUPIIntentCheckout;
public CFUPIIntentPaymentBuilder setSession(CFSession cfSession) {
this.cfSession = cfSession;
return this;
}
public CFUPIIntentPaymentBuilder setCfUPIIntentCheckout(CFUPIIntentCheckout cfUPIIntentCheckout) {
this.cfUPIIntentCheckout = cfUPIIntentCheckout;
return this;
}
public CFUPIIntentCheckoutPayment build() throws CFInvalidArgumentException {
if (this.cfSession == null) {
throw CFError.SESSION_OBJECT_MISSING.getException();
}
if (this.cfUPIIntentCheckout == null) {
this.cfUPIIntentCheckout = new CFUPIIntentCheckout.CFUPIIntentBuilder().build();
}
if (this.cfIntentTheme == null) {
this.cfIntentTheme = new CFIntentTheme.CFIntentThemeBuilder().build();
}
return new CFUPIIntentCheckoutPayment(this.cfSession, this.cfUPIIntentCheckout, this.cfIntentTheme);
}
public CFUPIIntentPaymentBuilder setCfIntentTheme(CFIntentTheme cfIntentTheme) {
this.cfIntentTheme = cfIntentTheme;
return this;
}
}
}