-
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 #36 from cafebazaar/dev
Release 4.0.1
- Loading branch information
Showing
38 changed files
with
523 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-keep class ir.cafebazaar.bazaarpay.** { *; } |
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
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
6 changes: 6 additions & 0 deletions
6
...arPay/src/main/java/ir/cafebazaar/bazaarpay/data/payment/models/pay/InitCheckoutResult.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,6 @@ | ||
package ir.cafebazaar.bazaarpay.data.payment.models.pay | ||
|
||
data class InitCheckoutResult( | ||
val checkoutToken: String, | ||
val paymentUrl: String | ||
) |
9 changes: 9 additions & 0 deletions
9
.../main/java/ir/cafebazaar/bazaarpay/data/payment/models/pay/request/InitCheckoutRequest.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,9 @@ | ||
package ir.cafebazaar.bazaarpay.data.payment.models.pay.request | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
internal data class InitCheckoutRequest( | ||
@SerializedName("amount") val amount: Long, | ||
@SerializedName("destination") val destination: String, | ||
@SerializedName("service_name") val serviceName: String, | ||
) |
16 changes: 16 additions & 0 deletions
16
...ain/java/ir/cafebazaar/bazaarpay/data/payment/models/pay/response/InitCheckoutResponse.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,16 @@ | ||
package ir.cafebazaar.bazaarpay.data.payment.models.pay.response | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import ir.cafebazaar.bazaarpay.data.payment.models.PaymentBaseResponse | ||
import ir.cafebazaar.bazaarpay.data.payment.models.pay.InitCheckoutResult | ||
import ir.cafebazaar.bazaarpay.data.payment.models.pay.PayResult | ||
|
||
internal data class InitCheckoutResponse( | ||
@SerializedName("checkout_token") val checkoutToken: String, | ||
@SerializedName("payment_url") val paymentUrl: String | ||
): PaymentBaseResponse() { | ||
|
||
fun toInitCheckoutResult(): InitCheckoutResult { | ||
return InitCheckoutResult(checkoutToken, paymentUrl) | ||
} | ||
} |
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.