Sha256: e91fc3e200f8c4cded9a30850dc365243f3798852213b3d473c0899f5b6dcd2d

Contents?: true

Size: 1.49 KB

Versions: 24

Compression:

Stored size: 1.49 KB

Contents

require_relative '../model'
require_relative './app_store_review_attachment'

module Spaceship
  class ConnectAPI
    class AppStoreReviewDetail
      include Spaceship::ConnectAPI::Model

      attr_accessor :contact_first_name
      attr_accessor :contact_last_name
      attr_accessor :contact_phone
      attr_accessor :contact_email
      attr_accessor :demo_account_name
      attr_accessor :demo_account_password
      attr_accessor :demo_account_required
      attr_accessor :notes

      attr_accessor :app_store_review_attachments

      attr_mapping({
        "contactFirstName" => "contact_first_name",
        "contactLastName" => "contact_last_name",
        "contactPhone" => "contact_phone",
        "contactEmail" => "contact_email",
        "demoAccountName" => "demo_account_name",
        "demoAccountPassword" => "demo_account_password",
        "demoAccountRequired" => "demo_account_required",
        "notes" => "notes",

        "appStoreReviewAttachments" => "app_store_review_attachments"
      })

      def self.type
        return "appStoreReviewDetails"
      end

      #
      # API
      #

      def update(attributes: nil)
        attributes = reverse_attr_mapping(attributes)
        return Spaceship::ConnectAPI.patch_app_store_review_detail(app_store_review_detail_id: id, attributes: attributes)
      end

      def upload_attachment(path: nil)
        return Spaceship::ConnectAPI::AppStoreReviewAttachment.create(app_store_review_detail_id: id, path: path)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fastlane-2.167.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.166.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.165.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.164.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.163.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.162.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.161.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.160.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.159.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.158.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.157.4 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.157.3 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.157.2 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.157.1 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.157.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.156.1 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.156.0 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.155.3 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.155.2 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
fastlane-2.155.1 spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb