Class: Google::Apis::WalletobjectsV1::WalletobjectsService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/walletobjects_v1/service.rb

Overview

Google Wallet API

API for issuers to save and manage Google Wallet Objects.

Examples:

require 'google/apis/walletobjects_v1'

Walletobjects = Google::Apis::WalletobjectsV1 # Alias the module
service = Walletobjects::WalletobjectsService.new

See Also:

Constant Summary collapse

DEFAULT_ENDPOINT_TEMPLATE =
"https://walletobjects.$UNIVERSE_DOMAIN$/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWalletobjectsService

Returns a new instance of WalletobjectsService.



47
48
49
50
51
52
# File 'lib/google/apis/walletobjects_v1/service.rb', line 47

def initialize
  super(DEFAULT_ENDPOINT_TEMPLATE, '',
        client_name: 'google-apis-walletobjects_v1',
        client_version: Google::Apis::WalletobjectsV1::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



40
41
42
# File 'lib/google/apis/walletobjects_v1/service.rb', line 40

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.



45
46
47
# File 'lib/google/apis/walletobjects_v1/service.rb', line 45

def quota_user
  @quota_user
end

Instance Method Details

#addmessage_eventticketclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse

Adds a message to the event ticket class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



78
79
80
81
82
83
84
85
86
87
88
# File 'lib/google/apis/walletobjects_v1/service.rb', line 78

def addmessage_eventticketclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/eventTicketClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_eventticketobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse

Adds a message to the event ticket object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



291
292
293
294
295
296
297
298
299
300
301
# File 'lib/google/apis/walletobjects_v1/service.rb', line 291

def addmessage_eventticketobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_flightclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse

Adds a message to the flight class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



541
542
543
544
545
546
547
548
549
550
551
# File 'lib/google/apis/walletobjects_v1/service.rb', line 541

def addmessage_flightclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/flightClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_flightobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse

Adds a message to the flight object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



754
755
756
757
758
759
760
761
762
763
764
# File 'lib/google/apis/walletobjects_v1/service.rb', line 754

def addmessage_flightobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/flightObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_genericclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClassAddMessageResponse

Adds a message to the generic class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



967
968
969
970
971
972
973
974
975
976
977
# File 'lib/google/apis/walletobjects_v1/service.rb', line 967

def addmessage_genericclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/genericClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_genericobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObjectAddMessageResponse

Adds a message to the generic object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1180

def addmessage_genericobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/genericObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_giftcardclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse

Adds a message to the gift card class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1393

def addmessage_giftcardclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/giftCardClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_giftcardobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse

Adds a message to the gift card object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1606

def addmessage_giftcardobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/giftCardObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_loyaltyclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse

Adds a message to the loyalty class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2003

def addmessage_loyaltyclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/loyaltyClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_loyaltyobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse

Adds a message to the loyalty object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2216

def addmessage_loyaltyobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_offerclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse

Adds a message to the offer class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2556

def addmessage_offerclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/offerClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_offerobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse

Adds a message to the offer object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2769

def addmessage_offerobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/offerObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_transitclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse

Adds a message to the transit class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3075

def addmessage_transitclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/transitClass/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#addmessage_transitobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse

Adds a message to the transit object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • add_message_request_object (Google::Apis::WalletobjectsV1::AddMessageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3288

def addmessage_transitobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/transitObject/{resourceId}/addMessage', options)
  command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
  command.request_object = add_message_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#download_medium(resource_id, fields: nil, quota_user: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Media

Downloads rotating barcode values for the transit object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • download_dest (IO, String) (defaults to: nil)

    IO stream or filename to receive content download

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2468

def download_medium(resource_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
  if download_dest.nil?
    command = make_simple_command(:get, 'walletobjects/v1/transitObject/{resourceId}/downloadRotatingBarcodeValues', options)
  else
    command = make_download_command(:get, 'walletobjects/v1/transitObject/{resourceId}/downloadRotatingBarcodeValues', options)
    command.download_dest = download_dest
  end
  command.response_representation = Google::Apis::WalletobjectsV1::Media::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Media
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_eventticketclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClass

Returns the event ticket class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



113
114
115
116
117
118
119
120
121
# File 'lib/google/apis/walletobjects_v1/service.rb', line 113

def get_eventticketclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_eventticketobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObject

Returns the event ticket object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



326
327
328
329
330
331
332
333
334
# File 'lib/google/apis/walletobjects_v1/service.rb', line 326

def get_eventticketobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_flightclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClass

Returns the flight class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



576
577
578
579
580
581
582
583
584
# File 'lib/google/apis/walletobjects_v1/service.rb', line 576

def get_flightclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/flightClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_flightobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObject

Returns the flight object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



789
790
791
792
793
794
795
796
797
# File 'lib/google/apis/walletobjects_v1/service.rb', line 789

def get_flightobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/flightObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_genericclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClass

Returns the generic class with the given class ID.

Parameters:

  • resource_id (String)

    The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1002
1003
1004
1005
1006
1007
1008
1009
1010
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1002

def get_genericclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/genericClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_genericobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObject

Returns the generic object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1215
1216
1217
1218
1219
1220
1221
1222
1223
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1215

def get_genericobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/genericObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_giftcardclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClass

Returns the gift card class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1428
1429
1430
1431
1432
1433
1434
1435
1436
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1428

def get_giftcardclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/giftCardClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_giftcardobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObject

Returns the gift card object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1641
1642
1643
1644
1645
1646
1647
1648
1649
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1641

def get_giftcardobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/giftCardObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_issuer(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Issuer

Returns the issuer with the given issuer ID.

Parameters:

  • resource_id (Fixnum)

    The unique identifier for an issuer.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1815
1816
1817
1818
1819
1820
1821
1822
1823
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1815

def get_issuer(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/issuer/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Issuer
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_loyaltyclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClass

Returns the loyalty class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2038
2039
2040
2041
2042
2043
2044
2045
2046
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2038

def get_loyaltyclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_loyaltyobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObject

Returns the loyalty object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2251
2252
2253
2254
2255
2256
2257
2258
2259
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2251

def get_loyaltyobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_offerclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClass

Returns the offer class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2591
2592
2593
2594
2595
2596
2597
2598
2599
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2591

def get_offerclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/offerClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_offerobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObject

Returns the offer object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2804
2805
2806
2807
2808
2809
2810
2811
2812
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2804

def get_offerobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/offerObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_permission(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Permissions

Returns the permissions for the given issuer id.

Parameters:

  • resource_id (Fixnum)

    The unique identifier for an issuer. This ID must be unique across all issuers.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2978
2979
2980
2981
2982
2983
2984
2985
2986
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2978

def get_permission(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/permissions/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Permissions
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_transitclass(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClass

Returns the transit class with the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3110
3111
3112
3113
3114
3115
3116
3117
3118
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3110

def get_transitclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/transitClass/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_transitobject(resource_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObject

Returns the transit object with the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3323
3324
3325
3326
3327
3328
3329
3330
3331
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3323

def get_transitobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/transitObject/{resourceId}', options)
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_eventticketclass(event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClass

Inserts an event ticket class with the given ID and properties.

Parameters:

  • event_ticket_class_object (Google::Apis::WalletobjectsV1::EventTicketClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



142
143
144
145
146
147
148
149
150
151
# File 'lib/google/apis/walletobjects_v1/service.rb', line 142

def insert_eventticketclass(event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/eventTicketClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.request_object = event_ticket_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_eventticketobject(event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObject

Inserts an event ticket object with the given ID and properties.

Parameters:

  • event_ticket_object_object (Google::Apis::WalletobjectsV1::EventTicketObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



355
356
357
358
359
360
361
362
363
364
# File 'lib/google/apis/walletobjects_v1/service.rb', line 355

def insert_eventticketobject(event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.request_object = event_ticket_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_flightclass(flight_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClass

Inserts an flight class with the given ID and properties.

Parameters:

  • flight_class_object (Google::Apis::WalletobjectsV1::FlightClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



605
606
607
608
609
610
611
612
613
614
# File 'lib/google/apis/walletobjects_v1/service.rb', line 605

def insert_flightclass(flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/flightClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.request_object = flight_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_flightobject(flight_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObject

Inserts an flight object with the given ID and properties.

Parameters:

  • flight_object_object (Google::Apis::WalletobjectsV1::FlightObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



818
819
820
821
822
823
824
825
826
827
# File 'lib/google/apis/walletobjects_v1/service.rb', line 818

def insert_flightobject(flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/flightObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.request_object = flight_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_genericclass(generic_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClass

Inserts a generic class with the given ID and properties.

Parameters:

  • generic_class_object (Google::Apis::WalletobjectsV1::GenericClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1031

def insert_genericclass(generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/genericClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.request_object = generic_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_genericobject(generic_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObject

Inserts a generic object with the given ID and properties.

Parameters:

  • generic_object_object (Google::Apis::WalletobjectsV1::GenericObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1244

def insert_genericobject(generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/genericObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.request_object = generic_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_giftcardclass(gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClass

Inserts an gift card class with the given ID and properties.

Parameters:

  • gift_card_class_object (Google::Apis::WalletobjectsV1::GiftCardClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1457

def insert_giftcardclass(gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/giftCardClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.request_object = gift_card_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_giftcardobject(gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObject

Inserts an gift card object with the given ID and properties.

Parameters:

  • gift_card_object_object (Google::Apis::WalletobjectsV1::GiftCardObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1670

def insert_giftcardobject(gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/giftCardObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.request_object = gift_card_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_issuer(issuer_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Issuer

Inserts an issuer with the given ID and properties.

Parameters:

  • issuer_object (Google::Apis::WalletobjectsV1::Issuer) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1844

def insert_issuer(issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/issuer', options)
  command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.request_object = issuer_object
  command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Issuer
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_jwt(jwt_resource_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::JwtInsertResponse

Inserts the resources in the JWT.

Parameters:

  • jwt_resource_object (Google::Apis::WalletobjectsV1::JwtResource) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1968

def insert_jwt(jwt_resource_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/jwt', options)
  command.request_representation = Google::Apis::WalletobjectsV1::JwtResource::Representation
  command.request_object = jwt_resource_object
  command.response_representation = Google::Apis::WalletobjectsV1::JwtInsertResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::JwtInsertResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_loyaltyclass(loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClass

Inserts an loyalty class with the given ID and properties.

Parameters:

  • loyalty_class_object (Google::Apis::WalletobjectsV1::LoyaltyClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2067

def insert_loyaltyclass(loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/loyaltyClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.request_object = loyalty_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_loyaltyobject(loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObject

Inserts an loyalty object with the given ID and properties.

Parameters:

  • loyalty_object_object (Google::Apis::WalletobjectsV1::LoyaltyObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2280

def insert_loyaltyobject(loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.request_object = loyalty_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_offerclass(offer_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClass

Inserts an offer class with the given ID and properties.

Parameters:

  • offer_class_object (Google::Apis::WalletobjectsV1::OfferClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2620

def insert_offerclass(offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/offerClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.request_object = offer_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_offerobject(offer_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObject

Inserts an offer object with the given ID and properties.

Parameters:

  • offer_object_object (Google::Apis::WalletobjectsV1::OfferObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2833

def insert_offerobject(offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/offerObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.request_object = offer_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_smarttap(smart_tap_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::SmartTap

Inserts the smart tap.

Parameters:

  • smart_tap_object (Google::Apis::WalletobjectsV1::SmartTap) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3040

def insert_smarttap(smart_tap_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/smartTap', options)
  command.request_representation = Google::Apis::WalletobjectsV1::SmartTap::Representation
  command.request_object = smart_tap_object
  command.response_representation = Google::Apis::WalletobjectsV1::SmartTap::Representation
  command.response_class = Google::Apis::WalletobjectsV1::SmartTap
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_transitclass(transit_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClass

Inserts a transit class with the given ID and properties.

Parameters:

  • transit_class_object (Google::Apis::WalletobjectsV1::TransitClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3139

def insert_transitclass(transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/transitClass', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.request_object = transit_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClass
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#insert_transitobject(transit_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObject

Inserts an transit object with the given ID and properties.

Parameters:

  • transit_object_object (Google::Apis::WalletobjectsV1::TransitObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3352

def insert_transitobject(transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/transitObject', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.request_object = transit_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObject
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_eventticketclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClassListResponse

Returns a list of all event ticket classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



182
183
184
185
186
187
188
189
190
191
192
# File 'lib/google/apis/walletobjects_v1/service.rb', line 182

def list_eventticketclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/eventTicketClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_eventticketobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObjectListResponse

Returns a list of all event ticket objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



395
396
397
398
399
400
401
402
403
404
405
# File 'lib/google/apis/walletobjects_v1/service.rb', line 395

def list_eventticketobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/eventTicketObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_flightclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClassListResponse

Returns a list of all flight classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



645
646
647
648
649
650
651
652
653
654
655
# File 'lib/google/apis/walletobjects_v1/service.rb', line 645

def list_flightclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/flightClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_flightobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObjectListResponse

Returns a list of all flight objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



858
859
860
861
862
863
864
865
866
867
868
# File 'lib/google/apis/walletobjects_v1/service.rb', line 858

def list_flightobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/flightObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_genericclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClassListResponse

Returns a list of all generic classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1071

def list_genericclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/genericClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_genericobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObjectListResponse

Returns a list of all generic objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1284

def list_genericobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/genericObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_giftcardclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClassListResponse

Returns a list of all gift card classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1497

def list_giftcardclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/giftCardClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_giftcardobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObjectListResponse

Returns a list of all gift card objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1710

def list_giftcardobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/giftCardObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_issuers(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::IssuerListResponse

Returns a list of all issuers shared to the caller.

Parameters:

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1873
1874
1875
1876
1877
1878
1879
1880
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1873

def list_issuers(fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/issuer', options)
  command.response_representation = Google::Apis::WalletobjectsV1::IssuerListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::IssuerListResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_loyaltyclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClassListResponse

Returns a list of all loyalty classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2107

def list_loyaltyclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/loyaltyClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_loyaltyobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse

Returns a list of all loyalty objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2320

def list_loyaltyobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/loyaltyObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_offerclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClassListResponse

Returns a list of all offer classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2660

def list_offerclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/offerClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_offerobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObjectListResponse

Returns a list of all offer objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2873

def list_offerobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/offerObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_transitclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClassListResponse

Returns a list of all transit classes for a given issuer ID.

Parameters:

  • issuer_id (Fixnum) (defaults to: nil)

    The ID of the issuer authorized to list classes.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults classes are available in a list. For example, if you have a list of 200 classes and you call list with maxResults set to 20, list will return the first 20 classes and a token. Call list again with maxResults set to 20 and the token to get the next 20 classes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3179

def list_transitclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/transitClass', options)
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClassListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClassListResponse
  command.query['issuerId'] = issuer_id unless issuer_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_transitobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObjectListResponse

Returns a list of all transit objects for a given issuer ID.

Parameters:

  • class_id (String) (defaults to: nil)

    The ID of the class whose objects will be listed.

  • max_results (Fixnum) (defaults to: nil)

    Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.

  • token (String) (defaults to: nil)

    Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3392

def list_transitobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'walletobjects/v1/transitObject', options)
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectListResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObjectListResponse
  command.query['classId'] = class_id unless class_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['token'] = token unless token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#modifylinkedofferobjects_eventticketobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObject

Deprecated: Use Auto Linked Passes instead. Modifies linked offer objects for the event ticket object with the given ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • modify_linked_offer_objects_request_object (Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



432
433
434
435
436
437
438
439
440
441
442
# File 'lib/google/apis/walletobjects_v1/service.rb', line 432

def modifylinkedofferobjects_eventticketobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject/{resourceId}/modifyLinkedOfferObjects', options)
  command.request_representation = Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest::Representation
  command.request_object = modify_linked_offer_objects_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#modifylinkedofferobjects_loyaltyobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObject

Deprecated: Use Auto Linked Passes instead. Modifies linked offer objects for the loyalty object with the given ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • modify_linked_offer_objects_request_object (Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2357

def modifylinkedofferobjects_loyaltyobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects', options)
  command.request_representation = Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest::Representation
  command.request_object = modify_linked_offer_objects_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClass

Updates the event ticket class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • event_ticket_class_object (Google::Apis::WalletobjectsV1::EventTicketClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



219
220
221
222
223
224
225
226
227
228
229
# File 'lib/google/apis/walletobjects_v1/service.rb', line 219

def patch_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.request_object = event_ticket_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObject

Updates the event ticket object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • event_ticket_object_object (Google::Apis::WalletobjectsV1::EventTicketObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



469
470
471
472
473
474
475
476
477
478
479
# File 'lib/google/apis/walletobjects_v1/service.rb', line 469

def patch_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.request_object = event_ticket_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClass

Updates the flight class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • flight_class_object (Google::Apis::WalletobjectsV1::FlightClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



682
683
684
685
686
687
688
689
690
691
692
# File 'lib/google/apis/walletobjects_v1/service.rb', line 682

def patch_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/flightClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.request_object = flight_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObject

Updates the flight object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • flight_object_object (Google::Apis::WalletobjectsV1::FlightObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



895
896
897
898
899
900
901
902
903
904
905
# File 'lib/google/apis/walletobjects_v1/service.rb', line 895

def patch_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/flightObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.request_object = flight_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClass

Updates the generic class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • generic_class_object (Google::Apis::WalletobjectsV1::GenericClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1108

def patch_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/genericClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.request_object = generic_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObject

Updates the generic object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • generic_object_object (Google::Apis::WalletobjectsV1::GenericObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1321

def patch_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/genericObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.request_object = generic_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClass

Updates the gift card class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • gift_card_class_object (Google::Apis::WalletobjectsV1::GiftCardClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1534

def patch_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/giftCardClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.request_object = gift_card_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObject

Updates the gift card object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • gift_card_object_object (Google::Apis::WalletobjectsV1::GiftCardObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1747

def patch_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/giftCardObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.request_object = gift_card_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Issuer

Updates the issuer referenced by the given issuer ID. This method supports patch semantics.

Parameters:

  • resource_id (Fixnum)

    The unique identifier for an issuer.

  • issuer_object (Google::Apis::WalletobjectsV1::Issuer) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1904

def patch_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/issuer/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.request_object = issuer_object
  command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Issuer
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClass

Updates the loyalty class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • loyalty_class_object (Google::Apis::WalletobjectsV1::LoyaltyClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2144

def patch_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.request_object = loyalty_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObject

Updates the loyalty object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • loyalty_object_object (Google::Apis::WalletobjectsV1::LoyaltyObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2394

def patch_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.request_object = loyalty_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClass

Updates the offer class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • offer_class_object (Google::Apis::WalletobjectsV1::OfferClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2697

def patch_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/offerClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.request_object = offer_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObject

Updates the offer object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • offer_object_object (Google::Apis::WalletobjectsV1::OfferObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2910

def patch_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/offerObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.request_object = offer_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClass

Updates the transit class referenced by the given class ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    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 '-'.

  • transit_class_object (Google::Apis::WalletobjectsV1::TransitClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3216

def patch_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/transitClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.request_object = transit_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObject

Updates the transit object referenced by the given object ID. This method supports patch semantics.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • transit_object_object (Google::Apis::WalletobjectsV1::TransitObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3429

def patch_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'walletobjects/v1/transitObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.request_object = transit_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#set_private_content_pass_update_notice(set_pass_update_notice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse

Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.

Parameters:

  • set_pass_update_notice_request_object (Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3498

def set_private_content_pass_update_notice(set_pass_update_notice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'walletobjects/v1/privateContent/setPassUpdateNotice', options)
  command.request_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest::Representation
  command.request_object = set_pass_update_notice_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketClass

Updates the event ticket class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • event_ticket_class_object (Google::Apis::WalletobjectsV1::EventTicketClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



255
256
257
258
259
260
261
262
263
264
265
# File 'lib/google/apis/walletobjects_v1/service.rb', line 255

def update_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.request_object = event_ticket_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::EventTicketObject

Updates the event ticket object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • event_ticket_object_object (Google::Apis::WalletobjectsV1::EventTicketObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



505
506
507
508
509
510
511
512
513
514
515
# File 'lib/google/apis/walletobjects_v1/service.rb', line 505

def update_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.request_object = event_ticket_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightClass

Updates the flight class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • flight_class_object (Google::Apis::WalletobjectsV1::FlightClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



718
719
720
721
722
723
724
725
726
727
728
# File 'lib/google/apis/walletobjects_v1/service.rb', line 718

def update_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/flightClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.request_object = flight_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::FlightObject

Updates the flight object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • flight_object_object (Google::Apis::WalletobjectsV1::FlightObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



931
932
933
934
935
936
937
938
939
940
941
# File 'lib/google/apis/walletobjects_v1/service.rb', line 931

def update_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/flightObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.request_object = flight_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::FlightObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericClass

Updates the Generic class referenced by the given class ID.

Parameters:

  • resource_id (String)

    The unique identifier for a class. This ID must be unique across all classes from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • generic_class_object (Google::Apis::WalletobjectsV1::GenericClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1144

def update_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/genericClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.request_object = generic_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GenericObject

Updates the generic object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects from an issuer. This value needs to follow the format issuerID.identifier where issuerID is issued by Google and identifier is chosen by you. The unique identifier can only include alphanumeric characters, ., _, or -.

  • generic_object_object (Google::Apis::WalletobjectsV1::GenericObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1357

def update_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/genericObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.request_object = generic_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GenericObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardClass

Updates the gift card class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • gift_card_class_object (Google::Apis::WalletobjectsV1::GiftCardClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1570

def update_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/giftCardClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.request_object = gift_card_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::GiftCardObject

Updates the gift card object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • gift_card_object_object (Google::Apis::WalletobjectsV1::GiftCardObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1783

def update_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/giftCardObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.request_object = gift_card_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Issuer

Updates the issuer referenced by the given issuer ID.

Parameters:

  • resource_id (Fixnum)

    The unique identifier for an issuer.

  • issuer_object (Google::Apis::WalletobjectsV1::Issuer) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1937

def update_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/issuer/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.request_object = issuer_object
  command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Issuer
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyClass

Updates the loyalty class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • loyalty_class_object (Google::Apis::WalletobjectsV1::LoyaltyClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2180

def update_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.request_object = loyalty_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::LoyaltyObject

Updates the loyalty object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • loyalty_object_object (Google::Apis::WalletobjectsV1::LoyaltyObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2430

def update_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.request_object = loyalty_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferClass

Updates the offer class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • offer_class_object (Google::Apis::WalletobjectsV1::OfferClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2733

def update_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/offerClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.request_object = offer_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::OfferObject

Updates the offer object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • offer_object_object (Google::Apis::WalletobjectsV1::OfferObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2946

def update_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/offerObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.request_object = offer_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::OfferObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_permission(resource_id, permissions_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::Permissions

Updates the permissions for the given issuer.

Parameters:

  • resource_id (Fixnum)

    The unique identifier for an issuer. This ID must be unique across all issuers.

  • permissions_object (Google::Apis::WalletobjectsV1::Permissions) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3009

def update_permission(resource_id, permissions_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/permissions/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
  command.request_object = permissions_object
  command.response_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
  command.response_class = Google::Apis::WalletobjectsV1::Permissions
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitClass

Updates the transit class referenced by the given class ID.

Parameters:

  • resource_id (String)

    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 '-'.

  • transit_class_object (Google::Apis::WalletobjectsV1::TransitClass) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3252

def update_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/transitClass/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.request_object = transit_class_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitClass
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObject

Updates the transit object referenced by the given object ID.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • transit_object_object (Google::Apis::WalletobjectsV1::TransitObject) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3465

def update_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'walletobjects/v1/transitObject/{resourceId}', options)
  command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.request_object = transit_object_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObject
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#upload_medium(resource_id, transit_object_upload_rotating_barcode_values_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse

Uploads rotating barcode values for the transit object referenced by the given object ID. Note the max upload size is specified in google3/production/config/ cdd/apps-upload/customers/payments-consumer-passes/config.gcl and enforced by Scotty.

Parameters:

  • resource_id (String)

    The unique identifier for an object. This ID must be unique across all objects 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 '-'.

  • transit_object_upload_rotating_barcode_values_request_object (Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • upload_source (IO, String) (defaults to: nil)

    IO stream or filename containing content to upload

  • content_type (String) (defaults to: nil)

    Content type of the uploaded content.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2514

def upload_medium(resource_id, transit_object_upload_rotating_barcode_values_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
  if upload_source.nil?
    command = make_simple_command(:post, 'walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues', options)
  else
    command = make_upload_command(:post, 'walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues', options)
    command.upload_source = upload_source
    command.upload_content_type = content_type
  end
  command.request_representation = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesRequest::Representation
  command.request_object = transit_object_upload_rotating_barcode_values_request_object
  command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse::Representation
  command.response_class = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse
  command.params['resourceId'] = resource_id unless resource_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end