Module: AppStoreConnectApi::Domain::ReviewSubmissions

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

Instance Method Summary collapse

Instance Method Details

#create_review_submission(attributes, relationships) ⇒ Object



17
18
19
20
21
# File 'lib/app_store_connect_api/domain/review_submissions.rb', line 17

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

#review_submission(review_submission_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/review_submissions.rb', line 12

def review_submission(review_submission_id, options = {})
  get "/v1/reviewSubmissions/#{review_submission_id}", options
end

#review_submission_items(review_submission_id, options = {}) ⇒ Object



31
32
33
# File 'lib/app_store_connect_api/domain/review_submissions.rb', line 31

def review_submission_items(review_submission_id, options = {})
  get "/v1/reviewSubmissions/#{review_submission_id}/items", options
end

#review_submissions(options = {}) ⇒ Object



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

def review_submissions(options = {})
  get '/v1/reviewSubmissions', options
end

#update_review_submission(review_submission_id, attributes) ⇒ Object



24
25
26
27
28
# File 'lib/app_store_connect_api/domain/review_submissions.rb', line 24

def update_review_submission(review_submission_id, attributes)
  patch "/v1/reviewSubmissions/#{review_submission_id}", data: { attributes: attributes,
                                                                 id: review_submission_id,
                                                                 type: 'reviewSubmissions' }
end