Inserts an gift card class with the given ID and properties.

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 insert ...

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=true
    • Deprecated. Use multipleDevicesAndHoldersAllowedStatus instead.
  • callback-options update-request-url=no
    • 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=lorem

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

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

    • 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=sanctus
    • The label to display for event number, such as "Target Event #".
  • hero-image.content-description.default-value kind=rebum.
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=tempor
    • 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=diam

    • 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=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=at
    • Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  • value=elitr

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

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

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

    • 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=lorem
    • 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=no
    • 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=lorem
    • 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=ipsum

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

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

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

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

    • Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens.
  • kind=at
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#giftCardClass&#34;.
  • localized-card-number-label.default-value kind=ipsum
    • 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=sanctus

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

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

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

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

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

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

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

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

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

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

    • 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=rebum.

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

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

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

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

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

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

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

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

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

    • Type of animation.
  • .. version=sed

    • Deprecated
  • view-unlock-requirement=sadipscing
    • View Unlock Requirement options for the gift card.
  • wide-program-logo.content-description.default-value kind=stet
    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#translatedString&#34;.
  • language=stet
    • 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=kasd

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

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

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

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

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

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

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

    • 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=no
    • Additional information about the image, which is unused and retained only for backward compatibility.
  • localized-description.default-value kind=sed
    • 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=magna

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

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

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