-
Notifications
You must be signed in to change notification settings - Fork 42
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
CkoPhoneNumber coding key query #47
Comments
@adamwaite Thanks for notifying this. We are aware of this now and we will plan to make a fix in the SDK with our next release. |
@adamwaite , This is now fixed as part of our latest release 3.4.0. Please feel free to re-open this if you have any further questions. |
Hey https://github.com/checkout/frames-ios/blob/develop/Source/Core/CkoAddress.swift |
Also |
Hey @adamwaite, the update was a quick fix that just addressed the Codable objects that were causing errors. We'll work on improving the whole decoding/encoding logic for a future update. 🙂 |
Hi.
Just wanted to query something I've noticed in the API contracts for registering a card in the payment flows (
POST https://api.checkout.com/tokens
).The
CkoAddress
type (and other associated types, likeCkoCardTokenRequest
) is encoded using snake case keys (https://github.com/checkout/frames-ios/blob/master/Source/CkoAddress.swift), as can be seen in theEncodable
implementation.addressLine1
becomesaddress_line1
for example.However
CkoPhoneNumber
is not encoded with any customCodingKeys
(https://github.com/checkout/frames-ios/blob/master/Source/CkoPhoneNumber.swift) and will therefore take the standard swift case convention e.g.countryCode
remains ascountryCode
.Is this a known quirk on the API? Or maybe a bug in this SDK?
The text was updated successfully, but these errors were encountered: