-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(router): adding generic tokenization endpoint #7905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
2a1384c
inital commit
su-shivanshmathur 8a1ffef
updates
su-shivanshmathur 59027b8
GlobalTokenId intoduce
su-shivanshmathur 4076f3c
Changes
su-shivanshmathur b50f333
model changes
su-shivanshmathur 967ab76
insert changes
su-shivanshmathur 4cb5a50
Changes
su-shivanshmathur c3681e1
Working changes
su-shivanshmathur 96d98c7
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 8485945
Working commits
su-shivanshmathur b4d4435
Sanity
su-shivanshmathur de7bc0f
Retrieve endpoint for tokenization
su-shivanshmathur d65dd5d
development.toml changes
su-shivanshmathur dcdc5d9
migrations
su-shivanshmathur 978ca25
flag check
su-shivanshmathur 6141225
chore: run formatter
hyperswitch-bot[bot] e8b4301
clippy errors
su-shivanshmathur 8776570
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 7861564
Conflict resolve
su-shivanshmathur 1d33d0c
chore: run formatter
hyperswitch-bot[bot] 84ee28c
clippy changes
su-shivanshmathur 3e9937a
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur f817c02
chore: run formatter
hyperswitch-bot[bot] 428ac80
clippy error
su-shivanshmathur d3a6717
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 46460ed
chore: run formatter
hyperswitch-bot[bot] 23eb33d
Changes
su-shivanshmathur 219f9d7
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 096dbf7
Clippy changes
su-shivanshmathur 27c74f2
chore: run formatter
hyperswitch-bot[bot] cbf61a2
schema changes
su-shivanshmathur 2f11f33
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur a6bd4b2
changes in down.sql
su-shivanshmathur 71442c8
storage_impl tokenization file removal
su-shivanshmathur 0892344
chore: run formatter
hyperswitch-bot[bot] 9926d7b
development.toml changes
su-shivanshmathur 1ace00e
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 5ff31ee
Payment method session integration for tokenization service
su-shivanshmathur b53a889
chore: run formatter
hyperswitch-bot[bot] a3d7559
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 1625353
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 4b20cfe
Added client secret based auth
su-shivanshmathur 448de98
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 14a26f0
chore: run formatter
hyperswitch-bot[bot] 1fed101
masking data and adding storage_impl
su-shivanshmathur 7e55476
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur a9993af
Comment resolution
su-shivanshmathur 9ec9639
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur d48cb21
storage_imple usage inplace of db
su-shivanshmathur 4d1ec7d
chore: run formatter
hyperswitch-bot[bot] 2d2e0a2
JSON mask startegy introduce
su-shivanshmathur e459fbe
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur a1006d3
chore: run formatter
hyperswitch-bot[bot] a3c3915
adding unit test case
su-shivanshmathur 6a617d0
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 749221b
chore: run formatter
hyperswitch-bot[bot] 97b1904
test case changes
su-shivanshmathur b0501ca
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 9504270
chore: run formatter
hyperswitch-bot[bot] 8255693
Comment and clippy changes
su-shivanshmathur 006e520
clippy errors
su-shivanshmathur dc4b1ac
common imports
su-shivanshmathur 27c652f
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur bd87f89
chore: run formatter
hyperswitch-bot[bot] fde7444
Comments
su-shivanshmathur b33d18d
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 3bb4e0b
openapi changes
su-shivanshmathur 58a1d67
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 90b6050
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 1c56278
remove the api for get token
su-shivanshmathur 2051cc4
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur 8be1cfa
Format error
su-shivanshmathur 5da9217
chore: run formatter
hyperswitch-bot[bot] 89088e2
Removing unwanted imports and enums
su-shivanshmathur b6808b1
JsonMaskStrategy under serde feature flag
su-shivanshmathur 810ae36
chore: run formatter
hyperswitch-bot[bot] a3baaf4
Comment changes and OpenApi spec changes
su-shivanshmathur 54cf6d3
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur cfc23d1
chore: run formatter
hyperswitch-bot[bot] 3daa21f
Merge branch 'main' of github.com:juspay/hyperswitch into feature/tok…
su-shivanshmathur ea3aee5
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur 332f7f1
Comment resolution
su-shivanshmathur bf87db4
chore: run formatter
hyperswitch-bot[bot] 3f5fd1b
OpenApi Changes
su-shivanshmathur 874ea79
open-api changes
su-shivanshmathur daa0ea9
Merge branch 'feature/tokenize' of github.com:juspay/hyperswitch into…
su-shivanshmathur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
api-reference-v2/api-reference/tokenization/tokenization--create.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
openapi: post /v2/tokenize | ||
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use common_enums; | ||
use common_utils::id_type::{GlobalCustomerId, GlobalTokenId}; | ||
use masking::Secret; | ||
use serde::{Deserialize, Serialize}; | ||
use time::PrimitiveDateTime; | ||
use utoipa::{schema, ToSchema}; | ||
|
||
#[cfg(all(feature = "v2", feature = "tokenization_v2"))] | ||
#[derive(Debug, Serialize, Deserialize, ToSchema)] | ||
pub struct GenericTokenizationResponse { | ||
/// Unique identifier returned by the tokenization service | ||
#[schema(value_type = String, example = "12345_tok_01926c58bc6e77c09e809964e72af8c8")] | ||
pub id: GlobalTokenId, | ||
/// Created time of the tokenization id | ||
#[schema(value_type = PrimitiveDateTime,example = "2024-02-24T11:04:09.922Z")] | ||
pub created_at: PrimitiveDateTime, | ||
/// Status of the tokenization id created | ||
#[schema(value_type = String,example = "enabled")] | ||
pub flag: common_enums::TokenizationFlag, | ||
} | ||
#[cfg(all(feature = "v2", feature = "tokenization_v2"))] | ||
#[derive(Debug, Serialize, Deserialize, ToSchema)] | ||
pub struct GenericTokenizationRequest { | ||
/// Customer ID for which the tokenization is requested | ||
#[schema(value_type = String, example = "12345_cus_01926c58bc6e77c09e809964e72af8c8")] | ||
pub customer_id: GlobalCustomerId, | ||
prasunna09 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// Request for tokenization which contains the data to be tokenized | ||
#[schema(value_type = Object,example = json!({ "city": "NY", "unit": "245" }))] | ||
pub token_request: masking::Secret<serde_json::Value>, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we remove these keys? is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes