Skip to content
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
64d4bde
feat(network-tokenization): expose flows for card network tokenization
kashif-m Jan 7, 2025
e2eeeeb
feat(bulk-tokenization): add pm id flow and batch flow
kashif-m Jan 10, 2025
a2e626a
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Jan 20, 2025
0e73f1d
chore: run formatter
hyperswitch-bot[bot] Jan 20, 2025
c278183
chore: address clippy suggestions and remove redundant changes
kashif-m Jan 20, 2025
2fd2787
chore: revert a few changes
kashif-m Jan 20, 2025
d4d0fae
chore: run formatter
hyperswitch-bot[bot] Jan 20, 2025
60b90dd
chore: revert
kashif-m Jan 20, 2025
8fc2a77
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Jan 21, 2025
06e0c4f
chore: update sm
kashif-m Jan 22, 2025
530cd0d
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Jan 22, 2025
e9c4d87
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Jan 23, 2025
80c27d5
chore: add v2 flags
kashif-m Jan 23, 2025
5842421
chore: run formatter
hyperswitch-bot[bot] Jan 23, 2025
aa0676f
refactor: add a common trait for common tokenization steps and resolv…
kashif-m Jan 30, 2025
f1c8122
chore: run formatter
hyperswitch-bot[bot] Jan 30, 2025
e0547f0
refactor: use generic impl and fix clippy
kashif-m Jan 30, 2025
1deeb07
chore: run formatter
hyperswitch-bot[bot] Jan 30, 2025
66f16e7
refactor: make customer a required field
kashif-m Jan 31, 2025
8b86c39
chore: run formatter
hyperswitch-bot[bot] Jan 31, 2025
dac3060
Merge branch 'main' into 6969-feature-expose-tokenize-endpoints
kashif-m Feb 3, 2025
364ec3e
refactor: resolve comments and add more validations
kashif-m Feb 3, 2025
152184d
chore: add CardDetail domain type
kashif-m Feb 5, 2025
5812e79
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 5, 2025
5b8813c
chore: run formatter
hyperswitch-bot[bot] Feb 5, 2025
89e7b3e
chore: use stricter types in the match statement
kashif-m Feb 6, 2025
2a9975d
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 18, 2025
4ebd5d7
chore: resolve comments
kashif-m Feb 19, 2025
2a9f5b3
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 19, 2025
2ddc524
chore: resolve missed merge conflict
kashif-m Feb 19, 2025
98eef21
refactor: expose a separate endpoint for tokenizing with PM ID
kashif-m Feb 20, 2025
35f864a
refactor: fill pm_id from path into request body
kashif-m Feb 20, 2025
9faf424
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 20, 2025
9f9d6d7
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 21, 2025
67e79d5
refactor: network tokenization API path
kashif-m Feb 21, 2025
a02c7da
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 24, 2025
de5cd31
Merge remote-tracking branch 'origin/main' into 6969-feature-expose-t…
kashif-m Feb 28, 2025
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
191 changes: 191 additions & 0 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6850,6 +6850,90 @@
"Maestro"
]
},
"CardNetworkTokenizeRequest": {
"allOf": [
{
"$ref": "#/components/schemas/TokenizeDataRequest"
},
{
"type": "object",
"required": [
"merchant_id",
"customer"
],
"properties": {
"merchant_id": {
"type": "string",
"description": "Merchant ID associated with the tokenization request",
"example": "merchant_1671528864"
},
"customer": {
"$ref": "#/components/schemas/CustomerDetails"
},
"billing": {
"allOf": [
{
"$ref": "#/components/schemas/Address"
}
],
"nullable": true
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"nullable": true
},
"payment_method_issuer": {
"type": "string",
"description": "The name of the bank/ provider issuing the payment method to the end user",
"nullable": true
}
}
}
]
},
"CardNetworkTokenizeResponse": {
"type": "object",
"required": [
"customer",
"card_tokenized"
],
"properties": {
"payment_method_response": {
"allOf": [
{
"$ref": "#/components/schemas/PaymentMethodResponse"
}
],
"nullable": true
},
"customer": {
"$ref": "#/components/schemas/CustomerDetails"
},
"card_tokenized": {
"type": "boolean",
"description": "Card network tokenization status"
},
"error_code": {
"type": "string",
"description": "Error code",
"nullable": true
},
"error_message": {
"type": "string",
"description": "Error message",
"nullable": true
},
"tokenization_data": {
"allOf": [
{
"$ref": "#/components/schemas/TokenizeDataRequest"
}
],
"nullable": true
}
}
},
"CardNetworkTypes": {
"type": "object",
"required": [
Expand Down Expand Up @@ -21466,6 +21550,113 @@
"multi_use"
]
},
"TokenizeCardRequest": {
"type": "object",
"required": [
"raw_card_number",
"card_expiry_month",
"card_expiry_year"
],
"properties": {
"raw_card_number": {
"type": "string",
"description": "Card Number",
"example": "4111111145551142"
},
"card_expiry_month": {
"type": "string",
"description": "Card Expiry Month",
"example": "10"
},
"card_expiry_year": {
"type": "string",
"description": "Card Expiry Year",
"example": "25"
},
"card_cvc": {
"type": "string",
"description": "The CVC number for the card",
"example": "242",
"nullable": true
},
"card_holder_name": {
"type": "string",
"description": "Card Holder Name",
"example": "John Doe",
"nullable": true
},
"nick_name": {
"type": "string",
"description": "Card Holder's Nick Name",
"example": "John Doe",
"nullable": true
},
"card_issuing_country": {
"type": "string",
"description": "Card Issuing Country",
"nullable": true
},
"card_network": {
"allOf": [
{
"$ref": "#/components/schemas/CardNetwork"
}
],
"nullable": true
},
"card_issuer": {
"type": "string",
"description": "Issuer Bank for Card",
"nullable": true
},
"card_type": {
"allOf": [
{
"$ref": "#/components/schemas/CardType"
}
],
"nullable": true
}
},
"additionalProperties": false
},
"TokenizeDataRequest": {
"oneOf": [
{
"type": "object",
"required": [
"card"
],
"properties": {
"card": {
"$ref": "#/components/schemas/TokenizeCardRequest"
}
}
},
{
"type": "object",
"required": [
"existing_payment_method"
],
"properties": {
"existing_payment_method": {
"$ref": "#/components/schemas/TokenizePaymentMethodRequest"
}
}
}
]
},
"TokenizePaymentMethodRequest": {
"type": "object",
"properties": {
"card_cvc": {
"type": "string",
"description": "The CVC number for the card",
"example": "242",
"nullable": true
}
}
},
"TouchNGoRedirection": {
"type": "object"
},
Expand Down
Loading
Loading