TransactionInfo$Builder.smali

.class public final Lcom/google/android/gms/wallet/TransactionInfo$Builder;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-wallet@@18.0.0"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/google/android/gms/wallet/TransactionInfo;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "Builder"
.end annotation


# instance fields
.field public final synthetic zzea:Lcom/google/android/gms/wallet/TransactionInfo;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lcom/google/android/gms/wallet/TransactionInfo;)V
    .registers 2

    iput-object p1, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public synthetic constructor <init>(Lcom/google/android/gms/wallet/TransactionInfo;Lcom/google/android/gms/wallet/zzah;)V
    .registers 3

    invoke-direct {p0, p1}, Lcom/google/android/gms/wallet/TransactionInfo$Builder;-><init>(Lcom/google/android/gms/wallet/TransactionInfo;)V

    return-void
.end method


# virtual methods
.method public final build()Lcom/google/android/gms/wallet/TransactionInfo;
    .registers 5

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iget-object v0, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdz:Ljava/lang/String;

    const-string v1, "currencyCode must be set!"

    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iget v0, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdx:I

    const/4 v1, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eq v0, v3, :cond_18

    if-eq v0, v2, :cond_18

    if-ne v0, v1, :cond_17

    goto :goto_18

    :cond_17
    const/4 v3, 0x0

    :cond_18
    :goto_18
    if-eqz v3, :cond_37

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iget v3, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdx:I

    if-ne v3, v2, :cond_27

    iget-object v0, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdy:Ljava/lang/String;

    const-string v2, "An estimated total price must be set if totalPriceStatus is set to WalletConstants.TOTAL_PRICE_STATUS_ESTIMATED!"

    invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    :cond_27
    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iget v2, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdx:I

    if-ne v2, v1, :cond_34

    iget-object v0, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdy:Ljava/lang/String;

    const-string v1, "An final total price must be set if totalPriceStatus is set to WalletConstants.TOTAL_PRICE_STATUS_FINAL!"

    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    :cond_34
    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    return-object v0

    :cond_37
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "totalPriceStatus must be set to one of WalletConstants.TotalPriceStatus!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public final setCurrencyCode(Ljava/lang/String;)Lcom/google/android/gms/wallet/TransactionInfo$Builder;
    .registers 3
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iput-object p1, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdz:Ljava/lang/String;

    return-object p0
.end method

.method public final setTotalPrice(Ljava/lang/String;)Lcom/google/android/gms/wallet/TransactionInfo$Builder;
    .registers 3
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iput-object p1, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdy:Ljava/lang/String;

    return-object p0
.end method

.method public final setTotalPriceStatus(I)Lcom/google/android/gms/wallet/TransactionInfo$Builder;
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/wallet/TransactionInfo$Builder;->zzea:Lcom/google/android/gms/wallet/TransactionInfo;

    iput p1, v0, Lcom/google/android/gms/wallet/TransactionInfo;->zzdx:I

    return-object p0
.end method