-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIA-1733: Introduce DIP signup API for supported countries (#12)
- Loading branch information
1 parent
d841496
commit 078beb9
Showing
3 changed files
with
158 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...kotlin/com/privateinternetaccess/account/internals/model/response/DipCountriesResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.privateinternetaccess.account.internals.model.response | ||
|
||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class DipCountriesResponse( | ||
@SerialName("dedicatedIpCountriesAvailable") | ||
val dedicatedIpCountriesAvailable: List<DedicatedIpCountriesAvailable> | ||
) { | ||
@Serializable | ||
data class DedicatedIpCountriesAvailable( | ||
@SerialName("country_code") | ||
val countryCode: String, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("new_regions") | ||
val newRegions: List<String>, | ||
@SerialName("regions") | ||
val regions: List<String> | ||
) | ||
} |