Appearance
@swapped/connect-sdk / react / UseCashAppOrderResult
Type Alias: UseCashAppOrderResult
UseCashAppOrderResult =
object
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:17
Result of useCashAppOrder.
Properties
createOrder
createOrder: {():
Promise<CashAppOrder>; (request):Promise<CashAppOrder>; }
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:28
Create an order from CashAppProvider selection, or from an explicit CreateCashAppOrderRequest.
Call Signature
():
Promise<CashAppOrder>
Returns
Promise<CashAppOrder>
Call Signature
(
request):Promise<CashAppOrder>
Parameters
request
Returns
Promise<CashAppOrder>
error
error:
Error|null
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:35
expiredOrder
expiredOrder:
CashAppOrder|null
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:19
isCompleted
isCompleted:
boolean
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:21
isCreating
isCreating:
boolean
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:34
isExpired
isExpired:
boolean
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:23
isFailed
isFailed:
boolean
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:22
order
order:
CashAppOrder|null
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:18
resetOrder
resetOrder: () =>
void
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:33
Clear the local active order. Same as client.cashApp.reset().
Returns
void
status
status:
CashAppDepositStatus|null
Defined in: src/react/cash-app/hooks/useCashAppOrder/useCashAppOrder.ts:20