google-apis-walletobjects_v1 0.32.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df126ed308007bfec728b2f3b134f259bc66b74fe1e9dd9457c4b01bbf4d1c21
4
- data.tar.gz: e7b531343949e976d4b91f385e7a514e36920f225227dd450e4a5c066395d5a5
3
+ metadata.gz: ce305368852e6f0d89678f44fcf4ec852b9a4d48650ca464731f19ab7ebabc07
4
+ data.tar.gz: 19c32a67cde934f96ac1a21c5857a973a3aa32d5f4514a1256c753cb72bc5e69
5
5
  SHA512:
6
- metadata.gz: 7a3fb88835a90593a6296a2036b437d18341fef03d4c0d293b7f64ace34761cec9b919090d205f93704a540e9cb2fd0003e2a834b5032f7e3fa1764524a33141
7
- data.tar.gz: f65cc00a4604603ace2fc196f92e4e19d45c234b19e5e51f207173772a1dac7018bd92d93c4b5b99ab6ed27df807eaabf783f0b203b4d519892a7d270e155aa6
6
+ metadata.gz: 303f1cbca5f20b86beb18e550895c53bca280bf6b7ba75e4d901e3b419dc5b22178286c55643814fa27c6dd4b85f41d4afa858d19b1a5f62ecf4e1a53fde641f
7
+ data.tar.gz: 8890e157f4e7de3c0e0f4ac9ba4fd8474cb8b12b7ecec5edbd92100d2c6c397f7bd4966b486d0bfb94b13d92f5ad3744a7d1b0b7614f2be003c0941595a3aa06
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-walletobjects_v1
2
2
 
3
+ ### v0.34.0 (2026-08-09)
4
+
5
+ * Regenerated from discovery document revision 20260806
6
+
7
+ ### v0.33.0 (2026-06-14)
8
+
9
+ * Regenerated from discovery document revision 20260511
10
+ * Regenerated using generator version 0.19.0
11
+
3
12
  ### v0.32.0 (2026-05-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20260506
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/pay/passes) may provid
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 3.1+.
86
+ This library is supported on Ruby 3.2+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -4704,6 +4704,29 @@ module Google
4704
4704
  end
4705
4705
  end
4706
4706
 
4707
+ # A JSON representation of a pass.
4708
+ class JsonResource
4709
+ include Google::Apis::Core::Hashable
4710
+
4711
+ # Required. A JSON string representing the unencoded JWT payload for a pass of
4712
+ # the format described at https://developers.google.com/wallet/reference/rest/v1/
4713
+ # Jwt. This can be set to either the entire JSON representation described at
4714
+ # this link or just the contents of the payload field holding the relevant
4715
+ # classes and objects.
4716
+ # Corresponds to the JSON property `json`
4717
+ # @return [String]
4718
+ attr_accessor :json
4719
+
4720
+ def initialize(**args)
4721
+ update!(**args)
4722
+ end
4723
+
4724
+ # Update properties of this object
4725
+ def update!(**args)
4726
+ @json = args[:json] if args.key?(:json)
4727
+ end
4728
+ end
4729
+
4707
4730
  #
4708
4731
  class JwtInsertResponse
4709
4732
  include Google::Apis::Core::Hashable
@@ -4753,6 +4776,44 @@ module Google
4753
4776
  end
4754
4777
  end
4755
4778
 
4779
+ # Request to validate the JWT or JSON representation of a pass.
4780
+ class JwtValidateRequest
4781
+ include Google::Apis::Core::Hashable
4782
+
4783
+ # A JSON representation of a pass.
4784
+ # Corresponds to the JSON property `jsonResource`
4785
+ # @return [Google::Apis::WalletobjectsV1::JsonResource]
4786
+ attr_accessor :json_resource
4787
+
4788
+ # A JWT representation of a pass.
4789
+ # Corresponds to the JSON property `jwtResource`
4790
+ # @return [Google::Apis::WalletobjectsV1::JwtResource]
4791
+ attr_accessor :jwt_resource
4792
+
4793
+ def initialize(**args)
4794
+ update!(**args)
4795
+ end
4796
+
4797
+ # Update properties of this object
4798
+ def update!(**args)
4799
+ @json_resource = args[:json_resource] if args.key?(:json_resource)
4800
+ @jwt_resource = args[:jwt_resource] if args.key?(:jwt_resource)
4801
+ end
4802
+ end
4803
+
4804
+ # Empty if the resource in the request is valid. Returns exception if invalid.
4805
+ class JwtValidateResponse
4806
+ include Google::Apis::Core::Hashable
4807
+
4808
+ def initialize(**args)
4809
+ update!(**args)
4810
+ end
4811
+
4812
+ # Update properties of this object
4813
+ def update!(**args)
4814
+ end
4815
+ end
4816
+
4756
4817
  # A pair of text strings to be displayed in the details view. Note we no longer
4757
4818
  # display LabelValue/LabelValueRow as a table, instead a list of items.
4758
4819
  class LabelValue
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WalletobjectsV1
18
18
  # Version of the google-apis-walletobjects_v1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.18.0"
22
+ GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260506"
25
+ REVISION = "20260806"
26
26
  end
27
27
  end
28
28
  end
@@ -502,6 +502,12 @@ module Google
502
502
  include Google::Apis::Core::JsonObjectSupport
503
503
  end
504
504
 
505
+ class JsonResource
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
505
511
  class JwtInsertResponse
506
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
513
 
@@ -514,6 +520,18 @@ module Google
514
520
  include Google::Apis::Core::JsonObjectSupport
515
521
  end
516
522
 
523
+ class JwtValidateRequest
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class JwtValidateResponse
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
517
535
  class LabelValue
518
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
519
537
 
@@ -2146,6 +2164,13 @@ module Google
2146
2164
  end
2147
2165
  end
2148
2166
 
2167
+ class JsonResource
2168
+ # @private
2169
+ class Representation < Google::Apis::Core::JsonRepresentation
2170
+ property :json, as: 'json'
2171
+ end
2172
+ end
2173
+
2149
2174
  class JwtInsertResponse
2150
2175
  # @private
2151
2176
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2162,6 +2187,22 @@ module Google
2162
2187
  end
2163
2188
  end
2164
2189
 
2190
+ class JwtValidateRequest
2191
+ # @private
2192
+ class Representation < Google::Apis::Core::JsonRepresentation
2193
+ property :json_resource, as: 'jsonResource', class: Google::Apis::WalletobjectsV1::JsonResource, decorator: Google::Apis::WalletobjectsV1::JsonResource::Representation
2194
+
2195
+ property :jwt_resource, as: 'jwtResource', class: Google::Apis::WalletobjectsV1::JwtResource, decorator: Google::Apis::WalletobjectsV1::JwtResource::Representation
2196
+
2197
+ end
2198
+ end
2199
+
2200
+ class JwtValidateResponse
2201
+ # @private
2202
+ class Representation < Google::Apis::Core::JsonRepresentation
2203
+ end
2204
+ end
2205
+
2165
2206
  class LabelValue
2166
2207
  # @private
2167
2208
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1976,6 +1976,37 @@ module Google
1976
1976
  execute_or_queue_command(command, &block)
1977
1977
  end
1978
1978
 
1979
+ # Checks that the JWT or JSON string in the request represents a valid pass to
1980
+ # be saved.
1981
+ # @param [Google::Apis::WalletobjectsV1::JwtValidateRequest] jwt_validate_request_object
1982
+ # @param [String] fields
1983
+ # Selector specifying which fields to include in a partial response.
1984
+ # @param [String] quota_user
1985
+ # Available to use for quota purposes for server-side applications. Can be any
1986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1987
+ # @param [Google::Apis::RequestOptions] options
1988
+ # Request-specific options
1989
+ #
1990
+ # @yield [result, err] Result & error if block supplied
1991
+ # @yieldparam result [Google::Apis::WalletobjectsV1::JwtValidateResponse] parsed result object
1992
+ # @yieldparam err [StandardError] error object if request failed
1993
+ #
1994
+ # @return [Google::Apis::WalletobjectsV1::JwtValidateResponse]
1995
+ #
1996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1999
+ def validate_jwt(jwt_validate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2000
+ command = make_simple_command(:post, 'walletobjects/v1/jwt/validate', options)
2001
+ command.request_representation = Google::Apis::WalletobjectsV1::JwtValidateRequest::Representation
2002
+ command.request_object = jwt_validate_request_object
2003
+ command.response_representation = Google::Apis::WalletobjectsV1::JwtValidateResponse::Representation
2004
+ command.response_class = Google::Apis::WalletobjectsV1::JwtValidateResponse
2005
+ command.query['fields'] = fields unless fields.nil?
2006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2007
+ execute_or_queue_command(command, &block)
2008
+ end
2009
+
1979
2010
  # Adds a message to the loyalty class referenced by the given class ID.
1980
2011
  # @param [String] resource_id
1981
2012
  # The unique identifier for a class. This ID must be unique across all classes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-walletobjects_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-walletobjects_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-walletobjects_v1/v0.32.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-walletobjects_v1/v0.34.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-walletobjects_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.1'
69
+ version: '3.2'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="