Class: Google::Apis::MerchantapiAccountsV1beta::MerchantService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MerchantapiAccountsV1beta::MerchantService
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/service.rb
Overview
Merchant API
Programmatically manage your Merchant Center Accounts.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://merchantapi.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#accept_terms_of_service(name, account: nil, region_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Accepts a
TermsOfService
. -
#claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Claims a store's homepage.
-
#create_account_region(parent, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Creates a region definition in your Merchant Center account.
-
#create_account_user(parent, user_object = nil, user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Creates a Merchant Center account user.
-
#create_and_configure_account(create_and_configure_account_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Creates a standalone Merchant Center account with additional configuration.
-
#delete_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes the specified account regardless of its type: standalone, MCA or sub- account.
-
#delete_account_region(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes a region definition from your Merchant Center account.
-
#delete_account_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes a Merchant Center account user.
-
#disable_program(name, disable_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Disable participation in the specified program for the account.
-
#enable_program(name, enable_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Enable participation in the specified program for the account.
-
#get_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Retrieves an account from your Merchant Center account.
-
#get_account_accounttax(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::AccountTax
Returns the tax rules that match the conditions of GetAccountTaxRequest.
-
#get_account_business_identity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
Retrieves the business identity of an account.
-
#get_account_business_info(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
Retrieves the business info of an account.
-
#get_account_homepage(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Retrieves a store's homepage.
-
#get_account_online_return_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::OnlineReturnPolicy
Gets an existing return policy.
-
#get_account_program(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Retrieves the specified program for the account.
-
#get_account_region(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Retrieves a region defined in your Merchant Center account.
-
#get_account_shipping_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
Retrieve shipping setting information.
-
#get_account_terms_of_service_agreement_state(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState
Returns the state of a terms of service agreement.
-
#get_account_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Retrieves a Merchant Center account user.
-
#get_account_user_email_preferences(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
Returns the email preferences for a Merchant Center account user.
-
#get_terms_of_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfService
Retrieves the
TermsOfService
associated with the provided version. -
#initialize ⇒ MerchantService
constructor
A new instance of MerchantService.
-
#insert_account_shipping_setting(parent, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
Replace the shipping setting of a merchant with the request shipping setting.
-
#list_account_accounttaxes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse
Lists the tax settings of the sub-accounts only in your Merchant Center account.
-
#list_account_issues(parent, language_code: nil, page_size: nil, page_token: nil, time_zone_id: nil, time_zone_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse
Lists all account issues of a Merchant Center account.
-
#list_account_online_return_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListOnlineReturnPoliciesResponse
Lists all existing return policies.
-
#list_account_programs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListProgramsResponse
Retrieves all programs for the account.
-
#list_account_regions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListRegionsResponse
Lists the regions in your Merchant Center account.
-
#list_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse
List all sub-accounts for a given multi client account.
-
#list_account_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListUsersResponse
Lists all users of a Merchant Center account.
-
#list_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters.
-
#patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Updates an account regardless of its type: standalone, MCA or sub-account.
-
#patch_account_accounttax(name, account_tax_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::AccountTax
Updates the tax settings of the account.
-
#patch_account_region(name, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Updates a region definition in your Merchant Center account.
-
#patch_account_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Updates a Merchant Center account user.
-
#retrieve_account_terms_of_service_agreement_state_for_application(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState
Retrieves the state of the agreement for the application terms of service.
-
#retrieve_terms_of_service_latest(kind: nil, region_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfService
Retrieves the latest version of the
TermsOfService
for a givenkind
andregion_code
. -
#unclaim_homepage(name, unclaim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Unclaims a store's homepage.
-
#update_account_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
Updates the business identity of an account.
-
#update_account_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
Updates the business info of an account.
-
#update_account_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Updates a store's homepage.
-
#update_account_user_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
Updates the email preferences for a Merchant Center account user.
Constructor Details
#initialize ⇒ MerchantService
Returns a new instance of MerchantService.
47 48 49 50 51 52 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-merchantapi_accounts_v1beta', client_version: Google::Apis::MerchantapiAccountsV1beta::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
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.
40 41 42 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 40 def key @key end |
#quota_user ⇒ String
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.
45 46 47 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#accept_terms_of_service(name, account: nil, region_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Accepts a TermsOfService
. Executing this method requires admin access.
1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1525 def accept_terms_of_service(name, account: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}:accept', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty command.params['name'] = name unless name.nil? command.query['account'] = account unless account.nil? command.query['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned: * PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account; * FAILED_PRECONDITION: - The account is not a Merchant Center account; - MC account doesn't have a homepage; - claiming failed (in this case the error message will contain more details).
647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 647 def claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+name}:claim', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest::Representation command.request_object = claim_homepage_request_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_region(parent, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Creates a region definition in your Merchant Center account. Executing this method requires admin access.
988 989 990 991 992 993 994 995 996 997 998 999 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 988 def create_account_region(parent, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+parent}/regions', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Region::Representation command.request_object = region_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Region::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Region command.params['parent'] = parent unless parent.nil? command.query['regionId'] = region_id unless region_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 |
#create_account_user(parent, user_object = nil, user_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Creates a Merchant Center account user. Executing this method requires admin access.
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1265 def create_account_user(parent, user_object = nil, user_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+parent}/users', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::User::Representation command.request_object = user_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::User::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::User command.params['parent'] = parent unless parent.nil? command.query['userId'] = user_id unless user_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 |
#create_and_configure_account(create_and_configure_account_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 74 def create_and_configure_account(create_and_configure_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/accounts:createAndConfigure', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::CreateAndConfigureAccountRequest::Representation command.request_object = create_and_configure_account_request_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes the specified account regardless of its type: standalone, MCA or sub- account. Deleting an MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin access.
107 108 109 110 111 112 113 114 115 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 107 def delete_account(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_region(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
1023 1024 1025 1026 1027 1028 1029 1030 1031 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1023 def delete_account_region(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Empty
Deletes a Merchant Center account user. Executing this method requires admin access.
1301 1302 1303 1304 1305 1306 1307 1308 1309 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1301 def delete_account_user(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#disable_program(name, disable_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Disable participation in the specified program for the account. Executing this method requires admin access.
845 846 847 848 849 850 851 852 853 854 855 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 845 def disable_program(name, disable_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+name}:disable', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::DisableProgramRequest::Representation command.request_object = disable_program_request_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Program::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Program command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#enable_program(name, enable_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Enable participation in the specified program for the account. Executing this method requires admin access.
880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 880 def enable_program(name, enable_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+name}:enable', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EnableProgramRequest::Representation command.request_object = enable_program_request_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Program::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Program command.params['name'] = name unless name.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_account(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
139 140 141 142 143 144 145 146 147 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 139 def get_account(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account command.params['name'] = name unless name.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_account_accounttax(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::AccountTax
Returns the tax rules that match the conditions of GetAccountTaxRequest
531 532 533 534 535 536 537 538 539 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 531 def get_account_accounttax(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax command.params['name'] = name unless name.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_account_business_identity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
Retrieves the business identity of an account.
170 171 172 173 174 175 176 177 178 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 170 def get_account_business_identity(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity command.params['name'] = name unless name.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_account_business_info(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
Retrieves the business info of an account.
201 202 203 204 205 206 207 208 209 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 201 def get_account_business_info(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo command.params['name'] = name unless name.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_account_homepage(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Retrieves a store's homepage.
232 233 234 235 236 237 238 239 240 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 232 def get_account_homepage(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage command.params['name'] = name unless name.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_account_online_return_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::OnlineReturnPolicy
Gets an existing return policy.
767 768 769 770 771 772 773 774 775 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 767 def get_account_online_return_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::OnlineReturnPolicy::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::OnlineReturnPolicy command.params['name'] = name unless name.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_account_program(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Program
Retrieves the specified program for the account.
913 914 915 916 917 918 919 920 921 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 913 def get_account_program(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Program::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Program command.params['name'] = name unless name.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_account_region(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Retrieves a region defined in your Merchant Center account.
1054 1055 1056 1057 1058 1059 1060 1061 1062 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1054 def get_account_region(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Region::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Region command.params['name'] = name unless name.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_account_shipping_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
Retrieve shipping setting information.
263 264 265 266 267 268 269 270 271 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 263 def get_account_shipping_settings(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings command.params['name'] = name unless name.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_account_terms_of_service_agreement_state(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState
Returns the state of a terms of service agreement.
1199 1200 1201 1202 1203 1204 1205 1206 1207 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1199 def get_account_terms_of_service_agreement_state(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState command.params['name'] = name unless name.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_account_user(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Retrieves a Merchant Center account user.
1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1333 def get_account_user(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::User::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::User command.params['name'] = name unless name.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_account_user_email_preferences(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
Returns the email preferences for a Merchant Center account user. Use the name= accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user.
1366 1367 1368 1369 1370 1371 1372 1373 1374 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1366 def get_account_user_email_preferences(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences command.params['name'] = name unless name.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_terms_of_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfService
Retrieves the TermsOfService
associated with the provided version.
1558 1559 1560 1561 1562 1563 1564 1565 1566 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1558 def get_terms_of_service(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+name}', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::TermsOfService::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::TermsOfService command.params['name'] = name unless name.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_account_shipping_setting(parent, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
Replace the shipping setting of a merchant with the request shipping setting. Executing this method requires admin access.
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1166 def insert_account_shipping_setting(parent, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+parent}/shippingSettings:insert', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation command.request_object = shipping_settings_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings command.params['parent'] = parent unless parent.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_account_accounttaxes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
568 569 570 571 572 573 574 575 576 577 578 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 568 def list_account_accounttaxes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/accounttax', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_account_issues(parent, language_code: nil, page_size: nil, page_token: nil, time_zone_id: nil, time_zone_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse
Lists all account issues of a Merchant Center account.
731 732 733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 731 def list_account_issues(parent, language_code: nil, page_size: nil, page_token: nil, time_zone_id: nil, time_zone_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/issues', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse command.params['parent'] = parent unless parent.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['timeZone.id'] = time_zone_id unless time_zone_id.nil? command.query['timeZone.version'] = time_zone_version unless time_zone_version.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_account_online_return_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListOnlineReturnPoliciesResponse
Lists all existing return policies.
810 811 812 813 814 815 816 817 818 819 820 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 810 def list_account_online_return_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/onlineReturnPolicies', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListOnlineReturnPoliciesResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListOnlineReturnPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_account_programs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListProgramsResponse
Retrieves all programs for the account.
951 952 953 954 955 956 957 958 959 960 961 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 951 def list_account_programs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/programs', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListProgramsResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListProgramsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_account_regions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListRegionsResponse
Lists the regions in your Merchant Center account.
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1092 def list_account_regions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/regions', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListRegionsResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListRegionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse
List all sub-accounts for a given multi client account. This is a convenience
wrapper for the more powerful ListAccounts
method. This method will produce
the same results as calling ListsAccounts
with the following filter:
relationship(providerId=
parentAND service(type="ACCOUNT_AGGREGATION"))
349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 349 def list_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+provider}:listSubaccounts', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse command.params['provider'] = provider unless provider.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_account_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListUsersResponse
Lists all users of a Merchant Center account.
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1405 def list_account_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/users', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListUsersResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListUsersResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub- accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on.
306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 306 def list_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/accounts', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_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 |
#patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Account
Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.
385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 385 def patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_accounttax(name, account_tax_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::AccountTax
Updates the tax settings of the account.
604 605 606 607 608 609 610 611 612 613 614 615 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 604 def patch_account_accounttax(name, account_tax_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_region(name, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Region
Updates a region definition in your Merchant Center account. Executing this method requires admin access.
1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1130 def patch_account_region(name, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Region::Representation command.request_object = region_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Region::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Region command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::User
Updates a Merchant Center account user. Executing this method requires admin access.
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1443 def patch_account_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::User::Representation command.request_object = user_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::User::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::User command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#retrieve_account_terms_of_service_agreement_state_for_application(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState
Retrieves the state of the agreement for the application terms of service.
1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1230 def retrieve_account_terms_of_service_agreement_state_for_application(parent, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/{+parent}/termsOfServiceAgreementStates:retrieveForApplication', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#retrieve_terms_of_service_latest(kind: nil, region_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::TermsOfService
Retrieves the latest version of the TermsOfService
for a given kind
and
region_code
.
1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1593 def retrieve_terms_of_service_latest(kind: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/v1beta/termsOfService:retrieveLatest', ) command.response_representation = Google::Apis::MerchantapiAccountsV1beta::TermsOfService::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::TermsOfService command.query['kind'] = kind unless kind.nil? command.query['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#unclaim_homepage(name, unclaim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Unclaims a store's homepage. Executing this method requires admin access.
681 682 683 684 685 686 687 688 689 690 691 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 681 def unclaim_homepage(name, unclaim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/v1beta/{+name}:unclaim', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::UnclaimHomepageRequest::Representation command.request_object = unclaim_homepage_request_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage command.params['name'] = name unless name.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_account_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
Updates the business identity of an account. Executing this method requires admin access.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 423 def update_account_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation command.request_object = business_identity_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
Updates the business info of an account. Executing this method requires admin access.
461 462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 461 def update_account_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation command.request_object = business_info_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Updates a store's homepage. Executing this method requires admin access.
498 499 500 501 502 503 504 505 506 507 508 509 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 498 def update_account_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation command.request_object = homepage_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.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_account_user_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.
1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1485 def update_account_user_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/v1beta/{+name}', ) command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation command.request_object = email_preferences_object command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |