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

Make PaymentMethod.Card.networks field public #5552

Merged
merged 3 commits into from
Sep 14, 2022

Conversation

tillh-stripe
Copy link
Collaborator

@tillh-stripe tillh-stripe commented Sep 14, 2022

Summary

This pull request exposes PaymentMethod.networks, which is also a part of Stripe’s public API.

Motivation

Request from EMEA Cards team.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

tbd

@tillh-stripe tillh-stripe changed the title Make PaymentMethod networks prop public Make PaymentMethod networks prop public Sep 14, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 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 │ 15.8 MiB │ 15.8 MiB │ +51 B │  53.4 MiB │  53.4 MiB │ -48 B 
     arsc │  1.8 MiB │  1.8 MiB │   0 B │   1.8 MiB │   1.8 MiB │   0 B 
 manifest │  4.1 KiB │  4.1 KiB │   0 B │  18.9 KiB │  18.9 KiB │   0 B 
      res │    1 MiB │    1 MiB │   0 B │   1.8 MiB │   1.8 MiB │   0 B 
   native │  2.5 MiB │  2.5 MiB │   0 B │   5.9 MiB │   5.9 MiB │   0 B 
    asset │    3 MiB │    3 MiB │  -1 B │     3 MiB │     3 MiB │  -1 B 
    other │ 81.8 KiB │ 81.8 KiB │   0 B │ 155.7 KiB │ 155.7 KiB │   0 B 
──────────┼──────────┼──────────┼───────┼───────────┼───────────┼───────
    total │ 24.2 MiB │ 24.2 MiB │ +50 B │  66.1 MiB │  66.1 MiB │ -49 B 

         │          raw           │           unique            
         ├────────┬────────┬──────┼────────┬────────┬───────────
 DEX     │ old    │ new    │ diff │ old    │ new    │ diff      
─────────┼────────┼────────┼──────┼────────┼────────┼───────────
   files │      4 │      4 │    0 │        │        │           
 strings │ 257595 │ 257594 │   -1 │ 219013 │ 219013 │ 0 (+1 -1) 
   types │  45209 │  45209 │    0 │  41435 │  41435 │ 0 (+0 -0) 
 classes │  38618 │  38618 │    0 │  38618 │  38618 │ 0 (+0 -0) 
 methods │ 225324 │ 225324 │    0 │ 217271 │ 217271 │ 0 (+1 -1) 
  fields │ 164545 │ 164545 │    0 │ 163442 │ 163442 │ 0 (+0 -0) 

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  334 │  334 │  0   
 entries │ 6240 │ 6240 │  0
APK
   compressed    │  uncompressed   │                               
─────────┬───────┼─────────┬───────┤                               
 size    │ diff  │ size    │ diff  │ path                          
─────────┼───────┼─────────┼───────┼───────────────────────────────
 2.4 MiB │ +51 B │ 7.3 MiB │ -48 B │ ∆ classes3.dex                
 8.3 KiB │  -1 B │ 8.1 KiB │  -1 B │ ∆ assets/dexopt/baseline.prof 
─────────┼───────┼─────────┼───────┼───────────────────────────────
 2.4 MiB │ +50 B │ 7.3 MiB │ -49 B │ (total)
DEX
STRINGS:

   old    │ new    │ diff      
  ────────┼────────┼───────────
   219013 │ 219013 │ 0 (+1 -1) 
  + \
  ���
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  
  ��
  ���
  ���
  
  ���
  �������2�0�:�456B������������0��
  ��������0��
  ��������0��
  ��������0	�
  ���
  ����0	�
  ��������0��
  �������0��
  ���
  ����0��
  ��������0��
  ��������0��
  ��������0�¢����J	����0�HÆ�J�������0�HÆ�J�������0�HÆ�J�������0�HÆ�J�������0�HÆ�J�������0	HÆ�¢��� J��!����0	HÆ�¢��� J������0�HÆ�J��#����0�HÆ�J��_����0�HÆ�J��%����0�HÆ�J���&��02�������0�2
  ��������0�2
  ��������0�2
  ��������0	2
  ���
  ����0	2
  ��������0�2
  �������0�2
  ���
  ����0�2
  ��������0�2
  ��������0�2
  ��������0�HÆ�¢���'J	�(��0	HÖ�J��)��0*2��+����0,HÖ�J	�-��0	HÖ�J	�.��0�HÖ�J��/��002��1��022��3��0	HÖ�R�����0�8�X��¢��
  R�������0�8�X��¢��
  R�������0�8�X��¢��
  R�������0	8�X��¢��
  ���R��
  ����0	8�X��¢��
  ���R�������0�8�X��¢��
  R������0�8�X��¢��
  R��
  ����0�8�X��¢��
  R�������0�8�X��¢��
  R�������0�8�X��¢��
  R�����0�8VX��¢��������R�������0�8�X��¢��
  ¨�7
  
  - \
  ���
  ���
  
  ���
  
  ���
  
  ���
  
  ���
  ���
  ���
  
  ���
  
  ���
  ���
  ���
  ���
  ���
  
  ��
  ���
  ���
  
  ���
  �������2�0�:�567B������������0��
  ��������0��
  ��������0��
  ��������0	�
  ���
  ����0	�
  ��������0��
  �������0��
  ���
  ����0��
  ��������0��
  ��������0��
  ��������0�¢����J	����0�HÆ�J�������0�HÆ�J�������0�HÀ�¢����J�������0�HÆ�J�������0�HÆ�J�� ����0	HÆ�¢���!J������0	HÆ�¢���!J��#����0�HÆ�J��_����0�HÆ�J��%����0�HÆ�J��&����0�HÆ�J���'��02�������0�2
  ��������0�2
  ��������0�2
  ��������0	2
  ���
  ����0	2
  ��������0�2
  �������0�2
  ���
  ����0�2
  ��������0�2
  ��������0�2
  ��������0�HÆ�¢���(J	�)��0	HÖ�J��*��0+2��,����0-HÖ�J	�.��0	HÖ�J	�/��0�HÖ�J��0��012��2��032��4��0	HÖ�R�����0�8�X��¢��
  R�������0�8�X��¢��
  R�������0�8�X��¢��
  R�������0	8�X��¢��
  ���R��
  ����0	8�X��¢��
  ���R�������0�8�X��¢��
  R������0�8�X��¢��
  R��
  ����0�8�X��¢��
  R�������0�8X��¢��
  R�������0�8�X��¢��
  R�����0�8VX��¢��������R�������0�8�X��¢��
  ¨�8
  

METHODS:

   old    │ new    │ diff      
  ────────┼────────┼───────────
   217271 │ 217271 │ 0 (+1 -1) 
  + com.stripe.android.model.PaymentMethod_Card component11() → PaymentMethod_Card_Networks
  
  - com.stripe.android.model.PaymentMethod_Card component11_payments_core_release() → PaymentMethod_Card_Networks

@@ -3567,10 +3567,12 @@ public final class com/stripe/android/model/PaymentMethod$Card : com/stripe/andr
public final field fingerprint Ljava/lang/String;
public final field funding Ljava/lang/String;
public final field last4 Ljava/lang/String;
public final field networks Lcom/stripe/android/model/PaymentMethod$Card$Networks;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should this go into the release notes?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so, is this work being done on iOS?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, let's add to the CHANGEDOC.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jameswoo-stripe It’s already public in the iOS repo.

@tillh-stripe tillh-stripe marked this pull request as ready for review September 14, 2022 18:37
@tillh-stripe tillh-stripe changed the title Make PaymentMethod networks prop public Make PaymentMethod networks field public Sep 14, 2022
@tillh-stripe tillh-stripe changed the title Make PaymentMethod networks field public Make PaymentMethod.Card.networks field public Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants