Inserts an loyalty 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> loyaltyclass 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:

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=dolores
    • 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=ipsum
    • 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=ea
    • 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=elitr

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

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

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

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

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

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

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

    • 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.
  • ... state=kasd

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

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

    • 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=diam
    • 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=at

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • Identifies what kind of resource this is. Value: the fixed string &#34;walletobjects#localizedString&#34;.
  • ..localized-program-name.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=sit

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

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

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

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

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

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

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

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

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

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

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

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

    • Identifies whether multiple users and devices will save the same object referencing this class.
  • program-logo.content-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=amet

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

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

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

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

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

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

    • 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=clita
    • 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=diam

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

    • 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=sadipscing
    • 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=rebum.
    • 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=est
    • The secondary rewards tier, such as "Gold" or "Platinum."
  • secondary-rewards-tier-label=vero
    • The secondary rewards tier label, such as "Rewards Tier."
  • security-animation animation-type=eirmod

    • Type of animation.
  • .. version=eirmod

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

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

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

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

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

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

    • 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=tempor
    • 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=aliquyam
    • 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=amet.

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

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