Module: AppStoreConnectApi::Domain::BundleIdCapabilities

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/bundle_id_capabilities.rb

Instance Method Summary collapse

Instance Method Details

#create_bundle_id_capability(attributes, relationships) ⇒ Object Also known as: enable_bundle_id_capability



7
8
9
10
11
# File 'lib/app_store_connect_api/domain/bundle_id_capabilities.rb', line 7

def create_bundle_id_capability(attributes, relationships)
  post '/v1/bundleIdCapabilities', data: { attributes: attributes,
                                           relationships: Utils::RelationshipMapper.expand(relationships),
                                           type: 'bundleIdCapabilities' }
end

#delete_bundle_id_capability(bundle_id_capability_id) ⇒ Object Also known as: disable_bundle_id_capability



22
23
24
# File 'lib/app_store_connect_api/domain/bundle_id_capabilities.rb', line 22

def delete_bundle_id_capability(bundle_id_capability_id)
  delete "/v1/bundleIdCapabilities/#{bundle_id_capability_id}"
end

#update_bundle_id_capability(bundle_id_capability_id, attributes) ⇒ Object



15
16
17
18
19
# File 'lib/app_store_connect_api/domain/bundle_id_capabilities.rb', line 15

def update_bundle_id_capability(bundle_id_capability_id, attributes)
  patch "/v1/bundleIdCapabilities/#{bundle_id_capability_id}", data: { attributes: attributes,
                                                                       id: bundle_id_capability_id,
                                                                       type: 'bundleIdCapabilities' }
end