payment-kit 1.18.34 → 1.18.36
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/api/src/crons/subscription-trial-will-end.ts +1 -1
- package/api/src/index.ts +2 -0
- package/api/src/libs/did-space.ts +235 -0
- package/api/src/libs/util.ts +33 -1
- package/api/src/queues/payment.ts +7 -4
- package/api/src/queues/space.ts +661 -0
- package/api/src/queues/subscription.ts +1 -1
- package/api/src/routes/customers.ts +47 -0
- package/api/src/store/models/invoice.ts +12 -3
- package/api/tests/libs/util.spec.ts +215 -1
- package/blocklet.yml +2 -1
- package/package.json +10 -9
- package/scripts/sdk.js +58 -2
- package/src/components/customer/link.tsx +32 -57
- package/src/components/invoice/list.tsx +1 -1
- package/src/components/payouts/list.tsx +8 -2
- package/src/libs/util.ts +0 -13
- package/src/pages/admin/customers/customers/detail.tsx +2 -2
- package/src/pages/admin/customers/customers/index.tsx +1 -2
- package/src/pages/admin/payments/payouts/detail.tsx +1 -1
- package/src/pages/customer/recharge/account.tsx +2 -1
- package/src/pages/customer/recharge/subscription.tsx +2 -1
- package/src/pages/customer/subscription/embed.tsx +1 -0
|
@@ -203,6 +203,7 @@ export default function PayoutDetail(props: { id: string }) {
|
|
|
203
203
|
label={t('customer.payout.payer')}
|
|
204
204
|
value={
|
|
205
205
|
<InfoCard
|
|
206
|
+
variant="circular"
|
|
206
207
|
logo={getCustomerAvatar(
|
|
207
208
|
paymentIntent?.customer?.did,
|
|
208
209
|
paymentIntent?.customer?.updated_at
|
|
@@ -242,7 +243,6 @@ export default function PayoutDetail(props: { id: string }) {
|
|
|
242
243
|
/>
|
|
243
244
|
}
|
|
244
245
|
size={40}
|
|
245
|
-
variant="rounded"
|
|
246
246
|
/>
|
|
247
247
|
}
|
|
248
248
|
divider
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
formatBNStr,
|
|
28
28
|
formatPrice,
|
|
29
29
|
formatNumber,
|
|
30
|
+
getTokenBalanceLink,
|
|
30
31
|
} from '@blocklet/payment-react';
|
|
31
32
|
import type { TPaymentCurrency, TPaymentMethod } from '@blocklet/payment-types';
|
|
32
33
|
import { joinURL } from 'ufo';
|
|
@@ -34,7 +35,7 @@ import { AccountBalanceWalletOutlined, ArrowBackOutlined, ArrowForwardOutlined }
|
|
|
34
35
|
import Empty from '@arcblock/ux/lib/Empty';
|
|
35
36
|
import { BN, fromUnitToToken } from '@ocap/util';
|
|
36
37
|
import RechargeList from '../../../components/invoice/recharge';
|
|
37
|
-
import {
|
|
38
|
+
import { goBackOrFallback } from '../../../libs/util';
|
|
38
39
|
import { useSessionContext } from '../../../contexts/session';
|
|
39
40
|
import { formatSmartDuration, TimeUnit } from '../../../libs/dayjs';
|
|
40
41
|
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
formatTime,
|
|
26
26
|
api,
|
|
27
27
|
formatBNStr,
|
|
28
|
+
getTokenBalanceLink,
|
|
28
29
|
} from '@blocklet/payment-react';
|
|
29
30
|
import { joinURL } from 'ufo';
|
|
30
31
|
import type { TSubscriptionExpanded } from '@blocklet/payment-types';
|
|
@@ -35,7 +36,7 @@ import SubscriptionDescription from '../../../components/subscription/descriptio
|
|
|
35
36
|
import InfoRow from '../../../components/info-row';
|
|
36
37
|
import Currency from '../../../components/currency';
|
|
37
38
|
import SubscriptionMetrics from '../../../components/subscription/metrics';
|
|
38
|
-
import {
|
|
39
|
+
import { goBackOrFallback } from '../../../libs/util';
|
|
39
40
|
import CustomerLink from '../../../components/customer/link';
|
|
40
41
|
import { useSessionContext } from '../../../contexts/session';
|
|
41
42
|
import { formatSmartDuration, TimeUnit } from '../../../libs/dayjs';
|