Module: AppStoreConnectApi::Domain::ReviewSubmissionItems

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

Instance Method Summary collapse

Instance Method Details

#create_review_submission_item(relationships) ⇒ Object



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

def create_review_submission_item(relationships)
  post '/v1/reviewSubmissionItems', data: { relationships: Utils::RelationshipMapper.expand(relationships),
                                            type: 'reviewSubmissionItems' }
end

#delete_review_submission_item(review_submission_item_id) ⇒ Object



20
21
22
# File 'lib/app_store_connect_api/domain/review_submission_items.rb', line 20

def delete_review_submission_item(review_submission_item_id)
  delete "/v1/reviewSubmissionItems/#{review_submission_item_id}"
end

#update_review_submission_item(review_submission_item_id, attributes) ⇒ Object



13
14
15
16
17
# File 'lib/app_store_connect_api/domain/review_submission_items.rb', line 13

def update_review_submission_item(review_submission_item_id, attributes)
  patch "/v1/reviewSubmissionItems/#{review_submission_item_id}", data: { attributes: attributes,
                                                                          id: review_submission_item_id,
                                                                          type: 'reviewSubmissionItems' }
end