Class: Google::Apis::WalletobjectsV1::CallbackOptions

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

Returns a new instance of CallbackOptions.



545
546
547
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 545

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

Instance Attribute Details

#update_request_urlString

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:Googlebot. Deprecated. Corresponds to the JSON property updateRequestUrl

Returns:

  • (String)


536
537
538
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 536

def update_request_url
  @update_request_url
end

#urlString

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: Googlebot. Corresponds to the JSON property url

Returns:

  • (String)


543
544
545
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 543

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



550
551
552
553
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 550

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