spaceship/lib/spaceship/connect_api/models/bundle_id.rb in fastlane-2.173.0 vs spaceship/lib/spaceship/connect_api/models/bundle_id.rb in fastlane-2.174.0

- old
+ new

@@ -54,8 +54,32 @@ def self.get(client: nil, bundle_id_id: nil, includes: nil) client ||= Spaceship::ConnectAPI return client.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first end + + def self.create(client: nil, name: nil, platform: nil, identifier: nil, seed_id: nil) + client ||= Spaceship::ConnectAPI + resp = client.post_bundle_id(name: name, platform: platform, identifier: identifier, seed_id: seed_id) + return resp.to_models.first + end + + # + # BundleIdsCapabilities + # + + def get_capabilities(client: nil, includes: nil) + client ||= Spaceship::ConnectAPI + resp = client.get_bundle_id_capabilities(bundle_id_id: id, includes: includes) + return resp.to_models + end + + def create_capability(capability_type, settings: [], client: nil) + raise "capability_type is required " if capability_type.nil? + + client ||= Spaceship::ConnectAPI + resp = client.post_bundle_id_capability(bundle_id_id: id, capability_type: capability_type, settings: settings) + return resp.to_models.first + end end end end