Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashboard): Balance settlement UI with refunds + credit lines #11776

Open
wants to merge 1 commit into
base: feat/order-credit-lines-ui
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/admin/dashboard/src/i18n/translations/$schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3687,6 +3687,14 @@
}
}
},
"balanceSettlement": {
"type": "object",
"properties": {
"action": {
"type": "string"
}
}
},
"domain": {
"type": "string"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/admin/dashboard/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,17 @@
"debit": "Debit",
"debitDescription": "Subtracts a negative sum from the order"
},
"balanceSettlement": {
"title": "Balance settlement",
"action": "Settle balance: {{amount}}",
"settlementType": "Settlement type",
"settlementTypes": {
"paymentMethod": "Payment method",
"paymentMethodDescription": "Settle the balance by refunding to the payment method",
"creditLine": "Credit line",
"creditLineDescription": "Settle the balance by adding a credit line to the order"
}
},
"domain": "Orders",
"claim": "Claim",
"exchange": "Exchange",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ export const RouteMap: RouteObject[] = [
lazy: () =>
import("../../routes/orders/order-create-refund"),
},
{
path: "balance-settlement",
lazy: () =>
import("../../routes/orders/order-balance-settlement"),
},
{
path: "credit-lines",
lazy: () =>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./order-balance-settlement-form"
Loading