Skip to content

Commit

Permalink
Support saved bank accounts in Link (#5405)
Browse files Browse the repository at this point in the history
  • Loading branch information
brnunes-stripe committed Aug 15, 2022
1 parent e878cf6 commit 3d373fc
Show file tree
Hide file tree
Showing 27 changed files with 1,023 additions and 415 deletions.
19 changes: 15 additions & 4 deletions link/api/link.api
Expand Up @@ -483,6 +483,14 @@ public final class com/stripe/android/link/ui/paymentmethod/PaymentMethodViewMod
public static fun injectSubComponentBuilderProvider (Lcom/stripe/android/link/ui/paymentmethod/PaymentMethodViewModel$Factory;Ljavax/inject/Provider;)V
}

public final class com/stripe/android/link/ui/paymentmethod/SupportedPaymentMethod$BankAccount$Creator : android/os/Parcelable$Creator {
public fun <init> ()V
public final fun createFromParcel (Landroid/os/Parcel;)Lcom/stripe/android/link/ui/paymentmethod/SupportedPaymentMethod$BankAccount;
public synthetic fun createFromParcel (Landroid/os/Parcel;)Ljava/lang/Object;
public final fun newArray (I)[Lcom/stripe/android/link/ui/paymentmethod/SupportedPaymentMethod$BankAccount;
public synthetic fun newArray (I)[Ljava/lang/Object;
}

public final class com/stripe/android/link/ui/paymentmethod/SupportedPaymentMethod$Card$Creator : android/os/Parcelable$Creator {
public fun <init> ()V
public final fun createFromParcel (Landroid/os/Parcel;)Lcom/stripe/android/link/ui/paymentmethod/SupportedPaymentMethod$Card;
Expand Down Expand Up @@ -547,26 +555,29 @@ public final class com/stripe/android/link/ui/verification/VerificationViewModel
public static fun injectViewModel (Lcom/stripe/android/link/ui/verification/VerificationViewModel$Factory;Lcom/stripe/android/link/ui/verification/VerificationViewModel;)V
}

public final class com/stripe/android/link/ui/wallet/ComposableSingletons$PaymentDetailsKt {
public static final field INSTANCE Lcom/stripe/android/link/ui/wallet/ComposableSingletons$PaymentDetailsKt;
public static field lambda-1 Lkotlin/jvm/functions/Function2;
public fun <init> ()V
public final fun getLambda-1$link_release ()Lkotlin/jvm/functions/Function2;
}

public final class com/stripe/android/link/ui/wallet/ComposableSingletons$WalletModalsKt {
public static final field INSTANCE Lcom/stripe/android/link/ui/wallet/ComposableSingletons$WalletModalsKt;
public static field lambda-1 Lkotlin/jvm/functions/Function3;
public static field lambda-2 Lkotlin/jvm/functions/Function3;
public static field lambda-3 Lkotlin/jvm/functions/Function2;
public fun <init> ()V
public final fun getLambda-1$link_release ()Lkotlin/jvm/functions/Function3;
public final fun getLambda-2$link_release ()Lkotlin/jvm/functions/Function3;
public final fun getLambda-3$link_release ()Lkotlin/jvm/functions/Function2;
}

public final class com/stripe/android/link/ui/wallet/ComposableSingletons$WalletScreenKt {
public static final field INSTANCE Lcom/stripe/android/link/ui/wallet/ComposableSingletons$WalletScreenKt;
public static field lambda-1 Lkotlin/jvm/functions/Function2;
public static field lambda-2 Lkotlin/jvm/functions/Function2;
public static field lambda-3 Lkotlin/jvm/functions/Function2;
public fun <init> ()V
public final fun getLambda-1$link_release ()Lkotlin/jvm/functions/Function2;
public final fun getLambda-2$link_release ()Lkotlin/jvm/functions/Function2;
public final fun getLambda-3$link_release ()Lkotlin/jvm/functions/Function2;
}

public final class com/stripe/android/link/ui/wallet/WalletViewModel_Factory : dagger/internal/Factory {
Expand Down
9 changes: 9 additions & 0 deletions link/res/drawable/ic_link_bank.xml
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="18dp"
android:height="17dp"
android:viewportWidth="18"
android:viewportHeight="17">
<path
android:pathData="M0.578,5.047C0.578,5.43 0.875,5.797 1.383,5.797H16.102C16.609,5.797 16.906,5.43 16.906,5.047C16.906,4.766 16.75,4.539 16.414,4.328L9.758,0.492C9.43,0.305 9.078,0.203 8.742,0.203C8.406,0.203 8.055,0.305 7.727,0.492L1.07,4.328C0.734,4.539 0.578,4.766 0.578,5.047ZM1.609,14.055C1.609,14.43 1.828,14.648 2.211,14.648H4.211C4.594,14.648 4.813,14.43 4.813,14.055V13.844C4.813,13.477 4.594,13.258 4.211,13.258H3.914V7.789H4.211C4.594,7.789 4.813,7.57 4.813,7.195V6.984C4.813,6.609 4.594,6.391 4.211,6.391H2.211C1.828,6.391 1.609,6.609 1.609,6.984V7.195C1.609,7.57 1.828,7.789 2.211,7.789H2.523V13.258H2.211C1.828,13.258 1.609,13.477 1.609,13.844V14.055ZM5.328,14.055C5.328,14.43 5.555,14.648 5.93,14.648H7.938C8.313,14.648 8.531,14.43 8.531,14.055V13.844C8.531,13.477 8.313,13.258 7.938,13.258H7.633V7.789H7.938C8.313,7.789 8.531,7.57 8.531,7.195V6.984C8.531,6.609 8.313,6.391 7.938,6.391H5.93C5.555,6.391 5.328,6.609 5.328,6.984V7.195C5.328,7.57 5.555,7.789 5.93,7.789H6.242V13.258H5.93C5.555,13.258 5.328,13.477 5.328,13.844V14.055ZM9.063,14.055C9.063,14.43 9.281,14.648 9.656,14.648H11.664C12.039,14.648 12.266,14.43 12.266,14.055V13.844C12.266,13.477 12.039,13.258 11.664,13.258H11.367V7.789H11.664C12.039,7.789 12.266,7.57 12.266,7.195V6.984C12.266,6.609 12.039,6.391 11.664,6.391H9.656C9.281,6.391 9.063,6.609 9.063,6.984V7.195C9.063,7.57 9.281,7.789 9.656,7.789H9.969V13.258H9.656C9.281,13.258 9.063,13.477 9.063,13.844V14.055ZM12.781,14.055C12.781,14.43 13,14.648 13.383,14.648H15.383C15.766,14.648 15.984,14.43 15.984,14.055V13.844C15.984,13.477 15.766,13.258 15.383,13.258H15.086V7.789H15.383C15.766,7.789 15.984,7.57 15.984,7.195V6.984C15.984,6.609 15.766,6.391 15.383,6.391H13.383C13,6.391 12.781,6.609 12.781,6.984V7.195C12.781,7.57 13,7.789 13.383,7.789H13.688V13.258H13.383C13,13.258 12.781,13.477 12.781,13.844V14.055ZM0.156,16C0.156,16.406 0.492,16.742 0.906,16.742H16.594C17,16.742 17.336,16.406 17.336,16C17.336,15.586 17,15.25 16.594,15.25H0.906C0.492,15.25 0.156,15.586 0.156,16Z"
android:fillColor="#33DDB3"/>
</vector>
6 changes: 5 additions & 1 deletion link/res/values/strings.xml
Expand Up @@ -25,7 +25,11 @@
<string name="wallet_default">Default</string>
<string name="wallet_update_card">Update card</string>
<string name="wallet_remove_card">Remove card</string>
<string name="wallet_remove_confirmation">Are you sure you want to remove this card?</string>
<string name="wallet_remove_linked_account">Remove linked account</string>
<string name="wallet_unavailable">Unavailable for this purchase</string>
<string name="wallet_remove_card_confirmation">Are you sure you want to remove this card?</string>
<string name="wallet_remove_account_confirmation">Are you sure you want to remove this account?</string>
<string name="wallet_bank_account_terms">By continuing, you agree to authorize payments pursuant to &lt;a href=\"https://stripe.com/legal/ach-payments/authorization\"&gt;these terms&lt;/a&gt;.</string>

<string name="wallet_add_payment_method">Add a payment method</string>
<string name="wallet_pay_another_way">Pay another way</string>
Expand Down

0 comments on commit 3d373fc

Please sign in to comment.