-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support categories #152
base: master
Are you sure you want to change the base?
Support categories #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion. Thanks for adding HelpDoc.
AffirmSDK/AffirmItem.h
Outdated
unitPrice:(NSDecimalNumber *)unitPrice | ||
quantity:(NSInteger)quantity | ||
URL:(NSURL *)URL | ||
categories:(nullable NSArray<NSArray<NSString *> *> *)categories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm coming into this cold and don't have context. But an array of arrays is kind of weird to wrap one's head around.
Would it be clearer to define an AffirmCategory
like:
@interface AffirmCategory
@property (nonatomic, nonnull) NSString name;
@property (nonatomic, nullable) NSArray<NSString*> subCategories;
... etc.
and have categories
be an NSArray<AffirmCategory*>*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, both the backend and Android SDK use a two-dimensional string array without any subdivisions. Do we need to standardize this? If we decide to define an AffirmCategory, it only needs to include an array, the name isn't really necessary.
Backend:
https://docs.affirm.com/developers/reference/the-item-object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to some issues with GitHub Actions on the latest macOS, downgrading to macOS-12 can resolve the problem. You can find more details here: actions/runner-images#9591.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ed's comment seems fine to me, might help with clarity.
Will we run into any issues in the future with this macOS "downgrade"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll optimize it. The downgrade does not impact the SDK, it simply enables tests to run normally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eb-smith-affirm @bf-affirm It has been optimized, thanks for your response.
Also the tests fail. What do you use as the CI/CD? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.