Skip to content

Commit

Permalink
#735: correct camel-casing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Feb 13, 2023
1 parent 621d460 commit b63446d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/dist/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3201,7 +3201,7 @@ Provides default functionality that can be overwritten by child metadata type cl
* [.document([metadata], [isDeploy])](#MetadataType.document) ⇒ <code>void</code>
* [.deleteByKey(customerKey)](#MetadataType.deleteByKey) ⇒ <code>boolean</code>
* [.postDeleteTasks(customerKey, [additionalExtensions])](#MetadataType.postDeleteTasks) ⇒ <code>Promise.&lt;void&gt;</code>
* [.deleteByKeySOAP(customerKey, [overridekeyField], [handleOutside])](#MetadataType.deleteByKeySOAP) ⇒ <code>boolean</code>
* [.deleteByKeySOAP(customerKey, [overrideKeyField], [handleOutside])](#MetadataType.deleteByKeySOAP) ⇒ <code>boolean</code>
* [.deleteByKeyREST(url, key, [handleOutside])](#MetadataType.deleteByKeyREST) ⇒ <code>boolean</code>
* [.readBUMetadataForType(readDir, [listBadKeys], [buMetadata])](#MetadataType.readBUMetadataForType) ⇒ <code>object</code>
* [.getFilesToCommit(keyArr)](#MetadataType.getFilesToCommit) ⇒ <code>Promise.&lt;Array.&lt;string&gt;&gt;</code>
Expand Down Expand Up @@ -3863,7 +3863,7 @@ clean up after deleting a metadata item

<a name="MetadataType.deleteByKeySOAP"></a>

### MetadataType.deleteByKeySOAP(customerKey, [overridekeyField], [handleOutside]) ⇒ <code>boolean</code>
### MetadataType.deleteByKeySOAP(customerKey, [overrideKeyField], [handleOutside]) ⇒ <code>boolean</code>
Delete a data extension from the specified business unit

**Kind**: static method of [<code>MetadataType</code>](#MetadataType)
Expand All @@ -3872,7 +3872,7 @@ Delete a data extension from the specified business unit
| Param | Type | Description |
| --- | --- | --- |
| customerKey | <code>string</code> | Identifier of metadata |
| [overridekeyField] | <code>string</code> | optionally change the name of the key field if the api uses a different name |
| [overrideKeyField] | <code>string</code> | optionally change the name of the key field if the api uses a different name |
| [handleOutside] | <code>boolean</code> | if the API reponse is irregular this allows you to handle it outside of this generic method |

<a name="MetadataType.deleteByKeyREST"></a>
Expand Down
6 changes: 3 additions & 3 deletions lib/metadataTypes/MetadataType.js
Original file line number Diff line number Diff line change
Expand Up @@ -1615,13 +1615,13 @@ class MetadataType {
* Delete a data extension from the specified business unit
*
* @param {string} customerKey Identifier of metadata
* @param {string} [overridekeyField] optionally change the name of the key field if the api uses a different name
* @param {string} [overrideKeyField] optionally change the name of the key field if the api uses a different name
* @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method
* @returns {boolean} deletion success flag
*/
static async deleteByKeySOAP(customerKey, overridekeyField, handleOutside) {
static async deleteByKeySOAP(customerKey, overrideKeyField, handleOutside) {
const metadata = {};
metadata[overridekeyField || this.definition.keyField] = customerKey;
metadata[overrideKeyField || this.definition.keyField] = customerKey;
try {
await this.client.soap.delete(
this.definition.type.charAt(0).toUpperCase() + this.definition.type.slice(1),
Expand Down

0 comments on commit b63446d

Please sign in to comment.