GraphQL updates for payments
Author:
Fluent Commerce
Changed on:
3 Jan 2024
Target release date: | 2023-10-17 |
---|---|
Release status: | Released |
Description
You can now manage payments throughout the lifecycle of an with our newly updated payments data model. Read more about what's new and how to start in Overview of Payments in Fluent.
Changelog
The `FinancialTransaction`
has been improved with the following:
- Accepts an optional list of
`attributes`
so that you can include necessary metadata related to your business for a given transaction - Includes two new fields for interacting with the
`amount`
. Both`unscaled`
and`scaled`
integer fields have been added to enable more precision when performing calculations using the transaction. - Has a connection to the
`Payment`
entity - Added a new mutation
`updateFinancialTransaction,`
which allows you to update the`status`
of a given`FinancialTransaction`
`status`
is now a`string`
instead of an`enumeration`
The `Payment`
has been improved with the following:
- Includes a connection to:
`FinancialTransaction`
`Fulfillment`
`CreditMemo`
- Each connection has a reverse relationship, allowing you to connect back to the payment
The `Order`
has been improved with the following:
`FinancialTransaction`
can now be created alongside the`Order`
using the`CreateOrder`
mutation to simplify the process of managing order orchestration,`Order`
now takes an optional`BillingAddress`
so that you can specify a different billing address than the one saved against the customer's billing account.
The `Inventory Position`
has been improved with the following:
- Now, it has connections to the
`product`
and`location`
entities. You can derive Product and Location information directly from the`InventoryPosition`
query. - FulfilmentChoice now optionally takes an array of attributes as originally intended; previously, only one was accepted.
- The
`firstName`
field in the GraphQL CreateCustomerInput schema is now optional.
Released capability depth: | New capability, Enhancement, Fix |
---|---|
Release bundle / Capability type: | Platform |