-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
198 additions
and
120 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
org.gradle.parallel=true | ||
kotlin.code.style=official | ||
nextPlannedApiVersion=0.0.1 | ||
nextPlannedApiVersion=0.0.1 | ||
isRelease=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sat Jun 29 17:47:25 CEST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStorePath=wrapper/dists |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package cc.worldmandia | ||
|
||
expect fun encodeToBase64(input: String): String | ||
|
||
expect fun generateUUID(): String |
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
35 changes: 35 additions & 0 deletions
35
kpaypal-api/src/commonMain/kotlin/cc/worldmandia/paypalApi/PayPalLocale.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,35 @@ | ||
package cc.worldmandia.paypalApi | ||
|
||
enum class PayPalLocale(val languageTag: String) { | ||
ENGLISH_US("en_US"), | ||
ENGLISH_UK("en_GB"), | ||
ENGLISH_AUSTRALIA("en_AU"), | ||
ENGLISH_CANADA("en_CA"), | ||
GERMAN("de_DE"), | ||
FRENCH("fr_FR"), | ||
FRENCH_CANADA("fr_CA"), | ||
ITALIAN("it_IT"), | ||
SPANISH("es_ES"), | ||
SPANISH_MEXICO("es_MX"), | ||
DUTCH("nl_NL"), | ||
JAPANESE("ja_JP"), | ||
CHINESE_CHINA("zh_CN"), | ||
CHINESE_HONG_KONG("zh_HK"), | ||
CHINESE_TAIWAN("zh_TW"), | ||
POLISH("pl_PL"), | ||
PORTUGUESE_BRAZIL("pt_BR"), | ||
PORTUGUESE_PORTUGAL("pt_PT"), | ||
RUSSIAN("ru_RU"), | ||
SWEDISH("sv_SE"), | ||
THAI("th_TH"), | ||
TURKISH("tr_TR"), | ||
DANISH("da_DK"), | ||
CZECH("cs_CZ"), | ||
NORWEGIAN("no_NO"), | ||
HEBREW("he_IL"), | ||
ARABIC("ar_EG"); | ||
|
||
companion object { | ||
fun fromLanguageTag(tag: String): PayPalLocale? = entries.find { it.languageTag == tag } | ||
} | ||
} |
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
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
Oops, something went wrong.