diff --git a/docs/api.md b/docs/api.md index 424134c..fa7f516 100644 --- a/docs/api.md +++ b/docs/api.md @@ -141,7 +141,7 @@ pickContact(options: PickContactOptions) => Promise | **`family`** | string \| null | | **`prefix`** | string \| null | | **`suffix`** | string \| null | -| **`nickname`** | string \| null | +| **`nick`** | string \| null | #### OrganizationPayload @@ -278,7 +278,7 @@ pickContact(options: PickContactOptions) => Promise | **`family`** | string \| null | | **`prefix`** | string \| null | | **`suffix`** | string \| null | -| **`nickname`** | string \| null | +| **`nick`** | string \| null | #### OrganizationInput diff --git a/ios/Plugin/ContactPayload.swift b/ios/Plugin/ContactPayload.swift index 2cf0e8c..36b154f 100644 --- a/ios/Plugin/ContactPayload.swift +++ b/ios/Plugin/ContactPayload.swift @@ -70,7 +70,7 @@ public class ContactPayload { self.name["family"] = contact.familyName self.name["prefix"] = contact.namePrefix self.name["suffix"] = contact.nameSuffix - self.name["nickname"] = contact.nickname + self.name["nick"] = contact.nickname } // Organization diff --git a/ios/Plugin/Contacts.swift b/ios/Plugin/Contacts.swift index e9a85b0..5a0b478 100644 --- a/ios/Plugin/Contacts.swift +++ b/ios/Plugin/Contacts.swift @@ -120,8 +120,8 @@ public class Contacts: NSObject { if let nameSuffix = contactInput.nameSuffix { newContact.nameSuffix = nameSuffix } - if let nameNickname = contactInput.nameNickname { - newContact.nickname = nameNickname + if let nameNick = contactInput.nameNick { + newContact.nickname = nameNick } // Organization diff --git a/ios/Plugin/CreateContactInput.swift b/ios/Plugin/CreateContactInput.swift index 56f4bfd..e9615b2 100644 --- a/ios/Plugin/CreateContactInput.swift +++ b/ios/Plugin/CreateContactInput.swift @@ -9,7 +9,7 @@ public class CreateContactInput { public var nameFamily: String? public var namePrefix: String? public var nameSuffix: String? - public var nameNickname: String? + public var nameNick: String? // Organization public var organizationName: String? @@ -45,7 +45,7 @@ public class CreateContactInput { self.nameFamily = nameObject["family"] as? String self.namePrefix = nameObject["prefix"] as? String self.nameSuffix = nameObject["suffix"] as? String - self.nameNickname = nameObject["nickname"] as? String + self.nameNick = nameObject["nick"] as? String } // Organization