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_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_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_emailpreference_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_account_homepage_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_setting_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_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_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_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_emailpreference_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.
-
#update_account_homepage_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.
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.
1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1526 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).
623 624 625 626 627 628 629 630 631 632 633 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 623 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.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1032 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.
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1341 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.
1067 1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1067 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.
1377 1378 1379 1380 1381 1382 1383 1384 1385 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1377 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.
889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 889 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.
924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 924 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
294 295 296 297 298 299 300 301 302 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 294 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_business_identity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
Retrieves the business identity of an account.
401 402 403 404 405 406 407 408 409 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 401 def get_account_business_identity_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_business_info(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
Retrieves the business info of an account.
470 471 472 473 474 475 476 477 478 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 470 def get_account_business_info_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_emailpreference_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.
541 542 543 544 545 546 547 548 549 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 541 def get_account_emailpreference_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_account_homepage_homepage(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::Homepage
Retrieves a store's homepage.
656 657 658 659 660 661 662 663 664 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 656 def get_account_homepage_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.
811 812 813 814 815 816 817 818 819 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 811 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.
957 958 959 960 961 962 963 964 965 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 957 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.
1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1098 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_setting_shipping_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
Retrieve shipping setting information.
1208 1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1208 def get_account_shipping_setting_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.
1275 1276 1277 1278 1279 1280 1281 1282 1283 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1275 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.
1409 1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1409 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_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.
1559 1560 1561 1562 1563 1564 1565 1566 1567 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1559 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.
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1241 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.
331 332 333 334 335 336 337 338 339 340 341 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 331 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.
775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 775 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.
854 855 856 857 858 859 860 861 862 863 864 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 854 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.
995 996 997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 995 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.
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1136 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"))
225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 225 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.
1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1448 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.
182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 182 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.
261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 261 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.
367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 367 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.
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1174 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.
1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1486 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.
1306 1307 1308 1309 1310 1311 1312 1313 1314 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1306 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
.
1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 1594 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.
688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 688 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_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.
436 437 438 439 440 441 442 443 444 445 446 447 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 436 def update_account_business_identity_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_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.
505 506 507 508 509 510 511 512 513 514 515 516 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 505 def update_account_business_info_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_emailpreference_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.
580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 580 def update_account_emailpreference_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 |
#update_account_homepage_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.
724 725 726 727 728 729 730 731 732 733 734 735 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/service.rb', line 724 def update_account_homepage_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 |