NOT FOR PUBLIC DISTRIBUTION: 2020-09-23

Validate and display customized messages for a profile going ashore

post

/spms/v1/gatewaySecurity/gangway/validations/ashore

This is to validate gangway going ashore rules for a profile and to display list of all customized messages to allow or deny the profile for going ashore

Request

Supported Media Types
Body ()
Root Schema : Gangway Ashore Validations Request
Type: object
Title: Gangway Ashore Validations Request
Gangway Ashore Validations Request
Show Source
Back to Top

Response

Supported Media Types

200 Response

Returns the result of the gangway validations check if this person has a record in Ashore Denied List or if the visa requirement is not complied or if minor who must have guardian presented or people are going for any overnight tour based on the supplied resId, profileId, current timestamp, direction.
Body ()
Root Schema : Gangway Ashore Validations
Type: object
Title: Gangway Ashore Validations
Gangway Ashore Validations
Show Source

400 Response

The supplied parameter(s) is not valid
Body ()
Root Schema : Oracle Response returned in singular object
Type: object
Title: Oracle Response returned in singular object
The object returned in Oracle Standard when function is executed successfully
Show Source
Nested Schema : item
Type: array
A list of objects that contains error messages and fields grouped by category.
Example Response (application/json)
{
    "movementTitle":"ASHORE DENIED",
    "gateMovement":"Going Shore-side",
    "movementDirection":"ASHORE",
    "movementMessage":"Have fun in the City.",
    "warning":false,
    "accountId":838014,
    "hasOvernightTour":0,
    "overnightTourMessage":"Bruno Eric Michael Jackson Raharison is going for an overnight tour.",
    "manifest":false,
    "offboardStatus":true,
    "resultSoundUrl":"/configurations/gangwaySecuritySounds/1234/sound",
    "guardianDetails":[
        {
            "accountId":1234,
            "guardians":[
                {
                    "accountId":1122,
                    "salutation":"Mr.",
                    "firstName":"Kobe",
                    "middleName":"Bean",
                    "lastName":"James",
                    "stateRoom":601,
                    "photoUrl":"https://oracle.com/resources/james.jpg",
                    "accountType":"P",
                    "links":[
                    ]
                },
                {
                    "accountId":3322,
                    "salutation":"Mr.",
                    "firstName":"Giannis",
                    "middleName":"Bean",
                    "lastName":"Gigi",
                    "stateRoom":603,
                    "photoUrl":"https://oracle.com/resources/gigi.jpg",
                    "accountType":"P",
                    "links":[
                    ]
                }
            ]
        },
        {
            "accountId":5555,
            "guardians":[
                {
                    "accountId":2221,
                    "salutation":"Mr.",
                    "firstName":"Manu",
                    "middleName":"Yue",
                    "lastName":"Wade",
                    "stateRoom":777,
                    "photoUrl":"https://oracle.com/resources/wade.jpg",
                    "accountType":"P",
                    "links":[
                    ]
                }
            ]
        }
    ],
    "guardiansMessage":"Please verify the guardian present that will accompany kid middleName kid ashore",
    "guardiansErrorMessage":"A guardian should be physically present with kid middleName kid.",
    "details":[
        {
            "step":"SHORESIDE DENIED",
            "override":true,
            "error":{
                "errorPath":"shoreLeaveDenied",
                "message":"Please see the crew purser."
            },
            "soundUrl":"/configurations/gangwaySecuritySounds/4567/sound"
        },
        {
            "step":"VISA VALIDITY",
            "override":false,
            "error":{
                "errorPath":"visa",
                "message":"This person do not have valid visa"
            },
            "soundUrl":"/configurations/gangwaySecuritySounds/8568/sound"
        },
        {
            "step":"SAG",
            "override":true,
            "error":{
                "errorPath":"sag",
                "message":"Do not allow minor without guardian to go shoreside"
            },
            "soundUrl":"/configurations/gangwaySecuritySounds/1456/sound"
        },
        {
            "step":"GUARDIAN",
            "override":false,
            "error":{
                "errorPath":"guardian",
                "message":"Guest is minor, please assign a guardian!"
            },
            "soundUrl":"/configurations/gangwaySecuritySounds/9438/sound"
        }
    ]
}

401 Response

You are not authorized to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

403 Response

You are forbidden to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

404 Response

The Gangway Ashore Validations does not exist
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

405 Response

This method is not available
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

406 Response

Account Type not valid
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

415 Response

This media supplied is not supported
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

500 Response

Error occured while processing this request
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

502 Response

Bad Gateway

503 Response

Service not available
Back to Top