google-apis-mybusinessplaceactions_v1 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a50391fb1ec2a35f3dc1e8d31ac97636df01bf49d66201002ed1faf736d60fde
4
- data.tar.gz: 5ec1f422b35a9d7f6ccdccf5f14d6ef1c8baf58c27efae08a1c75f79b5a41261
3
+ metadata.gz: e2e9f7297c53bab68a001a7522267e17b6dc80b29a35c47cfb9f21e1162c9538
4
+ data.tar.gz: 777d7bae770a5bd052bd8e67c0d395542946b22d32f99c8824195134bbaa9845
5
5
  SHA512:
6
- metadata.gz: 8996c515f8286926b70451fce4a1c3bab24bf42b2ca3377ac466f9ed488c082ad74057f14b8ac2aeae27d8e9cf4c17caacd89bd17b2711ab52a9104e02dba887
7
- data.tar.gz: 6a359aebc6939a00b70ba4ebb4402c4a0b416410803d9a14401a3a145237b69ebf2f051557c2c8451c51ddb464d38902627f57699731812b5a3af57ec3c1164e
6
+ metadata.gz: e1be51b394143a3934c34aec1f82a8bac34320660b19150658785a96b37fad5f21baf002076ab487afbdbcef4ea1feecf235402c6016b72d23221256f0fedbe2
7
+ data.tar.gz: b6950be1d5e651f09a772889f54ee6ab2093e33a47619ea1e9df75a1eaf17c442d9672f962c59288fdf08815367e65b9991bf3791c910c27f779be5911dfdf43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-mybusinessplaceactions_v1
2
2
 
3
+ ### v0.11.0 (2022-08-16)
4
+
5
+ * Regenerated from discovery document revision 20220813
6
+ * Regenerated using generator version 0.9.0
7
+
3
8
  ### v0.10.0 (2022-07-02)
4
9
 
5
10
  * Regenerated using generator version 0.8.0
@@ -22,6 +22,81 @@ module Google
22
22
  module Apis
23
23
  module MybusinessplaceactionsV1
24
24
 
25
+ # Day level availability.
26
+ class AvailableDay
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents a whole or partial calendar date, such as a birthday. The time of
30
+ # day and time zone are either specified elsewhere or are insignificant. The
31
+ # date is relative to the Gregorian Calendar. This can represent one of the
32
+ # following: * A full date, with non-zero year, month, and day values. * A month
33
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
34
+ # with a zero month and a zero day. * A year and month, with a zero day (for
35
+ # example, a credit card expiration date). Related types: * google.type.
36
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
37
+ # Corresponds to the JSON property `fulfillmentDate`
38
+ # @return [Google::Apis::MybusinessplaceactionsV1::Date]
39
+ attr_accessor :fulfillment_date
40
+
41
+ # Unix timestamp. The last time till when, a user could place an order to be
42
+ # received by `fulfillment_date`. In other words, after last_ordering_time,
43
+ # fulfillment_date will no longer be shown as available.
44
+ # Corresponds to the JSON property `lastOrderingTime`
45
+ # @return [String]
46
+ attr_accessor :last_ordering_time
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @fulfillment_date = args[:fulfillment_date] if args.key?(:fulfillment_date)
55
+ @last_ordering_time = args[:last_ordering_time] if args.key?(:last_ordering_time)
56
+ end
57
+ end
58
+
59
+ # Represents a whole or partial calendar date, such as a birthday. The time of
60
+ # day and time zone are either specified elsewhere or are insignificant. The
61
+ # date is relative to the Gregorian Calendar. This can represent one of the
62
+ # following: * A full date, with non-zero year, month, and day values. * A month
63
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
64
+ # with a zero month and a zero day. * A year and month, with a zero day (for
65
+ # example, a credit card expiration date). Related types: * google.type.
66
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
67
+ class Date
68
+ include Google::Apis::Core::Hashable
69
+
70
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
71
+ # specify a year by itself or a year and month where the day isn't significant.
72
+ # Corresponds to the JSON property `day`
73
+ # @return [Fixnum]
74
+ attr_accessor :day
75
+
76
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
77
+ # and day.
78
+ # Corresponds to the JSON property `month`
79
+ # @return [Fixnum]
80
+ attr_accessor :month
81
+
82
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
83
+ # year.
84
+ # Corresponds to the JSON property `year`
85
+ # @return [Fixnum]
86
+ attr_accessor :year
87
+
88
+ def initialize(**args)
89
+ update!(**args)
90
+ end
91
+
92
+ # Update properties of this object
93
+ def update!(**args)
94
+ @day = args[:day] if args.key?(:day)
95
+ @month = args[:month] if args.key?(:month)
96
+ @year = args[:year] if args.key?(:year)
97
+ end
98
+ end
99
+
25
100
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
101
  # messages in your APIs. A typical example is to use it as the request or the
27
102
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -38,6 +113,94 @@ module Google
38
113
  end
39
114
  end
40
115
 
116
+ # Fee details for the fulfillment method associated with the action.
117
+ class FeeDetails
118
+ include Google::Apis::Core::Hashable
119
+
120
+ # The minimum fee required for the fulfillment method.
121
+ # Corresponds to the JSON property `baseFee`
122
+ # @return [Google::Apis::MybusinessplaceactionsV1::MinimumFee]
123
+ attr_accessor :base_fee
124
+
125
+ # The fixed fee required for the fulfillment method.
126
+ # Corresponds to the JSON property `fixedFee`
127
+ # @return [Google::Apis::MybusinessplaceactionsV1::FixedFee]
128
+ attr_accessor :fixed_fee
129
+
130
+ # No fee required for the fulfillment method associated with the action.
131
+ # Corresponds to the JSON property `noFee`
132
+ # @return [Google::Apis::MybusinessplaceactionsV1::NoFee]
133
+ attr_accessor :no_fee
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @base_fee = args[:base_fee] if args.key?(:base_fee)
142
+ @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee)
143
+ @no_fee = args[:no_fee] if args.key?(:no_fee)
144
+ end
145
+ end
146
+
147
+ # The fixed fee required for the fulfillment method.
148
+ class FixedFee
149
+ include Google::Apis::Core::Hashable
150
+
151
+ # Represents an amount of money with its currency type.
152
+ # Corresponds to the JSON property `amount`
153
+ # @return [Google::Apis::MybusinessplaceactionsV1::Money]
154
+ attr_accessor :amount
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ @amount = args[:amount] if args.key?(:amount)
163
+ end
164
+ end
165
+
166
+ # The fulfillment option for an order online action.
167
+ class FulfillmentOption
168
+ include Google::Apis::Core::Hashable
169
+
170
+ # A list of days on which there is availability for this fulfillment method (
171
+ # preferably at least 2).
172
+ # Corresponds to the JSON property `availableDay`
173
+ # @return [Array<Google::Apis::MybusinessplaceactionsV1::AvailableDay>]
174
+ attr_accessor :available_day
175
+
176
+ # Fee details for the fulfillment method associated with the action.
177
+ # Corresponds to the JSON property `feeDetails`
178
+ # @return [Google::Apis::MybusinessplaceactionsV1::FeeDetails]
179
+ attr_accessor :fee_details
180
+
181
+ # Fulfillment type
182
+ # Corresponds to the JSON property `fulfillmentType`
183
+ # @return [String]
184
+ attr_accessor :fulfillment_type
185
+
186
+ # Represents an amount of money with its currency type.
187
+ # Corresponds to the JSON property `minimumOrder`
188
+ # @return [Google::Apis::MybusinessplaceactionsV1::Money]
189
+ attr_accessor :minimum_order
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ @available_day = args[:available_day] if args.key?(:available_day)
198
+ @fee_details = args[:fee_details] if args.key?(:fee_details)
199
+ @fulfillment_type = args[:fulfillment_type] if args.key?(:fulfillment_type)
200
+ @minimum_order = args[:minimum_order] if args.key?(:minimum_order)
201
+ end
202
+ end
203
+
41
204
  # Response message for PlaceActions.ListPlaceActionLinks.
42
205
  class ListPlaceActionLinksResponse
43
206
  include Google::Apis::Core::Hashable
@@ -92,6 +255,93 @@ module Google
92
255
  end
93
256
  end
94
257
 
258
+ # The minimum fee required for the fulfillment method.
259
+ class MinimumFee
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # Represents an amount of money with its currency type.
263
+ # Corresponds to the JSON property `baseFeeAmount`
264
+ # @return [Google::Apis::MybusinessplaceactionsV1::Money]
265
+ attr_accessor :base_fee_amount
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @base_fee_amount = args[:base_fee_amount] if args.key?(:base_fee_amount)
274
+ end
275
+ end
276
+
277
+ # Represents an amount of money with its currency type.
278
+ class Money
279
+ include Google::Apis::Core::Hashable
280
+
281
+ # The three-letter currency code defined in ISO 4217.
282
+ # Corresponds to the JSON property `currencyCode`
283
+ # @return [String]
284
+ attr_accessor :currency_code
285
+
286
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
287
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
288
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
289
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
290
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
291
+ # Corresponds to the JSON property `nanos`
292
+ # @return [Fixnum]
293
+ attr_accessor :nanos
294
+
295
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
296
+ # 1 unit is one US dollar.
297
+ # Corresponds to the JSON property `units`
298
+ # @return [Fixnum]
299
+ attr_accessor :units
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
308
+ @nanos = args[:nanos] if args.key?(:nanos)
309
+ @units = args[:units] if args.key?(:units)
310
+ end
311
+ end
312
+
313
+ # No fee required for the fulfillment method associated with the action.
314
+ class NoFee
315
+ include Google::Apis::Core::Hashable
316
+
317
+ def initialize(**args)
318
+ update!(**args)
319
+ end
320
+
321
+ # Update properties of this object
322
+ def update!(**args)
323
+ end
324
+ end
325
+
326
+ # Client version of the metadata for an order online action.
327
+ class OrderOnlineMetadata
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # Available fulfillment options for an order online action.
331
+ # Corresponds to the JSON property `fulfillmentOption`
332
+ # @return [Array<Google::Apis::MybusinessplaceactionsV1::FulfillmentOption>]
333
+ attr_accessor :fulfillment_option
334
+
335
+ def initialize(**args)
336
+ update!(**args)
337
+ end
338
+
339
+ # Update properties of this object
340
+ def update!(**args)
341
+ @fulfillment_option = args[:fulfillment_option] if args.key?(:fulfillment_option)
342
+ end
343
+ end
344
+
95
345
  # Represents a place action link and its attributes.
96
346
  class PlaceActionLink
97
347
  include Google::Apis::Core::Hashable
@@ -127,6 +377,11 @@ module Google
127
377
  # @return [String]
128
378
  attr_accessor :name
129
379
 
380
+ # Client version of the metadata for an order online action.
381
+ # Corresponds to the JSON property `orderOnlineMetadata`
382
+ # @return [Google::Apis::MybusinessplaceactionsV1::OrderOnlineMetadata]
383
+ attr_accessor :order_online_metadata
384
+
130
385
  # Required. The type of place action that can be performed using this link.
131
386
  # Corresponds to the JSON property `placeActionType`
132
387
  # @return [String]
@@ -159,6 +414,7 @@ module Google
159
414
  @is_editable = args[:is_editable] if args.key?(:is_editable)
160
415
  @is_preferred = args[:is_preferred] if args.key?(:is_preferred)
161
416
  @name = args[:name] if args.key?(:name)
417
+ @order_online_metadata = args[:order_online_metadata] if args.key?(:order_online_metadata)
162
418
  @place_action_type = args[:place_action_type] if args.key?(:place_action_type)
163
419
  @provider_type = args[:provider_type] if args.key?(:provider_type)
164
420
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MybusinessplaceactionsV1
18
18
  # Version of the google-apis-mybusinessplaceactions_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220319"
25
+ REVISION = "20220813"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,42 @@ module Google
22
22
  module Apis
23
23
  module MybusinessplaceactionsV1
24
24
 
25
+ class AvailableDay
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Date
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class Empty
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
28
40
  include Google::Apis::Core::JsonObjectSupport
29
41
  end
30
42
 
43
+ class FeeDetails
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class FixedFee
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class FulfillmentOption
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
31
61
  class ListPlaceActionLinksResponse
32
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
63
 
@@ -40,6 +70,30 @@ module Google
40
70
  include Google::Apis::Core::JsonObjectSupport
41
71
  end
42
72
 
73
+ class MinimumFee
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Money
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class NoFee
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class OrderOnlineMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
43
97
  class PlaceActionLink
44
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
99
 
@@ -52,12 +106,63 @@ module Google
52
106
  include Google::Apis::Core::JsonObjectSupport
53
107
  end
54
108
 
109
+ class AvailableDay
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :fulfillment_date, as: 'fulfillmentDate', class: Google::Apis::MybusinessplaceactionsV1::Date, decorator: Google::Apis::MybusinessplaceactionsV1::Date::Representation
113
+
114
+ property :last_ordering_time, as: 'lastOrderingTime'
115
+ end
116
+ end
117
+
118
+ class Date
119
+ # @private
120
+ class Representation < Google::Apis::Core::JsonRepresentation
121
+ property :day, as: 'day'
122
+ property :month, as: 'month'
123
+ property :year, as: 'year'
124
+ end
125
+ end
126
+
55
127
  class Empty
56
128
  # @private
57
129
  class Representation < Google::Apis::Core::JsonRepresentation
58
130
  end
59
131
  end
60
132
 
133
+ class FeeDetails
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ property :base_fee, as: 'baseFee', class: Google::Apis::MybusinessplaceactionsV1::MinimumFee, decorator: Google::Apis::MybusinessplaceactionsV1::MinimumFee::Representation
137
+
138
+ property :fixed_fee, as: 'fixedFee', class: Google::Apis::MybusinessplaceactionsV1::FixedFee, decorator: Google::Apis::MybusinessplaceactionsV1::FixedFee::Representation
139
+
140
+ property :no_fee, as: 'noFee', class: Google::Apis::MybusinessplaceactionsV1::NoFee, decorator: Google::Apis::MybusinessplaceactionsV1::NoFee::Representation
141
+
142
+ end
143
+ end
144
+
145
+ class FixedFee
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ property :amount, as: 'amount', class: Google::Apis::MybusinessplaceactionsV1::Money, decorator: Google::Apis::MybusinessplaceactionsV1::Money::Representation
149
+
150
+ end
151
+ end
152
+
153
+ class FulfillmentOption
154
+ # @private
155
+ class Representation < Google::Apis::Core::JsonRepresentation
156
+ collection :available_day, as: 'availableDay', class: Google::Apis::MybusinessplaceactionsV1::AvailableDay, decorator: Google::Apis::MybusinessplaceactionsV1::AvailableDay::Representation
157
+
158
+ property :fee_details, as: 'feeDetails', class: Google::Apis::MybusinessplaceactionsV1::FeeDetails, decorator: Google::Apis::MybusinessplaceactionsV1::FeeDetails::Representation
159
+
160
+ property :fulfillment_type, as: 'fulfillmentType'
161
+ property :minimum_order, as: 'minimumOrder', class: Google::Apis::MybusinessplaceactionsV1::Money, decorator: Google::Apis::MybusinessplaceactionsV1::Money::Representation
162
+
163
+ end
164
+ end
165
+
61
166
  class ListPlaceActionLinksResponse
62
167
  # @private
63
168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -76,6 +181,37 @@ module Google
76
181
  end
77
182
  end
78
183
 
184
+ class MinimumFee
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :base_fee_amount, as: 'baseFeeAmount', class: Google::Apis::MybusinessplaceactionsV1::Money, decorator: Google::Apis::MybusinessplaceactionsV1::Money::Representation
188
+
189
+ end
190
+ end
191
+
192
+ class Money
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :currency_code, as: 'currencyCode'
196
+ property :nanos, as: 'nanos'
197
+ property :units, :numeric_string => true, as: 'units'
198
+ end
199
+ end
200
+
201
+ class NoFee
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ end
205
+ end
206
+
207
+ class OrderOnlineMetadata
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ collection :fulfillment_option, as: 'fulfillmentOption', class: Google::Apis::MybusinessplaceactionsV1::FulfillmentOption, decorator: Google::Apis::MybusinessplaceactionsV1::FulfillmentOption::Representation
211
+
212
+ end
213
+ end
214
+
79
215
  class PlaceActionLink
80
216
  # @private
81
217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -83,6 +219,8 @@ module Google
83
219
  property :is_editable, as: 'isEditable'
84
220
  property :is_preferred, as: 'isPreferred'
85
221
  property :name, as: 'name'
222
+ property :order_online_metadata, as: 'orderOnlineMetadata', class: Google::Apis::MybusinessplaceactionsV1::OrderOnlineMetadata, decorator: Google::Apis::MybusinessplaceactionsV1::OrderOnlineMetadata::Representation
223
+
86
224
  property :place_action_type, as: 'placeActionType'
87
225
  property :provider_type, as: 'providerType'
88
226
  property :update_time, as: 'updateTime'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-mybusinessplaceactions_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessplaceactions_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessplaceactions_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessplaceactions_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessplaceactions_v1
63
63
  post_install_message:
64
64
  rdoc_options: []