Skip to content
Open
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
64 changes: 32 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/services/eventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ interface EventListRequest {
// <li>`scheme_identifier`</li>
// <li>`subscription`</li>
// <li>`outbound_payment`</li>
// <li>`payment_account_transaction`</li>
// </ul>

include?: Types.EventInclude;
Expand Down Expand Up @@ -91,6 +92,11 @@ interface EventListRequest {

payment?: string;

// ID of a payment account transaction. If specified, this endpoint will return
// all events for the given transaction.

payment_account_transaction?: string;

// ID of a [payout](#core-endpoints-payouts). If specified, this endpoint will
// return all events for the given payout.

Expand All @@ -104,8 +110,8 @@ interface EventListRequest {
// Type of resource that you'd like to get all events for.
// Cannot be used together with the `billing_request`, `creditor`,
// `export`,`instalment_schedule`, `mandate`, `payer_authorisation`, `payment`,
// `payout`, `refund`, `scheme_identifier`, `subscription` or `outbound_payment`
// parameters.
// `payout`, `refund`, `scheme_identifier`, `subscription`, `outbound_payment`
// or `payment_account_transaction` parameters.
// The type can be one of:
// <ul>
// <li>`billing_requests`</li>
Expand All @@ -120,6 +126,7 @@ interface EventListRequest {
// <li>`scheme_identifiers`</li>
// <li>`subscriptions`</li>
// <li>`outbound_payments`</li>
// <li>`payment_account_transactions`</li>
// </ul>

resource_type?: Types.EventResourceType;
Expand Down
13 changes: 13 additions & 0 deletions src/types/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4262,6 +4262,7 @@ export type Event = {
// <li>`scheme_identifiers`</li>
// <li>`subscriptions`</li>
// <li>`outbound_payments`</li>
// <li>`payment_account_transactions`</li>
// </ul>
resource_type?: EventResourceType;

Expand All @@ -4278,6 +4279,7 @@ export enum EventInclude {
OutboundPayment = 'outbound_payment',
PayerAuthorisation = 'payer_authorisation',
Payment = 'payment',
PaymentAccountTransaction = 'payment_account_transaction',
Payout = 'payout',
Refund = 'refund',
SchemeIdentifier = 'scheme_identifier',
Expand Down Expand Up @@ -4450,6 +4452,10 @@ export type EventLinks = {
// [payment](#core-endpoints-payments) which has been updated.
payment?: string;

// If `resource_type` is `payment_account_transaction`, this is the ID of a
// transaction which has been recorded on the payment account.
payment_account_transaction?: string;

// If `resource_type` is `billing_requests`, this is the ID of the
// [payment](#core-endpoints-payments) which has been created for Instant Bank
// Payment.
Expand Down Expand Up @@ -4489,6 +4495,7 @@ export enum EventResourceType {
OutboundPayments = 'outbound_payments',
PayerAuthorisations = 'payer_authorisations',
Payments = 'payments',
PaymentAccountTransactions = 'payment_account_transactions',
Payouts = 'payouts',
Refunds = 'refunds',
SchemeIdentifiers = 'scheme_identifiers',
Expand Down Expand Up @@ -5430,6 +5437,9 @@ export type OutboundPaymentCreateRequestLinks = {
// ID of the creditor who sends the outbound payment.
creditor?: string;

// ID of the outbound payment import that created this outbound payment.
outbound_payment_import?: string;

// ID of the customer bank account which receives the outbound payment.
recipient_bank_account: string;
};
Expand Down Expand Up @@ -5467,6 +5477,9 @@ export type OutboundPaymentLinks = {
// payment
customer?: string;

// ID of the outbound payment import that created this outbound payment.
outbound_payment_import?: string;

// ID of the customer bank account which receives the outbound payment.
recipient_bank_account?: string;
};
Expand Down
Loading