GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData (google_api_wallet_objects v0.12.0)
View SourceData for Value Added module. Required fields are header and uri.
Attributes
-
body(type:GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default:nil) - Body to be displayed on the module. Character limit is 50 and longer strings will be truncated. -
header(type:GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default:nil) - Header to be displayed on the module. Character limit is 60 and longer strings will be truncated. -
image(type:GoogleApi.WalletObjects.V1.Model.Image.t, default:nil) - Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this ratio. -
sortIndex(type:integer(), default:nil) - 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. -
uri(type:String.t, default:nil) - 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. -
viewConstraints(type:GoogleApi.WalletObjects.V1.Model.ModuleViewConstraints.t, default:nil) - Constraints that all must be met for the module to be shown.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.WalletObjects.V1.Model.ValueAddedModuleData{ body: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil, header: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil, image: GoogleApi.WalletObjects.V1.Model.Image.t() | nil, sortIndex: integer() | nil, uri: String.t() | nil, viewConstraints: GoogleApi.WalletObjects.V1.Model.ModuleViewConstraints.t() | nil }