aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/schemas/index.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-02-09 09:43:29 -0300
committerSebastian <sebasjm@gmail.com>2024-02-09 09:43:29 -0300
commit6e370c3502a8e6474d4665eb42ae1bfdec3034a1 (patch)
tree94009cc2358d7953c40eb2debcc1443a672b1a11 /packages/merchant-backoffice-ui/src/schemas/index.ts
parent488be3a40ee044b8feb1994eedd42a06f46fc987 (diff)
downloadwallet-core-6e370c3502a8e6474d4665eb42ae1bfdec3034a1.tar.xz
wip #8325 remove rewards
Diffstat (limited to 'packages/merchant-backoffice-ui/src/schemas/index.ts')
-rw-r--r--packages/merchant-backoffice-ui/src/schemas/index.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/packages/merchant-backoffice-ui/src/schemas/index.ts b/packages/merchant-backoffice-ui/src/schemas/index.ts
index c97d41204..5d168d6ac 100644
--- a/packages/merchant-backoffice-ui/src/schemas/index.ts
+++ b/packages/merchant-backoffice-ui/src/schemas/index.ts
@@ -124,27 +124,6 @@ export const InstanceSchema = yup.object().shape({
export const InstanceUpdateSchema = InstanceSchema.clone().omit(["id"]);
export const InstanceCreateSchema = InstanceSchema.clone();
-export const AuthorizeRewardSchema = yup.object().shape({
- justification: yup.string().required(),
- amount: yup
- .string()
- .required()
- .test("amount", "the amount is not valid", currencyWithAmountIsValid)
- .test("amount_positive", "the amount is not valid", currencyGreaterThan0),
- next_url: yup.string().required(),
-});
-
-const stringIsValidJSON = (value?: string) => {
- const p = value?.trim();
- if (!p) return true;
- try {
- JSON.parse(p);
- return true;
- } catch {
- return false;
- }
-};
-
export const OrderCreateSchema = yup.object().shape({
pricing: yup
.object()