Sha256: 48a7b1481506b3fde029eaba42b52ac1cd2692424318149635481f1df9a1da4d

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class AppDataUsagePurpose
      include Spaceship::ConnectAPI::Model

      attr_accessor :deleted

      attr_mapping({
        "deleted" => "deleted"
      })

      # Found at https://appstoreconnect.apple.com/iris/v1/appDataUsagePurposes
      module ID
        THIRD_PARTY_ADVERTISING = "THIRD_PARTY_ADVERTISING"
        DEVELOPERS_ADVERTISING = "DEVELOPERS_ADVERTISING"
        ANALYTICS = "ANALYTICS"
        PRODUCT_PERSONALIZATION = "PRODUCT_PERSONALIZATION"
        APP_FUNCTIONALITY = "APP_FUNCTIONALITY"
        OTHER_PURPOSES = "OTHER_PURPOSES"
      end

      def self.type
        return "appDataUsagePurposes"
      end

      #
      # API
      #

      def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
        resps = Spaceship::ConnectAPI.get_app_data_usage_purposes(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
        return resps.flat_map(&:to_models)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb