导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - fs.java 源代码

正在查看: Clash Legends v0.0.1 应用的 fs.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.paypal.android.sdk;

import com.onesignal.inAppMessages.internal.display.impl.WebViewManager;
import java.util.Date;
import org.json.JSONException;
import org.json.JSONObject;

public final class fs extends fq {
    public final String a;
    private final String b;
    private final String c;
    private final String d;
    private final int e;
    private final int f;
    private String g;
    private String h;
    private Date i;

    public fs(cx cxVar, b bVar, String str, String str2, String str3, String str4, String str5, int i, int i2) {
        super(df.TokenizeCreditCardRequest, cxVar, bVar, str);
        this.a = str2;
        this.b = str3;
        if (str4 == null) {
            throw new RuntimeException("cardNumber should not be null.  If it is, then you're probably trying to tokenize a card that's already been tokenized.");
        }
        this.c = str4;
        this.d = str5;
        this.e = i;
        this.f = i2;
    }

    @Override
    public final String b() {
        JSONObject jSONObject = new JSONObject();
        jSONObject.accumulate("payer_id", this.a);
        jSONObject.accumulate("cvv2", this.d);
        jSONObject.accumulate("expire_month", Integer.valueOf(this.e));
        jSONObject.accumulate("expire_year", Integer.valueOf(this.f));
        jSONObject.accumulate("number", this.c);
        jSONObject.accumulate(WebViewManager.EVENT_TYPE_KEY, this.b);
        return jSONObject.toString();
    }

    @Override
    public final void c() {
        JSONObject m = m();
        try {
            this.g = m.getString("id");
            String string = m.getString("number");
            String str = this.h;
            if (str == null || !str.endsWith(string.substring(string.length() - 4))) {
                this.h = string;
            }
            this.i = ex.a(m.getString("valid_until"));
        } catch (JSONException e) {
            d();
        }
    }

    @Override
    public final void d() {
        b(m());
    }

    @Override
    public final String e() {
        return new StringBuilder("{\"id\":\"CARD-50Y58962PH1899901KFFBSDA\",\"valid_until\":\"2016-03-19T00:00:00.000Z\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx").append(this.c.substring(r1.length() - 4)).append("\",\"expire_month\":\"").append(this.e).append("\",\"expire_year\":\"").append(this.f).append("\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-50Y58962PH1899901KFFBSDA\",\"rel\":\"self\",\"method\":\"GET\"}]}").toString();
    }

    public final String t() {
        return this.g;
    }

    public final String u() {
        return this.h;
    }

    public final Date v() {
        return this.i;
    }

    public final String w() {
        return this.b;
    }

    public final int x() {
        return this.e;
    }

    public final int y() {
        return this.f;
    }
}