526 lines
22 KiB
Python
526 lines
22 KiB
Python
"""Named gysmart admin API operations and request schemas."""
|
|||
|
|
|
||
|
|
ROUTES = {
|
||
|
|
'admin': {
|
||
|
|
'disable': (
|
||
|
|
'/admin/disable',
|
||
|
|
{'properties': {'id': {'type': 'integer'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/admin/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/admin/save',
|
||
|
|
{'properties': {'displayName': {'type': 'string'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'password': {'type': 'string'},
|
||
|
|
'role': {'type': 'string'},
|
||
|
|
'username': {'type': 'string'}},
|
||
|
|
'required': ['username', 'displayName', 'role'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'agent-credential': {
|
||
|
|
'disable': (
|
||
|
|
'/agentCredential/disable',
|
||
|
|
{'properties': {'id': {'type': 'integer'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/agentCredential/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/agentCredential/save',
|
||
|
|
{'properties': {'active': {'type': 'boolean'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'name': {'type': 'string'},
|
||
|
|
'scopes': {'items': {'type': 'string'}, 'type': 'array'},
|
||
|
|
'token': {'type': 'string'}},
|
||
|
|
'required': ['name'],
|
||
|
|
'type': 'object'},
|
||
|
|
'private-output',
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'agent-draft': {
|
||
|
|
'approve': (
|
||
|
|
'/agentDraft/approve',
|
||
|
|
{'properties': {'id': {'type': 'integer'}, 'version': {'type': 'integer'}},
|
||
|
|
'required': ['id'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/agentDraft/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'reject': (
|
||
|
|
'/agentDraft/reject',
|
||
|
|
{'properties': {'id': {'type': 'integer'}, 'version': {'type': 'integer'}},
|
||
|
|
'required': ['id'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/agentDraft/save',
|
||
|
|
{'properties': {'baseVersion': {'type': 'integer'},
|
||
|
|
'entityId': {'type': 'integer'},
|
||
|
|
'entityType': {'type': 'string'},
|
||
|
|
'idempotencyKey': {'type': 'string'},
|
||
|
|
'operation': {'type': 'string'},
|
||
|
|
'payload': {}},
|
||
|
|
'required': ['entityType', 'operation', 'idempotencyKey'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'audit': {
|
||
|
|
'list': (
|
||
|
|
'/audit/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'auth': {
|
||
|
|
'change-password': (
|
||
|
|
'/auth/changePassword',
|
||
|
|
{'properties': {'newPassword': {'minLength': 8, 'type': 'string'},
|
||
|
|
'oldPassword': {'type': 'string'}},
|
||
|
|
'required': ['oldPassword', 'newPassword'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'category': {
|
||
|
|
'list': (
|
||
|
|
'/category/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/category/save',
|
||
|
|
{'properties': {'id': {'type': 'integer'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'names': {'additionalProperties': {'type': 'string'}, 'type': 'object'},
|
||
|
|
'parentId': {'type': 'integer'},
|
||
|
|
'published': {'type': 'boolean'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'content': {
|
||
|
|
'list': (
|
||
|
|
'/content/getList',
|
||
|
|
{'properties': {'kind': {'type': 'string'},
|
||
|
|
'language': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'publish': (
|
||
|
|
'/content/publish',
|
||
|
|
{'properties': {'id': {'type': 'integer'}, 'version': {'type': 'integer'}},
|
||
|
|
'required': ['id'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/content/save',
|
||
|
|
{'properties': {'bodyHtml': {'type': 'string'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'kind': {'type': 'string'},
|
||
|
|
'language': {'type': 'string'},
|
||
|
|
'pageId': {'type': 'integer'},
|
||
|
|
'seoDescription': {'type': 'string'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'},
|
||
|
|
'version': {'type': 'integer'}},
|
||
|
|
'required': ['slug', 'kind', 'language', 'title'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'coupon': {
|
||
|
|
'list': (
|
||
|
|
'/coupon/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/coupon/save',
|
||
|
|
{'properties': {'active': {'type': 'boolean'},
|
||
|
|
'code': {'type': 'string'},
|
||
|
|
'discountType': {'type': 'string'},
|
||
|
|
'endsAt': {'format': 'date-time', 'type': 'string'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'minSubtotal': {'type': 'integer'},
|
||
|
|
'startsAt': {'format': 'date-time', 'type': 'string'},
|
||
|
|
'usageLimit': {'type': 'integer'},
|
||
|
|
'usedCount': {'type': 'integer'},
|
||
|
|
'value': {'type': 'integer'}},
|
||
|
|
'required': ['code', 'discountType'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'dashboard': {
|
||
|
|
'get-stats': (
|
||
|
|
'/dashboard/getStats',
|
||
|
|
{'properties': {}, 'required': [], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'email': {
|
||
|
|
'get-provider-status': (
|
||
|
|
'/email/getProviderStatus',
|
||
|
|
{'properties': {'id': {'type': 'string'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/email/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'retry': (
|
||
|
|
'/email/retry',
|
||
|
|
{'properties': {'id': {'type': 'integer'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save-config': (
|
||
|
|
'/email/saveConfig',
|
||
|
|
{'properties': {'apiKey': {'maxLength': 4096, 'type': 'string'}},
|
||
|
|
'required': ['apiKey'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'send-test': (
|
||
|
|
'/email/sendTest',
|
||
|
|
{'properties': {'idempotencyKey': {'type': 'string'},
|
||
|
|
'to': {'format': 'email', 'type': 'string'}},
|
||
|
|
'required': ['to', 'idempotencyKey'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'exchange-rate': {
|
||
|
|
'list': (
|
||
|
|
'/exchangeRate/getList',
|
||
|
|
{'properties': {}, 'required': [], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/exchangeRate/save',
|
||
|
|
{'properties': {'currency': {'type': 'string'},
|
||
|
|
'enabled': {'type': 'boolean'},
|
||
|
|
'expectedVersion': {'type': 'integer'},
|
||
|
|
'unitsPerUsd': {'type': 'string'}},
|
||
|
|
'required': ['currency'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'fulfillment': {
|
||
|
|
'list': (
|
||
|
|
'/fulfillment/getList',
|
||
|
|
{'properties': {'orderId': {'type': 'integer'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/fulfillment/save',
|
||
|
|
{'properties': {'carrier': {'type': 'string'},
|
||
|
|
'deliveredAt': {'format': 'date-time', 'type': 'string'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'orderId': {'type': 'integer'},
|
||
|
|
'shippedAt': {'format': 'date-time', 'type': 'string'},
|
||
|
|
'status': {'type': 'string'},
|
||
|
|
'trackingNumber': {'type': 'string'}},
|
||
|
|
'required': ['orderId', 'status'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'inquiry': {
|
||
|
|
'list': (
|
||
|
|
'/inquiry/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'update-status': (
|
||
|
|
'/inquiry/updateStatus',
|
||
|
|
{'properties': {'id': {'type': 'integer'}, 'status': {'type': 'string'}},
|
||
|
|
'required': ['id', 'status'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'order': {
|
||
|
|
'list': (
|
||
|
|
'/order/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'update-status': (
|
||
|
|
'/order/updateStatus',
|
||
|
|
{'properties': {'id': {'type': 'integer'}, 'status': {'type': 'string'}},
|
||
|
|
'required': ['id', 'status'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'product': {
|
||
|
|
'adjust-inventory': (
|
||
|
|
'/product/adjustInventory',
|
||
|
|
{'properties': {'adjustments': {'items': {'properties': {'expectedVersion': {'type': 'integer'},
|
||
|
|
'mode': {'type': 'string'},
|
||
|
|
'quantity': {'type': 'integer'},
|
||
|
|
'skuId': {'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'idempotencyKey': {'type': 'string'},
|
||
|
|
'productId': {'type': 'integer'},
|
||
|
|
'reason': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'archive': (
|
||
|
|
'/product/archive',
|
||
|
|
{'properties': {'expectedVersion': {'type': 'integer'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'language': {'type': 'string'}},
|
||
|
|
'required': ['id', 'expectedVersion'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'get': (
|
||
|
|
'/product/getDetail',
|
||
|
|
{'properties': {'id': {'type': 'integer'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'get-inventory-ledger': (
|
||
|
|
'/product/getInventoryLedger',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'productId': {'type': 'integer'}},
|
||
|
|
'required': ['productId'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/product/getList',
|
||
|
|
{'properties': {'categoryId': {'type': 'integer'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'query': {'type': 'string'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'publish': (
|
||
|
|
'/product/publish',
|
||
|
|
{'properties': {'expectedVersion': {'type': 'integer'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'language': {'type': 'string'}},
|
||
|
|
'required': ['id', 'expectedVersion'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/product/save',
|
||
|
|
{'properties': {'categoryId': {'type': 'integer'},
|
||
|
|
'expectedVersion': {'type': 'integer'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'images': {'items': {'properties': {'alt': {'additionalProperties': {'type': 'string'},
|
||
|
|
'type': 'object'},
|
||
|
|
'file': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'productType': {'type': 'string'},
|
||
|
|
'purchaseMode': {'type': 'string'},
|
||
|
|
'shippingCountries': {'items': {'type': 'string'}, 'type': 'array'},
|
||
|
|
'skus': {'items': {'properties': {'active': {'type': 'boolean'},
|
||
|
|
'code': {'type': 'string'},
|
||
|
|
'combination': {'additionalProperties': {'type': 'string'},
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'imageAlt': {'additionalProperties': {'type': 'string'},
|
||
|
|
'type': 'object'},
|
||
|
|
'initialStock': {'type': 'integer'},
|
||
|
|
'usdPriceMinor': {'type': 'integer'},
|
||
|
|
'weightGrams': {'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'specifications': {'items': {'properties': {'id': {'type': 'string'},
|
||
|
|
'names': {'additionalProperties': {'type': 'string'},
|
||
|
|
'type': 'object'},
|
||
|
|
'values': {'items': {'properties': {'id': {'type': 'string'},
|
||
|
|
'names': {'additionalProperties': {'type': 'string'},
|
||
|
|
'type': 'object'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'translations': {'items': {'properties': {'description': {'type': 'string'},
|
||
|
|
'language': {'type': 'string'},
|
||
|
|
'name': {'type': 'string'},
|
||
|
|
'seoDescription': {'type': 'string'},
|
||
|
|
'subtitle': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'unpublish-language': (
|
||
|
|
'/product/unpublishLanguage',
|
||
|
|
{'properties': {'expectedVersion': {'type': 'integer'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'language': {'type': 'string'}},
|
||
|
|
'required': ['id', 'expectedVersion'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'refund': {
|
||
|
|
'list': (
|
||
|
|
'/refund/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'request': (
|
||
|
|
'/refund/request',
|
||
|
|
{'properties': {'amountMinor': {'type': 'integer'},
|
||
|
|
'idempotencyKey': {'type': 'string'},
|
||
|
|
'orderId': {'type': 'integer'},
|
||
|
|
'reason': {'type': 'string'}},
|
||
|
|
'required': ['orderId', 'amountMinor', 'reason'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'shipping-rule': {
|
||
|
|
'list': (
|
||
|
|
'/shippingRule/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/shippingRule/save',
|
||
|
|
{'properties': {'active': {'type': 'boolean'},
|
||
|
|
'amountMinor': {'type': 'integer'},
|
||
|
|
'countryCode': {'type': 'string'},
|
||
|
|
'etaDays': {'type': 'integer'},
|
||
|
|
'freeOverMinor': {'type': 'integer'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'name': {'type': 'string'}},
|
||
|
|
'required': ['countryCode', 'name'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'storage': {
|
||
|
|
'get-config': (
|
||
|
|
'/storage/getConfig',
|
||
|
|
{'properties': {}, 'required': [], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'register-external': (
|
||
|
|
'/storage/registerExternal',
|
||
|
|
{'properties': {'url': {'type': 'string'}}, 'required': ['url'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save-config': (
|
||
|
|
'/storage/saveConfig',
|
||
|
|
{'properties': {'bucket': {'type': 'string'}, 'clientSecret': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'upload-image': (
|
||
|
|
'/storage/uploadImage',
|
||
|
|
{'properties': {'file': {'format': 'binary', 'type': 'string'}},
|
||
|
|
'required': ['file'],
|
||
|
|
'type': 'object'},
|
||
|
|
'upload',
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'tax-rule': {
|
||
|
|
'list': (
|
||
|
|
'/taxRule/getList',
|
||
|
|
{'properties': {'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/taxRule/save',
|
||
|
|
{'properties': {'active': {'type': 'boolean'},
|
||
|
|
'countryCode': {'type': 'string'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'inclusive': {'type': 'boolean'},
|
||
|
|
'rateBps': {'type': 'integer'}},
|
||
|
|
'required': ['countryCode'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
}
|