-
Couldn't load subscription status.
- Fork 101
feat(backend): Update handling of OutgoingPaymentCardDetails
#3658
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
Changes from 4 commits
6a51fd9
ccc939f
6a3e421
bd47c19
812b734
8d15c21
f8cf338
51c3c96
ff10284
9abb1f7
c9c185e
38ba95d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.up = function (knex) { | ||
| return knex.schema.alterTable('outgoingPaymentCardDetails', function (table) { | ||
| table.dropColumn('expiry') | ||
| table.dropColumn('signature') | ||
|
|
||
| table.uuid('requestId').notNullable() | ||
| table.jsonb('data').notNullable() | ||
| table.timestamp('initiatedAt').notNullable() | ||
| }) | ||
| } | ||
|
|
||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.down = function (knex) { | ||
| return knex.schema.alterTable('outgoingPaymentCardDetails', function (table) { | ||
| table.dropColumn('requestId') | ||
| table.dropColumn('data') | ||
| table.dropColumn('initiatedAt') | ||
|
|
||
| table.string('signature').notNullable() | ||
| table.string('expiry').notNullable() | ||
| }) | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -242,6 +242,16 @@ components: | |
| grantId: | ||
| type: string | ||
| format: uuid | ||
| cardDetails: | ||
| type: object | ||
| properties: | ||
| data: | ||
| type: object | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should data not be an ASCII-HEX string? |
||
| requestId: | ||
| type: string | ||
| initiatedAt: | ||
| type: string | ||
| format: date-time | ||
| additionalProperties: false | ||
| walletAddressNotFound: | ||
| required: | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
@mkurapov is this the TLV data?
If it is, the ASE would need to extract the TLV data in order to retrieve the txn-counter and related TLV data.
Uh oh!
There was an error while loading. Please reload this page.
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.
@koekiebox
datais just JSON for flexibility, and in practice it issuch that the cardholder's ASE can fetch it from the webhook and validate it.
See this Slack thread for example payload