Sha256: 0ecb2138cd6614cde50cd9b1c7cab05cb3f5b41082eb61c58980a3c87f853c59

Contents?: true

Size: 1.34 KB

Versions: 22

Compression:

Stored size: 1.34 KB

Contents

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

      attr_accessor :locale
      attr_accessor :name
      attr_accessor :subtitle
      attr_accessor :privacy_policy_url
      attr_accessor :privacy_choices_url
      attr_accessor :privacy_policy_text

      attr_mapping({
        "locale" => "locale",
        "name" => "name",
        "subtitle" => "subtitle",
        "privacyPolicyUrl" => "privacy_policy_url",
        "privacyChoicesUrl" => "privacy_choices_url",
        "privacyPolicyText" => "privacy_policy_text"
      })

      def self.type
        return "appInfoLocalizations"
      end

      #
      # API
      #

      def update(client: nil, attributes: nil)
        client ||= Spaceship::ConnectAPI
        attributes = reverse_attr_mapping(attributes)
        client.patch_app_info_localization(app_info_localization_id: id, attributes: attributes)
      rescue
        raise Spaceship::AppStoreLocalizationError, @locale
      end

      def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
        client ||= Spaceship::ConnectAPI
        client.delete_app_info_localization(app_info_localization_id: id)
      rescue
        raise Spaceship::AppStoreLocalizationError, @locale
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
fastlane-2.225.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.224.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.223.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.223.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.222.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.221.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.221.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.220.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.219.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.218.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.217.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.216.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.215.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.215.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.214.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.213.0 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane-2.212.2 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
fastlane_pricing_fix-2.212.1 spaceship/lib/spaceship/connect_api/models/app_info_localization.rb