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



2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2034

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



2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2247

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



2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2587

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



2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2800

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



3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3106

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



3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3319

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



2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2499

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



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

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



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

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



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

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



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

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



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

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



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

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



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

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



2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2098

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



2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2311

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



2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2651

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



2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2864

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



3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3071

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



3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3170

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



3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3383

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



2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2138

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



2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2351

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



2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2691

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



2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2904

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



3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3210

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



3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3423

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



2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2388

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



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2175

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



2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2425

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



2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2728

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



2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2941

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



3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3247

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



3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3460

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



3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3529

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



2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2211

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



2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2461

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



2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2764

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



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

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



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

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



3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
# File 'lib/google/apis/walletobjects_v1/service.rb', line 3283

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



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

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



2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
# File 'lib/google/apis/walletobjects_v1/service.rb', line 2545

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

#validate_jwt(jwt_validate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::WalletobjectsV1::JwtValidateResponse

Checks that the JWT or JSON string in the request represents a valid pass to be saved.

Parameters:

  • jwt_validate_request_object (Google::Apis::WalletobjectsV1::JwtValidateRequest) (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



1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
# File 'lib/google/apis/walletobjects_v1/service.rb', line 1999

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