Skip to content
Closed
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
53 changes: 53 additions & 0 deletions dist/cjs/types/generated/generated.d.ts

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

2 changes: 1 addition & 1 deletion dist/cjs/types/generated/generated.d.ts.map

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions dist/esm/types/generated/generated.d.ts

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

2 changes: 1 addition & 1 deletion dist/esm/types/generated/generated.d.ts.map

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions generated/generated.ts

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

59 changes: 59 additions & 0 deletions tests/fixtures/generated-edge-case-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,8 @@ export type Payment = {
created: Scalars['DateTime']['output'];
/** The currency this Payment is denominated in. */
currency: PaymentCurrency;
/** EXPERIMENTAL: The log of events that have occurred on this Payment, most recent first. */
events: PaymentEventsConnection;
/** The ID of this Payment. */
id: Scalars['ID']['output'];
/** The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with. */
Expand All @@ -2569,6 +2571,35 @@ export type Payment = {
typeVersion: Scalars['Int']['output'];
};

/** EXPERIMENTAL: The card network approved the Payment. */
export type PaymentCardApprovedEvent = PaymentEvent & {
__typename?: 'PaymentCardApprovedEvent';
/** The `initiated` Ledger Entry, `null` where the Payment Type defines none. */
ledgerEntry?: Maybe<LedgerEntry>;
/** When this event occurred. */
occurredAt: Scalars['DateTime']['output'];
/** The status of the Payment after this event. */
status: PaymentStatus;
};

/** EXPERIMENTAL: The payer supplied a payment method. */
export type PaymentConfirmedEvent = PaymentEvent & {
__typename?: 'PaymentConfirmedEvent';
/** When this event occurred. */
occurredAt: Scalars['DateTime']['output'];
/** The status of the Payment after this event. */
status: PaymentStatus;
};

/** EXPERIMENTAL: The Payment was created. */
export type PaymentCreatedEvent = PaymentEvent & {
__typename?: 'PaymentCreatedEvent';
/** When this event occurred. */
occurredAt: Scalars['DateTime']['output'];
/** The status of the Payment after this event. */
status: PaymentStatus;
};

/** EXPERIMENTAL: The currency a Payment is denominated in. */
export type PaymentCurrency = {
__typename?: 'PaymentCurrency';
Expand All @@ -2589,6 +2620,23 @@ export enum PaymentCurrencyCode {
Usd = 'USD'
}

/** EXPERIMENTAL: Something that happened to a Payment. */
export type PaymentEvent = {
/** When this event occurred. */
occurredAt: Scalars['DateTime']['output'];
/** The status of the Payment after this event. */
status: PaymentStatus;
};

/** EXPERIMENTAL: A paginated list of Payment events. */
export type PaymentEventsConnection = {
__typename?: 'PaymentEventsConnection';
/** The current page of results. */
nodes: Array<PaymentEvent>;
/** The pagination info for this list. */
pageInfo: PageInfo;
};

/** Specify a Ledger Payment by using `ledger` and `ik`. */
export type PaymentMatchInput = {
/** The Idempotency Key the Payment was created with. */
Expand All @@ -2603,6 +2651,17 @@ export enum PaymentMode {
Sandbox = 'sandbox'
}

/** EXPERIMENTAL: The Payment settled. */
export type PaymentSettledEvent = PaymentEvent & {
__typename?: 'PaymentSettledEvent';
/** The `settled` Ledger Entry. */
ledgerEntry: LedgerEntry;
/** When this event occurred. */
occurredAt: Scalars['DateTime']['output'];
/** The status of the Payment after this event. */
status: PaymentStatus;
};

/**
* EXPERIMENTAL — subject to change.
*
Expand Down
Loading
Loading