Search
Preparing search index...
The search index is not available
@ameria/vpos-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@ameria/vpos-sdk
Client
Class Client
Hierarchy
AmeriaClient
Client
Index
Constructors
constructor
Properties
client
Id
host
password
username
Methods
activate
Binding
ameria
Fetch
cancel
Payment
deactivate
Binding
get
Bindings
get
Payment
Details
get
Payment
Id
get
Pending
Transactions
init
Payment
make
Binding
Payment
refund
Payment
Constructors
constructor
new
Client
(
params
:
AmeriaClientParams
)
:
Client
Parameters
params:
AmeriaClientParams
Returns
Client
Properties
client
Id
client
Id
:
string
host
host
:
string
password
password
:
string
username
username
:
string
Methods
activate
Binding
activate
Binding
(
cardHolderId
:
string
, paymentType
:
string
|
number
)
:
Promise
<
any
>
Parameters
cardHolderId:
string
paymentType:
string
|
number
Returns
Promise
<
any
>
ameria
Fetch
ameria
Fetch
(
path
:
AmeriaFns
, body
:
any
)
:
Promise
<
any
>
Parameters
path:
AmeriaFns
body:
any
Returns
Promise
<
any
>
cancel
Payment
cancel
Payment
(
paymentId
:
string
)
:
Promise
<
ICancelPaymentResponse
>
Parameters
paymentId:
string
Returns
Promise
<
ICancelPaymentResponse
>
deactivate
Binding
deactivate
Binding
(
cardHolderId
:
string
, paymentType
:
string
|
number
)
:
Promise
<
any
>
Parameters
cardHolderId:
string
paymentType:
string
|
number
Returns
Promise
<
any
>
get
Bindings
get
Bindings
(
paymentType
:
string
|
number
)
:
Promise
<
any
>
Parameters
paymentType:
string
|
number
Returns
Promise
<
any
>
get
Payment
Details
get
Payment
Details
(
paymentId
:
string
)
:
Promise
<
IPaymentDetailsResponse
>
Parameters
paymentId:
string
Returns
Promise
<
IPaymentDetailsResponse
>
get
Payment
Id
get
Payment
Id
(
orderId
:
string
)
:
Promise
<
IPaymentDetailsResponse
>
Parameters
orderId:
string
Returns
Promise
<
IPaymentDetailsResponse
>
get
Pending
Transactions
get
Pending
Transactions
(
params
:
{
endDate
:
Date
;
startDate
:
Date
}
)
:
Promise
<
any
>
Parameters
params:
{
endDate
:
Date
;
startDate
:
Date
}
end
Date
:
Date
start
Date
:
Date
Returns
Promise
<
any
>
init
Payment
init
Payment
(
params
:
{
amount
:
number
;
backUrl
:
string
;
desc
:
string
;
lang
?:
"en"
|
"hy"
|
"ru"
;
opaque
:
string
;
orderId
:
string
|
number
;
userId
?:
string
}
)
:
Promise
<
IInitPaymentResponse
&
{
url
:
null
|
string
}
>
Parameters
params:
{
amount
:
number
;
backUrl
:
string
;
desc
:
string
;
lang
?:
"en"
|
"hy"
|
"ru"
;
opaque
:
string
;
orderId
:
string
|
number
;
userId
?:
string
}
amount
:
number
back
Url
:
string
desc
:
string
Optional
lang
?:
"en"
|
"hy"
|
"ru"
opaque
:
string
order
Id
:
string
|
number
Optional
user
Id
?:
string
Returns
Promise
<
IInitPaymentResponse
&
{
url
:
null
|
string
}
>
make
Binding
Payment
make
Binding
Payment
(
params
:
{
amount
:
number
;
backURL
:
string
;
cardHolderID
:
string
;
currency
:
string
;
description
:
string
;
opaque
:
string
;
orderID
:
string
|
number
;
paymentType
:
string
|
number
}
)
:
Promise
<
any
>
Parameters
params:
{
amount
:
number
;
backURL
:
string
;
cardHolderID
:
string
;
currency
:
string
;
description
:
string
;
opaque
:
string
;
orderID
:
string
|
number
;
paymentType
:
string
|
number
}
amount
:
number
backURL
:
string
card
HolderID
:
string
currency
:
string
description
:
string
opaque
:
string
orderID
:
string
|
number
payment
Type
:
string
|
number
Returns
Promise
<
any
>
refund
Payment
refund
Payment
(
paymentId
:
string
, amount
:
number
)
:
Promise
<
IRefundPaymentResponses
>
Parameters
paymentId:
string
amount:
number
Returns
Promise
<
IRefundPaymentResponses
>
Exports
Client
constructor
client
Id
host
password
username
activate
Binding
ameria
Fetch
cancel
Payment
deactivate
Binding
get
Bindings
get
Payment
Details
get
Payment
Id
get
Pending
Transactions
init
Payment
make
Binding
Payment
refund
Payment
Generated using
TypeDoc