Module: AppStoreConnectApi::Domain::AppStoreVersionLocalizations

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/app_store_version_localizations.rb

Instance Method Summary collapse

Instance Method Details

#app_store_version_localization(app_store_version_localization_id, options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/app_store_version_localizations.rb', line 7

def app_store_version_localization(app_store_version_localization_id, options = {})
  get "/v1/appStoreVersionLocalizations/#{app_store_version_localization_id}", options
end

#create_app_store_version_localization(attributes, relationships) ⇒ Object



12
13
14
15
16
# File 'lib/app_store_connect_api/domain/app_store_version_localizations.rb', line 12

def create_app_store_version_localization(attributes, relationships)
  post '/v1/appStoreVersionLocalizations', data: { attributes: attributes,
                                                   relationships: Utils::RelationshipMapper.expand(relationships),
                                                   type: 'appStoreVersionLocalizations' }
end

#delete_app_store_version_localization(app_store_version_localization_id) ⇒ Object



26
27
28
# File 'lib/app_store_connect_api/domain/app_store_version_localizations.rb', line 26

def delete_app_store_version_localization(app_store_version_localization_id)
  delete "/v1/appStoreVersionLocalizations/#{app_store_version_localization_id}"
end

#update_app_store_version_localization(app_store_version_localization_id, attributes) ⇒ Object



19
20
21
22
23
# File 'lib/app_store_connect_api/domain/app_store_version_localizations.rb', line 19

def update_app_store_version_localization(app_store_version_localization_id, attributes)
  patch "/v1/appStoreVersionLocalizations/#{app_store_version_localization_id}", data: { attributes: attributes,
                                                                                         id: app_store_version_localization_id,
                                                                                         type: 'appStoreVersionLocalizations' }
end