Class: Google::Apis::MerchantapiAccountsV1beta::LoyaltyProgram

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

Overview

Loyalty program provided by a merchant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoyaltyProgram

Returns a new instance of LoyaltyProgram.



1410
1411
1412
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1410

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

Instance Attribute Details

#loyalty_program_tiersArray<Google::Apis::MerchantapiAccountsV1beta::LoyaltyProgramTiers>

Optional. Loyalty program tier of this shipping service. Corresponds to the JSON property loyaltyProgramTiers



1401
1402
1403
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1401

def loyalty_program_tiers
  @loyalty_program_tiers
end

#program_labelString

This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers. Corresponds to the JSON property programLabel

Returns:

  • (String)


1408
1409
1410
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1408

def program_label
  @program_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1415
1416
1417
1418
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1415

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