Skip to content
Merged
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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
Releases prior to `2.0.0` were published before this changelog was added and
are not documented here.

## [2.2.0]

### Added

- `createPayment` creates a Payment on a Ledger. Pass an `ik`, a `ledgerIk`, and
a Payment `type`, along with optional `typeVersion` and `parameters`. It
returns the Payment's `clientSecret` and `status`. Payments are experimental,
so this API may change in a future release.

### Changed

- `typeVersion` on `LedgerEntryInput` is now supported and defaults to `1`. It
was previously reserved for an upcoming feature.
- `PaymentStatus` now uses `needs_payment_method` instead of
`requires_confirmation`.
- `SchemaPaymentEntryStatus` is now named `SchemaPaymentTypeStatus`, and
`SchemaPaymentEntryInput` now takes `needs_payment_method_to_processing`
instead of `needs_confirmation_to_processing`.

## [2.1.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/generated/version.js

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

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.

2 changes: 1 addition & 1 deletion dist/cjs/types/generated/version.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/generated/version.js

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

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.

2 changes: 1 addition & 1 deletion dist/esm/types/generated/version.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 generated/generated.ts

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

2 changes: 1 addition & 1 deletion generated/version.ts

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"engines": {
"node": ">=18.0.0"
},
"version": "2.1.0",
"version": "2.2.0",
"author": "Fragment Foundries Inc",
"license": "Apache-2.0",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/generated-edge-case-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ export type LedgerEntryInput = {
tags?: InputMaybe<Array<LedgerEntryTagInput>>;
/** The type of the Ledger Entry. Must be defined in the Schema linked to the Ledger specified below. */
type?: InputMaybe<Scalars['String']['input']>;
/** Experimental: This field is reserved for an upcoming feature and is not yet supported. */
/** The version of the Ledger Entry type to post. Defaults to 1. */
typeVersion?: InputMaybe<Scalars['Int']['input']>;
};

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/generated-template-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ export type LedgerEntryInput = {
tags?: InputMaybe<Array<LedgerEntryTagInput>>;
/** The type of the Ledger Entry. Must be defined in the Schema linked to the Ledger specified below. */
type?: InputMaybe<Scalars['String']['input']>;
/** Experimental: This field is reserved for an upcoming feature and is not yet supported. */
/** The version of the Ledger Entry type to post. Defaults to 1. */
typeVersion?: InputMaybe<Scalars['Int']['input']>;
};

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/generated-template-runtime-args-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ export type LedgerEntryInput = {
tags?: InputMaybe<Array<LedgerEntryTagInput>>;
/** The type of the Ledger Entry. Must be defined in the Schema linked to the Ledger specified below. */
type?: InputMaybe<Scalars['String']['input']>;
/** Experimental: This field is reserved for an upcoming feature and is not yet supported. */
/** The version of the Ledger Entry type to post. Defaults to 1. */
typeVersion?: InputMaybe<Scalars['Int']['input']>;
};

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/generated-test-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ export type LedgerEntryInput = {
tags?: InputMaybe<Array<LedgerEntryTagInput>>;
/** The type of the Ledger Entry. Must be defined in the Schema linked to the Ledger specified below. */
type?: InputMaybe<Scalars['String']['input']>;
/** Experimental: This field is reserved for an upcoming feature and is not yet supported. */
/** The version of the Ledger Entry type to post. Defaults to 1. */
typeVersion?: InputMaybe<Scalars['Int']['input']>;
};

Expand Down
Loading