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
32 changes: 16 additions & 16 deletions Skyflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"cardNumber": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"first_name": "131e70dc-6f76-4319-bdd3-96281e051051"
"first_name": "<TOKEN_3>"
}
}
]
Expand Down Expand Up @@ -1808,7 +1808,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"cardNumber": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"first_name": "131e70dc-6f76-4319-bdd3-96281e051051",
"first_name": "<TOKEN_3>",
"cvv": "098834fe-de99-4fc8-abdf-88c18a28a2cf"
}
}
Expand All @@ -1824,7 +1824,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"cardNumber": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"first_name": "131e70dc-6f76-4319-bdd3-96281e051051",
"first_name": "<TOKEN_3>",
"cvv": "098834fe-de99-4fc8-abdf-88c18a28a2cf"
}
}
Expand Down Expand Up @@ -1872,10 +1872,10 @@ The following example code makes a detokenize call to reveal the masked value of
let records = [
"records": [
[
"token": "45012507-f72b-4f5c-9bf9-86b133bae719",
"token": "<TOKEN_1>",
],
[
"token": "1r434532-6f76-4319-bdd3-96281e051051",
"token": "<TOKEN_2>",
"redaction": Skyflow.RedactionType.MASKED
]
]
Expand All @@ -1888,11 +1888,11 @@ The following example code makes a detokenize call to reveal the masked value of
{
"records": [
{
"token": "131e70dc-6f76-4319-bdd3-96281e051051",
"token": "<TOKEN_3>",
"value": "1990-01-01"
},
{
"token": "1r434532-6f76-4319-bdd3-96281e051051",
"token": "<TOKEN_2>",
"value": "xxxxxxer",
}
]
Expand Down Expand Up @@ -2012,7 +2012,7 @@ The following example code makes a detokenize call to reveal the masked value of
{
"fields": {
"card_number": "9802-3257-3113-0294",
"expiry_date": "45012507-f72b-4f5c-9bf9-86b133bae719",
"expiry_date": "<TOKEN_1>",
"fullname": "131e2507-f72b-4f5c-9bf9-86b133bae719",
"id": "f8d8a622-b557-4c6b-a12c-c5ebe0b0bfd9"
},
Expand All @@ -2022,7 +2022,7 @@ The following example code makes a detokenize call to reveal the masked value of
"fields": {
"card_number": "0294-3213-3157-9802",
"expiry_date": "131e2507-f72b-4f5c-9bf9-86b133bae719",
"fullname": "45012507-f72b-4f5c-9bf9-86b133bae719",
"fullname": "<TOKEN_1>",
"id": "ed2e7851-9f84-4d70-9e5d-182f6d8d4fa3"
},
"table": "cards"
Expand Down Expand Up @@ -2185,7 +2185,7 @@ let errorTextStyles = Skyflow.Styles(base: baseTextStyle)

// Create Reveal Elements
let cardNumberInput = Skyflow.RevealElementInput(
token: "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
token: "<TOKEN_4>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand All @@ -2197,7 +2197,7 @@ let cardNumberInput = Skyflow.RevealElementInput(
let cardNumberElement = container?.create(input: cardNumberInput)

let cvvInput = Skyflow.RevealElementInput(
token: "89024714-6a26-4256-b9d4-55ad69aa4047",
token: "<TOKEN_5>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand All @@ -2207,7 +2207,7 @@ let cvvInput = Skyflow.RevealElementInput(
let cvvElement = container?.create(input: cvvInput)

let expiryDateInput = Skyflow.RevealElementInput(
token: "a4b24714-6a26-4256-b9d4-55ad69aa4047",
token: "<TOKEN_6>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand Down Expand Up @@ -2247,16 +2247,16 @@ The response below shows that some tokens assigned to the reveal elements get re
```json
{
"success": [ {
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75"
"token": "<TOKEN_4>"
},
{
"token": "89024714-6a26-4256-b9d4-55ad69aa4047"
"token": "<TOKEN_5>"
}],
"errors": [ {
"id": "a4b24714-6a26-4256-b9d4-55ad69aa4047",
"id": "<TOKEN_6>",
"error": {
"code": 404,
"description": "Tokens not found for a4b24714-6a26-4256-b9d4-55ad69aa4047"
"description": "Tokens not found for <TOKEN_6>"
}
}]
}
Expand Down
60 changes: 30 additions & 30 deletions SkyflowFlowVault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Reveal a token back to its real value (using the same `skyflowClient` from above
// 1. Create a container and a Reveal Element for the token
let revealContainer = skyflowClient.container(type: SkyflowFlowVault.ContainerType.REVEAL)
let cardNumberReveal = SkyflowFlowVault.RevealElementInput(
token: "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
token: "<TOKEN_1>",
label: "Card Number"
)
let revealElement = revealContainer?.create(input: cardNumberReveal)
Expand Down Expand Up @@ -578,15 +578,15 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "cards",
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
{
"tableName": "persons",
"skyflowId": "77dc3caf-c452-49e1-8625-07219d7567bf",
"tokens": {
"gender": [{"token": "12f670af-6c7d-4837-83fb-30365fbc0b1e", "tokenGroupName": "deterministic_string"}]
"gender": [{"token": "<TOKEN_2>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
}
Expand All @@ -603,7 +603,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "cards",
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
Expand Down Expand Up @@ -777,16 +777,16 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "persons",
"skyflowId": "77dc3caf-c452-49e1-8625-07219d7567bf",
"tokens": {
"gender": [{"token": "12f670af-6c7d-4837-83fb-30365fbc0b1e", "tokenGroupName": "deterministic_string"}]
"gender": [{"token": "<TOKEN_2>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
{
"tableName": "cards",
"skyflowId": "431eaa6c-5c15-4513-aa15-29f50babe882",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "131e70dc-6f76-4319-bdd3-96281e051051", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "<TOKEN_3>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
}
Expand All @@ -803,7 +803,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "cards",
"skyflowId": "431eaa6c-5c15-4513-aa15-29f50babe882",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
Expand Down Expand Up @@ -1328,15 +1328,15 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "cards",
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
{
"tableName": "persons",
"skyflowId": "77dc3caf-c452-49e1-8625-07219d7567bf",
"tokens": {
"gender": [{"token": "12f670af-6c7d-4837-83fb-30365fbc0b1e", "tokenGroupName": "deterministic_string"}]
"gender": [{"token": "<TOKEN_2>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
}
Expand All @@ -1353,7 +1353,7 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "cards",
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
Expand Down Expand Up @@ -1774,17 +1774,17 @@ container?.collect(callback: insertCallback, options: collectOptions)
"tableName": "persons",
"skyflowId": "77dc3caf-c452-49e1-8625-07219d7567bf",
"tokens": {
"gender": [{"token": "12f670af-6c7d-4837-83fb-30365fbc0b1e", "tokenGroupName": "deterministic_string"}]
"gender": [{"token": "<TOKEN_2>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
{
"tableName": "cards",
"skyflowId": "431eaa6c-5c15-4513-aa15-29f50babe882",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "131e70dc-6f76-4319-bdd3-96281e051051", "tokenGroupName": "deterministic_string"}],
"cvv": [{"token": "098834fe-de99-4fc8-abdf-88c18a28a2cf", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "<TOKEN_3>", "tokenGroupName": "deterministic_string"}],
"cvv": [{"token": "<TOKEN_4>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
}
Expand All @@ -1800,9 +1800,9 @@ See the [Error Handling Reference](#error-handling-reference) for how successful
"tableName": "cards",
"skyflowId": "431eaa6c-5c15-4513-aa15-29f50babe882",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "131e70dc-6f76-4319-bdd3-96281e051051", "tokenGroupName": "deterministic_string"}],
"cvv": [{"token": "098834fe-de99-4fc8-abdf-88c18a28a2cf", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}],
"first_name": [{"token": "<TOKEN_3>", "tokenGroupName": "deterministic_string"}],
"cvv": [{"token": "<TOKEN_4>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
Expand Down Expand Up @@ -1990,7 +1990,7 @@ let errorTextStyles = SkyflowFlowVault.Styles(base: baseTextStyle)

// Create Reveal Elements
let cardNumberInput = SkyflowFlowVault.RevealElementInput(
token: "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
token: "<TOKEN_5>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand All @@ -2001,7 +2001,7 @@ let cardNumberInput = SkyflowFlowVault.RevealElementInput(
let cardNumberElement = container?.create(input: cardNumberInput)

let cvvInput = SkyflowFlowVault.RevealElementInput(
token: "89024714-6a26-4256-b9d4-55ad69aa4047",
token: "<TOKEN_6>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand All @@ -2011,7 +2011,7 @@ let cvvInput = SkyflowFlowVault.RevealElementInput(
let cvvElement = container?.create(input: cvvInput)

let expiryDateInput = SkyflowFlowVault.RevealElementInput(
token: "a4b24714-6a26-4256-b9d4-55ad69aa4047",
token: "<TOKEN_7>",
inputStyles: inputStyles,
labelStyles: labelStyles,
errorTextStyles: errorTextStyles,
Expand Down Expand Up @@ -2060,7 +2060,7 @@ container?.reveal(callback: revealCallback, options: revealOptions)
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_5>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2069,7 +2069,7 @@ container?.reveal(callback: revealCallback, options: revealOptions)
"httpCode": 200
},
{
"token": "89024714-6a26-4256-b9d4-55ad69aa4047",
"token": "<TOKEN_6>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2087,7 +2087,7 @@ Some tokens assigned to the reveal elements get revealed successfully, while oth
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_5>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2096,8 +2096,8 @@ Some tokens assigned to the reveal elements get revealed successfully, while oth
"httpCode": 200
},
{
"token": "a4b24714-6a26-4256-b9d4-55ad69aa4047",
"error": "Tokens not found for a4b24714-6a26-4256-b9d4-55ad69aa4047",
"token": "<TOKEN_7>",
"error": "Tokens not found for <TOKEN_7>",
"httpCode": 404
}
]
Expand All @@ -2120,7 +2120,7 @@ Collect shape:
"tableName": "cards",
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}]
"cardNumber": [{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}]
},
"httpCode": 200
},
Expand All @@ -2139,7 +2139,7 @@ Reveal shape:
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_5>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2148,8 +2148,8 @@ Reveal shape:
"httpCode": 200
},
{
"token": "a4b24714-6a26-4256-b9d4-55ad69aa4047",
"error": "Tokens not found for a4b24714-6a26-4256-b9d4-55ad69aa4047",
"token": "<TOKEN_7>",
"error": "Tokens not found for <TOKEN_7>",
"httpCode": 404
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RevealSkyflowLabelViewTests: XCTestCase {
let container = skyflowClient.container(type: ContainerType.REVEAL)
// Create Reveal Elements
let cardNumberInput = RevealElementInput(
token: "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
token: "<TOKEN_1>",
label: "cardnumber",
altText: "XXXX XXXX XXXX XXXX"
)
Expand Down
Loading