Skip to content

Commit

Permalink
feat(walletobjects): update the API
Browse files Browse the repository at this point in the history
#### walletobjects:v1

The following keys were added:
- schemas.EventTicketClass.properties.locations.deprecated
- schemas.EventTicketClass.properties.valueAddedModuleData.description
- schemas.EventTicketClass.properties.valueAddedModuleData.items.$ref
- schemas.EventTicketClass.properties.valueAddedModuleData.type
- schemas.EventTicketObject.properties.locations.deprecated
- schemas.EventTicketObject.properties.valueAddedModuleData.description
- schemas.EventTicketObject.properties.valueAddedModuleData.items.$ref
- schemas.EventTicketObject.properties.valueAddedModuleData.type
- schemas.FlightClass.properties.locations.deprecated
- schemas.FlightClass.properties.valueAddedModuleData.description
- schemas.FlightClass.properties.valueAddedModuleData.items.$ref
- schemas.FlightClass.properties.valueAddedModuleData.type
- schemas.FlightObject.properties.locations.deprecated
- schemas.FlightObject.properties.valueAddedModuleData.description
- schemas.FlightObject.properties.valueAddedModuleData.items.$ref
- schemas.FlightObject.properties.valueAddedModuleData.type
- schemas.GenericClass.properties.valueAddedModuleData.description
- schemas.GenericClass.properties.valueAddedModuleData.items.$ref
- schemas.GenericClass.properties.valueAddedModuleData.type
- schemas.GenericObject.properties.valueAddedModuleData.description
- schemas.GenericObject.properties.valueAddedModuleData.items.$ref
- schemas.GenericObject.properties.valueAddedModuleData.type
- schemas.GiftCardClass.properties.locations.deprecated
- schemas.GiftCardClass.properties.valueAddedModuleData.description
- schemas.GiftCardClass.properties.valueAddedModuleData.items.$ref
- schemas.GiftCardClass.properties.valueAddedModuleData.type
- schemas.GiftCardObject.properties.locations.deprecated
- schemas.GiftCardObject.properties.valueAddedModuleData.description
- schemas.GiftCardObject.properties.valueAddedModuleData.items.$ref
- schemas.GiftCardObject.properties.valueAddedModuleData.type
- schemas.LoyaltyClass.properties.locations.deprecated
- schemas.LoyaltyClass.properties.valueAddedModuleData.description
- schemas.LoyaltyClass.properties.valueAddedModuleData.items.$ref
- schemas.LoyaltyClass.properties.valueAddedModuleData.type
- schemas.LoyaltyObject.properties.locations.deprecated
- schemas.LoyaltyObject.properties.valueAddedModuleData.description
- schemas.LoyaltyObject.properties.valueAddedModuleData.items.$ref
- schemas.LoyaltyObject.properties.valueAddedModuleData.type
- schemas.ModuleViewConstraints.description
- schemas.ModuleViewConstraints.id
- schemas.ModuleViewConstraints.properties.displayInterval.$ref
- schemas.ModuleViewConstraints.properties.displayInterval.description
- schemas.ModuleViewConstraints.type
- schemas.OfferClass.properties.locations.deprecated
- schemas.OfferClass.properties.valueAddedModuleData.description
- schemas.OfferClass.properties.valueAddedModuleData.items.$ref
- schemas.OfferClass.properties.valueAddedModuleData.type
- schemas.OfferObject.properties.valueAddedModuleData.description
- schemas.OfferObject.properties.valueAddedModuleData.items.$ref
- schemas.OfferObject.properties.valueAddedModuleData.type
- schemas.TransitClass.properties.locations.deprecated
- schemas.TransitClass.properties.valueAddedModuleData.description
- schemas.TransitClass.properties.valueAddedModuleData.items.$ref
- schemas.TransitClass.properties.valueAddedModuleData.type
- schemas.TransitObject.properties.locations.deprecated
- schemas.TransitObject.properties.valueAddedModuleData.description
- schemas.TransitObject.properties.valueAddedModuleData.items.$ref
- schemas.TransitObject.properties.valueAddedModuleData.type
- schemas.ValueAddedModuleData.description
- schemas.ValueAddedModuleData.id
- schemas.ValueAddedModuleData.properties.body.$ref
- schemas.ValueAddedModuleData.properties.body.description
- schemas.ValueAddedModuleData.properties.header.$ref
- schemas.ValueAddedModuleData.properties.header.description
- schemas.ValueAddedModuleData.properties.image.$ref
- schemas.ValueAddedModuleData.properties.image.description
- schemas.ValueAddedModuleData.properties.sortIndex.description
- schemas.ValueAddedModuleData.properties.sortIndex.format
- schemas.ValueAddedModuleData.properties.sortIndex.type
- schemas.ValueAddedModuleData.properties.uri.description
- schemas.ValueAddedModuleData.properties.uri.type
- schemas.ValueAddedModuleData.properties.viewConstraints.$ref
- schemas.ValueAddedModuleData.properties.viewConstraints.description
- schemas.ValueAddedModuleData.type
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent 460b5b6 commit 1df0546
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 1 deletion.
154 changes: 153 additions & 1 deletion discovery/walletobjects-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2681,7 +2681,7 @@
}
}
},
"revision": "20240809",
"revision": "20240927",
"rootUrl": "https://walletobjects.googleapis.com/",
"schemas": {
"ActivationOptions": {
Expand Down Expand Up @@ -3906,6 +3906,7 @@
"description": "Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -4077,6 +4078,13 @@
},
"type": "array"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"venue": {
"$ref": "EventVenue",
"description": "Event venue details."
Expand Down Expand Up @@ -4226,6 +4234,7 @@
"description": "Links module data. If links module data is also defined on the class, both will be displayed."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -4323,6 +4332,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -4701,6 +4717,7 @@
"description": "Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -4809,6 +4826,13 @@
},
"type": "array"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -4974,6 +4998,7 @@
"description": "Links module data. If links module data is also defined on the class, both will be displayed."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -5063,6 +5088,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -5210,6 +5242,13 @@
},
"type": "array"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"viewUnlockRequirement": {
"description": "View Unlock Requirement options for the generic pass.",
"enum": [
Expand Down Expand Up @@ -5435,6 +5474,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be considered valid or usable. When the time period is passed, the object will be considered expired, which will affect the rendering on user's devices."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"wideLogo": {
"$ref": "Image",
"description": "The wide logo of the pass. When provided, this will be used in place of the logo in the top left of the card view."
Expand Down Expand Up @@ -5573,6 +5619,7 @@
"description": "Translated strings for the pin_label."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -5689,6 +5736,13 @@
},
"type": "array"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -5835,6 +5889,7 @@
"description": "Links module data. If links module data is also defined on the class, both will be displayed."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -5916,6 +5971,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -6397,6 +6459,7 @@
"description": "Translated strings for the secondary_rewards_tier_label."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -6525,6 +6588,13 @@
},
"type": "array"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -6670,6 +6740,7 @@
"description": "Links module data. If links module data is also defined on the class, both will be displayed."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -6755,6 +6826,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -7163,6 +7241,17 @@
},
"type": "object"
},
"ModuleViewConstraints": {
"description": "Constraints that all must be met for the module to be shown.",
"id": "ModuleViewConstraints",
"properties": {
"displayInterval": {
"$ref": "TimeInterval",
"description": "The period of time that the module will be displayed to users. Can define both a `startTime` and `endTime`. The module is displayed immediately after insertion unless a `startTime` is set. The module is displayed indefinitely if `endTime` is not set."
}
},
"type": "object"
},
"Money": {
"id": "Money",
"properties": {
Expand Down Expand Up @@ -7324,6 +7413,7 @@
"description": "Translated strings for the title. Recommended maximum length is 60 characters to ensure full string is displayed on smaller screens."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -7481,6 +7571,13 @@
"$ref": "Image",
"description": "The title image of the offer. This image is displayed in both the details and list views of the app."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -7688,6 +7785,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -8696,6 +8800,7 @@
"description": "Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -8851,6 +8956,13 @@
],
"type": "string"
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -9031,6 +9143,7 @@
"description": "Links module data. If links module data is also defined on the class, both will be displayed."
},
"locations": {
"deprecated": true,
"description": "Note: This field is currently not supported to trigger geo notifications.",
"items": {
"$ref": "LatLongPoint"
Expand Down Expand Up @@ -9220,6 +9333,13 @@
"$ref": "TimeInterval",
"description": "The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed."
},
"valueAddedModuleData": {
"description": "Optional value added module data. Maximum of ten on the object.",
"items": {
"$ref": "ValueAddedModuleData"
},
"type": "array"
},
"version": {
"deprecated": true,
"description": "Deprecated",
Expand Down Expand Up @@ -9333,6 +9453,38 @@
}
},
"type": "object"
},
"ValueAddedModuleData": {
"description": "Data for Value Added module. Required fields are header and uri.",
"id": "ValueAddedModuleData",
"properties": {
"body": {
"$ref": "LocalizedString",
"description": "Body to be displayed on the module. Character limit is 50 and longer strings will be truncated."
},
"header": {
"$ref": "LocalizedString",
"description": "Header to be displayed on the module. Character limit is 60 and longer strings will be truncated."
},
"image": {
"$ref": "Image",
"description": "Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this ratio."
},
"sortIndex": {
"description": "The index for sorting the modules. Modules with a lower sort index are shown before modules with a higher sort index. If unspecified, the sort index is assumed to be INT_MAX. For two modules with the same index, the sorting behavior is undefined.",
"format": "int32",
"type": "integer"
},
"uri": {
"description": "URI that the module leads to on click. This can be a web link or a deep link as mentioned in https://developer.android.com/training/app-links/deep-linking.",
"type": "string"
},
"viewConstraints": {
"$ref": "ModuleViewConstraints",
"description": "Constraints that all must be met for the module to be shown."
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
Loading

0 comments on commit 1df0546

Please sign in to comment.