{ "$defs": { "Banner": { "oneOf": [ { "const": "lat" }, { "const": "s5a" }, { "const": "o5a" }, { "const": "bay" } ], "type": "string" }, "CustomerType": { "oneOf": [ { "const": "guest" }, { "const": "registered" }, { "const": "employee" } ], "type": "string" }, "RecommendationCode": { "oneOf": [ { "const": "reject" }, { "const": "review" }, { "const": "accept" } ], "type": "string" }, "AdditionalData": { "properties": { "inAuthId": { "type": "string" } }, "required": [ "inAuthId" ], "type": "object" }, "Address": { "properties": { "name": { "type": "string" }, "streetLineOne": { "type": "string" }, "streetLineTwo": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "zip": { "type": "string" }, "country": { "type": "string" } }, "required": [ "name", "streetLineOne", "city", "state", "zip", "country" ], "type": "object" }, "CreditCard": { "properties": { "nameOnCard": { "type": "string" }, "billingAddress": { "$ref": "#/$defs/Address" }, "cardType": { "type": "string" }, "cardNumber": { "type": "string" }, "authorizedAmount": { "type": "number" }, "fullAmount": { "type": "number" }, "expiryDate": { "type": "string" }, "authCode": { "type": "string" }, "responseCode": { "type": "integer" }, "merchantId": { "type": "integer" }, "registerNumber": { "type": "string" }, "transactionNumber": { "type": "string" }, "avsResponse": { "type": "string" } }, "required": [ "nameOnCard", "billingAddress", "cardType", "cardNumber", "authorizedAmount", "fullAmount", "expiryDate", "authCode", "responseCode", "transactionNumber", "avsResponse" ], "type": "object" }, "Customer": { "properties": { "customerType": { "$ref": "#/$defs/CustomerType" }, "accountId": { "type": "string" }, "creationDate": { "type": "string" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "emailAddress": { "type": "string" } }, "required": [ "customerType", "accountId", "creationDate", "firstName", "lastName", "emailAddress" ], "type": "object" }, "DBRecord": { "properties": { "transactionId": { "type": "string" }, "lastModifiedDate": { "type": "string" }, "createdDate": { "type": "string" }, "transaction": { "$ref": "#/$defs/Transaction" }, "decision": { "$ref": "#/$defs/Decision" } }, "required": [ "transactionId", "transaction", "decision" ], "type": "object" }, "Decision": { "properties": { "transactionId": { "type": "string" }, "recommendationCode": { "$ref": "#/$defs/RecommendationCode" }, "crossReference": { "type": "string" }, "rulesTripped": { "type": "string" }, "totalScore": { "type": "integer" }, "remarks": { "type": "string" } }, "required": [ "transactionId", "recommendationCode", "totalScore" ], "type": "object" }, "Error": { "properties": { "message": { "type": "string" }, "error": { "type": "string" } }, "required": [ "message", "error" ], "type": "object" }, "Item": { "properties": { "svsNumber": { "type": "integer" }, "skuNumber": { "type": "integer" }, "upcNumber": { "type": "integer" }, "classNumber": { "type": "integer" }, "color": { "type": "string" }, "size": { "type": "string" }, "currentStatus": { "type": "string" }, "department": { "type": "integer" }, "signOnDelivery": { "type": "string" }, "giftWrapped": { "type": "boolean" }, "costAmount": { "type": "number" }, "marginAmount": { "type": "number" }, "description": { "type": "string" }, "price": { "type": "number" }, "extendedPrice": { "type": "number" }, "quantity": { "type": "integer" }, "groupNumber": { "type": "integer" }, "shippingAddress": { "$ref": "#/$defs/Address" }, "shippingMethod": { "type": "string" }, "shippingCountry": { "type": "string" } }, "required": [ "svsNumber", "skuNumber", "currentStatus", "department", "description", "price", "extendedPrice", "quantity", "groupNumber", "shippingAddress", "shippingMethod", "shippingCountry" ], "type": "object" }, "Promo": { "properties": { "promotionCode": { "type": "string" }, "promotionAmount": { "type": "number" } }, "required": [ "promotionCode", "promotionAmount" ], "type": "object" }, "Transaction": { "properties": { "orderId": { "type": "string" }, "groupId": { "type": "string" }, "orderTotal": { "type": "number" }, "shippingCost": { "type": "number" }, "currencyCode": { "type": "string" }, "storeNumber": { "type": "integer" }, "salesRep": { "type": "string" }, "lastModifiedDate": { "type": "string" }, "banner": { "$ref": "#/$defs/Banner" }, "creditCard": { "$ref": "#/$defs/CreditCard" }, "promos": { "items": { "$ref": "#/$defs/Promo" }, "type": "array" }, "items": { "items": { "$ref": "#/$defs/Item" }, "type": "array" }, "ipAddress": { "type": "string" }, "source": { "type": "string" }, "customer": { "$ref": "#/$defs/Customer" }, "additionalData": { "$ref": "#/$defs/AdditionalData" } }, "required": [ "orderId", "groupId", "orderTotal", "shippingCost", "currencyCode", "storeNumber", "banner", "creditCard", "items", "source", "customer" ], "type": "object" } }, "additionalProperties": true, "properties": { "authenticated": { "const": true, "type": "boolean" }, "body": { "properties": { "transactionId": { "type": "string" }, "recommendationCode": { "$ref": "#/$defs/RecommendationCode" }, "crossReference": { "type": "string" }, "rulesTripped": { "type": "string" }, "totalScore": { "type": "integer" }, "remarks": { "type": "string" } }, "required": [ "transactionId", "recommendationCode", "totalScore" ], "type": "object" }, "rawBody": { "type": "object" }, "headers": { "type": "object" }, "method": { "const": "POST", "type": "string" }, "parameterizedUrl": { "const": "/decision", "type": "string" }, "path": { "type": "string" }, "query": { "type": "object" }, "url": { "type": "string" } }, "required": [ "body", "rawBody", "query", "path", "url", "method" ], "type": "object" }