class Spaceship::Tunes::AppSubmission
This class handles the submission of all review information and documents
Represents a submission for review of an iTunes Connect Application
def complete!
def complete! @stage = "complete" client.send_app_submission(application.apple_id, raw_data, @stage) @submitted_for_review = true end
def create(application, version)
-
application
(Spaceship::Tunes::Application
) -- The app this submission is for
def create(application, version) stage = "start" attrs = client.send_app_submission(application.apple_id, version.raw_data, stage) attrs.merge!(application: application) attrs.merge!(version: version) attrs.merge!(stage: stage) return self.factory(attrs) end
def factory(attrs)
Create a new object based on a hash.
def factory(attrs) # fill content rights section if iTC returns nil if attrs["contentRights"].nil? attrs.merge!("contentRights" => { "containsThirdPartyContent" => { "value" => nil }, "hasRights" => { "value" => nil } }) end obj = self.new(attrs) return obj end
def setup
def setup @submitted_for_review = false end
def url
-
(String)
- An URL to this specific resource. You can enter this URL into your browser
def url "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/#{self.application.apple_id}/version/submit/#{self.stage}" end