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

Implements Indian and Chinese States/Provinces in address #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RafalOzogJudopay
Copy link
Contributor

@RafalOzogJudopay RafalOzogJudopay commented Dec 6, 2024

Summary:

  1. Indian states have been implemented.
  2. Chinese provinces have been implemented.
  3. BillingCountry class used in previous solution has been removed.
  4. In JPCardValidationService, the selectedBillingCountry (that refers to the BillingScreen and used to be of type JPBillingCountry) has been transformed into JPCountry. I have checked all of its usages to ensure that it doesn't break stuff.

Demo:

demo.mov

@RafalOzogJudopay RafalOzogJudopay force-pushed the CT-3016-introduces-state-into-indian-addresses branch from f2baa9b to 0dc9ecf Compare December 12, 2024 12:33
@RafalOzogJudopay RafalOzogJudopay changed the title Implements Indian States in address Implements Indian and Chinese States/Provinces in address Dec 16, 2024
@RafalOzogJudopay RafalOzogJudopay force-pushed the CT-3016-introduces-state-into-indian-addresses branch 3 times, most recently from 772ffda to 14d38c9 Compare December 18, 2024 10:53
@RafalOzogJudopay RafalOzogJudopay force-pushed the CT-3016-introduces-state-into-indian-addresses branch from 1a3c765 to deec266 Compare December 18, 2024 11:02
@@ -52,7 +56,7 @@ - (instancetype)initWithDictionary:(NSDictionary *)dict {

@implementation JPStateList

+ (instancetype)usStateList {
+ (nullable instancetype)usStatesList {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for nullable in implementation (.m) files

@@ -549,12 +549,20 @@ - (void)updateBillingCountryViewModelForInput:(NSString *)input showError:(BOOL)
[self updateBillingStateViewModelForInput:@"" showError:showError];

if (country.isUSA) {
stateViewModel.options = JPStateList.usStateList.states;
stateViewModel.options = JPStateList.usStatesList ? JPStateList.usStatesList.states : @[];
Copy link
Contributor

Choose a reason for hiding this comment

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

can we simply stateViewModel.options = JPStateList.usStatesList.states ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants