spaceship/lib/spaceship/connect_api/models/certificate.rb in fastlane-2.150.2 vs spaceship/lib/spaceship/connect_api/models/certificate.rb in fastlane-2.150.3
- old
+ new
@@ -8,19 +8,25 @@
attr_accessor :display_name
attr_accessor :name
attr_accessor :platform
attr_accessor :serial_number
attr_accessor :certificate_type
+ attr_accessor :requester_email
+ attr_accessor :requester_first_name
+ attr_accessor :requester_last_name
attr_mapping({
"certificateContent" => "certificate_content",
"displayName" => "display_name",
"expirationDate" => "expiration_date",
"name" => "name",
"platform" => "platform",
"serialNumber" => "serial_number",
- "certificateType" => "certificate_type"
+ "certificateType" => "certificate_type",
+ "requesterEmail" => "requester_email",
+ "requesterFirstName" => "requester_first_name",
+ "requesterLastName" => "requester_last_name"
})
module CertificateType
DEVELOPMENT = "DEVELOPMENT"
DISTRIBUTION = "DISTRIBUTION"
@@ -33,9 +39,13 @@
DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION"
end
def self.type
return "certificates"
+ end
+
+ def valid?
+ Time.parse(expiration_date) > Time.now
end
#
# API
#