Skip to content

Commit

Permalink
Merge pull request #1 from tezro-official/feat/update_rest_api
Browse files Browse the repository at this point in the history
Update Rest API
  • Loading branch information
tamimattafi authored Jun 1, 2022
2 parents 3952247 + c061551 commit 2b888b8
Show file tree
Hide file tree
Showing 189 changed files with 4,347 additions and 2,943 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.externalNativeBuild
.cxx
local.properties
key.gpg
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Our library is published to `mavenCentral`, so you need to include this reposito
**Gradle**
```groovy
dependencies {
implementation 'com.tezro.api:shop:1.0.1'
implementation 'com.tezro.api:shop:1.1.0'
//Include if you are willing to use our android ready-views
implementation 'com.tezro.api:shop-android-widget:1.0.1'
implementation 'com.tezro.api:shop-android-widget:1.1.0'
}
```

Expand Down
21 changes: 10 additions & 11 deletions build.gradle
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"
}
18 changes: 10 additions & 8 deletions docs/shop-android-widget/index.md
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) |

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. |

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 |




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 |




Loading

0 comments on commit 2b888b8

Please sign in to comment.