google-shopping-merchant-accounts-v1beta 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/shopping/merchant/accounts/v1beta/accessright_pb.rb +44 -0
  6. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/client.rb +452 -0
  7. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/credentials.rb +49 -0
  8. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/paths.rb +49 -0
  9. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/client.rb +419 -0
  10. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/service_stub.rb +130 -0
  11. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest.rb +54 -0
  12. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service.rb +57 -0
  13. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_pb.rb +57 -0
  14. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/client.rb +633 -0
  15. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/credentials.rb +49 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/paths.rb +66 -0
  17. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/client.rb +586 -0
  18. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/service_stub.rb +249 -0
  19. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest.rb +58 -0
  20. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service.rb +61 -0
  21. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_services_pb.rb +58 -0
  22. data/lib/google/shopping/merchant/accounts/v1beta/accountissue_pb.rb +57 -0
  23. data/lib/google/shopping/merchant/accounts/v1beta/accountissue_services_pb.rb +47 -0
  24. data/lib/google/shopping/merchant/accounts/v1beta/accounts_pb.rb +67 -0
  25. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/client.rb +942 -0
  26. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/credentials.rb +49 -0
  27. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/paths.rb +80 -0
  28. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +890 -0
  29. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/service_stub.rb +423 -0
  30. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest.rb +54 -0
  31. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service.rb +57 -0
  32. data/lib/google/shopping/merchant/accounts/v1beta/accounts_services_pb.rb +71 -0
  33. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb +525 -0
  34. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/credentials.rb +49 -0
  35. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/paths.rb +49 -0
  36. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/client.rb +485 -0
  37. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/service_stub.rb +190 -0
  38. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest.rb +55 -0
  39. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service.rb +58 -0
  40. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/client.rb +524 -0
  41. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/credentials.rb +49 -0
  42. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/paths.rb +49 -0
  43. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/client.rb +484 -0
  44. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/service_stub.rb +190 -0
  45. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest.rb +54 -0
  46. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service.rb +57 -0
  47. data/lib/google/shopping/merchant/accounts/v1beta/businessidentity_pb.rb +56 -0
  48. data/lib/google/shopping/merchant/accounts/v1beta/businessidentity_services_pb.rb +51 -0
  49. data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb +60 -0
  50. data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_services_pb.rb +50 -0
  51. data/lib/google/shopping/merchant/accounts/v1beta/customerservice_pb.rb +48 -0
  52. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb +539 -0
  53. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/credentials.rb +49 -0
  54. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/paths.rb +52 -0
  55. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/client.rb +499 -0
  56. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/service_stub.rb +190 -0
  57. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest.rb +57 -0
  58. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service.rb +60 -0
  59. data/lib/google/shopping/merchant/accounts/v1beta/emailpreferences_pb.rb +54 -0
  60. data/lib/google/shopping/merchant/accounts/v1beta/emailpreferences_services_pb.rb +65 -0
  61. data/lib/google/shopping/merchant/accounts/v1beta/homepage_pb.rb +55 -0
  62. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/client.rb +724 -0
  63. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/credentials.rb +49 -0
  64. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/paths.rb +49 -0
  65. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/client.rb +670 -0
  66. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/service_stub.rb +310 -0
  67. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest.rb +54 -0
  68. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service.rb +57 -0
  69. data/lib/google/shopping/merchant/accounts/v1beta/homepage_services_pb.rb +66 -0
  70. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +61 -0
  71. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +551 -0
  72. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/credentials.rb +49 -0
  73. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/paths.rb +66 -0
  74. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +511 -0
  75. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/service_stub.rb +189 -0
  76. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest.rb +58 -0
  77. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service.rb +61 -0
  78. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +53 -0
  79. data/lib/google/shopping/merchant/accounts/v1beta/phoneverificationstate_pb.rb +44 -0
  80. data/lib/google/shopping/merchant/accounts/v1beta/programs_pb.rb +56 -0
  81. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/client.rb +734 -0
  82. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/credentials.rb +49 -0
  83. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/paths.rb +66 -0
  84. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/client.rb +680 -0
  85. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/service_stub.rb +309 -0
  86. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest.rb +64 -0
  87. data/lib/google/shopping/merchant/accounts/v1beta/programs_service.rb +67 -0
  88. data/lib/google/shopping/merchant/accounts/v1beta/programs_services_pb.rb +65 -0
  89. data/lib/google/shopping/merchant/accounts/v1beta/regions_pb.rb +63 -0
  90. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/client.rb +835 -0
  91. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/credentials.rb +49 -0
  92. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/paths.rb +66 -0
  93. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/client.rb +774 -0
  94. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/service_stub.rb +368 -0
  95. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest.rb +58 -0
  96. data/lib/google/shopping/merchant/accounts/v1beta/regions_service.rb +61 -0
  97. data/lib/google/shopping/merchant/accounts/v1beta/regions_services_pb.rb +62 -0
  98. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +52 -0
  99. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/client.rb +526 -0
  100. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/credentials.rb +49 -0
  101. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/paths.rb +49 -0
  102. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest/client.rb +486 -0
  103. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest/service_stub.rb +190 -0
  104. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest.rb +55 -0
  105. data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service.rb +58 -0
  106. data/lib/google/shopping/merchant/accounts/v1beta/shippingsettings_pb.rb +83 -0
  107. data/lib/google/shopping/merchant/accounts/v1beta/shippingsettings_services_pb.rb +51 -0
  108. data/lib/google/shopping/merchant/accounts/v1beta/tax_rule_pb.rb +49 -0
  109. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb +522 -0
  110. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/credentials.rb +49 -0
  111. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/paths.rb +66 -0
  112. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/client.rb +482 -0
  113. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/service_stub.rb +189 -0
  114. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest.rb +54 -0
  115. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service.rb +57 -0
  116. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/client.rb +623 -0
  117. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/credentials.rb +49 -0
  118. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/paths.rb +63 -0
  119. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/client.rb +584 -0
  120. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/service_stub.rb +246 -0
  121. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest.rb +54 -0
  122. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service.rb +57 -0
  123. data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_pb.rb +54 -0
  124. data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_services_pb.rb +52 -0
  125. data/lib/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate_pb.rb +56 -0
  126. data/lib/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate_services_pb.rb +49 -0
  127. data/lib/google/shopping/merchant/accounts/v1beta/termsofservicekind_pb.rb +44 -0
  128. data/lib/google/shopping/merchant/accounts/v1beta/user_pb.rb +60 -0
  129. data/lib/google/shopping/merchant/accounts/v1beta/user_service/client.rb +838 -0
  130. data/lib/google/shopping/merchant/accounts/v1beta/user_service/credentials.rb +49 -0
  131. data/lib/google/shopping/merchant/accounts/v1beta/user_service/paths.rb +66 -0
  132. data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/client.rb +777 -0
  133. data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/service_stub.rb +368 -0
  134. data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest.rb +54 -0
  135. data/lib/google/shopping/merchant/accounts/v1beta/user_service.rb +57 -0
  136. data/lib/google/shopping/merchant/accounts/v1beta/user_services_pb.rb +58 -0
  137. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +7 -2
  138. data/lib/google/shopping/merchant/accounts/v1beta.rb +60 -0
  139. data/lib/google-shopping-merchant-accounts-v1beta.rb +21 -0
  140. data/proto_docs/README.md +4 -0
  141. data/proto_docs/google/api/client.rb +399 -0
  142. data/proto_docs/google/api/field_behavior.rb +85 -0
  143. data/proto_docs/google/api/launch_stage.rb +71 -0
  144. data/proto_docs/google/api/resource.rb +222 -0
  145. data/proto_docs/google/protobuf/duration.rb +98 -0
  146. data/proto_docs/google/protobuf/empty.rb +34 -0
  147. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  148. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  149. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  150. data/proto_docs/google/shopping/merchant/accounts/v1beta/accessright.rb +43 -0
  151. data/proto_docs/google/shopping/merchant/accounts/v1beta/account_tax.rb +101 -0
  152. data/proto_docs/google/shopping/merchant/accounts/v1beta/accountissue.rb +142 -0
  153. data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +219 -0
  154. data/proto_docs/google/shopping/merchant/accounts/v1beta/businessidentity.rb +129 -0
  155. data/proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb +72 -0
  156. data/proto_docs/google/shopping/merchant/accounts/v1beta/customerservice.rb +43 -0
  157. data/proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.rb +82 -0
  158. data/proto_docs/google/shopping/merchant/accounts/v1beta/homepage.rb +87 -0
  159. data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +238 -0
  160. data/proto_docs/google/shopping/merchant/accounts/v1beta/phoneverificationstate.rb +40 -0
  161. data/proto_docs/google/shopping/merchant/accounts/v1beta/programs.rb +160 -0
  162. data/proto_docs/google/shopping/merchant/accounts/v1beta/regions.rb +195 -0
  163. data/proto_docs/google/shopping/merchant/accounts/v1beta/shippingsettings.rb +743 -0
  164. data/proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb +88 -0
  165. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservice.rb +99 -0
  166. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.rb +132 -0
  167. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservicekind.rb +37 -0
  168. data/proto_docs/google/shopping/merchant/accounts/v1beta/user.rb +156 -0
  169. data/proto_docs/google/shopping/type/types.rb +210 -0
  170. data/proto_docs/google/type/date.rb +53 -0
  171. data/proto_docs/google/type/datetime.rb +99 -0
  172. data/proto_docs/google/type/interval.rb +45 -0
  173. data/proto_docs/google/type/phone_number.rb +112 -0
  174. data/proto_docs/google/type/postal_address.rb +135 -0
  175. metadata +234 -10
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # Primary type convension
26
+ #
27
+ # percent micro : 100% = 1 000 000 and 1% = 10 000
28
+ # cannot be negative.
29
+ #
30
+ # Information about tax nexus and related parameters applicable to orders
31
+ # delivered to the area covered by a single tax admin. Nexus is created when a
32
+ # merchant is doing business in an area administered by tax admin (only US
33
+ # states are supported for nexus configuration). If merchant has nexus in a US
34
+ # state, merchant needs to pay tax to all tax authorities associated with
35
+ # the shipping destination.
36
+ # Next Id : 8
37
+ # @!attribute [rw] location_id
38
+ # @return [::Integer]
39
+ # The admin_id or criteria_id of the region in which this rule is
40
+ # applicable.
41
+ # @!attribute [rw] post_code_range
42
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::TaxRule::TaxPostalCodeRange]
43
+ # The range of postal codes in which this rule is applicable.
44
+ # @!attribute [rw] use_google_rate
45
+ # @return [::Boolean]
46
+ # Rate that depends on delivery location: if merchant has a nexus in
47
+ # corresponding US state, rates from authorities with jurisdiction over
48
+ # delivery area are added up.
49
+ # @!attribute [rw] self_specified_rate_micros
50
+ # @return [::Integer]
51
+ # A fixed rate specified in micros, where 100% = 1_000_000.
52
+ # Suitable for origin-based states.
53
+ # @!attribute [rw] region_code
54
+ # @return [::String]
55
+ # Region code in which this rule is applicable
56
+ # @!attribute [rw] shipping_taxed
57
+ # @return [::Boolean]
58
+ # If set, shipping charge is taxed (at the same rate as product) when
59
+ # delivering to this admin's area.
60
+ # Can only be set on US states without category.
61
+ # @!attribute [rw] effective_time_period
62
+ # @return [::Google::Type::Interval]
63
+ # Required. Time period when this rule is effective. If the duration is
64
+ # missing from effective_time listed, then it is open ended to the future.
65
+ # The start of this time period is inclusive, and the end is exclusive.
66
+ class TaxRule
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+
70
+ # A range of postal codes that defines the area.
71
+ # @!attribute [rw] start
72
+ # @return [::String]
73
+ # Required. The start of the postal code range, which is also the smallest
74
+ # in the range.
75
+ # @!attribute [rw] end
76
+ # @return [::String]
77
+ # The end of the postal code range. Will be the same as start if not
78
+ # specified.
79
+ class TaxPostalCodeRange
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # A `TermsOfService`.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The resource name of the terms of service version.
29
+ # Format: `termsOfService/{version}`
30
+ # @!attribute [rw] region_code
31
+ # @return [::String]
32
+ # Region code as defined by [CLDR](https://cldr.unicode.org/). This is either
33
+ # a country where the ToS applies specifically to that country or `001` when
34
+ # the same `TermsOfService` can be signed in any country. However note that
35
+ # when signing a ToS that applies globally we still expect that a specific
36
+ # country is provided (this should be merchant business country or program
37
+ # country of participation).
38
+ # @!attribute [rw] kind
39
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceKind]
40
+ # The Kind this terms of service version applies to.
41
+ # @!attribute [rw] file_uri
42
+ # @return [::String]
43
+ # URI for terms of service file that needs to be displayed to signing users.
44
+ # @!attribute [rw] external
45
+ # @return [::Boolean]
46
+ # Whether this terms of service version is external. External terms of
47
+ # service versions can only be agreed through external processes and not
48
+ # directly by the merchant through UI or API.
49
+ class TermsOfService
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+
54
+ # Request message for the `GetTermsOfService` method.
55
+ # @!attribute [rw] name
56
+ # @return [::String]
57
+ # Required. The resource name of the terms of service version.
58
+ # Format: `termsOfService/{version}`
59
+ class GetTermsOfServiceRequest
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+
64
+ # Request message for the `RetrieveLatestTermsOfService` method.
65
+ # @!attribute [rw] region_code
66
+ # @return [::String]
67
+ # Region code as defined by [CLDR](https://cldr.unicode.org/). This is either
68
+ # a country when the ToS applies specifically to that country or 001 when it
69
+ # applies globally.
70
+ # @!attribute [rw] kind
71
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceKind]
72
+ # The Kind this terms of service version applies to.
73
+ class RetrieveLatestTermsOfServiceRequest
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # Request message for the `AcceptTermsOfService` method.
79
+ # @!attribute [rw] name
80
+ # @return [::String]
81
+ # Required. The resource name of the terms of service version.
82
+ # Format: `termsOfService/{version}`
83
+ # @!attribute [rw] account
84
+ # @return [::String]
85
+ # Required. The account for which to accept the ToS.
86
+ # @!attribute [rw] region_code
87
+ # @return [::String]
88
+ # Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This
89
+ # is either a country when the ToS applies specifically to that country or
90
+ # 001 when it applies globally.
91
+ class AcceptTermsOfServiceRequest
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,132 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # This resource represents the agreement state for a given account and terms of
26
+ # service kind.
27
+ # The state is as follows:
28
+ #
29
+ # * If the merchant has accepted a terms of service:
30
+ # [accepted](TermsOfServiceAggrementState.accepted) will be populated,
31
+ # otherwise it will be empty
32
+ # * If the merchant must sign a terms of service:
33
+ # [required](TermsOfServiceAggrementState.required) will be populated,
34
+ # otherwise it will be empty.
35
+ #
36
+ # Note that both [required](TermsOfServiceAggrementState.required) and
37
+ # [accepted](TermsOfServiceAggrementState.accepted) can be present. In this
38
+ # case the `accepted` terms of services will have an expiration date set in the
39
+ # [valid_until](Accepted.valid_until) field. The `required` terms of services
40
+ # need to be accepted before `valid_until` in order for the account to continue
41
+ # having a valid agreement. When accepting new terms of services we expect 3Ps
42
+ # to display the text associated with the given terms of service agreement (the
43
+ # url to the file containing the text is added in the Required message below as
44
+ # [tos_file_uri](Accepted.tos_file_uri). The actual acceptance of the terms of
45
+ # service is done by calling accept on the [TermsOfService](TermsOfService)
46
+ # resource.
47
+ # @!attribute [rw] name
48
+ # @return [::String]
49
+ # Identifier. The resource name of the terms of service version.
50
+ # Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
51
+ # @!attribute [rw] region_code
52
+ # @return [::String]
53
+ # Region code as defined by https://cldr.unicode.org/. This is the
54
+ # country the current state applies to.
55
+ # @!attribute [rw] terms_of_service_kind
56
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceKind]
57
+ # Terms of Service kind associated with the particular version.
58
+ # @!attribute [rw] accepted
59
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::Accepted]
60
+ # The accepted terms of service of this kind and for the associated
61
+ # region_code
62
+ # @!attribute [rw] required
63
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::Required]
64
+ # The required terms of service
65
+ class TermsOfServiceAgreementState
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Describes the accepted terms of service.
71
+ # @!attribute [rw] terms_of_service
72
+ # @return [::String]
73
+ # The accepted
74
+ # [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
75
+ # @!attribute [rw] accepted_by
76
+ # @return [::String]
77
+ # The account where the acceptance was recorded. This can be the account
78
+ # itself or, in the case of subaccounts, the MCA account.
79
+ # @!attribute [rw] valid_until
80
+ # @return [::Google::Type::Date]
81
+ # When set, it states that the accepted
82
+ # [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
83
+ # is only valid until the end of this date (in UTC). A new one must be
84
+ # accepted before then. The information of the required
85
+ # [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
86
+ # is found in the [Required](Required) message.
87
+ class Accepted
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+ end
91
+
92
+ # Describes the terms of service which are required to be accepted.
93
+ # @!attribute [rw] terms_of_service
94
+ # @return [::String]
95
+ # The
96
+ # [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
97
+ # that need to be accepted.
98
+ # @!attribute [rw] tos_file_uri
99
+ # @return [::String]
100
+ # Full URL to the terms of service file. This field is the same as
101
+ # [TermsOfService.file_uri](TermsOfService.file_uri), it is added
102
+ # here for convenience only.
103
+ class Required
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
+ end
107
+
108
+ # Request message for the `GetTermsOfServiceAgreementState` method.
109
+ # @!attribute [rw] name
110
+ # @return [::String]
111
+ # Required. The resource name of the terms of service version.
112
+ # Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
113
+ class GetTermsOfServiceAgreementStateRequest
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # Request message for the `RetrieveForApplicationTermsOfServiceAgreementState`
119
+ # method.
120
+ # @!attribute [rw] parent
121
+ # @return [::String]
122
+ # Required. The account for which to get a TermsOfServiceAgreementState
123
+ # Format: `accounts/{account}`
124
+ class RetrieveForApplicationTermsOfServiceAgreementStateRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # The TermsOfService Kind.
26
+ module TermsOfServiceKind
27
+ # Default value. This value is unused.
28
+ TERMS_OF_SERVICE_KIND_UNSPECIFIED = 0
29
+
30
+ # Merchant Center application.
31
+ MERCHANT_CENTER = 1
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # A [user](https://support.google.com/merchants/answer/12160472).
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The resource name of the user.
29
+ # Format: `accounts/{account}/user/{email}`
30
+ #
31
+ # Use `me` to refer to your own email address, for example
32
+ # `accounts/{account}/users/me`.
33
+ # @!attribute [r] state
34
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::User::State]
35
+ # Output only. The state of the user.
36
+ # @!attribute [rw] access_rights
37
+ # @return [::Array<::Google::Shopping::Merchant::Accounts::V1beta::AccessRight>]
38
+ # Optional. The [access
39
+ # rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes)
40
+ # the user has.
41
+ class User
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+
45
+ # The possible states of a user.
46
+ module State
47
+ # Default value. This value is unused.
48
+ STATE_UNSPECIFIED = 0
49
+
50
+ # The user is pending confirmation. In this state, the user first needs to
51
+ # accept the invitation before performing other actions.
52
+ PENDING = 1
53
+
54
+ # The user is verified.
55
+ VERIFIED = 2
56
+ end
57
+ end
58
+
59
+ # Request message for the `GetUser` method.
60
+ # @!attribute [rw] name
61
+ # @return [::String]
62
+ # Required. The name of the user to retrieve.
63
+ # Format: `accounts/{account}/users/{email}`
64
+ #
65
+ # It is also possible to retrieve the user corresponding to the caller by
66
+ # using `me` rather than an email address as in
67
+ # `accounts/{account}/users/me`.
68
+ class GetUserRequest
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+
73
+ # Request message for the `CreateUser` method.
74
+ # @!attribute [rw] parent
75
+ # @return [::String]
76
+ # Required. The resource name of the account for which a user will be
77
+ # created. Format: `accounts/{account}`
78
+ # @!attribute [rw] user_id
79
+ # @return [::String]
80
+ # Required. The email address of the user (for example,
81
+ # `john.doe@gmail.com`).
82
+ # @!attribute [rw] user
83
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::User]
84
+ # Required. The user to create.
85
+ class CreateUserRequest
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+ end
89
+
90
+ # Request message for the `DeleteUser` method.
91
+ # @!attribute [rw] name
92
+ # @return [::String]
93
+ # Required. The name of the user to delete.
94
+ # Format: `accounts/{account}/users/{email}`
95
+ #
96
+ # It is also possible to delete the user corresponding to the caller by using
97
+ # `me` rather than an email address as in `accounts/{account}/users/me`.
98
+ class DeleteUserRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # Request message for the `UpdateUser` method.
104
+ # @!attribute [rw] user
105
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::User]
106
+ # Required. The new version of the user.
107
+ #
108
+ # Use `me` to refer to your own email address, for example
109
+ # `accounts/{account}/users/me`.
110
+ # @!attribute [rw] update_mask
111
+ # @return [::Google::Protobuf::FieldMask]
112
+ # Required. List of fields being updated.
113
+ class UpdateUserRequest
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # Request message for the `ListUsers` method.
119
+ # @!attribute [rw] parent
120
+ # @return [::String]
121
+ # Required. The parent, which owns this collection of users.
122
+ # Format: `accounts/{account}`
123
+ # @!attribute [rw] page_size
124
+ # @return [::Integer]
125
+ # Optional. The maximum number of users to return. The service may return
126
+ # fewer than this value. If unspecified, at most 50 users will be returned.
127
+ # The maximum value is 100; values above 100 will be coerced to 100
128
+ # @!attribute [rw] page_token
129
+ # @return [::String]
130
+ # Optional. A page token, received from a previous `ListUsers` call.
131
+ # Provide this to retrieve the subsequent page.
132
+ #
133
+ # When paginating, all other parameters provided to `ListUsers` must match
134
+ # the call that provided the page token.
135
+ class ListUsersRequest
136
+ include ::Google::Protobuf::MessageExts
137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
138
+ end
139
+
140
+ # Response message for the `ListUsers` method.
141
+ # @!attribute [rw] users
142
+ # @return [::Array<::Google::Shopping::Merchant::Accounts::V1beta::User>]
143
+ # The users from the specified account.
144
+ # @!attribute [rw] next_page_token
145
+ # @return [::String]
146
+ # A token, which can be sent as `page_token` to retrieve the next page.
147
+ # If this field is omitted, there are no subsequent pages.
148
+ class ListUsersResponse
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
156
+ end