Skip to content

Commit

Permalink
Allow passTypeId relationship for certificate resource (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt authored May 27, 2021
1 parent e5e8f00 commit 5dfed9b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 0.6.1
-------------

**Fixes**

- Allow `passTypeId` relationship for [Certificate](https://developer.apple.com/documentation/appstoreconnectapi/certificate) model.

Version 0.6.0
-------------

Expand Down
2 changes: 1 addition & 1 deletion src/codemagic/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'codemagic-cli-tools'
__description__ = 'CLI tools used in Codemagic builds'
__version__ = '0.6.0'
__version__ = '0.6.1'
__url__ = 'https://github.com/codemagic-ci-cd/cli-tools'
__licence__ = 'GNU General Public License v3.0'
7 changes: 7 additions & 0 deletions src/codemagic/apple/resources/signing_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from .bundle_id import BundleIdPlatform
from .enums import CertificateType
from .resource import Relationship
from .resource import Resource


Expand Down Expand Up @@ -37,6 +38,12 @@ def __post_init__(self):
if isinstance(self.certificateType, str):
self.certificateType = CertificateType(self.certificateType)

@dataclass
class Relationships(Resource.Relationships):
_OMIT_IF_NONE_KEYS = ('passTypeId',)

passTypeId: Optional[Relationship]

def get_display_info(self) -> str:
return f'{self.attributes.certificateType} certificate {self.attributes.serialNumber}'

Expand Down

0 comments on commit 5dfed9b

Please sign in to comment.