Class: Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjects

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) ⇒ ModifyLinkedOfferObjects

Returns a new instance of ModifyLinkedOfferObjects.



6122
6123
6124
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6122

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

Instance Attribute Details

#add_linked_offer_object_idsArray<String>

The linked offer object ids to add to the object. Corresponds to the JSON property addLinkedOfferObjectIds

Returns:

  • (Array<String>)


6115
6116
6117
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6115

def add_linked_offer_object_ids
  @add_linked_offer_object_ids
end

#remove_linked_offer_object_idsArray<String>

The linked offer object ids to remove from the object. Corresponds to the JSON property removeLinkedOfferObjectIds

Returns:

  • (Array<String>)


6120
6121
6122
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6120

def remove_linked_offer_object_ids
  @remove_linked_offer_object_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6127
6128
6129
6130
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6127

def update!(**args)
  @add_linked_offer_object_ids = args[:add_linked_offer_object_ids] if args.key?(:add_linked_offer_object_ids)
  @remove_linked_offer_object_ids = args[:remove_linked_offer_object_ids] if args.key?(:remove_linked_offer_object_ids)
end