Updates the gift card 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> giftcardclass 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:

GiftCardClass:
  allow-barcode-redemption: boolean
  allow-multiple-users-per-object: boolean
  callback-options:
    update-request-url: string
    url: string
  card-number-label: string
  class-template-info:
    list-template-override:
      first-row-option:
        transit-option: string
  country-code: string
  enable-smart-tap: boolean
  event-number-label: string
  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-card-number-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-event-number-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-merchant-name:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  localized-pin-label:
    default-value:
      kind: string
      language: string
      value: string
    kind: string
  merchant-name: string
  multiple-devices-and-holders-allowed-status: string
  pin-label: 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
  redemption-issuers: [string]
  review:
    comments: string
  review-status: 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 . allow-barcode-redemption=false
    • Determines whether the merchant supports gift card redemption using barcode. If true, app displays a barcode for the gift card on the Gift card details screen. If false, a barcode is not displayed.
  • allow-multiple-users-per-object=false
    • Deprecated. Use multipleDevicesAndHoldersAllowedStatus instead.
  • callback-options update-request-url=lorem
    • 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=kasd

    • 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.
  • .. card-number-label=accusam

    • The label to display for the card number, such as "Card Number".
  • class-template-info.list-template-override.first-row-option transit-option=stet

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

    • 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.
  • enable-smart-tap=true
    • Identifies whether this class supports Smart Tap. The redemptionIssuers and object level smartTapRedemptionLevel fields must also be set up correctly in order for a pass to support Smart Tap.
  • event-number-label=no
    • The label to display for event number, such as "Target Event #".
  • hero-image.content-description.default-value kind=magna
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=takimata
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=sed

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

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

    • 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=no
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=dolor
    • 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=consetetur

    • 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=tempor

    • 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=et
    • 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=sanctus
    • The ID associated with a uri. This field is here to enable ease of management of uris.
  • kind=dolor
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#uri&#34;.
  • localized-description.default-value kind=duo
    • 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=eirmod

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

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

    • 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=ea

    • 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=true

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

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

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

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

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

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

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

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

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

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

    • 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=est

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

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

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=lorem
    • 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=consetetur

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

    • Merchant 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.
  • multiple-devices-and-holders-allowed-status=dolor
    • Identifies whether multiple users and devices will save the same object referencing this class.
  • pin-label=sadipscing
    • The label to display for the PIN, such as "4-digit PIN".
  • program-logo.content-description.default-value kind=duo
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=eirmod
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=sadipscing

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

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

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=clita
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=lorem
    • 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=stet

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

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

    • The location of the image. URIs must have a scheme.
  • ... redemption-issuers=consetetur

    • 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 object level smartTapRedemptionLevel 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=stet

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

    • 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.
  • security-animation animation-type=at

    • Type of animation.
  • .. version=takimata

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

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

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

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=clita
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=vero
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=dolor
    • 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=ea

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

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

    • 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=et

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

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

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#image&#34;.
  • source-uri description=dolores
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=kasd
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=magna
    • 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=lorem

    • 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").