Skip to content

Commit 63e2743

Browse files
committed
new types for mrx: {OPTIONAL_}COUNTRY_CODE
1 parent c24ece4 commit 63e2743

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/lua/apigen/util.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ do
166166
OPTIONAL_PAYMENT_ID = context.optional(context.string(1, 64));
167167
OPTIONAL_PAY_SYSTEM_ID = context.optional(context.string(1, 64));
168168

169+
--------------------------------------------------------------------------------
170+
-- TYPES FOR MRX
171+
--------------------------------------------------------------------------------
172+
COUNTRY_CODE = context.string(2, 2);
173+
OPTIONAL_COUNTRY_CODE = context.optional(context.string(2, 2));
174+
169175
--------------------------------------------------------------------------------
170176
-- BEGIN POSTCARDS
171177
--------------------------------------------------------------------------------

src/lua/apigen/validate_schema.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ do
346346
"OPTIONAL_PAYMENT_ID";
347347
"OPTIONAL_PAY_SYSTEM_ID";
348348
--------------------------------------------------------------------------------
349+
-- TYPES FOR MRX
350+
--------------------------------------------------------------------------------
351+
"COUNTRY_CODE";
352+
"OPTIONAL_COUNTRY_CODE";
353+
--------------------------------------------------------------------------------
349354
-- BEGIN POSTCARDS
350355
--------------------------------------------------------------------------------
351356
-- TODO MOVE ELSEWHERE

0 commit comments

Comments
 (0)