Class: Google::Apis::YoutubeV3::ChannelToStoreLinkDetails

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

Overview

Information specific to a store on a merchandising platform linked to a YouTube channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelToStoreLinkDetails

Returns a new instance of ChannelToStoreLinkDetails.



2047
2048
2049
# File 'lib/google/apis/youtube_v3/classes.rb', line 2047

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

Instance Attribute Details

#billing_detailsGoogle::Apis::YoutubeV3::ChannelToStoreLinkDetailsBillingDetails

Information specific to billing. Corresponds to the JSON property billingDetails



2025
2026
2027
# File 'lib/google/apis/youtube_v3/classes.rb', line 2025

def billing_details
  @billing_details
end

#merchant_affiliate_program_detailsGoogle::Apis::YoutubeV3::ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails

Information specific to merchant affiliate program. Corresponds to the JSON property merchantAffiliateProgramDetails



2030
2031
2032
# File 'lib/google/apis/youtube_v3/classes.rb', line 2030

def merchant_affiliate_program_details
  @merchant_affiliate_program_details
end

#merchant_idFixnum

Google Merchant Center id of the store. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


2035
2036
2037
# File 'lib/google/apis/youtube_v3/classes.rb', line 2035

def merchant_id
  @merchant_id
end

#store_nameString

Name of the store. Corresponds to the JSON property storeName

Returns:

  • (String)


2040
2041
2042
# File 'lib/google/apis/youtube_v3/classes.rb', line 2040

def store_name
  @store_name
end

#store_urlString

Landing page of the store. Corresponds to the JSON property storeUrl

Returns:

  • (String)


2045
2046
2047
# File 'lib/google/apis/youtube_v3/classes.rb', line 2045

def store_url
  @store_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2052
2053
2054
2055
2056
2057
2058
# File 'lib/google/apis/youtube_v3/classes.rb', line 2052

def update!(**args)
  @billing_details = args[:billing_details] if args.key?(:billing_details)
  @merchant_affiliate_program_details = args[:merchant_affiliate_program_details] if args.key?(:merchant_affiliate_program_details)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @store_name = args[:store_name] if args.key?(:store_name)
  @store_url = args[:store_url] if args.key?(:store_url)
end