@managesome/eposmatic-toolkit 0.2.625 → 0.2.626

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.
@@ -48,4 +48,4 @@ export declare function getLocalDocumentFields(gmtOffset: number, date: Date): {
48
48
  * from the actual `order_settled_at` timestamp expressed in the tenant's time
49
49
  * zone (`operational_time_zone_offset_gmt`).
50
50
  */
51
- export declare function getLocalFieldsFromLocalDate(localDate: string, operational_time_zone_offset_gmt: number, order_settled_at: Date): ILocalTimeFields;
51
+ export declare function getLocalFieldsFromLocalDate(localDate: string, operational_time_zone_offset_gmt: number, createdAt: Date): ILocalTimeFields;
@@ -114,7 +114,7 @@ function getLocalDocumentFields(gmtOffset, date) {
114
114
  * from the actual `order_settled_at` timestamp expressed in the tenant's time
115
115
  * zone (`operational_time_zone_offset_gmt`).
116
116
  */
117
- function getLocalFieldsFromLocalDate(localDate, operational_time_zone_offset_gmt, order_settled_at) {
117
+ function getLocalFieldsFromLocalDate(localDate, operational_time_zone_offset_gmt, createdAt) {
118
118
  const [localYear, localMonth, localDay] = localDate.split('-').map(Number);
119
119
  // localDate is already the tenant's local calendar date, so every date
120
120
  // component is derived directly from the string using pure calendar math
@@ -130,7 +130,7 @@ function getLocalFieldsFromLocalDate(localDate, operational_time_zone_offset_gmt
130
130
  // Time components come from the actual settle timestamp in the tenant's
131
131
  // timezone. The timestamp is normalized with new Date() since callers pass
132
132
  // the field straight from the order (which may be a Date or an ISO string).
133
- const timeFields = getLocalDocumentFields(operational_time_zone_offset_gmt, new Date(order_settled_at));
133
+ const timeFields = getLocalDocumentFields(operational_time_zone_offset_gmt, new Date(createdAt));
134
134
  return {
135
135
  day_index: constants_1.ALL_DAY_INDEX[weekday],
136
136
  localDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.625",
3
+ "version": "0.2.626",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",