Models
import XPaySwiftSDK.classes.XPayUtils.swift.
XPaySDKMode
Type
enum class
Values
- DEVELOPMENT
- LIVE
Amount
Type
data class
Values
amount: Double
Original Amount
Type
data class
Values
original_amount: Double
currency
Type
data class
Values
currency: string
PaymentMethods
Type
enum class
Values
payUsing: one of the following options
- CARD
- CASH
- KIOSK
- valu
- wallets
BillingInfo
Type
data class
Properties
name
name: String
caution
Must match the following Regex pattern
Regex("^[a-zA-Z\\u0621-\\u064A-]{3,}(?:\\s[a-zA-Z\\u0621-\\u064A-]{3,})+\$")
email: String
caution
Must match the following Regex pattern
Regex("^[a-zA-Z0-9._%+-]+@[a-zA-Z.-]+[.][a-zA-Z]{2,4}\$")
phone
phone: String
caution
Must match the following Regex pattern
Regex("^\\+[0-9]{7,15}\$")
CustomField
Type
data class
Properties
field_label
field_label: String
field_value
field_value: String
com.xpay.kotlinutils.models.api.prepare
PrepareAmountData
Type
data class
Properties
total_amount
total_amount: Double | null
total_amount_currency
total_amount_currency: String | null
KIOSK
KIOSK: TotalAmount | null
TotalAmount
Type
data class
Properties
total_amount
total_amount: Double
total_amount_currency
total_amount_currency: String
com.xpay.kotlinutils.models.api.pay
PayData
Type
data class
Properties
iframe_url
iframe_url: String | null
transaction_id
transaction_id: Int
transaction_status
transaction_status: String
transaction_uuid
transaction_uuid: String
message
message: String | null
bill_reference
bill_reference: String
bm_session
bm_session: String | null
com.xpay.kotlinutils.models.api.transaction
TransactionData
Type
data class
Properties
created
created: String
id
id: Int
uuid
uuid: String
member_id
member_id: String | null
message
message: String | null
total_amount
total_amount: Double
total_amount_currency
total_amount_currency: String
payment_for
payment_for: String
quantity
quantity: String | null
status
status: String
custom_fields_json
custom_fields_json: Array<CustomField> | null
total_amount_piasters
total_amount_piasters: Int