Updates the loyalty class referenced by the given class ID.

Scopes

You will need authorization for the https://www.googleapis.com/auth/wallet_object.issuer scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/wallet_object.issuer. You can set the scope for this method like this: walletobjects1 --scope <scope> loyaltyclass update ...

Required Scalar Argument

  • <resource-id> (string)
    • The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

LoyaltyClass:
  account-id-label: string
  account-name-label: string
  allow-multiple-users-per-object: boolean
  callback-options:
    update-request-url: string
    url: string
  class-template-info:
    list-template-override:
      first-row-option:
        transit-option: string
  country-code: string
  discoverable-program:
    merchant-signin-info:
      signin-website:
        description: string
        id: string
        kind: string
        localized-description:
          default-value:
            kind: string
            language: string
            value: string
          kind: string
        uri: string
    merchant-signup-info:
      signup-shared-datas: [string]
      signup-website:
        description: string
        id: string
        kind: string
        localized-description:
          default-value:
            kind: string
            language: string
            value: string
          kind: string
        uri: string
    state: string
  enable-smart-tap: boolean
  hero-image:
    content-description:
      default-value:
        kind: string
        language: string
        value: string
      kind: string
    kind: string
    source-uri:
      description: string
      localized-description:
        default-value:
          kind: string
          language: string
          value: string
        kind: string
      uri: string
  hex-background-color: string
  homepage-uri:
    description: string
    id: string
    kind: string
    localized-description:
      default-value:
        kind: string
        language: string
        value: string
      kind: string
    uri: string
  id: string
  info-module-data:
    show-last-update-time: boolean
  issuer-name: string
  kind: string
  localized-account-id-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-account-name-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-issuer-name:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-program-name:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-rewards-tier:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-rewards-tier-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-secondary-rewards-tier:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-secondary-rewards-tier-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  multiple-devices-and-holders-allowed-status: string
  program-logo:
    content-description:
      default-value:
        kind: string
        language: string
        value: string
      kind: string
    kind: string
    source-uri:
      description: string
      localized-description:
        default-value:
          kind: string
          language: string
          value: string
        kind: string
      uri: string
  program-name: string
  redemption-issuers: [string]
  review:
    comments: string
  review-status: string
  rewards-tier: string
  rewards-tier-label: string
  secondary-rewards-tier: string
  secondary-rewards-tier-label: string
  security-animation:
    animation-type: string
  version: string
  view-unlock-requirement: string
  wide-program-logo:
    content-description:
      default-value:
        kind: string
        language: string
        value: string
      kind: string
    kind: string
    source-uri:
      description: string
      localized-description:
        default-value:
          kind: string
          language: string
          value: string
        kind: string
      uri: string
  word-mark:
    content-description:
      default-value:
        kind: string
        language: string
        value: string
      kind: string
    kind: string
    source-uri:
      description: string
      localized-description:
        default-value:
          kind: string
          language: string
          value: string
        kind: string
      uri: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r . account-id-label=et
    • The account ID label, such as "Member ID." Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
  • account-name-label=at
    • The account name label, such as "Member Name." Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
  • allow-multiple-users-per-object=true
    • Deprecated. Use multipleDevicesAndHoldersAllowedStatus instead.
  • callback-options update-request-url=vero
    • URL for the merchant endpoint that would be called to request updates. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Google-Valuables. Deprecated.
  • url=no

    • The HTTPS url configured by the merchant. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Google-Valuables.
  • ..class-template-info.list-template-override.first-row-option transit-option=ipsum

    • No description provided.
  • .... country-code=clita

    • Country code used to display the card's country (when the user is not in that country), as well as to display localized content when content is not available in the user's locale.
  • discoverable-program.merchant-signin-info.signin-website description=eirmod
    • The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when description is part of an image.
  • id=duo
    • The ID associated with a uri. This field is here to enable ease of management of uris.
  • kind=diam
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#uri&#34;.
  • localized-description.default-value kind=amet.
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=clita
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=dolores

    • The UTF-8 encoded translated string.
  • .. kind=lorem

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=et

    • The location of a web page, image, or other resource. URIs in the LinksModuleData module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme.
  • ...merchant-signup-info signup-shared-datas=rebum.

    • User data that is sent in a POST request to the signup website URL. This information is encoded and then shared so that the merchant's website can prefill fields used to enroll the user for the discoverable program.
    • Each invocation of this argument appends the given value to the array.
  • signup-website description=clita
    • The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when description is part of an image.
  • id=accusam
    • The ID associated with a uri. This field is here to enable ease of management of uris.
  • kind=ipsum
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#uri&#34;.
  • localized-description.default-value kind=dolores
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=sed
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=et

    • The UTF-8 encoded translated string.
  • .. kind=sea

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=sed

    • The location of a web page, image, or other resource. URIs in the LinksModuleData module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme.
  • ... state=amet.

    • Visibility state of the discoverable program.
  • .. enable-smart-tap=false

    • Identifies whether this class supports Smart Tap. The redemptionIssuers and one of object level smartTapRedemptionLevel, barcode.value, oraccountId` fields must also be set up correctly in order for a pass to support Smart Tap.
  • hero-image.content-description.default-value kind=voluptua.
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=kasd
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=nonumy

    • The UTF-8 encoded translated string.
  • .. kind=sanctus

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. kind=dolores

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=at
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=no
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=et
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=takimata

    • The UTF-8 encoded translated string.
  • .. kind=rebum.

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=dolores

    • The location of the image. URIs must have a scheme.
  • ... hex-background-color=et

    • The background color for the card. If not set the dominant color of the hero image is used, and if no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex RGB triplet, such as #ffcc00. You can also use the shorthand version of the RGB triplet which is #rgb, such as #fc0.
  • homepage-uri description=labore
    • The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when description is part of an image.
  • id=et
    • The ID associated with a uri. This field is here to enable ease of management of uris.
  • kind=magna
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#uri&#34;.
  • localized-description.default-value kind=aliquyam
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=accusam
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=accusam

    • The UTF-8 encoded translated string.
  • .. kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=dolor

    • The location of a web page, image, or other resource. URIs in the LinksModuleData module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme.
  • .. id=kasd

    • Required. The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
  • info-module-data show-last-update-time=false

    • No description provided.
  • .. issuer-name=dolor

    • Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens.
  • kind=sit
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#loyaltyClass&#34;.
  • localized-account-id-label.default-value kind=dolor
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=sanctus
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=amet

    • The UTF-8 encoded translated string.
  • .. kind=stet

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-account-name-label.default-value kind=clita

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=rebum.
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=justo

    • The UTF-8 encoded translated string.
  • .. kind=ipsum

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-issuer-name.default-value kind=ea

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=ipsum
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=stet

    • The UTF-8 encoded translated string.
  • .. kind=accusam

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-program-name.default-value kind=accusam

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=erat
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=et

    • The UTF-8 encoded translated string.
  • .. kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-rewards-tier.default-value kind=gubergren

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=no
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=diam

    • The UTF-8 encoded translated string.
  • .. kind=dolores

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-rewards-tier-label.default-value kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=labore
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=labore

    • The UTF-8 encoded translated string.
  • .. kind=ea

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-secondary-rewards-tier.default-value kind=vero

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=diam
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=aliquyam

    • The UTF-8 encoded translated string.
  • .. kind=voluptua.

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-secondary-rewards-tier-label.default-value kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=et
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=kasd

    • The UTF-8 encoded translated string.
  • .. kind=ipsum

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. multiple-devices-and-holders-allowed-status=diam

    • Identifies whether multiple users and devices will save the same object referencing this class.
  • program-logo.content-description.default-value kind=sit
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=justo
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=voluptua.

    • The UTF-8 encoded translated string.
  • .. kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. kind=sanctus

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=sit
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=et
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=diam
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=sit

    • The UTF-8 encoded translated string.
  • .. kind=ut

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=takimata

    • The location of the image. URIs must have a scheme.
  • ... program-name=voluptua.

    • Required. The program name, such as "Adam's Apparel". The app may display an ellipsis after the first 20 characters to ensure full string is displayed on smaller screens.
  • redemption-issuers=dolor
    • Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The enableSmartTap and one of object level smartTapRedemptionValue, barcode.value, oraccountId` fields must also be set up correctly in order for a pass to support Smart Tap.
    • Each invocation of this argument appends the given value to the array.
  • review comments=duo

    • No description provided.
  • .. review-status=et

    • Required. The status of the class. This field can be set to draft or underReview using the insert, patch, or update API calls. Once the review state is changed from draft it may not be changed back to draft. You should keep this field to draft when the class is under development. A draft class cannot be used to create any object. You should set this field to underReview when you believe the class is ready for use. The platform will automatically set this field to approved and it can be immediately used to create or migrate objects. When updating an already approved class you should keep setting this field to underReview.
  • rewards-tier=kasd
    • The rewards tier, such as "Gold" or "Platinum." Recommended maximum length is 7 characters to ensure full string is displayed on smaller screens.
  • rewards-tier-label=aliquyam
    • The rewards tier label, such as "Rewards Tier." Recommended maximum length is 9 characters to ensure full string is displayed on smaller screens.
  • secondary-rewards-tier=no
    • The secondary rewards tier, such as "Gold" or "Platinum."
  • secondary-rewards-tier-label=at
    • The secondary rewards tier label, such as "Rewards Tier."
  • security-animation animation-type=sadipscing

    • Type of animation.
  • .. version=takimata

    • Deprecated
  • view-unlock-requirement=takimata
    • View Unlock Requirement options for the loyalty card.
  • wide-program-logo.content-description.default-value kind=dolore
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=sadipscing
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=diam

    • The UTF-8 encoded translated string.
  • .. kind=tempor

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. kind=clita

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=vero
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=accusam
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=est
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=ea

    • The UTF-8 encoded translated string.
  • .. kind=labore

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=sadipscing

    • The location of the image. URIs must have a scheme.
  • ...word-mark.content-description.default-value kind=takimata

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=et
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=sanctus

    • The UTF-8 encoded translated string.
  • .. kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. kind=et

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=lorem
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=et
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=amet
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=sit

    • The UTF-8 encoded translated string.
  • .. kind=diam

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • .. uri=sanctus

    • The location of the image. URIs must have a scheme.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").