Class: Google::Apis::WalletobjectsV1::TransitClass

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransitClass

Returns a new instance of TransitClass.



7681
7682
7683
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7681

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activation_optionsGoogle::Apis::WalletobjectsV1::ActivationOptions

ActivationOptions for the class Corresponds to the JSON property activationOptions



7359
7360
7361
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7359

def activation_options
  @activation_options
end

#allow_multiple_users_per_objectBoolean Also known as: allow_multiple_users_per_object?

Deprecated. Use multipleDevicesAndHoldersAllowedStatus instead. Corresponds to the JSON property allowMultipleUsersPerObject

Returns:

  • (Boolean)


7364
7365
7366
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7364

def allow_multiple_users_per_object
  @allow_multiple_users_per_object
end

#callback_optionsGoogle::Apis::WalletobjectsV1::CallbackOptions

Callback options to be used to call the issuer back for every save/delete of an object for this class by the end-user. All objects of this class are eligible for the callback. Corresponds to the JSON property callbackOptions



7372
7373
7374
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7372

def callback_options
  @callback_options
end

#class_template_infoGoogle::Apis::WalletobjectsV1::ClassTemplateInfo

Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display. Corresponds to the JSON property classTemplateInfo



7378
7379
7380
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7378

def class_template_info
  @class_template_info
end

#country_codeString

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. Corresponds to the JSON property countryCode

Returns:

  • (String)


7385
7386
7387
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7385

def country_code
  @country_code
end

#custom_carriage_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the carriage value (transitObject.ticketLeg. carriage). Corresponds to the JSON property customCarriageLabel



7391
7392
7393
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7391

def custom_carriage_label
  @custom_carriage_label
end

#custom_coach_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the coach value (transitObject.ticketLeg.ticketSeat. coach). Corresponds to the JSON property customCoachLabel



7397
7398
7399
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7397

def custom_coach_label
  @custom_coach_label
end

#custom_concession_category_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the transit concession category value ( transitObject.concessionCategory). Corresponds to the JSON property customConcessionCategoryLabel



7403
7404
7405
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7403

def custom_concession_category_label
  @custom_concession_category_label
end

#custom_confirmation_code_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the confirmation code value (transitObject. purchaseDetails.confirmationCode). Corresponds to the JSON property customConfirmationCodeLabel



7409
7410
7411
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7409

def custom_confirmation_code_label
  @custom_confirmation_code_label
end

#custom_discount_message_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the transit discount message value (transitObject. purchaseDetails.ticketCost.discountMessage). Corresponds to the JSON property customDiscountMessageLabel



7415
7416
7417
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7415

def custom_discount_message_label
  @custom_discount_message_label
end

#custom_fare_class_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the fare class value (transitObject.ticketLeg. ticketSeat.fareClass). Corresponds to the JSON property customFareClassLabel



7421
7422
7423
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7421

def custom_fare_class_label
  @custom_fare_class_label
end

#custom_fare_name_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the transit fare name value (transitObject. ticketLeg.fareName). Corresponds to the JSON property customFareNameLabel



7427
7428
7429
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7427

def custom_fare_name_label
  @custom_fare_name_label
end

#custom_other_restrictions_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the other restrictions value (transitObject. ticketRestrictions.otherRestrictions). Corresponds to the JSON property customOtherRestrictionsLabel



7433
7434
7435
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7433

def custom_other_restrictions_label
  @custom_other_restrictions_label
end

#custom_platform_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the boarding platform value (transitObject. ticketLeg.platform). Corresponds to the JSON property customPlatformLabel



7439
7440
7441
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7439

def custom_platform_label
  @custom_platform_label
end

#custom_purchase_face_value_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the purchase face value (transitObject. purchaseDetails.ticketCost.faceValue). Corresponds to the JSON property customPurchaseFaceValueLabel



7445
7446
7447
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7445

def custom_purchase_face_value_label
  @custom_purchase_face_value_label
end

#custom_purchase_price_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the purchase price value (transitObject. purchaseDetails.ticketCost.purchasePrice). Corresponds to the JSON property customPurchasePriceLabel



7451
7452
7453
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7451

def custom_purchase_price_label
  @custom_purchase_price_label
end

#custom_purchase_receipt_number_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the purchase receipt number value (transitObject. purchaseDetails.purchaseReceiptNumber). Corresponds to the JSON property customPurchaseReceiptNumberLabel



7457
7458
7459
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7457

def custom_purchase_receipt_number_label
  @custom_purchase_receipt_number_label
end

#custom_route_restrictions_details_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the route restrictions details value (transitObject. ticketRestrictions.routeRestrictionsDetails). Corresponds to the JSON property customRouteRestrictionsDetailsLabel



7463
7464
7465
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7463

def custom_route_restrictions_details_label
  @custom_route_restrictions_details_label
end

#custom_route_restrictions_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the route restrictions value (transitObject. ticketRestrictions.routeRestrictions). Corresponds to the JSON property customRouteRestrictionsLabel



7469
7470
7471
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7469

def custom_route_restrictions_label
  @custom_route_restrictions_label
end

#custom_seat_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the seat location value (transitObject.ticketLeg. ticketSeat.seat). Corresponds to the JSON property customSeatLabel



7475
7476
7477
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7475

def custom_seat_label
  @custom_seat_label
end

#custom_ticket_number_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the ticket number value (transitObject.ticketNumber ). Corresponds to the JSON property customTicketNumberLabel



7481
7482
7483
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7481

def custom_ticket_number_label
  @custom_ticket_number_label
end

#custom_time_restrictions_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the time restrictions details value (transitObject. ticketRestrictions.timeRestrictions). Corresponds to the JSON property customTimeRestrictionsLabel



7487
7488
7489
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7487

def custom_time_restrictions_label
  @custom_time_restrictions_label
end

#custom_transit_terminus_name_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the transit terminus name value (transitObject. ticketLeg.transitTerminusName). Corresponds to the JSON property customTransitTerminusNameLabel



7493
7494
7495
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7493

def custom_transit_terminus_name_label
  @custom_transit_terminus_name_label
end

#custom_zone_labelGoogle::Apis::WalletobjectsV1::LocalizedString

A custom label to use for the boarding zone value (transitObject.ticketLeg. zone). Corresponds to the JSON property customZoneLabel



7499
7500
7501
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7499

def custom_zone_label
  @custom_zone_label
end

#enable_single_leg_itineraryBoolean Also known as: enable_single_leg_itinerary?

Controls the display of the single-leg itinerary for this class. By default, an itinerary will only display for multi-leg trips. Corresponds to the JSON property enableSingleLegItinerary

Returns:

  • (Boolean)


7505
7506
7507
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7505

def enable_single_leg_itinerary
  @enable_single_leg_itinerary
end

#enable_smart_tapBoolean Also known as: enable_smart_tap?

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. Corresponds to the JSON property enableSmartTap

Returns:

  • (Boolean)


7513
7514
7515
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7513

def enable_smart_tap
  @enable_smart_tap
end

#hero_imageGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Next ID: 7 Corresponds to the JSON property heroImage



7519
7520
7521
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7519

def hero_image
  @hero_image
end

#hex_background_colorString

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. Corresponds to the JSON property hexBackgroundColor

Returns:

  • (String)


7528
7529
7530
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7528

def hex_background_color
  @hex_background_color
end

#homepage_uriGoogle::Apis::WalletobjectsV1::Uri

The URI of your application's home page. Populating the URI in this field results in the exact same behavior as populating an URI in linksModuleData ( when an object is rendered, a link to the homepage is shown in what would usually be thought of as the linksModuleData section of the object). Corresponds to the JSON property homepageUri



7536
7537
7538
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7536

def homepage_uri
  @homepage_uri
end

#idString

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 '-'. Corresponds to the JSON property id

Returns:

  • (String)


7545
7546
7547
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7545

def id
  @id
end

#image_modules_dataArray<Google::Apis::WalletobjectsV1::ImageModuleData>

Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level. Corresponds to the JSON property imageModulesData



7551
7552
7553
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7551

def image_modules_data
  @image_modules_data
end

#info_module_dataGoogle::Apis::WalletobjectsV1::InfoModuleData

Deprecated. Use textModulesData instead. Corresponds to the JSON property infoModuleData



7556
7557
7558
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7556

def info_module_data
  @info_module_data
end

#issuer_nameString

Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. Corresponds to the JSON property issuerName

Returns:

  • (String)


7562
7563
7564
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7562

def issuer_name
  @issuer_name
end

#language_overrideString

If this field is present, transit tickets served to a user's device will always be in this language. Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT". Corresponds to the JSON property languageOverride

Returns:

  • (String)


7569
7570
7571
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7569

def language_override
  @language_override
end

Links module data. If links module data is also defined on the object, both will be displayed. Corresponds to the JSON property linksModuleData



7575
7576
7577
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7575

def links_module_data
  @links_module_data
end

#localized_issuer_nameGoogle::Apis::WalletobjectsV1::LocalizedString

Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. Corresponds to the JSON property localizedIssuerName



7581
7582
7583
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7581

def localized_issuer_name
  @localized_issuer_name
end

#locationsArray<Google::Apis::WalletobjectsV1::LatLongPoint>

Note: This field is currently not supported to trigger geo notifications. Corresponds to the JSON property locations



7586
7587
7588
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7586

def locations
  @locations
end

#logoGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Next ID: 7 Corresponds to the JSON property logo



7591
7592
7593
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7591

def 
  @logo
end

#messagesArray<Google::Apis::WalletobjectsV1::Message>

An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10. Corresponds to the JSON property messages



7597
7598
7599
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7597

def messages
  @messages
end

#multiple_devices_and_holders_allowed_statusString

Identifies whether multiple users and devices will save the same object referencing this class. Corresponds to the JSON property multipleDevicesAndHoldersAllowedStatus

Returns:

  • (String)


7603
7604
7605
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7603

def multiple_devices_and_holders_allowed_status
  @multiple_devices_and_holders_allowed_status
end

#redemption_issuersArray<Fixnum>

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. Corresponds to the JSON property redemptionIssuers

Returns:

  • (Array<Fixnum>)


7612
7613
7614
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7612

def redemption_issuers
  @redemption_issuers
end

#reviewGoogle::Apis::WalletobjectsV1::Review

The review comments set by the platform when a class is marked approved or rejected. Corresponds to the JSON property review



7618
7619
7620
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7618

def review
  @review
end

#review_statusString

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. Corresponds to the JSON property reviewStatus

Returns:

  • (String)


7631
7632
7633
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7631

def review_status
  @review_status
end

#security_animationGoogle::Apis::WalletobjectsV1::SecurityAnimation

Optional information about the security animation. If this is set a security animation will be rendered on pass details. Corresponds to the JSON property securityAnimation



7637
7638
7639
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7637

def security_animation
  @security_animation
end

#text_modules_dataArray<Google::Apis::WalletobjectsV1::TextModuleData>

Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. Corresponds to the JSON property textModulesData



7644
7645
7646
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7644

def text_modules_data
  @text_modules_data
end

#transit_operator_nameGoogle::Apis::WalletobjectsV1::LocalizedString

The name of the transit operator. Corresponds to the JSON property transitOperatorName



7649
7650
7651
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7649

def transit_operator_name
  @transit_operator_name
end

#transit_typeString

Required. The type of transit this class represents, such as "bus". Corresponds to the JSON property transitType

Returns:

  • (String)


7654
7655
7656
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7654

def transit_type
  @transit_type
end

#versionFixnum

Deprecated Corresponds to the JSON property version

Returns:

  • (Fixnum)


7659
7660
7661
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7659

def version
  @version
end

#view_unlock_requirementString

View Unlock Requirement options for the transit ticket. Corresponds to the JSON property viewUnlockRequirement

Returns:

  • (String)


7664
7665
7666
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7664

def view_unlock_requirement
  @view_unlock_requirement
end

#watermarkGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Next ID: 7 Corresponds to the JSON property watermark



7669
7670
7671
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7669

def watermark
  @watermark
end

#wide_logoGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Next ID: 7 Corresponds to the JSON property wideLogo



7674
7675
7676
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7674

def 
  @wide_logo
end

#word_markGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Next ID: 7 Corresponds to the JSON property wordMark



7679
7680
7681
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7679

def word_mark
  @word_mark
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7686

def update!(**args)
  @activation_options = args[:activation_options] if args.key?(:activation_options)
  @allow_multiple_users_per_object = args[:allow_multiple_users_per_object] if args.key?(:allow_multiple_users_per_object)
  @callback_options = args[:callback_options] if args.key?(:callback_options)
  @class_template_info = args[:class_template_info] if args.key?(:class_template_info)
  @country_code = args[:country_code] if args.key?(:country_code)
  @custom_carriage_label = args[:custom_carriage_label] if args.key?(:custom_carriage_label)
  @custom_coach_label = args[:custom_coach_label] if args.key?(:custom_coach_label)
  @custom_concession_category_label = args[:custom_concession_category_label] if args.key?(:custom_concession_category_label)
  @custom_confirmation_code_label = args[:custom_confirmation_code_label] if args.key?(:custom_confirmation_code_label)
  @custom_discount_message_label = args[:custom_discount_message_label] if args.key?(:custom_discount_message_label)
  @custom_fare_class_label = args[:custom_fare_class_label] if args.key?(:custom_fare_class_label)
  @custom_fare_name_label = args[:custom_fare_name_label] if args.key?(:custom_fare_name_label)
  @custom_other_restrictions_label = args[:custom_other_restrictions_label] if args.key?(:custom_other_restrictions_label)
  @custom_platform_label = args[:custom_platform_label] if args.key?(:custom_platform_label)
  @custom_purchase_face_value_label = args[:custom_purchase_face_value_label] if args.key?(:custom_purchase_face_value_label)
  @custom_purchase_price_label = args[:custom_purchase_price_label] if args.key?(:custom_purchase_price_label)
  @custom_purchase_receipt_number_label = args[:custom_purchase_receipt_number_label] if args.key?(:custom_purchase_receipt_number_label)
  @custom_route_restrictions_details_label = args[:custom_route_restrictions_details_label] if args.key?(:custom_route_restrictions_details_label)
  @custom_route_restrictions_label = args[:custom_route_restrictions_label] if args.key?(:custom_route_restrictions_label)
  @custom_seat_label = args[:custom_seat_label] if args.key?(:custom_seat_label)
  @custom_ticket_number_label = args[:custom_ticket_number_label] if args.key?(:custom_ticket_number_label)
  @custom_time_restrictions_label = args[:custom_time_restrictions_label] if args.key?(:custom_time_restrictions_label)
  @custom_transit_terminus_name_label = args[:custom_transit_terminus_name_label] if args.key?(:custom_transit_terminus_name_label)
  @custom_zone_label = args[:custom_zone_label] if args.key?(:custom_zone_label)
  @enable_single_leg_itinerary = args[:enable_single_leg_itinerary] if args.key?(:enable_single_leg_itinerary)
  @enable_smart_tap = args[:enable_smart_tap] if args.key?(:enable_smart_tap)
  @hero_image = args[:hero_image] if args.key?(:hero_image)
  @hex_background_color = args[:hex_background_color] if args.key?(:hex_background_color)
  @homepage_uri = args[:homepage_uri] if args.key?(:homepage_uri)
  @id = args[:id] if args.key?(:id)
  @image_modules_data = args[:image_modules_data] if args.key?(:image_modules_data)
  @info_module_data = args[:info_module_data] if args.key?(:info_module_data)
  @issuer_name = args[:issuer_name] if args.key?(:issuer_name)
  @language_override = args[:language_override] if args.key?(:language_override)
  @links_module_data = args[:links_module_data] if args.key?(:links_module_data)
  @localized_issuer_name = args[:localized_issuer_name] if args.key?(:localized_issuer_name)
  @locations = args[:locations] if args.key?(:locations)
  @logo = args[:logo] if args.key?(:logo)
  @messages = args[:messages] if args.key?(:messages)
  @multiple_devices_and_holders_allowed_status = args[:multiple_devices_and_holders_allowed_status] if args.key?(:multiple_devices_and_holders_allowed_status)
  @redemption_issuers = args[:redemption_issuers] if args.key?(:redemption_issuers)
  @review = args[:review] if args.key?(:review)
  @review_status = args[:review_status] if args.key?(:review_status)
  @security_animation = args[:security_animation] if args.key?(:security_animation)
  @text_modules_data = args[:text_modules_data] if args.key?(:text_modules_data)
  @transit_operator_name = args[:transit_operator_name] if args.key?(:transit_operator_name)
  @transit_type = args[:transit_type] if args.key?(:transit_type)
  @version = args[:version] if args.key?(:version)
  @view_unlock_requirement = args[:view_unlock_requirement] if args.key?(:view_unlock_requirement)
  @watermark = args[:watermark] if args.key?(:watermark)
  @wide_logo = args[:wide_logo] if args.key?(:wide_logo)
  @word_mark = args[:word_mark] if args.key?(:word_mark)
end