TransactionInfo$Builder.smali

.class public final Lcom/google/android/gms/wallet/TransactionInfo$Builder;
.super Ljava/lang/Object;
.source "SourceFile"


# 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 private final synthetic zzea:Lcom/google/android/gms/wallet/TransactionInfo;


# direct methods
.method private constructor <init>(Lcom/google/android/gms/wallet/TransactionInfo;)V
    .registers 2

    .line 1
    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

    .line 2
    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 6

    .line 1
    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;

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

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

    const/4 v2, 0x3

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-eq v1, v4, :cond_18

    if-eq v1, v3, :cond_18

    if-ne v1, v2, :cond_17

    goto :goto_18

    :cond_17
    const/4 v4, 0x0

    :cond_18
    :goto_18
    if-eqz v4, :cond_33

    if-ne v1, v3, :cond_23

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

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

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

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

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

    if-ne v1, v2, :cond_30

    .line 5
    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;

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

    return-object v0

    .line 7
    :cond_33
    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

    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

    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