diff --git a/docs/Features/AddressBookService/CreateWalletAddress.md b/docs/Features/AddressBookService/CreateWalletAddress.md index 2bea465..07ba0cc 100644 --- a/docs/Features/AddressBookService/CreateWalletAddress.md +++ b/docs/Features/AddressBookService/CreateWalletAddress.md @@ -40,4 +40,47 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +// val vasp = Vasp.buildWithDid( +// name = "...", +// did = "..." +// ) +val vasp = Vasp.buildWithWebsite( + name = "...", + websiteUrl = "..." +) + +val proofOfOwnership = ProofOfOwnership( + message = ProofOfOwnershipMessage( + value = "..." + ), + signature = ProofOfOwnershipSignature( + value = "..." + ) +) + +val walletAddress = CreateAddressBookWalletAddress( + walletAddress = "...", + isForeign = false, + isUnhostedWallet = false, + vasp = vasp, + proofOfOwnership = proofOfOwnership, + label = "...", + threshold = FiatAmount(1000) +) + +val params = CreateAddressBookWalletAddressParams( + addressBookId = "...", + walletAddress = walletAddress +) + +conio.addressBookService + .createWalletAddress(params) + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file diff --git a/docs/Features/AddressBookService/GetProofOfOwnershipChallenge.md b/docs/Features/AddressBookService/GetProofOfOwnershipChallenge.md index 16d7993..6e6b3d1 100644 --- a/docs/Features/AddressBookService/GetProofOfOwnershipChallenge.md +++ b/docs/Features/AddressBookService/GetProofOfOwnershipChallenge.md @@ -28,4 +28,18 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +val params = ProofOfOwnershipChallengeParams( + walletAddress = "..." +) + +conio.addressBookService + .getProofOfOwnershipChallenge(params) + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file diff --git a/docs/Features/AddressBookService/GetVaspList.md b/docs/Features/AddressBookService/GetVaspList.md index a0718bf..263f001 100644 --- a/docs/Features/AddressBookService/GetVaspList.md +++ b/docs/Features/AddressBookService/GetVaspList.md @@ -20,4 +20,14 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +conio.addressBookService + .getVaspList() + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file diff --git a/docs/Features/AddressBookService/SearchAddressBookEntries.md b/docs/Features/AddressBookService/SearchAddressBookEntries.md index 79042ba..525239a 100644 --- a/docs/Features/AddressBookService/SearchAddressBookEntries.md +++ b/docs/Features/AddressBookService/SearchAddressBookEntries.md @@ -28,4 +28,18 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +val params = SearchAddressBookEntriesParams( + searchText= "..." +) + +conio.addressBookService + .searchAddressBookEntries(params) + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file diff --git a/docs/Features/AddressBookService/UpdateAddressBookEntry.md b/docs/Features/AddressBookService/UpdateAddressBookEntry.md index 9564e7b..9a3a746 100644 --- a/docs/Features/AddressBookService/UpdateAddressBookEntry.md +++ b/docs/Features/AddressBookService/UpdateAddressBookEntry.md @@ -6,10 +6,10 @@ ## Params -The `UpdateAddressBookEntryParams` containing the entry identifier and the fields to update. Only the provided optional fields will be updated. Fields that already contain a value cannot be modified or removed. Any parameter set to `nil` will be ignored and the corresponding value in the existing entry will remain unchanged. +The `UpdateAddressBookEntryParams` containing the entry identifier and the fields to update. Only the provided optional fields will be updated. Fields that already contain a value cannot be modified or removed, exept for `label` param. Any parameter set to `nil` will be ignored and the corresponding value in the existing entry will remain unchanged. - address book id: the unique identifier of the address book entry to update. -- label: the new label for the address book entry. +- label: the new label for the address book entry. It can be modified if it needs to be updated, even if it's already present in the address book. - residence address: the updated residence (geographical) address information. - company info: the updated company information associated with the entry. - person info: the updated personal information associated with the entry. @@ -38,4 +38,27 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +val personInfo = AddressBookPersonInfo( + dateOfBirth = "...", + taxId = "..." +) + +val params = UpdateAddressBookEntryParams( + addressBookId = "...", + label = "...", + residenceAddress = "...", + companyInfo = null, + personInfo = personInfo +) + +conio.addressBookService + .updateAddressBookEntry(params) + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file diff --git a/docs/Features/AddressBookService/ValidateProofOfOwnership.md b/docs/Features/AddressBookService/ValidateProofOfOwnership.md index 76bd0bb..3b5808b 100644 --- a/docs/Features/AddressBookService/ValidateProofOfOwnership.md +++ b/docs/Features/AddressBookService/ValidateProofOfOwnership.md @@ -35,4 +35,20 @@ addressBookService .sink { result in // ... } +``` + +### Android +```kotlin +val params = ValidateProofOfOwnershipParams( + walletAddress = "...", + message = ProofOfOwnershipMessage("..."), + signatureToValidate = "..." +) + +conio.addressBookService + .validateProofOfOwnership(params) + .asFlow() + .collect { result -> + //... + } ``` \ No newline at end of file