Skip to main content

Sample Inputs

ContestDetailsPropertyNotMatchedInAppleOverride

Scenario One
Apple override specifies a property (locationStatus) which is not present in contest details.

Pass ScenarioFailure Scenario
Contest Details
{
"contestDetails": {
"value": {
"displayNames": [
{
"name": "中国银行",
"locale": "zh",
"primary": true
},
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
]
}
}
}
Corresponding Apple Override
{
"overrideDetails": {
"code": "APPLE_OVERRIDE__LOCATION_STATUS",
"message": "Place card will display your location as 'Open'",
"fields": [
{
"field": "$.locationDetails.locationStatus",
"value": {
"locationStatus": {
"status": "OPEN"
}
}
}
]
}
}

Scenario Two
Apple override specifies a property (locationStatus) which is present in contest details.

Pass ScenarioFailure Scenario
Contest Details
{
"contestDetails": {
"value": {
"displayNames": [
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
],
"locationStatus": {
"status": "OPENING_SOON"
}
}
}
}
Corresponding Apple Override
{
"overrideDetails": {
"code": "APPLE_OVERRIDE__LOCATION_STATUS",
"message": "Place card will display different location status",
"fields": [
{
"field": "$.locationDetails.locationStatus",
"value": {
"locationStatus": {
"status": "OPEN"
}
}
}
]
}
}

ContestDetailsValueExactlyMatchesAppleOverrideValue

Scenario One
The value of the displayNames property exactly matches the Apple override value.

Pass ScenarioFailure Scenario
Contest Details
{
"contestDetails": {
"value": {
"displayNames": [
{
"name": "中国银行",
"locale": "zh",
"primary": true
},
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
]
}
}
}
Corresponding Apple Override
{
"overrideDetails": {
"code": "APPLE_OVERRIDE__LOCATION_NAME",
"message": "Place card will display different name for your location",
"fields": [
{
"field": "$.locationDetails.displayNames",
"value": {
"displayNames": [
{
"name": "中国银行",
"locale": "zh",
"primary": true
},
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
]
}
}
]
}
}

Scenario Two
The list of display names does not exactly match the list in feedback.

Pass ScenarioFailure Scenario
Contest Details
{
"contestDetails": {
"value": {
"displayNames": [
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
]
}
}
}
Corresponding Apple Override
{
"overrideDetails": {
"code": "APPLE_OVERRIDE__LOCATION_NAME",
"message": "Place card will display different name for your location",
"fields": [
{
"field": "$.locationDetails.displayNames",
"value": {
"displayNames": [
{
"name": "中国银行",
"locale": "zh",
"primary": true
},
{
"name": "Bank of China",
"locale": "en",
"primary": true
}
]
}
}
]
}
}