@ehrenkind/shopify-lib 0.8.0 → 0.8.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/dist/index.d.cts CHANGED
@@ -20767,58 +20767,74 @@ type SuggestedRefundQuery = {
20767
20767
  suggestedRefund?: Maybe<{
20768
20768
  amountSet: {
20769
20769
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20770
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20770
20771
  };
20771
20772
  maximumRefundableSet: {
20772
20773
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20774
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20773
20775
  };
20774
20776
  subtotalSet: {
20775
20777
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20778
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20776
20779
  };
20777
20780
  totalTaxSet: {
20778
20781
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20782
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20779
20783
  };
20780
20784
  discountedSubtotalSet: {
20781
20785
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20786
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20782
20787
  };
20783
20788
  totalCartDiscountAmountSet: {
20784
20789
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20790
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20785
20791
  };
20786
20792
  shipping: {
20787
20793
  amountSet: {
20788
20794
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20795
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20789
20796
  };
20790
20797
  maximumRefundableSet: {
20791
20798
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20799
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20792
20800
  };
20793
20801
  taxSet: {
20794
20802
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20803
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20795
20804
  };
20796
20805
  };
20797
20806
  refundLineItems: Array<(Pick<RefundLineItem, 'quantity' | 'restockType'> & {
20798
20807
  lineItem: (Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'> & {
20799
20808
  discountedUnitPriceSet: {
20800
20809
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20810
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20801
20811
  };
20802
20812
  totalDiscountSet: {
20803
20813
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20814
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20804
20815
  };
20805
20816
  });
20806
20817
  priceSet: {
20807
20818
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20819
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20808
20820
  };
20809
20821
  subtotalSet: {
20810
20822
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20823
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20811
20824
  };
20812
20825
  totalTaxSet: {
20813
20826
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20827
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20814
20828
  };
20815
20829
  })>;
20816
20830
  suggestedTransactions: Array<(Pick<SuggestedOrderTransaction, 'gateway' | 'kind'> & {
20817
20831
  amountSet: {
20818
20832
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20833
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20819
20834
  };
20820
20835
  maximumRefundableSet?: Maybe<{
20821
20836
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20837
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20822
20838
  }>;
20823
20839
  parentTransaction?: Maybe<Pick<OrderTransaction, 'id'>>;
20824
20840
  })>;
@@ -20846,6 +20862,11 @@ type OrderByIdFullQuery = {
20846
20862
  order?: Maybe<(Pick<Order, 'id' | 'name' | 'createdAt' | 'updatedAt' | 'processedAt' | 'closedAt' | 'cancelledAt' | 'cancelReason' | 'displayFinancialStatus' | 'displayFulfillmentStatus' | 'discountCodes'> & {
20847
20863
  totalPriceSet: {
20848
20864
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20865
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20866
+ };
20867
+ currentTotalPriceSet: {
20868
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20869
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20849
20870
  };
20850
20871
  customer?: Maybe<Pick<Customer$1, 'id' | 'firstName' | 'lastName' | 'email' | 'phone'>>;
20851
20872
  shippingAddress?: Maybe<Pick<MailingAddress, 'firstName' | 'lastName' | 'address1' | 'address2' | 'city' | 'province' | 'country' | 'zip'>>;
@@ -20860,6 +20881,7 @@ type OrderByIdFullQuery = {
20860
20881
  discountAllocations: Array<{
20861
20882
  allocatedAmountSet: {
20862
20883
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20884
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20863
20885
  };
20864
20886
  }>;
20865
20887
  image?: Maybe<Pick<Image, 'url' | 'width' | 'height' | 'altText'>>;
@@ -21178,7 +21200,7 @@ interface GeneratedQueryTypes {
21178
21200
  return: MetaobjectsByTypeQuery;
21179
21201
  variables: MetaobjectsByTypeQueryVariables;
21180
21202
  };
21181
- "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
21203
+ "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
21182
21204
  return: SuggestedRefundQuery;
21183
21205
  variables: SuggestedRefundQueryVariables;
21184
21206
  };
@@ -21186,7 +21208,7 @@ interface GeneratedQueryTypes {
21186
21208
  return: OrderByIdQuery;
21187
21209
  variables: OrderByIdQueryVariables;
21188
21210
  };
21189
- "#graphql\n query orderByIdFull($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n processedAt\n closedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n firstName\n lastName\n email\n phone\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n billingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n lineItems(first: 100) {\n edges {\n node {\n id\n sku\n title\n variantTitle\n quantity\n customAttributes {\n key\n value\n }\n originalUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountAllocations {\n allocatedAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n vendor\n image {\n url\n width\n height\n altText\n }\n lineItemGroup {\n id\n title\n quantity\n variantSku\n }\n }\n }\n }\n discountApplications(first: 20) {\n nodes {\n allocationMethod\n targetType\n value {\n __typename\n ... on PricingPercentageValue {\n percentage\n }\n ... on MoneyV2 {\n amount\n currencyCode\n }\n }\n ... on DiscountCodeApplication {\n code\n }\n }\n }\n fulfillments {\n id\n name\n totalQuantity\n status\n createdAt\n estimatedDeliveryAt\n deliveredAt\n trackingInfo {\n company\n number\n url\n }\n fulfillmentLineItems(first: 100) {\n edges {\n node {\n id\n quantity\n lineItem {\n id\n sku\n }\n }\n }\n }\n }\n shippingLine {\n originalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n taxLines {\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n totalDiscountsSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountCodes\n refunds {\n totalRefundedSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n transactions(first: 50) {\n nodes {\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n }\n": {
21211
+ "#graphql\n query orderByIdFull($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n processedAt\n closedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n currentTotalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n firstName\n lastName\n email\n phone\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n billingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n lineItems(first: 100) {\n edges {\n node {\n id\n sku\n title\n variantTitle\n quantity\n customAttributes {\n key\n value\n }\n originalUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountAllocations {\n allocatedAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n vendor\n image {\n url\n width\n height\n altText\n }\n lineItemGroup {\n id\n title\n quantity\n variantSku\n }\n }\n }\n }\n discountApplications(first: 20) {\n nodes {\n allocationMethod\n targetType\n value {\n __typename\n ... on PricingPercentageValue {\n percentage\n }\n ... on MoneyV2 {\n amount\n currencyCode\n }\n }\n ... on DiscountCodeApplication {\n code\n }\n }\n }\n fulfillments {\n id\n name\n totalQuantity\n status\n createdAt\n estimatedDeliveryAt\n deliveredAt\n trackingInfo {\n company\n number\n url\n }\n fulfillmentLineItems(first: 100) {\n edges {\n node {\n id\n quantity\n lineItem {\n id\n sku\n }\n }\n }\n }\n }\n shippingLine {\n originalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n taxLines {\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n totalDiscountsSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountCodes\n refunds {\n totalRefundedSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n transactions(first: 50) {\n nodes {\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n }\n": {
21190
21212
  return: OrderByIdFullQuery;
21191
21213
  variables: OrderByIdFullQueryVariables;
21192
21214
  };
@@ -21966,4 +21988,4 @@ type Metaobject = NonNullable<MetaobjectByHandleQuery['metaobjectByHandle']>;
21966
21988
  */
21967
21989
  declare function getMetaobjectByHandle(handle: MetaobjectHandleInput, retries?: number): Promise<Metaobject | undefined>;
21968
21990
 
21969
- export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type EmailMarketingState, type Fulfillment, type FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type GetMetaobjectsByTypeOptions, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type MarketingOptInLevel, type MetafieldDefinitionInput, type MetafieldDefinitionUpdateInput, type MetafieldsSetInput, type Metaobject, type MetaobjectDefinitionSummary, type MetaobjectFieldDefinition, type MetaobjectHandleInput, type MetaobjectStatus, type MetaobjectSummary, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, type SetMetafield, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateCustomerEmailMarketingConsentInput, type UpdateFulfillmentTrackingResult, type UpdatedEmailMarketingConsent, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetafieldDefinition, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, deleteMetaobject, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getMetaobjectDefinitionByType, getMetaobjectsByType, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, isRetryableError, metafieldsSet, parseGid, fetchShopifyGraphql as runShopifyGraphql, setMetaobjectStatus, updateCustomerEmailMarketingConsent, updateFulfillmentTracking, updateMetafieldDefinition, upsertMetaobject };
21991
+ export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, CurrencyCode, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type EmailMarketingState, type Fulfillment, type FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type GetMetaobjectsByTypeOptions, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type MarketingOptInLevel, type MetafieldDefinitionInput, type MetafieldDefinitionUpdateInput, type MetafieldsSetInput, type Metaobject, type MetaobjectDefinitionSummary, type MetaobjectFieldDefinition, type MetaobjectHandleInput, type MetaobjectStatus, type MetaobjectSummary, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, type SetMetafield, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateCustomerEmailMarketingConsentInput, type UpdateFulfillmentTrackingResult, type UpdatedEmailMarketingConsent, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetafieldDefinition, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, deleteMetaobject, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getMetaobjectDefinitionByType, getMetaobjectsByType, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, isRetryableError, metafieldsSet, parseGid, fetchShopifyGraphql as runShopifyGraphql, setMetaobjectStatus, updateCustomerEmailMarketingConsent, updateFulfillmentTracking, updateMetafieldDefinition, upsertMetaobject };
package/dist/index.d.ts CHANGED
@@ -20767,58 +20767,74 @@ type SuggestedRefundQuery = {
20767
20767
  suggestedRefund?: Maybe<{
20768
20768
  amountSet: {
20769
20769
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20770
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20770
20771
  };
20771
20772
  maximumRefundableSet: {
20772
20773
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20774
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20773
20775
  };
20774
20776
  subtotalSet: {
20775
20777
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20778
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20776
20779
  };
20777
20780
  totalTaxSet: {
20778
20781
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20782
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20779
20783
  };
20780
20784
  discountedSubtotalSet: {
20781
20785
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20786
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20782
20787
  };
20783
20788
  totalCartDiscountAmountSet: {
20784
20789
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20790
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20785
20791
  };
20786
20792
  shipping: {
20787
20793
  amountSet: {
20788
20794
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20795
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20789
20796
  };
20790
20797
  maximumRefundableSet: {
20791
20798
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20799
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20792
20800
  };
20793
20801
  taxSet: {
20794
20802
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20803
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20795
20804
  };
20796
20805
  };
20797
20806
  refundLineItems: Array<(Pick<RefundLineItem, 'quantity' | 'restockType'> & {
20798
20807
  lineItem: (Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'> & {
20799
20808
  discountedUnitPriceSet: {
20800
20809
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20810
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20801
20811
  };
20802
20812
  totalDiscountSet: {
20803
20813
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20814
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20804
20815
  };
20805
20816
  });
20806
20817
  priceSet: {
20807
20818
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20819
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20808
20820
  };
20809
20821
  subtotalSet: {
20810
20822
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20823
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20811
20824
  };
20812
20825
  totalTaxSet: {
20813
20826
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20827
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20814
20828
  };
20815
20829
  })>;
20816
20830
  suggestedTransactions: Array<(Pick<SuggestedOrderTransaction, 'gateway' | 'kind'> & {
20817
20831
  amountSet: {
20818
20832
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20833
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20819
20834
  };
20820
20835
  maximumRefundableSet?: Maybe<{
20821
20836
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20837
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20822
20838
  }>;
20823
20839
  parentTransaction?: Maybe<Pick<OrderTransaction, 'id'>>;
20824
20840
  })>;
@@ -20846,6 +20862,11 @@ type OrderByIdFullQuery = {
20846
20862
  order?: Maybe<(Pick<Order, 'id' | 'name' | 'createdAt' | 'updatedAt' | 'processedAt' | 'closedAt' | 'cancelledAt' | 'cancelReason' | 'displayFinancialStatus' | 'displayFulfillmentStatus' | 'discountCodes'> & {
20847
20863
  totalPriceSet: {
20848
20864
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20865
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20866
+ };
20867
+ currentTotalPriceSet: {
20868
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20869
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20849
20870
  };
20850
20871
  customer?: Maybe<Pick<Customer$1, 'id' | 'firstName' | 'lastName' | 'email' | 'phone'>>;
20851
20872
  shippingAddress?: Maybe<Pick<MailingAddress, 'firstName' | 'lastName' | 'address1' | 'address2' | 'city' | 'province' | 'country' | 'zip'>>;
@@ -20860,6 +20881,7 @@ type OrderByIdFullQuery = {
20860
20881
  discountAllocations: Array<{
20861
20882
  allocatedAmountSet: {
20862
20883
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20884
+ presentmentMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
20863
20885
  };
20864
20886
  }>;
20865
20887
  image?: Maybe<Pick<Image, 'url' | 'width' | 'height' | 'altText'>>;
@@ -21178,7 +21200,7 @@ interface GeneratedQueryTypes {
21178
21200
  return: MetaobjectsByTypeQuery;
21179
21201
  variables: MetaobjectsByTypeQueryVariables;
21180
21202
  };
21181
- "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
21203
+ "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
21182
21204
  return: SuggestedRefundQuery;
21183
21205
  variables: SuggestedRefundQueryVariables;
21184
21206
  };
@@ -21186,7 +21208,7 @@ interface GeneratedQueryTypes {
21186
21208
  return: OrderByIdQuery;
21187
21209
  variables: OrderByIdQueryVariables;
21188
21210
  };
21189
- "#graphql\n query orderByIdFull($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n processedAt\n closedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n firstName\n lastName\n email\n phone\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n billingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n lineItems(first: 100) {\n edges {\n node {\n id\n sku\n title\n variantTitle\n quantity\n customAttributes {\n key\n value\n }\n originalUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountAllocations {\n allocatedAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n vendor\n image {\n url\n width\n height\n altText\n }\n lineItemGroup {\n id\n title\n quantity\n variantSku\n }\n }\n }\n }\n discountApplications(first: 20) {\n nodes {\n allocationMethod\n targetType\n value {\n __typename\n ... on PricingPercentageValue {\n percentage\n }\n ... on MoneyV2 {\n amount\n currencyCode\n }\n }\n ... on DiscountCodeApplication {\n code\n }\n }\n }\n fulfillments {\n id\n name\n totalQuantity\n status\n createdAt\n estimatedDeliveryAt\n deliveredAt\n trackingInfo {\n company\n number\n url\n }\n fulfillmentLineItems(first: 100) {\n edges {\n node {\n id\n quantity\n lineItem {\n id\n sku\n }\n }\n }\n }\n }\n shippingLine {\n originalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n taxLines {\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n totalDiscountsSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountCodes\n refunds {\n totalRefundedSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n transactions(first: 50) {\n nodes {\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n }\n": {
21211
+ "#graphql\n query orderByIdFull($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n processedAt\n closedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n currentTotalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n firstName\n lastName\n email\n phone\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n billingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n lineItems(first: 100) {\n edges {\n node {\n id\n sku\n title\n variantTitle\n quantity\n customAttributes {\n key\n value\n }\n originalUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountAllocations {\n allocatedAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n presentmentMoney {\n amount\n currencyCode\n }\n }\n }\n vendor\n image {\n url\n width\n height\n altText\n }\n lineItemGroup {\n id\n title\n quantity\n variantSku\n }\n }\n }\n }\n discountApplications(first: 20) {\n nodes {\n allocationMethod\n targetType\n value {\n __typename\n ... on PricingPercentageValue {\n percentage\n }\n ... on MoneyV2 {\n amount\n currencyCode\n }\n }\n ... on DiscountCodeApplication {\n code\n }\n }\n }\n fulfillments {\n id\n name\n totalQuantity\n status\n createdAt\n estimatedDeliveryAt\n deliveredAt\n trackingInfo {\n company\n number\n url\n }\n fulfillmentLineItems(first: 100) {\n edges {\n node {\n id\n quantity\n lineItem {\n id\n sku\n }\n }\n }\n }\n }\n shippingLine {\n originalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n taxLines {\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n totalDiscountsSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountCodes\n refunds {\n totalRefundedSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n transactions(first: 50) {\n nodes {\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n }\n }\n": {
21190
21212
  return: OrderByIdFullQuery;
21191
21213
  variables: OrderByIdFullQueryVariables;
21192
21214
  };
@@ -21966,4 +21988,4 @@ type Metaobject = NonNullable<MetaobjectByHandleQuery['metaobjectByHandle']>;
21966
21988
  */
21967
21989
  declare function getMetaobjectByHandle(handle: MetaobjectHandleInput, retries?: number): Promise<Metaobject | undefined>;
21968
21990
 
21969
- export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type EmailMarketingState, type Fulfillment, type FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type GetMetaobjectsByTypeOptions, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type MarketingOptInLevel, type MetafieldDefinitionInput, type MetafieldDefinitionUpdateInput, type MetafieldsSetInput, type Metaobject, type MetaobjectDefinitionSummary, type MetaobjectFieldDefinition, type MetaobjectHandleInput, type MetaobjectStatus, type MetaobjectSummary, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, type SetMetafield, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateCustomerEmailMarketingConsentInput, type UpdateFulfillmentTrackingResult, type UpdatedEmailMarketingConsent, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetafieldDefinition, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, deleteMetaobject, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getMetaobjectDefinitionByType, getMetaobjectsByType, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, isRetryableError, metafieldsSet, parseGid, fetchShopifyGraphql as runShopifyGraphql, setMetaobjectStatus, updateCustomerEmailMarketingConsent, updateFulfillmentTracking, updateMetafieldDefinition, upsertMetaobject };
21991
+ export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, CurrencyCode, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type EmailMarketingState, type Fulfillment, type FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type GetMetaobjectsByTypeOptions, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type MarketingOptInLevel, type MetafieldDefinitionInput, type MetafieldDefinitionUpdateInput, type MetafieldsSetInput, type Metaobject, type MetaobjectDefinitionSummary, type MetaobjectFieldDefinition, type MetaobjectHandleInput, type MetaobjectStatus, type MetaobjectSummary, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, type SetMetafield, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateCustomerEmailMarketingConsentInput, type UpdateFulfillmentTrackingResult, type UpdatedEmailMarketingConsent, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetafieldDefinition, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, deleteMetaobject, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getMetaobjectDefinitionByType, getMetaobjectsByType, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, isRetryableError, metafieldsSet, parseGid, fetchShopifyGraphql as runShopifyGraphql, setMetaobjectStatus, updateCustomerEmailMarketingConsent, updateFulfillmentTracking, updateMetafieldDefinition, upsertMetaobject };