payment-kit 1.18.14 → 1.18.16

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.
Files changed (31) hide show
  1. package/api/src/index.ts +2 -0
  2. package/api/src/libs/invoice.ts +5 -3
  3. package/api/src/routes/connect/change-payment.ts +9 -1
  4. package/api/src/routes/connect/change-plan.ts +9 -1
  5. package/api/src/routes/connect/collect-batch.ts +7 -5
  6. package/api/src/routes/connect/recharge-account.ts +124 -0
  7. package/api/src/routes/connect/setup.ts +8 -1
  8. package/api/src/routes/connect/shared.ts +110 -48
  9. package/api/src/routes/connect/subscribe.ts +11 -1
  10. package/api/src/routes/customers.ts +149 -6
  11. package/api/src/routes/invoices.ts +46 -0
  12. package/api/src/routes/payment-currencies.ts +5 -2
  13. package/api/src/routes/subscriptions.ts +0 -3
  14. package/blocklet.yml +1 -1
  15. package/package.json +8 -8
  16. package/src/app.tsx +11 -3
  17. package/src/components/info-card.tsx +3 -1
  18. package/src/components/info-row.tsx +1 -0
  19. package/src/components/invoice/recharge.tsx +85 -56
  20. package/src/components/invoice/table.tsx +7 -1
  21. package/src/components/subscription/portal/actions.tsx +1 -1
  22. package/src/components/subscription/portal/list.tsx +6 -0
  23. package/src/locales/en.tsx +9 -0
  24. package/src/locales/zh.tsx +9 -0
  25. package/src/pages/admin/settings/vault-config/index.tsx +21 -6
  26. package/src/pages/customer/index.tsx +160 -265
  27. package/src/pages/customer/invoice/detail.tsx +24 -16
  28. package/src/pages/customer/invoice/past-due.tsx +45 -23
  29. package/src/pages/customer/recharge/account.tsx +515 -0
  30. package/src/pages/customer/{recharge.tsx → recharge/subscription.tsx} +11 -11
  31. package/src/pages/customer/subscription/embed.tsx +16 -1
@@ -216,6 +216,7 @@ export default function SubscriptionEmbed() {
216
216
  )}
217
217
  name={`${subscription.customer.name} (${subscription.customer.email})`}
218
218
  description={<DidAddress did={subscription.customer.did} responsive={false} compact />}
219
+ className="owner-info-card"
219
220
  />
220
221
  ),
221
222
  });
@@ -241,7 +242,21 @@ export default function SubscriptionEmbed() {
241
242
  </Typography>
242
243
  <Box sx={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
243
244
  {infoList.map(({ name, value }) => {
244
- return <InfoRow label={name} value={value} direction="column" alignItems="flex-start" sx={{ mb: 0 }} />;
245
+ return (
246
+ <InfoRow
247
+ label={name}
248
+ value={value}
249
+ sx={{
250
+ mb: 0,
251
+ '.info-row-label': {
252
+ whiteSpace: 'nowrap',
253
+ },
254
+ '.info-row-value': {
255
+ flex: 'none',
256
+ },
257
+ }}
258
+ />
259
+ );
245
260
  })}
246
261
  </Box>
247
262
  <Divider />