Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renames LinkAccountSession to FinancialConnectionsSession. #4910

Merged
merged 14 commits into from
Apr 28, 2022

Conversation

carlosmuvi-stripe
Copy link
Collaborator

@carlosmuvi-stripe carlosmuvi-stripe commented Apr 25, 2022

Summary

A few renames to match the gaveled naming changes:

Before After
LinkAccountSession FinancialConnectionsSession
LinkedAccount FinancialConnectionsAccount

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

- [Changed] 
  - LinkAccountSession -> FinancialConnectionsSession
  - LinkedAccount -> FinancialConnectionsAccount

@github-actions
Copy link
Contributor

github-actions bot commented Apr 25, 2022

Diffuse output:

OLD: paymentsheet-example-release-master.apk (signature: none)
NEW: paymentsheet-example-release-pr.apk (signature: none)

          │           compressed           │         uncompressed         
          ├───────────┬───────────┬────────┼──────────┬──────────┬────────
 APK      │ old       │ new       │ diff   │ old      │ new      │ diff   
──────────┼───────────┼───────────┼────────┼──────────┼──────────┼────────
      dex │  13.5 MiB │  13.5 MiB │ +178 B │ 45.1 MiB │ 45.1 MiB │ +568 B 
     arsc │   1.7 MiB │   1.7 MiB │    0 B │  1.7 MiB │  1.7 MiB │    0 B 
 manifest │   3.1 KiB │   3.1 KiB │    0 B │ 13.7 KiB │ 13.7 KiB │    0 B 
      res │ 709.9 KiB │ 709.9 KiB │    0 B │  1.1 MiB │  1.1 MiB │    0 B 
   native │   5.4 MiB │   5.4 MiB │    0 B │ 13.4 MiB │ 13.4 MiB │    0 B 
    asset │     3 MiB │     3 MiB │    0 B │    3 MiB │    3 MiB │    0 B 
    other │    80 KiB │    80 KiB │    0 B │  155 KiB │  155 KiB │    0 B 
──────────┼───────────┼───────────┼────────┼──────────┼──────────┼────────
    total │  24.3 MiB │  24.3 MiB │ +178 B │ 64.5 MiB │ 64.5 MiB │ +568 B 

         │          raw           │             unique              
         ├────────┬────────┬──────┼────────┬────────┬───────────────
 DEX     │ old    │ new    │ diff │ old    │ new    │ diff          
─────────┼────────┼────────┼──────┼────────┼────────┼───────────────
   files │      3 │      3 │    0 │        │        │               
 strings │ 218401 │ 218401 │    0 │ 192282 │ 192282 │ 0 (+74 -74)   
   types │  37856 │  37856 │    0 │  35089 │  35089 │ 0 (+23 -23)   
 classes │  32460 │  32460 │    0 │  32460 │  32460 │ 0 (+21 -21)   
 methods │ 195128 │ 195128 │    0 │ 188781 │ 188781 │ 0 (+123 -123) 
  fields │ 139278 │ 139278 │    0 │ 138399 │ 138399 │ 0 (+50 -50)   

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  292 │  292 │  0   
 entries │ 5757 │ 5757 │  0
APK
    compressed    │   uncompressed    │                
─────────┬────────┼──────────┬────────┤                
 size    │ diff   │ size     │ diff   │ path           
─────────┼────────┼──────────┼────────┼────────────────
 3.8 MiB │ +141 B │ 11.1 MiB │ +592 B │ ∆ classes3.dex 
 3.2 MiB │  +37 B │  8.7 MiB │  -24 B │ ∆ classes2.dex 
─────────┼────────┼──────────┼────────┼────────────────
 7.1 MiB │ +178 B │ 19.8 MiB │ +568 B │ (total)
DEX
STRINGS:

   old    │ new    │ diff        
  ────────┼────────┼─────────────
   192282 │ 192282 │ 0 (+74 -74) 
  + CreateFinancialConnectionsSessionParams(clientSecret=
  + CreateFinancialConnectionsSessionParams.kt
  + FinancialConnectionsSession(clientSecret=
  + FinancialConnectionsSession.kt
  + FinancialConnectionsSessionJsonParser.kt
  + Lcom/stripe/android/model/CreateFinancialConnectionsSessionParams_Companion;
  + Lcom/stripe/android/model/CreateFinancialConnectionsSessionParams;
  + Lcom/stripe/android/model/FinancialConnectionsSession_Creator;
  + Lcom/stripe/android/model/FinancialConnectionsSession;
  + Lcom/stripe/android/model/parsers/FinancialConnectionsSessionJsonParser_Companion;
  + Lcom/stripe/android/model/parsers/FinancialConnectionsSessionJsonParser;
  + [Lcom/stripe/android/model/FinancialConnectionsSession;
  + @
  ���
  ���
  
  ���
  
  ���
  ��	
  ���
  
  ���
  
  ��
  ���
  ���
  
  ���
  
  ���
  �������2�0�B�������0�������0�¢����J	����0�HÆ�J	���0�HÆ�J��
  ��02�������0�2�������0�HÆ�J	����0�HÖ�J�����0�2�������0�HÖ�J	����0�HÖ�J	����0�HÖ�J�����0�2�����0�2�����0�HÖ�R�����0�¢��
  ������R�����0�¢��
  ���	�
  ¨��
  + _financialConnectionsSession
  + ()Lcom/stripe/android/financialconnections/model/FinancialConnectionsSession;
  + (Lcom/stripe/android/model/StripeIntent;Lcom/stripe/android/financialconnections/model/FinancialConnectionsSession;)V
  + (Lcom/stripe/android/payments/bankaccount/navigation/CollectBankAccountContract_Args;Lkotlinx/coroutines/flow/MutableSharedFlow;Lcom/stripe/android/payments/bankaccount/domain/CreateFinancialConnectionsSession;Lcom/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession;Lcom/stripe/android/payments/bankaccount/domain/RetrieveStripeIntent;Lcom/stripe/android/core/Logger;)V
  + (Ljava/lang/String;Lcom/stripe/android/model/CreateFinancialConnectionsSessionParams;Lcom/stripe/android/core/networking/ApiRequest_Options;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
  + , financialConnectionsSession=
  + AttachFinancialConnectionsSession.kt
  + AttachFinancialConnectionsSession_Factory.java
  + CreateFinancialConnectionsSession.kt
  + CreateFinancialConnectionsSession_Factory.java
  + Lcom/stripe/android/financialconnections/model/FinancialConnectionsSession;
  + Lcom/stripe/android/networking/StripeApiRepository_attachFinancialConnectionsSessionToPaymentIntent_2;
  + Lcom/stripe/android/networking/StripeApiRepository_attachFinancialConnectionsSessionToSetupIntent_2;
  + Lcom/stripe/android/networking/StripeApiRepository_createPaymentIntentFinancialConnectionsSession_2;
  + Lcom/stripe/android/networking/StripeApiRepository_createSetupIntentFinancialConnectionsSession_2;
  + Lcom/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession_forPaymentIntent_1;
  + Lcom/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession_forSetupIntent_1;
  + Lcom/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession;
  + Lcom/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession_Factory;
  + Lcom/stripe/android/payments/bankaccount/domain/CreateFinancialConnectionsSession_forPaymentIntent_1;
  + Lcom/stripe/android/payments/bankaccount/domain/CreateFinancialConnectionsSession_forSetupIntent_1;
  + Lcom/stripe/android/payments/bankaccount/domain/CreateFinancialConnectionsSession;
  + Lcom/stripe/android/payments/bankaccount/domain/CreateFinancialConnectionsSession_Factory;
  + Lcom/stripe/android/payments/bankaccount/ui/CollectBankAccountViewModel_attachFinancialConnectionsSessionToIntent_1;
  + Lcom/stripe/android/payments/bankaccount/ui/CollectBankAccountViewModel_createFinancialConnectionsSession_1;
  + Lcom/stripe/android/payments/bankaccount/ui/CollectBankAccountViewModel_finishWithFinancialConnectionsSession_1;
  + SMAP
  AttachFinancialConnectionsSession.kt
  Kotlin
  *S Kotlin
  *F
  + 1 AttachFinancialConnectionsSession.kt
  com/stripe/android/payments/bankaccount/domain/AttachFinancialConnectionsSession
  + 2 fake.kt
  kotlin/jvm/internal/FakeKt
  *L
  1#1,51:1
  1#2:52
  *E
  
  + SMAP
  CollectBankAccountViewModel.kt
  Kotlin
  *S Kotlin
  *F
  + 1 CollectBankAccountViewModel.kt
  com/stripe/android/payments/bankaccount/ui/CollectBankAccountViewModel_attachFinancialConnectionsSessionToIntent_1
  + 2 fake.kt
  kotlin/jvm/internal/FakeKt
  *L
  1#1,171:1
  1#2:172
  *E
  
  + SMAP
  CreateFinancialConnectionsSession.kt
  Kotlin
  *S Kotlin
...✂

import com.stripe.android.financialconnections.repository.FinancialConnectionsRepository
import javax.inject.Inject

internal class FetchFinancialConnectionsSession @Inject constructor(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes, just renamed the class.

import org.json.JSONObject
import javax.inject.Inject

internal class FetchFinancialConnectionsSessionForToken @Inject constructor(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes, just renamed the class.

@carlosmuvi-stripe carlosmuvi-stripe marked this pull request as ready for review April 28, 2022 16:43
@carlosmuvi-stripe carlosmuvi-stripe changed the title [WIP] Renames LinkAccountSession to FinancialConnectionsSession. Renames LinkAccountSession to FinancialConnectionsSession. Apr 28, 2022
Copy link
Contributor

@jameswoo-stripe jameswoo-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm other than some file naming

@@ -20,22 +20,22 @@ class FinancialFinancialConnectionsSheetContractTest {
@Test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File naming?

@@ -33,7 +33,7 @@ class FinancialFinancialConnectionsSheetActivityTest {
private val context = ApplicationProvider.getApplicationContext<Context>()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of this file seems off :D

@@ -20,7 +20,7 @@ internal class DefaultFinancialFinancialConnectionsEventReporter @Inject constru
fireEvent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File naming?

@@ -6,16 +6,16 @@ import androidx.lifecycle.SavedStateHandle
import androidx.test.ext.junit.runners.AndroidJUnit4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File naming?

Copy link

@charliecruzan-stripe charliecruzan-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍 (im not a codeowner though)

will be aware of these changes next time we update stripe-react-native

@carlosmuvi-stripe carlosmuvi-stripe merged commit a3a2796 into master Apr 28, 2022
@carlosmuvi-stripe carlosmuvi-stripe deleted the f/renames-to-financial-connections-session branch April 28, 2022 21:57
@carlosmuvi-stripe carlosmuvi-stripe added the financial-connections Relates to the Financial Connections SDK label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
financial-connections Relates to the Financial Connections SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants