-
Couldn't load subscription status.
- Fork 101
feat: added sender wallet address to incoming payment #3705
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 2 commits
cc18f51
242530b
4d017c4
ef32b06
f9afe8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ body:graphql { | |
| value | ||
| } | ||
| state | ||
| senderWalletAddress | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -44,7 +45,8 @@ body:graphql:vars { | |
| "description": "Hello World" | ||
| }, | ||
| "incomingAmount": null, | ||
| "walletAddressId": "{{walletAddressId}}" | ||
| "walletAddressId": "{{walletAddressId}}", | ||
| "senderWalletAddress": "{{senderWalletAddress}}" | ||
|
||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ body:graphql { | |
| } | ||
| metadata | ||
| createdAt | ||
| senderWalletAddress | ||
| } | ||
| } | ||
| } | ||
|
|
||
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,19 @@ | ||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.up = function (knex) { | ||
| return knex.schema.alterTable('incomingPayments', function (table) { | ||
| table.string('senderWalletAddress').nullable() | ||
| }) | ||
| } | ||
|
|
||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.down = function (knex) { | ||
| return knex.schema.alterTable('incomingPayments', function (table) { | ||
| table.dropColumn('senderWalletAddress') | ||
| }) | ||
| } |
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -959,6 +959,8 @@ type IncomingPayment implements BasePayment & Model { | |||||
| createdAt: String! | ||||||
| "The tenant UUID associated with the incoming payment. If not provided, it will be obtained from the signature." | ||||||
| tenantId: String | ||||||
| "The wallet address URL of the sender." | ||||||
| senderWalletAddress: String | ||||||
| } | ||||||
|
|
||||||
| type Receiver { | ||||||
|
|
@@ -1283,6 +1285,8 @@ input CreateIncomingPaymentInput { | |||||
| idempotencyKey: String | ||||||
| "Whether or not the incoming payment is being created for a card payment." | ||||||
| isCardPayment: Boolean | ||||||
| "The wallet address of the sender." | ||||||
|
||||||
| "The wallet address of the sender." | |
| "The sender's wallet address URL. Applicable only to card payments." |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,6 +111,7 @@ export class IncomingPayment | |
| private incomingAmountValue?: bigint | null | ||
| private receivedAmountValue?: bigint | ||
| public readonly tenantId!: string | ||
| public readonly senderWalletAddress?: string | null | ||
|
|
||
| public get completed(): boolean { | ||
| return this.state === IncomingPaymentState.Completed | ||
|
|
@@ -215,6 +216,9 @@ export class IncomingPayment | |
| if (this.cancelledAt) { | ||
| data.cancelledAt = new Date(this.cancelledAt).toISOString() | ||
| } | ||
| if (this.senderWalletAddress) { | ||
| data.senderWalletAddress = this.senderWalletAddress | ||
| } | ||
|
||
|
|
||
| return data | ||
| } | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.