@afriex/sdk 3.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/package.json +10 -10
- package/skills/afriex-go-live/SKILL.md +1 -1
- package/skills/afriex-sdk/SKILL.md +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ export { BalanceService } from "@afriex/balance";
|
|
|
29
29
|
export { RateService } from "@afriex/rates";
|
|
30
30
|
export { CheckoutService } from "@afriex/checkout";
|
|
31
31
|
export { WebhookVerifier, WebhookService } from "@afriex/webhooks";
|
|
32
|
-
export type { Customer, CreateCustomerRequest, UpdateCustomerRequest, UpdateCustomerKycRequest, VerifyCustomerRequest, ListCustomersParams, CustomerListResponse, } from "@afriex/customers";
|
|
32
|
+
export type { Customer, CustomerKyc, CustomerMeta, KycDocumentType, CreateCustomerRequest, UpdateCustomerRequest, UpdateCustomerKycRequest, VerifyCustomerRequest, ListCustomersParams, CustomerListResponse, } from "@afriex/customers";
|
|
33
33
|
export type { Transaction, CreateTransactionRequest, AuthorizeTransactionRequest, ListTransactionsParams, TransactionListResponse, TransactionListType, TransactionChannel, TransactionType, TransactionStatus, TransactionMeta, TransactionMetaResponse, TransactionFailureCode, TransactionFailureReason, } from "@afriex/transactions";
|
|
34
|
-
export type { PaymentMethod, CreatePaymentMethodRequest, ListPaymentMethodsParams, PaymentMethodListResponse, PaymentChannel, CreatablePaymentChannel, PaymentMethodStatus, CardBrand, CardExpiration, Institution, InstitutionListChannel, ResolveAccountParams, ResolveAccountResponse, GetInstitutionsParams, CryptoWalletResponse, GetCryptoWalletParams, ListVirtualAccountsParams, CreateVirtualAccountParams, ListPoolAccountsParams, VirtualAccountListResponse, PoolAccountResponse, } from "@afriex/payment-methods";
|
|
34
|
+
export type { PaymentMethod, PaymentMethodInstitution, PaymentMethodRecipient, PaymentMethodTransaction, CreatePaymentMethodRequest, ListPaymentMethodsParams, PaymentMethodListResponse, PaymentChannel, CreatablePaymentChannel, PaymentMethodStatus, CardBrand, CardExpiration, Institution, InstitutionListResponse, InstitutionListChannel, InstitutionCode, InstitutionCodesParams, InstitutionCodesResponse, ResolveAccountParams, ResolvedAccount, ResolveAccountResponse, GetInstitutionsParams, CryptoWallet, CryptoWalletData, CryptoWalletResponse, GetCryptoWalletParams, ListVirtualAccountsParams, CreateVirtualAccountParams, ListPoolAccountsParams, VirtualAccountListResponse, PoolAccountResponse, } from "@afriex/payment-methods";
|
|
35
35
|
export type { BalanceResponse, GetBalanceParams } from "@afriex/balance";
|
|
36
36
|
export type { RatesResponse, GetRatesParams } from "@afriex/rates";
|
|
37
37
|
export type { CheckoutSession, CreateCheckoutSessionRequest, CheckoutCustomer, CheckoutChannel, } from "@afriex/checkout";
|
|
38
|
-
export type { WebhookPayload, CustomerWebhookPayload, CustomerEventType, CustomerWebhookData, PaymentMethodWebhookPayload, PaymentMethodEventType, PaymentMethodWebhookData, TransactionWebhookPayload, TransactionEventType, TransactionWebhookData, TransactionWebhookStatus, CheckoutSessionWebhookPayload, CheckoutSessionEventType, CheckoutSessionWebhookData, TriggerWebhookRequest, WebhookEventType, } from "@afriex/webhooks";
|
|
38
|
+
export type { WebhookPayload, CustomerWebhookPayload, CustomerEventType, CustomerWebhookData, PaymentMethodWebhookPayload, PaymentMethodEventType, PaymentMethodWebhookData, TransactionWebhookPayload, TransactionEventType, TransactionWebhookData, TransactionWebhookStatus, CheckoutSessionWebhookPayload, CheckoutSessionEventType, CheckoutSessionWebhookData, TriggerWebhookRequest, TriggerWebhookResult, TriggerWebhookResponse, WebhookEventType, } from "@afriex/webhooks";
|
|
39
39
|
export { WEBHOOK_SIGNATURE_HEADER } from "@afriex/webhooks";
|
|
40
40
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@afriex/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Official TypeScript SDK for the Afriex Business API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@afriex/core": "2.0
|
|
24
|
-
"@afriex/customers": "
|
|
25
|
-
"@afriex/transactions": "2.0
|
|
26
|
-
"@afriex/payment-methods": "
|
|
27
|
-
"@afriex/balance": "
|
|
28
|
-
"@afriex/rates": "
|
|
29
|
-
"@afriex/checkout": "
|
|
30
|
-
"@afriex/webhooks": "
|
|
23
|
+
"@afriex/core": "2.1.0",
|
|
24
|
+
"@afriex/customers": "3.1.0",
|
|
25
|
+
"@afriex/transactions": "2.1.0",
|
|
26
|
+
"@afriex/payment-methods": "4.1.0",
|
|
27
|
+
"@afriex/balance": "2.0.0",
|
|
28
|
+
"@afriex/rates": "2.0.1",
|
|
29
|
+
"@afriex/checkout": "3.0.1",
|
|
30
|
+
"@afriex/webhooks": "2.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@tanstack/intent": "^0.3.6",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc",
|
|
62
62
|
"type-check": "tsc --noEmit",
|
|
63
|
-
"clean": "rimraf dist"
|
|
63
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -12,7 +12,7 @@ description: >
|
|
|
12
12
|
metadata:
|
|
13
13
|
type: core
|
|
14
14
|
library: '@afriex/sdk'
|
|
15
|
-
library_version: '
|
|
15
|
+
library_version: '4.1.0'
|
|
16
16
|
sources:
|
|
17
17
|
- 'Afri-exchange/afriex-sdk:packages/sdk/src/index.ts'
|
|
18
18
|
- 'Afri-exchange/afriex-sdk:packages/core/src/config/Config.ts'
|
|
@@ -85,7 +85,7 @@ const customer = await afriex.customers.create({
|
|
|
85
85
|
countryCode: "NG",
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
const institutions = await afriex.paymentMethods.getInstitutions({
|
|
88
|
+
const { data: institutions } = await afriex.paymentMethods.getInstitutions({
|
|
89
89
|
channel: "BANK_ACCOUNT",
|
|
90
90
|
countryCode: "NG",
|
|
91
91
|
});
|
|
@@ -97,7 +97,6 @@ const destination = await afriex.paymentMethods.create({
|
|
|
97
97
|
accountNumber: "0123456789",
|
|
98
98
|
countryCode: "NG",
|
|
99
99
|
institution: {
|
|
100
|
-
institutionId: institutions[0].institutionId,
|
|
101
100
|
institutionCode: institutions[0].institutionCode,
|
|
102
101
|
institutionName: institutions[0].institutionName,
|
|
103
102
|
},
|