QIWI SDK / Modules / index / QIWI / Wallet
Export
-
↳
Wallet
- _options
- bills
- cards
- fundingSources
- identification
- limits
- nickname
- oauth
- paymentHistory
- payments
- personProfile
- providers
- restrictions
- webhooks
- BillsApi
- CardActionStatus
- CardStatus
- CardsApi
- ChequeFormat
- Currency
- FundingSourcesApi
- IdentificationApi
- IdentificationLevel
- LimitType
- LimitsApi
- NicknameApi
- OauthApi
- PaymentHistoryApi
- PaymentHistorySource
- PaymentsApi
- PersonIdentificationLevel
- PersonProfileApi
- ProvidersApi
- ReceiptFormat
- Recipients
- RestrictionsApi
- TransactionStatus
- TransactionType
- WebhooksApi
• new Wallet(options?
)
Creates an instance of Wallet.
Memberof
Wallet
Name | Type |
---|---|
options? |
Partial <WalletApiOptions > |
• Protected
Readonly
_options: WalletApiOptions
Memberof
OptionsWrapper
• Readonly
bills: WalletBillsApi
• Readonly
cards: WalletCardsApi
• Readonly
fundingSources: WalletFundingSourcesApi
• Readonly
identification: WalletIdentificationApi
• Readonly
limits: WalletLimitsApi
• Readonly
nickname: WalletNicknameApi
• Readonly
oauth: WalletOauthApi
• Readonly
paymentHistory: WalletPaymentHistoryApi
• Readonly
payments: WalletPaymentsApi
• Readonly
personProfile: WalletPersonProfileApi
• Readonly
providers: WalletProvidersApi
• Readonly
restrictions: WalletRestrictionsApi
• Readonly
webhooks: WalletWebhooksApi
▪ Static
Readonly
BillsApi: typeof WalletBillsApi
= WalletBillsApi
▪ Static
Readonly
CardActionStatus: typeof CardActionStatus
= CardActionStatus
▪ Static
Readonly
CardStatus: typeof CardStatus
= CardStatus
▪ Static
Readonly
CardsApi: typeof WalletCardsApi
= WalletCardsApi
▪ Static
Readonly
ChequeFormat: typeof ChequeFormat
= ChequeFormat
▪ Static
Readonly
Currency: typeof Currency
= Currency
▪ Static
Readonly
FundingSourcesApi: typeof WalletFundingSourcesApi
= WalletFundingSourcesApi
▪ Static
Readonly
IdentificationApi: typeof WalletIdentificationApi
= WalletIdentificationApi
▪ Static
Readonly
IdentificationLevel: typeof PersonIdentificationLevel
= PersonIdentificationLevel
▪ Static
Readonly
LimitType: typeof LimitType
= LimitType
▪ Static
Readonly
LimitsApi: typeof WalletLimitsApi
= WalletLimitsApi
▪ Static
Readonly
NicknameApi: typeof WalletNicknameApi
= WalletNicknameApi
▪ Static
Readonly
OauthApi: typeof WalletOauthApi
= WalletOauthApi
▪ Static
Readonly
PaymentHistoryApi: typeof WalletPaymentHistoryApi
= WalletPaymentHistoryApi
▪ Static
Readonly
PaymentHistorySource: typeof PaymentHistorySource
= PaymentHistorySource
▪ Static
Readonly
PaymentsApi: typeof WalletPaymentsApi
= WalletPaymentsApi
▪ Static
Readonly
PersonIdentificationLevel: typeof PersonIdentificationLevel
= PersonIdentificationLevel
▪ Static
Readonly
PersonProfileApi: typeof WalletPersonProfileApi
= WalletPersonProfileApi
▪ Static
Readonly
ProvidersApi: typeof WalletProvidersApi
= WalletProvidersApi
▪ Static
Readonly
ReceiptFormat: typeof ChequeFormat
= ChequeFormat
▪ Static
Readonly
Recipients: typeof Recipients
= Recipients
▪ Static
Readonly
RestrictionsApi: typeof WalletRestrictionsApi
= WalletRestrictionsApi
▪ Static
Readonly
TransactionStatus: typeof TransactionStatus
= TransactionStatus
▪ Static
Readonly
TransactionType: typeof TransactionType
= TransactionType
▪ Static
Readonly
WebhooksApi: typeof WalletWebhooksApi
= WalletWebhooksApi
• get
agent(): any
Memberof
WalletCompat
any
ApiClass.agent
• set
agent(agent
): void
Memberof
WalletCompat
Name | Type |
---|---|
agent |
any |
void
ApiClass.agent
• get
options(): T
Memberof
OptionsWrapperWithGetter
T
ApiClass.options
▸ createOauthToken(): Promise
<PrettyTokenResponse
<Wallet
>>
Создаёт токен с увеличенным сроком действия (10 лет)
Promise
<PrettyTokenResponse
<Wallet
>>
▸ Static
create(token
, walletId?
): Wallet
Создаёт экземпляр класса.
Если используете с переменными окружения, то:
- Переименуйте переменную с токеном в
QIWI_TOKEN
- Переименуйте переменную с номером кошелька (если есть) в
QIWI_WALLET
- Используйте статический метод env вместо этого
Static
Memberof
Wallet
Name | Type | Default value |
---|---|---|
token |
string |
undefined |
walletId? |
string |
"" |
Wallet
▸ Static
createAndFetchWalletId(token
, «destructured»?
): Promise
<Wallet
>
Автоматически подтягивает номер телефона из API QIWI. Номер телефона требуется для вызова большинства методов из классов API:
Static
Memberof
Wallet
Name | Type |
---|---|
token |
string |
«destructured» |
CreateAndFetchWalletIdParameters |
Promise
<Wallet
>
Promise
▸ Static
env(token?
, walletId?
): Wallet
Подхватывает токен из переменной окружения QIWI_TOKEN
и
номер телефона из переменной QIWI_WALLET
и использует их
для создания экземпляра
Static
Memberof
Wallet
Name | Type | Default value |
---|---|---|
token? |
string |
environment.QIWI_TOKEN |
walletId? |
string |
environment.QIWI_WALLET |
Wallet
▸ Static
httpClientFactory(token
): SimpleJsonHttp
Static
Memberof
Wallet
Name | Type |
---|---|
token |
string |
SimpleJsonHttp