Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/Features/AddressBookService/CreateWalletAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
//...
}
```
14 changes: 14 additions & 0 deletions docs/Features/AddressBookService/GetProofOfOwnershipChallenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,18 @@ addressBookService
.sink { result in
// ...
}
```

### Android
```kotlin
val params = ProofOfOwnershipChallengeParams(
walletAddress = "..."
)

conio.addressBookService
.getProofOfOwnershipChallenge(params)
.asFlow()
.collect { result ->
//...
}
```
10 changes: 10 additions & 0 deletions docs/Features/AddressBookService/GetVaspList.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ addressBookService
.sink { result in
// ...
}
```

### Android
```kotlin
conio.addressBookService
.getVaspList()
.asFlow()
.collect { result ->
//...
}
```
14 changes: 14 additions & 0 deletions docs/Features/AddressBookService/SearchAddressBookEntries.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,18 @@ addressBookService
.sink { result in
// ...
}
```

### Android
```kotlin
val params = SearchAddressBookEntriesParams(
searchText= "..."
)

conio.addressBookService
.searchAddressBookEntries(params)
.asFlow()
.collect { result ->
//...
}
```
27 changes: 25 additions & 2 deletions docs/Features/AddressBookService/UpdateAddressBookEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 ->
//...
}
```
16 changes: 16 additions & 0 deletions docs/Features/AddressBookService/ValidateProofOfOwnership.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,20 @@ addressBookService
.sink { result in
// ...
}
```

### Android
```kotlin
val params = ValidateProofOfOwnershipParams(
walletAddress = "...",
message = ProofOfOwnershipMessage("..."),
signatureToValidate = "..."
)

conio.addressBookService
.validateProofOfOwnership(params)
.asFlow()
.collect { result ->
//...
}
```