@shopify/ui-extensions 2026.10.0 → 2026.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +17 -11
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -2
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/events/transaction-complete-event.d.ts +11 -3
- package/build/ts/surfaces/point-of-sale/events/transaction-complete-event.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +11 -3
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +1 -1
- package/src/surfaces/checkout/api/shared.ts +17 -11
- package/src/surfaces/checkout/api/standard/standard.ts +0 -2
- package/src/surfaces/customer-account/api/order-status/order-status.ts +1 -1
- package/src/surfaces/point-of-sale/events/transaction-complete-event.ts +11 -3
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +11 -3
- package/src/surfaces/point-of-sale/types/payment.ts +1 -1
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export interface RedeemableAddChange {
|
|
|
51
51
|
attributes: RedeemableAttribute[];
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* The identifier used to represent the redeemable
|
|
54
|
+
* The identifier used to represent the redeemable, for example the gift card code.
|
|
55
55
|
*/
|
|
56
56
|
identifier: string;
|
|
57
57
|
}
|
|
@@ -113,7 +113,7 @@ export interface AddressLineComponents {
|
|
|
113
113
|
streetNumber?: string;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* Additional address information
|
|
116
|
+
* Additional address information, for example an apartment, suite, or unit.
|
|
117
117
|
*
|
|
118
118
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
119
119
|
*
|
|
@@ -122,7 +122,7 @@ export interface AddressLineComponents {
|
|
|
122
122
|
additionalInformation?: string;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* A regional or city subdivision (
|
|
125
|
+
* A regional or city subdivision (for example, county, metropolitan region,
|
|
126
126
|
* neighborhood, ward).
|
|
127
127
|
*
|
|
128
128
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
@@ -209,15 +209,21 @@ export interface MailingAddress {
|
|
|
209
209
|
address2?: string;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
* The
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* components
|
|
220
|
-
* the
|
|
212
|
+
* The parts of `address1` and `address2`, such as street name, street
|
|
213
|
+
* number and apartment. The value is `undefined` if the country doesn't
|
|
214
|
+
* store address components or none have been entered. `address1` and
|
|
215
|
+
* `address2` are still provided alongside them.
|
|
216
|
+
*
|
|
217
|
+
* Writable through `applyShippingAddressChange`, which doesn't check the
|
|
218
|
+
* components against `Country.acceptedAddressInputFields`. For each street
|
|
219
|
+
* line, changed components always win over the line, and the line is
|
|
220
|
+
* rebuilt from them. Components that match the current address count as
|
|
221
|
+
* unchanged. In countries that store components, an edited line wins over
|
|
222
|
+
* unchanged components, so an extension can spread the address it read and
|
|
223
|
+
* correct only `address1`. If the country accepts components but doesn't
|
|
224
|
+
* store them, the line is built from the components and only the line is
|
|
225
|
+
* saved. If the country's address format has no components, a change that
|
|
226
|
+
* includes them is rejected.
|
|
221
227
|
*
|
|
222
228
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
223
229
|
*
|
|
@@ -452,8 +452,6 @@ export interface Localization {
|
|
|
452
452
|
* changes the country of their shipping address. The value is
|
|
453
453
|
* `undefined` if the market is unknown.
|
|
454
454
|
*
|
|
455
|
-
* > Caution: This `market` field is deprecated and will be removed in a future version of the API.
|
|
456
|
-
*
|
|
457
455
|
* @deprecated This `market` field will be removed in a future version of the API.
|
|
458
456
|
*/
|
|
459
457
|
market: SubscribableSignalLike<Market | undefined>;
|
|
@@ -1032,7 +1032,7 @@ export interface PaymentTermsTemplate {
|
|
|
1032
1032
|
*/
|
|
1033
1033
|
id: string;
|
|
1034
1034
|
/**
|
|
1035
|
-
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/{API_VERSION}/apis/localization#
|
|
1035
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/{API_VERSION}/target-apis/platform-apis/localization-api#docsstandardlocalizationapi-propertydetail-localization).
|
|
1036
1036
|
*/
|
|
1037
1037
|
name: string;
|
|
1038
1038
|
/**
|
|
@@ -17,6 +17,10 @@ interface BaseTransactionCompleteEvent {
|
|
|
17
17
|
* The unique numeric identifier for the Shopify order created by this transaction. This ID links the POS transaction to the order record in Shopify's system and can be used for order lookups, tracking, and API operations. Returns `undefined` when order creation is pending.
|
|
18
18
|
*/
|
|
19
19
|
readonly orderId?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The source identifier POS assigned to this transaction. Matches the `sourceIdentifier` of the order this transaction belongs to. Returns `undefined` when POS didn't assign one.
|
|
22
|
+
*/
|
|
23
|
+
readonly sourceIdentifier?: string;
|
|
20
24
|
/**
|
|
21
25
|
* The customer information if this transaction is associated with a customer account. Contains the customer ID for linking to customer records. Returns `undefined` for guest transactions where no customer was selected or when the transaction doesn't support customer association.
|
|
22
26
|
*/
|
|
@@ -29,6 +33,10 @@ interface BaseTransactionCompleteEvent {
|
|
|
29
33
|
* The total tax amount charged on this transaction as a `Money` object. This is the sum of all tax lines and represents the combined tax from all applicable tax jurisdictions and rules. Tax calculations are based on the location, products, customer, and tax settings configured in Shopify.
|
|
30
34
|
*/
|
|
31
35
|
readonly taxTotal: Money;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the prices in this transaction include taxes (tax-inclusive pricing), rather than taxes being added on top. Matches the `taxesIncluded` field on the `Order` object in the GraphQL Admin API. Returns `undefined` when this information isn't available.
|
|
38
|
+
*/
|
|
39
|
+
readonly taxesIncluded?: boolean;
|
|
32
40
|
/**
|
|
33
41
|
* The subtotal amount before taxes and after discounts are applied, as a `Money` object. This represents the sum of all line item prices (quantity × unit price) minus any discounts, but before tax is added. This is the taxable base amount for most tax calculations.
|
|
34
42
|
*/
|
|
@@ -38,11 +46,11 @@ interface BaseTransactionCompleteEvent {
|
|
|
38
46
|
*/
|
|
39
47
|
readonly grandTotal: Money;
|
|
40
48
|
/**
|
|
41
|
-
* An array of all payment methods used to complete this transaction. Each payment entry specifies the payment type (for example, cash, credit card), amount
|
|
49
|
+
* An array of all payment methods used to complete this transaction. Each payment entry specifies the payment type (for example, cash, credit card), amount, and currency. For cash payments on sales, the amount is the cash the customer handed over, so it can exceed the amount owed. Multiple entries indicate split payments where the customer paid using multiple methods (for example, part cash, part credit card). The sum of all payment amounts should equal or exceed the `grandTotal` plus any `cashRoundingAdjustment`.
|
|
42
50
|
*/
|
|
43
51
|
readonly paymentMethods: Payment[];
|
|
44
52
|
/**
|
|
45
|
-
* The remaining balance still owed on this transaction as a `Money` object. Typically zero for fully paid transactions. A positive balance indicates partial payment or layaway scenarios. A negative balance indicates overpayment, where change should be returned to the customer. Calculated as: grandTotal minus sum of all payment amounts.
|
|
53
|
+
* The remaining balance still owed on this transaction as a `Money` object. Typically zero for fully paid transactions. A positive balance indicates partial payment or layaway scenarios. A negative balance indicates overpayment, where change should be returned to the customer. Calculated as: `grandTotal` plus any `cashRoundingAdjustment`, minus the sum of all payment amounts. In a split payment where an earlier cash payment already gave change, a balance that is still unpaid is reported as a positive amount without subtracting that change.
|
|
46
54
|
*/
|
|
47
55
|
readonly balanceDue: Money;
|
|
48
56
|
/**
|
|
@@ -62,7 +70,7 @@ interface BaseTransactionCompleteEvent {
|
|
|
62
70
|
*/
|
|
63
71
|
readonly tipAmount?: Money;
|
|
64
72
|
/**
|
|
65
|
-
* The cash rounding adjustment applied to this transaction as a `Money` object. Returns `undefined` when no cash rounding adjustment was applied.
|
|
73
|
+
* The cash rounding adjustment applied to this transaction as a `Money` object. Positive when the cash total was rounded up and negative when it was rounded down. Returns `undefined` when no cash rounding adjustment was applied.
|
|
66
74
|
*/
|
|
67
75
|
readonly cashRoundingAdjustment?: Money;
|
|
68
76
|
}
|
|
@@ -19,6 +19,10 @@ export interface BaseTransactionComplete {
|
|
|
19
19
|
* The unique numeric identifier for the Shopify order created by this transaction. This ID links the POS transaction to the order record in Shopify's system and can be used for order lookups, tracking, and API operations. Returns `undefined` for transactions that don't create orders (for example, reprints) or when order creation is pending.
|
|
20
20
|
*/
|
|
21
21
|
orderId?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The source identifier POS assigned to this transaction. Matches the `sourceIdentifier` of the order this transaction belongs to. Returns `undefined` when POS didn't assign one.
|
|
24
|
+
*/
|
|
25
|
+
sourceIdentifier?: string;
|
|
22
26
|
/**
|
|
23
27
|
* The customer information if this transaction is associated with a customer account. Contains the customer ID for linking to customer records. Returns `undefined` for guest transactions where no customer was selected or when the transaction doesn't support customer association.
|
|
24
28
|
*/
|
|
@@ -31,6 +35,10 @@ export interface BaseTransactionComplete {
|
|
|
31
35
|
* The total tax amount charged on this transaction as a `Money` object. This is the sum of all tax lines and represents the combined tax from all applicable tax jurisdictions and rules. Tax calculations are based on the location, products, customer, and tax settings configured in Shopify.
|
|
32
36
|
*/
|
|
33
37
|
taxTotal: Money;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the prices in this transaction include taxes (tax-inclusive pricing), rather than taxes being added on top. Matches the `taxesIncluded` field on the `Order` object in the GraphQL Admin API. Returns `undefined` when this information isn't available.
|
|
40
|
+
*/
|
|
41
|
+
taxesIncluded?: boolean;
|
|
34
42
|
/**
|
|
35
43
|
* The subtotal amount before taxes and after discounts are applied, as a `Money` object. This represents the sum of all line item prices (quantity × unit price) minus any discounts, but before tax is added. This is the taxable base amount for most tax calculations.
|
|
36
44
|
*/
|
|
@@ -40,11 +48,11 @@ export interface BaseTransactionComplete {
|
|
|
40
48
|
*/
|
|
41
49
|
grandTotal: Money;
|
|
42
50
|
/**
|
|
43
|
-
* An array of all payment methods used to complete this transaction. Each payment entry specifies the payment type (for example, cash, credit card), amount
|
|
51
|
+
* An array of all payment methods used to complete this transaction. Each payment entry specifies the payment type (for example, cash, credit card), amount, and currency. For cash payments on sales, the amount is the cash the customer handed over, so it can exceed the amount owed. Multiple entries indicate split payments where the customer paid using multiple methods (for example, part cash, part credit card). The sum of all payment amounts should equal or exceed the `grandTotal` plus any `cashRoundingAdjustment`.
|
|
44
52
|
*/
|
|
45
53
|
paymentMethods: Payment[];
|
|
46
54
|
/**
|
|
47
|
-
* The remaining balance still owed on this transaction as a `Money` object. Typically `{amount: 0, currency: "USD"}` for fully paid transactions. A positive balance indicates partial payment or layaway scenarios. A negative balance indicates overpayment, where change should be returned to the customer. Calculated as: grandTotal minus sum of all payment amounts.
|
|
55
|
+
* The remaining balance still owed on this transaction as a `Money` object. Typically `{amount: 0, currency: "USD"}` for fully paid transactions. A positive balance indicates partial payment or layaway scenarios. A negative balance indicates overpayment, where change should be returned to the customer. Calculated as: `grandTotal` plus any `cashRoundingAdjustment`, minus the sum of all payment amounts. In a split payment where an earlier cash payment already gave change, a balance that is still unpaid is reported as a positive amount without subtracting that change.
|
|
48
56
|
*/
|
|
49
57
|
balanceDue: Money;
|
|
50
58
|
/**
|
|
@@ -64,7 +72,7 @@ export interface BaseTransactionComplete {
|
|
|
64
72
|
*/
|
|
65
73
|
tipAmount?: Money;
|
|
66
74
|
/**
|
|
67
|
-
* The cash rounding adjustment applied to this transaction as a `Money` object. Returns `undefined` when no cash rounding adjustment was applied.
|
|
75
|
+
* The cash rounding adjustment applied to this transaction as a `Money` object. Positive when the cash total was rounded up and negative when it was rounded down. Returns `undefined` when no cash rounding adjustment was applied.
|
|
68
76
|
*/
|
|
69
77
|
cashRoundingAdjustment?: Money;
|
|
70
78
|
}
|
|
@@ -20,7 +20,7 @@ export type PaymentMethod =
|
|
|
20
20
|
*/
|
|
21
21
|
export interface Payment {
|
|
22
22
|
/**
|
|
23
|
-
* The payment amount.
|
|
23
|
+
* The payment amount. For cash payments on `Sale` transactions in POS 11.16.0 and later, this is the cash the customer handed over, including any change given back. For other payment methods, other transaction types, and cash in earlier POS versions, it's the amount recorded on the payment transaction.
|
|
24
24
|
*/
|
|
25
25
|
amount: number;
|
|
26
26
|
/**
|