-
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.
Merge pull request #1 from tezro-official/feat/update_rest_api
Update Rest API
- Loading branch information
Showing
189 changed files
with
4,347 additions
and
2,943 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
# We'll run this workflow when a new GitHub release is created | ||
types: [released] | ||
|
||
jobs: | ||
publish: | ||
name: Release build and publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
|
||
- name: Build Shop for JVM | ||
run: ./gradlew :shop:assemble | ||
|
||
- name: Build Android Widget | ||
run: ./gradlew :shop-android-widget:assemble | ||
|
||
- name: Source jar | ||
run: ./gradlew projectSourcesJar javadocJar | ||
|
||
# Runs upload, and then closes & releases the repository | ||
- name: Publish to MavenCentral | ||
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
key.gpg |
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,33 +1,32 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
ext { | ||
kotlin_version = '1.5.0-release-764' | ||
} | ||
repositories { | ||
google() | ||
mavenLocal() | ||
mavenCentral() | ||
google() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:4.2.1' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0" | ||
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.32' | ||
classpath 'com.android.tools.build:gradle:7.2.1' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0" | ||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" | ||
id("org.jetbrains.dokka") version "1.6.21" | ||
} | ||
|
||
apply from: "${rootDir}/scripts/publish-root.gradle" | ||
|
||
allprojects { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
google() | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} | ||
|
||
apply from: "${rootDir}/scripts/publish-root.gradle" | ||
} |
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,17 +1,19 @@ | ||
--- | ||
title: shop-android-widget - | ||
title: shop-android-widget | ||
--- | ||
//[shop-android-widget](index.md) | ||
//[shop-android-widget](index.html) | ||
|
||
|
||
|
||
# shop-android-widget | ||
# shop-android-widget | ||
|
||
|
||
## Packages | ||
|
||
| Name | | ||
|
||
## Packages | ||
|
||
|
||
| Name | | ||
|---| | ||
| <a name="com.tezro.api.shop.widget.core////PointingToDeclaration/"></a>[com.tezro.api.shop.widget.core](shop-android-widget/com.tezro.api.shop.widget.core/index.md)| | ||
| <a name="com.tezro.api.shop.widget.views////PointingToDeclaration/"></a>[com.tezro.api.shop.widget.views](shop-android-widget/com.tezro.api.shop.widget.views/index.md)| | ||
| [com.tezro.api.shop.widget.core](shop-android-widget/com.tezro.api.shop.widget.core/index.html) | | ||
| [com.tezro.api.shop.widget.views](shop-android-widget/com.tezro.api.shop.widget.views/index.html) | | ||
|
37 changes: 21 additions & 16 deletions
37
...get/shop-android-widget/com.tezro.api.shop.widget.core/-payment-helper/index.md
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,32 +1,37 @@ | ||
--- | ||
title: PaymentHelper - | ||
title: PaymentHelper | ||
--- | ||
//[shop-android-widget](../../../index.md)/[com.tezro.api.shop.widget.core](../index.md)/[PaymentHelper](index.md) | ||
//[shop-android-widget](../../../index.html)/[com.tezro.api.shop.widget.core](../index.html)/[PaymentHelper](index.html) | ||
|
||
|
||
|
||
# PaymentHelper | ||
[androidJvm] object [PaymentHelper](index.md) | ||
# PaymentHelper | ||
|
||
|
||
|
||
[androidJvm]\ | ||
object [PaymentHelper](index.html) | ||
|
||
A helper that's used to proceed the user to order payment. | ||
|
||
|
||
|
||
|
||
## See also | ||
|
||
androidJvm | ||
|
||
## See also | ||
|
||
|
||
androidJvm | ||
|
||
| | | | ||
|---|---| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper///PointingToDeclaration/"></a>com.tezro.api.shop.model.orders.Order| <a name="com.tezro.api.shop.widget.core/PaymentHelper///PointingToDeclaration/"></a>| | ||
|
||
| com.tezro.api.shop.model.orders.Order | | | ||
|
||
|
||
|
||
## Functions | ||
|
||
|
||
## Functions | ||
|
||
| Name | Summary | | ||
| Name | Summary | | ||
|---|---| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a>[requestPaymentByLink](request-payment-by-link.md)| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a>[androidJvm] <br>Content <br>@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)() <br> <br>fun [requestPaymentByLink](request-payment-by-link.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), paymentLink: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) <br>More info <br>Opens Tezro app or web browser if the app is not installed. <br><br><br>| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a>[requestPaymentByOrder](request-payment-by-order.md)| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a>[androidJvm] <br>Content <br>@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)() <br> <br>fun [requestPaymentByOrder](request-payment-by-order.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), order: Order) <br>More info <br>Opens Tezro app or web browser if the app is not installed. <br><br><br>| | ||
| [requestPaymentByLink](request-payment-by-link.html) | [androidJvm]<br>@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)<br>fun [requestPaymentByLink](request-payment-by-link.html)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), paymentLink: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))<br>Opens Tezro app or web browser if the app is not installed. Proceeds the user to order payment. | | ||
| [requestPaymentByOrder](request-payment-by-order.html) | [androidJvm]<br>@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)<br>fun [requestPaymentByOrder](request-payment-by-order.html)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), order: Order)<br>Opens Tezro app or web browser if the app is not installed. Proceeds the user to order payment. | | ||
|
42 changes: 25 additions & 17 deletions
42
...idget/com.tezro.api.shop.widget.core/-payment-helper/request-payment-by-link.md
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,33 +1,41 @@ | ||
--- | ||
title: requestPaymentByLink - | ||
title: requestPaymentByLink | ||
--- | ||
//[shop-android-widget](../../../index.md)/[com.tezro.api.shop.widget.core](../index.md)/[PaymentHelper](index.md)/[requestPaymentByLink](request-payment-by-link.md) | ||
//[shop-android-widget](../../../index.html)/[com.tezro.api.shop.widget.core](../index.html)/[PaymentHelper](index.html)/[requestPaymentByLink](request-payment-by-link.html) | ||
|
||
|
||
|
||
# requestPaymentByLink | ||
[androidJvm] | ||
Content | ||
@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)() | ||
|
||
fun [requestPaymentByLink](request-payment-by-link.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), paymentLink: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | ||
More info | ||
# requestPaymentByLink | ||
|
||
|
||
|
||
[androidJvm]\ | ||
|
||
|
||
|
||
|
||
@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html) | ||
|
||
|
||
|
||
fun [requestPaymentByLink](request-payment-by-link.html)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), paymentLink: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | ||
|
||
|
||
|
||
Opens Tezro app or web browser if the app is not installed. Proceeds the user to order payment. | ||
|
||
|
||
|
||
## Parameters | ||
|
||
androidJvm | ||
|
||
## Parameters | ||
|
||
|
||
androidJvm | ||
|
||
| | | | ||
|---|---| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a>context| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a><br><br>Activity or application from where Tezro app will be opened<br><br>| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a>paymentLink| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByLink/#android.content.Context#kotlin.String/PointingToDeclaration/"></a><br><br>Payment URL from the order to be payed<br><br>| | ||
|
||
|
||
| context | Activity or application from where Tezro app will be opened | | ||
| paymentLink | Payment URL from the order to be payed | | ||
|
||
|
||
|
||
|
42 changes: 25 additions & 17 deletions
42
...dget/com.tezro.api.shop.widget.core/-payment-helper/request-payment-by-order.md
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,33 +1,41 @@ | ||
--- | ||
title: requestPaymentByOrder - | ||
title: requestPaymentByOrder | ||
--- | ||
//[shop-android-widget](../../../index.md)/[com.tezro.api.shop.widget.core](../index.md)/[PaymentHelper](index.md)/[requestPaymentByOrder](request-payment-by-order.md) | ||
//[shop-android-widget](../../../index.html)/[com.tezro.api.shop.widget.core](../index.html)/[PaymentHelper](index.html)/[requestPaymentByOrder](request-payment-by-order.html) | ||
|
||
|
||
|
||
# requestPaymentByOrder | ||
[androidJvm] | ||
Content | ||
@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)() | ||
|
||
fun [requestPaymentByOrder](request-payment-by-order.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), order: Order) | ||
More info | ||
# requestPaymentByOrder | ||
|
||
|
||
|
||
[androidJvm]\ | ||
|
||
|
||
|
||
|
||
@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html) | ||
|
||
|
||
|
||
fun [requestPaymentByOrder](request-payment-by-order.html)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), order: Order) | ||
|
||
|
||
|
||
Opens Tezro app or web browser if the app is not installed. Proceeds the user to order payment. | ||
|
||
|
||
|
||
## Parameters | ||
|
||
androidJvm | ||
|
||
## Parameters | ||
|
||
|
||
androidJvm | ||
|
||
| | | | ||
|---|---| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a>context| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a><br><br>Activity or application from where Tezro app will be opened<br><br>| | ||
| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a>order| <a name="com.tezro.api.shop.widget.core/PaymentHelper/requestPaymentByOrder/#android.content.Context#com.tezro.api.shop.model.orders.Order/PointingToDeclaration/"></a><br><br>The order that should be payed<br><br>| | ||
|
||
|
||
| context | Activity or application from where Tezro app will be opened | | ||
| order | The order that should be payed | | ||
|
||
|
||
|
||
|
Oops, something went wrong.