Skip to content

Conversation

@kgangineni
Copy link
Collaborator

Summary of changes

  • added GraphQLResponse, GraphQLRequest
  • used kotlin serialization for serialization and deserialization in GraphQLClient
  • migrated DataVaultPaymentMethodTokensAPI to use kotlin serialization and strong data types

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

- used kotlin serialization for serialization and deserialization in GraphQLClient
- migrated DataVaultPaymentMethodTokensAPI to use kotlin serialization and strong data types
data class GraphQLRequest<V>(
val query: String,
val variables: V? = null,
@kotlinx.serialization.Transient
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey what does @kotlinx.serialization.Transient do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it tells serializer not to serialize property

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh ok. Do we actually need this property? It looks like it's always null.

expiry = cardExpiry,
name = card.cardholderName,
securityCode = card.securityCode,
billingAddress = vaultBillingAddress
Copy link
Collaborator

@KunJeongPark KunJeongPark Sep 11, 2025

Choose a reason for hiding this comment

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

We don't have billingAddress for Card in iOS for vaulting.
I wonder if that's a requirement.
Maybe we need to add it as an optional field.
The endpoint works without it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is an optional field, nullable in kotlin

@kgangineni kgangineni merged commit 047deea into feature/kotlin_serialization Sep 12, 2025
6 checks passed
@kgangineni kgangineni deleted the graphQLMigration branch September 12, 2025 16:17
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