@doctocar/tooling 0.3.1-32 → 0.3.1-33

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.
Files changed (124) hide show
  1. package/dist/enums/payment/PaymentStatusTypes.enum.d.ts +0 -2
  2. package/dist/enums/payment/PaymentStatusTypes.enum.js +0 -2
  3. package/dist/firebase/firestore/enums/FirestoreCollections.enum.d.ts +1 -0
  4. package/dist/firebase/firestore/enums/FirestoreCollections.enum.js +1 -0
  5. package/dist/firebase/firestore/enums/index.d.ts +1 -0
  6. package/dist/firebase/firestore/enums/index.js +1 -0
  7. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundReasonTypes.enum.d.ts +6 -0
  8. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundReasonTypes.enum.js +10 -0
  9. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundSourceTypes.enum.d.ts +4 -0
  10. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundSourceTypes.enum.js +8 -0
  11. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundStatusTypes.enum.d.ts +7 -0
  12. package/dist/firebase/firestore/enums/orders/OrderPaymentRefundStatusTypes.enum.js +11 -0
  13. package/dist/firebase/firestore/enums/orders/OrderStatusTypes.enum.d.ts +2 -1
  14. package/dist/firebase/firestore/enums/orders/OrderStatusTypes.enum.js +1 -0
  15. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentReasonTypes.enum.d.ts +6 -0
  16. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentReasonTypes.enum.js +10 -0
  17. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStatusTypes.enum.d.ts +7 -0
  18. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStatusTypes.enum.js +11 -0
  19. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStepStatusTypes.enum.d.ts +7 -0
  20. package/dist/firebase/firestore/enums/ordersRefundIntents/OrderRefundIntentStepStatusTypes.enum.js +11 -0
  21. package/dist/firebase/firestore/enums/ordersRefundIntents/index.d.ts +3 -0
  22. package/dist/firebase/firestore/enums/ordersRefundIntents/index.js +19 -0
  23. package/dist/firebase/firestore/maps/FirestoreCollectionDocumentTypeMap.d.ts +2 -1
  24. package/dist/firebase/firestore/types/bookedSlot/FirestoreBookedSlotDocument.type.d.ts +2 -2
  25. package/dist/firebase/firestore/types/index.d.ts +1 -0
  26. package/dist/firebase/firestore/types/index.js +1 -0
  27. package/dist/firebase/firestore/types/marketplaceFinancialReports/FirestoreMarketplaceFinancialReportsDocument.type.d.ts +3 -3
  28. package/dist/firebase/firestore/types/order/FirestoreBookedSlotCancellationDetails.type.d.ts +6 -0
  29. package/dist/firebase/firestore/types/order/FirestoreBookedSlotCancellationDetails.type.js +2 -0
  30. package/dist/firebase/firestore/types/order/FirestoreOrderDocument.type.d.ts +5 -55
  31. package/dist/firebase/firestore/types/order/FirestoreOrderPaymentBreakdown.type.d.ts +42 -0
  32. package/dist/firebase/firestore/types/order/FirestoreOrderPaymentBreakdown.type.js +2 -0
  33. package/dist/firebase/firestore/types/order/FirestoreOrderPricingDetails.type.d.ts +48 -0
  34. package/dist/firebase/firestore/types/order/FirestoreOrderPricingDetails.type.js +2 -0
  35. package/dist/firebase/firestore/types/order/OrderExternalPaymentRefund.type.d.ts +13 -0
  36. package/dist/firebase/firestore/types/order/OrderExternalPaymentRefund.type.js +2 -0
  37. package/dist/firebase/firestore/types/order/OrderPaymentBreakdownRefund.type.d.ts +24 -0
  38. package/dist/firebase/firestore/types/order/OrderPaymentBreakdownRefund.type.js +2 -0
  39. package/dist/firebase/firestore/types/order/OrderPaymentRefund.type.d.ts +12 -0
  40. package/dist/firebase/firestore/types/order/OrderPaymentRefund.type.js +2 -0
  41. package/dist/firebase/firestore/types/order/OrderPlatformBalancePaymentRefund.type.d.ts +8 -0
  42. package/dist/firebase/firestore/types/order/OrderPlatformBalancePaymentRefund.type.js +2 -0
  43. package/dist/firebase/firestore/types/order/index.d.ts +3 -0
  44. package/dist/firebase/firestore/types/order/index.js +3 -0
  45. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntent.type.d.ts +27 -0
  46. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntent.type.js +2 -0
  47. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntentDocument.type.d.ts +35 -0
  48. package/dist/firebase/firestore/types/ordersRefundIntents/FirestoreOrderRefundIntentDocument.type.js +2 -0
  49. package/dist/firebase/firestore/types/ordersRefundIntents/index.d.ts +1 -0
  50. package/dist/firebase/firestore/types/ordersRefundIntents/index.js +17 -0
  51. package/dist/firebase/firestore/utils/order/buildFirestoreOrderPricingDetailsFromInvoiceTotals.util.d.ts +8 -0
  52. package/dist/firebase/firestore/utils/order/buildFirestoreOrderPricingDetailsFromInvoiceTotals.util.js +37 -0
  53. package/dist/firebase/firestore/utils/stubs/index.d.ts +1 -0
  54. package/dist/firebase/firestore/utils/stubs/index.js +1 -0
  55. package/dist/firebase/firestore/utils/stubs/marketplaceFinancialReports/firestoreMarketplaceFinancialReportsDocumentStub.js +3 -3
  56. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderDocumentPricingDetailStub.js +36 -10
  57. package/dist/firebase/firestore/utils/stubs/order/firestoreOrderDocumentStub.js +24 -4
  58. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentDocumentStub.d.ts +2 -0
  59. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentDocumentStub.js +29 -0
  60. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentStub.d.ts +2 -0
  61. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/firestoreOrderRefundIntentStub.js +19 -0
  62. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/index.d.ts +1 -0
  63. package/dist/firebase/firestore/utils/stubs/ordersRefundIntents/index.js +17 -0
  64. package/dist/gcp/pubsub/enums/PubSubTopics.enum.d.ts +6 -2
  65. package/dist/gcp/pubsub/enums/PubSubTopics.enum.js +5 -1
  66. package/dist/gcp/pubsub/maps/PubSubTopicMessageMap.map.d.ts +6 -2
  67. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundFailedMessage.type.d.ts +5 -0
  68. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundFailedMessage.type.js +2 -0
  69. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundSucceededMessage.type.d.ts +5 -0
  70. package/dist/gcp/pubsub/types/orders/PubSubOrderExternalRefundSucceededMessage.type.js +2 -0
  71. package/dist/gcp/pubsub/types/orders/PubSubOrderOperationalStateRecomputeRequestedMessage.type.d.ts +3 -0
  72. package/dist/gcp/pubsub/types/orders/PubSubOrderOperationalStateRecomputeRequestedMessage.type.js +2 -0
  73. package/dist/gcp/pubsub/types/orders/PubSubOrderRefundRequestedMessage.type.d.ts +3 -0
  74. package/dist/gcp/pubsub/types/orders/PubSubOrderRefundRequestedMessage.type.js +2 -0
  75. package/dist/gcp/pubsub/types/orders/PubSubProcessOrderRefundIntentMessage.type.d.ts +4 -0
  76. package/dist/gcp/pubsub/types/orders/PubSubProcessOrderRefundIntentMessage.type.js +2 -0
  77. package/dist/gcp/pubsub/types/orders/index.d.ts +4 -1
  78. package/dist/gcp/pubsub/types/orders/index.js +4 -1
  79. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderBookedSlotReleaseRequestedMessage.type.d.ts +10 -0
  80. package/dist/gcp/pubsub/types/serviceProvider/PubSubServiceProviderBookedSlotReleaseRequestedMessage.type.js +2 -0
  81. package/dist/gcp/pubsub/types/serviceProvider/index.d.ts +1 -0
  82. package/dist/gcp/pubsub/types/serviceProvider/index.js +1 -0
  83. package/dist/gcp/pubsub/utils/stubs/index.d.ts +4 -0
  84. package/dist/gcp/pubsub/utils/stubs/index.js +4 -0
  85. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundFailedMessageStub.d.ts +2 -0
  86. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundFailedMessageStub.js +11 -0
  87. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundSucceededMessageStub.d.ts +2 -0
  88. package/dist/gcp/pubsub/utils/stubs/pubSubOrderExternalRefundSucceededMessageStub.js +11 -0
  89. package/dist/gcp/pubsub/utils/stubs/pubSubOrderOperationalStateRecomputeRequestedMessageStub.d.ts +2 -0
  90. package/dist/gcp/pubsub/utils/stubs/pubSubOrderOperationalStateRecomputeRequestedMessageStub.js +9 -0
  91. package/dist/gcp/pubsub/utils/stubs/pubSubOrderRefundRequestedMessageStub.d.ts +2 -0
  92. package/dist/gcp/pubsub/utils/stubs/pubSubOrderRefundRequestedMessageStub.js +9 -0
  93. package/dist/gcp/pubsub/utils/stubs/pubSubProcessOrderRefundIntentMessageStub.d.ts +2 -0
  94. package/dist/gcp/pubsub/utils/stubs/pubSubProcessOrderRefundIntentMessageStub.js +10 -0
  95. package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.d.ts +1 -0
  96. package/dist/gcp/pubsub/utils/stubs/serviceProvider/index.js +1 -0
  97. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderBookedSlotReleaseRequestedMessageStub.d.ts +2 -0
  98. package/dist/gcp/pubsub/utils/stubs/serviceProvider/pubSubServiceProviderBookedSlotReleaseRequestedMessageStub.js +15 -0
  99. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.test.d.ts +1 -0
  100. package/dist/pricing/__tests__/calculateInvoiceTotalWithTax.test.js +955 -0
  101. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.test.d.ts +1 -0
  102. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.test.js +58 -0
  103. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.util.test.d.ts +1 -0
  104. package/dist/pricing/__tests__/computeOrderPaymentBreakdownWithPlatformBalance.util.test.js +58 -0
  105. package/dist/pricing/computeOrderPaymentBreakdownWithPlatformBalance.d.ts +6 -0
  106. package/dist/pricing/computeOrderPaymentBreakdownWithPlatformBalance.js +22 -0
  107. package/dist/pricing/index.d.ts +1 -0
  108. package/dist/pricing/index.js +1 -0
  109. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceParams.type.d.ts +5 -0
  110. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceParams.type.js +2 -0
  111. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceResult.type.d.ts +6 -0
  112. package/dist/pricing/types/ComputeOrderPaymentBreakdownWithPlatformBalanceResult.type.js +2 -0
  113. package/dist/pricing/types/index.d.ts +2 -0
  114. package/dist/pricing/types/index.js +2 -0
  115. package/dist/pricing/utils/applyBasisPointsRateHalfUp.util.js +1 -1
  116. package/dist/pricing/utils/stubs/computeOrderPaymentBreakdownWithPlatformBalanceStub.d.ts +2 -0
  117. package/dist/pricing/utils/stubs/computeOrderPaymentBreakdownWithPlatformBalanceStub.js +12 -0
  118. package/dist/pricing/utils/stubs/index.d.ts +1 -0
  119. package/dist/pricing/utils/stubs/index.js +1 -0
  120. package/dist/stripe/types/StripeCustomRefundMetadata.type.d.ts +8 -0
  121. package/dist/stripe/types/StripeCustomRefundMetadata.type.js +2 -0
  122. package/dist/stripe/types/index.d.ts +1 -0
  123. package/dist/stripe/types/index.js +1 -0
  124. package/package.json +1 -1
@@ -3,7 +3,5 @@ export declare enum PaymentStatusTypes {
3
3
  SUCCEEDED = "succeeded",
4
4
  FAILED = "failed",
5
5
  CANCELLED = "cancelled",
6
- REFUND_PENDING = "refund_pending",
7
- REFUNDED = "refunded",
8
6
  DISPUTED = "disputed"
9
7
  }
@@ -7,7 +7,5 @@ var PaymentStatusTypes;
7
7
  PaymentStatusTypes["SUCCEEDED"] = "succeeded";
8
8
  PaymentStatusTypes["FAILED"] = "failed";
9
9
  PaymentStatusTypes["CANCELLED"] = "cancelled";
10
- PaymentStatusTypes["REFUND_PENDING"] = "refund_pending";
11
- PaymentStatusTypes["REFUNDED"] = "refunded";
12
10
  PaymentStatusTypes["DISPUTED"] = "disputed";
13
11
  })(PaymentStatusTypes || (exports.PaymentStatusTypes = PaymentStatusTypes = {}));
@@ -11,6 +11,7 @@ export declare enum FirestoreCollections {
11
11
  ORDERS_REVIEWS_SANDBOX = "orders_reviews_sandbox",
12
12
  ORDERS_ISSUES = "orders_issues",
13
13
  ORDERS_ISSUES_SANDBOX = "orders_issues_sandbox",
14
+ ORDERS_REFUND_INTENTS = "orders_refund_intents",
14
15
  ENTITIES = "entities",
15
16
  ENTITY_MEMBERS = "entity_members",
16
17
  ENTITY_MEMBER_INVITES = "entity_member_invites",
@@ -15,6 +15,7 @@ var FirestoreCollections;
15
15
  FirestoreCollections["ORDERS_REVIEWS_SANDBOX"] = "orders_reviews_sandbox";
16
16
  FirestoreCollections["ORDERS_ISSUES"] = "orders_issues";
17
17
  FirestoreCollections["ORDERS_ISSUES_SANDBOX"] = "orders_issues_sandbox";
18
+ FirestoreCollections["ORDERS_REFUND_INTENTS"] = "orders_refund_intents";
18
19
  FirestoreCollections["ENTITIES"] = "entities";
19
20
  FirestoreCollections["ENTITY_MEMBERS"] = "entity_members";
20
21
  FirestoreCollections["ENTITY_MEMBER_INVITES"] = "entity_member_invites";
@@ -18,6 +18,7 @@ export * from "./walletLedgerEntry";
18
18
  export * from "./walletWithdrawalIntents";
19
19
  export * from "./platformBalancesLedgerEntry";
20
20
  export * from "./ordersIssues";
21
+ export * from "./ordersRefundIntents";
21
22
  export * from "./marketplaceFinancialReports";
22
23
  export * from "./entities";
23
24
  export * from "./entityMembers";
@@ -34,6 +34,7 @@ __exportStar(require("./walletLedgerEntry"), exports);
34
34
  __exportStar(require("./walletWithdrawalIntents"), exports);
35
35
  __exportStar(require("./platformBalancesLedgerEntry"), exports);
36
36
  __exportStar(require("./ordersIssues"), exports);
37
+ __exportStar(require("./ordersRefundIntents"), exports);
37
38
  __exportStar(require("./marketplaceFinancialReports"), exports);
38
39
  __exportStar(require("./entities"), exports);
39
40
  __exportStar(require("./entityMembers"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum OrderPaymentRefundReasonTypes {
2
+ ORDER_CANCELLATION = "ORDER_CANCELLATION",
3
+ ADMIN_ACTION = "ADMIN_ACTION",
4
+ GOODWILL = "GOODWILL",
5
+ PAYMENT_FAILURE = "PAYMENT_FAILURE"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentRefundReasonTypes = void 0;
4
+ var OrderPaymentRefundReasonTypes;
5
+ (function (OrderPaymentRefundReasonTypes) {
6
+ OrderPaymentRefundReasonTypes["ORDER_CANCELLATION"] = "ORDER_CANCELLATION";
7
+ OrderPaymentRefundReasonTypes["ADMIN_ACTION"] = "ADMIN_ACTION";
8
+ OrderPaymentRefundReasonTypes["GOODWILL"] = "GOODWILL";
9
+ OrderPaymentRefundReasonTypes["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
10
+ })(OrderPaymentRefundReasonTypes || (exports.OrderPaymentRefundReasonTypes = OrderPaymentRefundReasonTypes = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum OrderPaymentRefundSourceTypes {
2
+ EXTERNAL_PAYMENT = "EXTERNAL_PAYMENT",
3
+ PLATFORM_BALANCE = "PLATFORM_BALANCE"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentRefundSourceTypes = void 0;
4
+ var OrderPaymentRefundSourceTypes;
5
+ (function (OrderPaymentRefundSourceTypes) {
6
+ OrderPaymentRefundSourceTypes["EXTERNAL_PAYMENT"] = "EXTERNAL_PAYMENT";
7
+ OrderPaymentRefundSourceTypes["PLATFORM_BALANCE"] = "PLATFORM_BALANCE";
8
+ })(OrderPaymentRefundSourceTypes || (exports.OrderPaymentRefundSourceTypes = OrderPaymentRefundSourceTypes = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum OrderPaymentRefundStatusTypes {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
5
+ SUCCEEDED = "SUCCEEDED",
6
+ FAILED = "FAILED"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentRefundStatusTypes = void 0;
4
+ var OrderPaymentRefundStatusTypes;
5
+ (function (OrderPaymentRefundStatusTypes) {
6
+ OrderPaymentRefundStatusTypes["PENDING"] = "PENDING";
7
+ OrderPaymentRefundStatusTypes["PROCESSING"] = "PROCESSING";
8
+ OrderPaymentRefundStatusTypes["PARTIAL_SUCCESS"] = "PARTIAL_SUCCESS";
9
+ OrderPaymentRefundStatusTypes["SUCCEEDED"] = "SUCCEEDED";
10
+ OrderPaymentRefundStatusTypes["FAILED"] = "FAILED";
11
+ })(OrderPaymentRefundStatusTypes || (exports.OrderPaymentRefundStatusTypes = OrderPaymentRefundStatusTypes = {}));
@@ -4,5 +4,6 @@ export declare enum OrderStatusTypes {
4
4
  CONFIRMED = "confirmed",
5
5
  IN_PROGRESS = "in_progress",
6
6
  SERVICES_COMPLETED = "services_completed",
7
- COMPLETED = "completed"
7
+ COMPLETED = "completed",
8
+ INVOICED = "invoiced"
8
9
  }
@@ -9,4 +9,5 @@ var OrderStatusTypes;
9
9
  OrderStatusTypes["IN_PROGRESS"] = "in_progress";
10
10
  OrderStatusTypes["SERVICES_COMPLETED"] = "services_completed";
11
11
  OrderStatusTypes["COMPLETED"] = "completed";
12
+ OrderStatusTypes["INVOICED"] = "invoiced";
12
13
  })(OrderStatusTypes || (exports.OrderStatusTypes = OrderStatusTypes = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum OrderRefundIntentReasonTypes {
2
+ ORDER_CANCELLATION = "ORDER_CANCELLATION",
3
+ ADMIN_ACTION = "ADMIN_ACTION",
4
+ GOODWILL = "GOODWILL",
5
+ PAYMENT_FAILURE = "PAYMENT_FAILURE"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderRefundIntentReasonTypes = void 0;
4
+ var OrderRefundIntentReasonTypes;
5
+ (function (OrderRefundIntentReasonTypes) {
6
+ OrderRefundIntentReasonTypes["ORDER_CANCELLATION"] = "ORDER_CANCELLATION";
7
+ OrderRefundIntentReasonTypes["ADMIN_ACTION"] = "ADMIN_ACTION";
8
+ OrderRefundIntentReasonTypes["GOODWILL"] = "GOODWILL";
9
+ OrderRefundIntentReasonTypes["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
10
+ })(OrderRefundIntentReasonTypes || (exports.OrderRefundIntentReasonTypes = OrderRefundIntentReasonTypes = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum OrderRefundIntentStatusTypes {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
5
+ SUCCEEDED = "SUCCEEDED",
6
+ FAILED = "FAILED"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderRefundIntentStatusTypes = void 0;
4
+ var OrderRefundIntentStatusTypes;
5
+ (function (OrderRefundIntentStatusTypes) {
6
+ OrderRefundIntentStatusTypes["PENDING"] = "PENDING";
7
+ OrderRefundIntentStatusTypes["PROCESSING"] = "PROCESSING";
8
+ OrderRefundIntentStatusTypes["PARTIAL_SUCCESS"] = "PARTIAL_SUCCESS";
9
+ OrderRefundIntentStatusTypes["SUCCEEDED"] = "SUCCEEDED";
10
+ OrderRefundIntentStatusTypes["FAILED"] = "FAILED";
11
+ })(OrderRefundIntentStatusTypes || (exports.OrderRefundIntentStatusTypes = OrderRefundIntentStatusTypes = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum OrderRefundIntentStepStatusTypes {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ SUCCEEDED = "SUCCEEDED",
5
+ FAILED = "FAILED",
6
+ NOT_APPLICABLE = "NOT_APPLICABLE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderRefundIntentStepStatusTypes = void 0;
4
+ var OrderRefundIntentStepStatusTypes;
5
+ (function (OrderRefundIntentStepStatusTypes) {
6
+ OrderRefundIntentStepStatusTypes["PENDING"] = "PENDING";
7
+ OrderRefundIntentStepStatusTypes["PROCESSING"] = "PROCESSING";
8
+ OrderRefundIntentStepStatusTypes["SUCCEEDED"] = "SUCCEEDED";
9
+ OrderRefundIntentStepStatusTypes["FAILED"] = "FAILED";
10
+ OrderRefundIntentStepStatusTypes["NOT_APPLICABLE"] = "NOT_APPLICABLE";
11
+ })(OrderRefundIntentStepStatusTypes || (exports.OrderRefundIntentStepStatusTypes = OrderRefundIntentStepStatusTypes = {}));
@@ -0,0 +1,3 @@
1
+ export * from "./OrderRefundIntentStatusTypes.enum";
2
+ export * from "./OrderRefundIntentStepStatusTypes.enum";
3
+ export * from "./OrderRefundIntentReasonTypes.enum";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./OrderRefundIntentStatusTypes.enum"), exports);
18
+ __exportStar(require("./OrderRefundIntentStepStatusTypes.enum"), exports);
19
+ __exportStar(require("./OrderRefundIntentReasonTypes.enum"), exports);
@@ -1,5 +1,5 @@
1
1
  import { FirestoreCollections } from "../enums";
2
- import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreServiceProviderUserPublicDocument, FirestorePromoCodeDocument, FirestorePromoCodeRedemptionDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestorePlatformBalancesDocument, FirestorePlatformBalancesLedgerEntryDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
2
+ import type { FirestoreBookedSlotDocument, FirestoreDailyMetricsDocument, FirestoreDebugPublicConfigDocument, FirestoreDeviceTokenDocument, FirestoreEmailsBlacklistDocument, FirestoreEmailsSoftBounceDocument, FirestoreEntityDocument, FirestoreEntityMemberDocument, FirestoreEntityMemberInviteDocument, FirestoreEntityUniqueKeyDocument, FirestoreFunctionsDeploymentRunsDocument, FirestoreGlobalMetricsDocument, FirestoreInvoiceCounterDocument, FirestoreMarketplaceFinancialReportsDocument, FirestoreMessageDocument, FirestoreNotificationEventDeliveryStateDocument, FirestoreNotificationEventsPublicConfigDocument, FirestoreOnTaskExecutionStateDocument, FirestoreOrderDocument, FirestoreOrderIssueDocument, FirestoreOrderRefundIntentDocument, FirestoreOrderReviewDocument, FirestoreOrdersPublicConfigDocument, FirestorePaymentIntentDocument, FirestorePlatformPublicConfigDocument, FirestorePricingPublicConfigDocument, FirestoreServiceProviderUserPublicDocument, FirestorePromoCodeDocument, FirestorePromoCodeRedemptionDocument, FirestoreRateLimitDocument, FirestoreServicesPublicConfigDocument, FirestoreSlotDocument, FirestoreUserDocument, FirestoreUserUploadRateLimitDocument, FirestoreVehicleDocument, FirestorePlatformBalancesDocument, FirestorePlatformBalancesLedgerEntryDocument, FirestoreWalletsDocument, FirestoreWalletsLedgerEntryDocument, FirestoreWalletsWithdrawalIntentsDocument } from "../types";
3
3
  type FirestoreCollectionDocumentTypeMapBase = {
4
4
  [FirestoreCollections.USERS]: FirestoreUserDocument;
5
5
  [FirestoreCollections.DEVICE_TOKENS]: FirestoreDeviceTokenDocument;
@@ -23,6 +23,7 @@ type FirestoreCollectionDocumentTypeMapBase = {
23
23
  [FirestoreCollections.ORDERS_REVIEWS_SANDBOX]: FirestoreOrderReviewDocument;
24
24
  [FirestoreCollections.ORDERS_ISSUES]: FirestoreOrderIssueDocument;
25
25
  [FirestoreCollections.ORDERS_ISSUES_SANDBOX]: FirestoreOrderIssueDocument;
26
+ [FirestoreCollections.ORDERS_REFUND_INTENTS]: FirestoreOrderRefundIntentDocument;
26
27
  [FirestoreCollections.ON_TASK_EXECUTION_STATE]: FirestoreOnTaskExecutionStateDocument;
27
28
  [FirestoreCollections.PUBLIC_CONFIGS]: FirestorePricingPublicConfigDocument | FirestorePlatformPublicConfigDocument | FirestoreDebugPublicConfigDocument | FirestoreOrdersPublicConfigDocument | FirestoreServicesPublicConfigDocument | FirestoreNotificationEventsPublicConfigDocument;
28
29
  [FirestoreCollections.PAYMENT_INTENTS]: FirestorePaymentIntentDocument;
@@ -1,7 +1,7 @@
1
1
  import type { TimestampRange } from "../../../types";
2
2
  import type { BookedSlotStatus } from "../../enums";
3
3
  import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
4
- import type { FirestoreOrderCancellationDetails } from "../order";
4
+ import type { FirestoreBookedSlotCancellationDetails } from "../order";
5
5
  export type FirestoreBookedSlotDocument = {
6
6
  createdAt: FirestoreTimestamp;
7
7
  updatedAt: FirestoreTimestamp;
@@ -10,6 +10,6 @@ export type FirestoreBookedSlotDocument = {
10
10
  orderId: string;
11
11
  capacity: number;
12
12
  timestampRange: TimestampRange;
13
- cancellationDetails?: FirestoreOrderCancellationDetails;
13
+ cancellationDetails?: FirestoreBookedSlotCancellationDetails;
14
14
  ttlExpiration?: FirestoreTimestamp;
15
15
  };
@@ -10,6 +10,7 @@ export * from "./vehicles";
10
10
  export * from "./FirestoreTimestamp.type";
11
11
  export * from "./order";
12
12
  export * from "./ordersIssues";
13
+ export * from "./ordersRefundIntents";
13
14
  export * from "./ordersReviews";
14
15
  export * from "./configs";
15
16
  export * from "./payments";
@@ -26,6 +26,7 @@ __exportStar(require("./vehicles"), exports);
26
26
  __exportStar(require("./FirestoreTimestamp.type"), exports);
27
27
  __exportStar(require("./order"), exports);
28
28
  __exportStar(require("./ordersIssues"), exports);
29
+ __exportStar(require("./ordersRefundIntents"), exports);
29
30
  __exportStar(require("./ordersReviews"), exports);
30
31
  __exportStar(require("./configs"), exports);
31
32
  __exportStar(require("./payments"), exports);
@@ -21,9 +21,9 @@ export type FirestoreMarketplaceFinancialReportsDocument = {
21
21
  totalServicesPreTaxInCents: number;
22
22
  totalServicesVatInCents: number;
23
23
  totalServicesPostTaxInCents: number;
24
- totalPreTaxInCents: number;
25
- totalVatInCents: number;
26
- totalPostTaxInCents: number;
24
+ totalOrderPreTaxInCents: number;
25
+ totalOrderVatInCents: number;
26
+ totalOrderPostTaxInCents: number;
27
27
  };
28
28
  metrics: {
29
29
  ordersFetchedCount: number;
@@ -0,0 +1,6 @@
1
+ import type { OrderCancellationByTypes } from "../../enums";
2
+ export type FirestoreBookedSlotCancellationDetails = {
3
+ reason: string;
4
+ by: OrderCancellationByTypes;
5
+ customReason: string | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
- import type { PaymentProviders, PaymentStatusTypes, SupportedIsoCurrency } from "../../../../enums";
2
- import type { PricingPostTaxLine, PricingPreTaxLine } from "../../../../pricing";
3
- import type { FirestoreOpType, OrderInvoiceGenerationStatus, OrderIssueSeverityLevel, OrderStatusTypes, TaxApplication } from "../../enums";
1
+ import type { FirestoreOpType, OrderInvoiceGenerationStatus, OrderIssueSeverityLevel, OrderStatusTypes } from "../../enums";
4
2
  import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
5
3
  import type { DoctoCarLocation } from "../location";
6
4
  import type { FirestoreOrderDisputeDetails } from "./dispute";
7
5
  import type { FirestoreOrderCancellationDetails } from "./FirestoreOrderCancellationDetails.type";
6
+ import type { FirestoreOrderPaymentBreakdown } from "./FirestoreOrderPaymentBreakdown.type";
7
+ import type { FirestoreOrderPricingDetails } from "./FirestoreOrderPricingDetails.type";
8
8
  import type { FirestoreOrderServiceDetails } from "./FirestoreOrderServiceDetails.type";
9
9
  import type { OrderOperationalBooleanOps } from "./OrderOperationalBooleanOps.type";
10
10
  import type { OrderOperationalOpsRestrictions } from "./OrderOperationalOpsRestrictions.type";
@@ -92,26 +92,6 @@ export type FirestoreOrderDocument = {
92
92
  capacity: number;
93
93
  };
94
94
  servicesDetails: Array<FirestoreOrderServiceDetails>;
95
- pricingDetails: {
96
- calculationVersion: number;
97
- pricingPreTaxLines: Array<PricingPreTaxLine>;
98
- pricingPostTaxLines: Array<PricingPostTaxLine>;
99
- totalServicesPreTaxInCents: number;
100
- totalServicesPostTaxInCents: number;
101
- totalServicesVatInCents: number;
102
- totalMarketplaceFeePreTaxInCents: number;
103
- totalMarketplaceFeePostTaxInCents: number;
104
- totalMarketplaceFeeVatInCents: number;
105
- totalPreTaxInCents: number;
106
- totalPostTaxInCents: number;
107
- totalVatInCents: number;
108
- serviceTaxApplication: TaxApplication;
109
- marketplaceFeeTaxApplication: TaxApplication;
110
- effectiveServiceVatRateBasisPoints: number;
111
- effectiveMarketplaceFeeVatRateBasisPoints: number;
112
- serviceProviderPayoutInCents: number;
113
- currency: SupportedIsoCurrency;
114
- };
115
95
  financialDocuments: {
116
96
  invoices?: {
117
97
  marketplace?: {
@@ -136,38 +116,8 @@ export type FirestoreOrderDocument = {
136
116
  };
137
117
  };
138
118
  cancellationDetails?: FirestoreOrderCancellationDetails;
139
- paymentSummary?: {
140
- updatedAt: FirestoreTimestamp;
141
- provider: PaymentProviders;
142
- status: PaymentStatusTypes;
143
- amountInCents: number;
144
- currency: SupportedIsoCurrency;
145
- invoiceTotalAmountInCents?: number;
146
- creditsUsedInCents?: number;
147
- remainingAmountToChargeInCents?: number;
148
- paidAt?: FirestoreTimestamp;
149
- authorizedAt?: FirestoreTimestamp;
150
- capturedAt?: FirestoreTimestamp;
151
- refundedAt?: FirestoreTimestamp;
152
- refundRequestedAt?: FirestoreTimestamp | null;
153
- failedAt?: FirestoreTimestamp;
154
- declinedCode?: string;
155
- declinedMessage?: string;
156
- refundAmountInCents?: number;
157
- refundReason?: string;
158
- stripe?: {
159
- customerId?: string;
160
- connectAccountId?: string;
161
- paymentMethodId?: string;
162
- paymentIntentId: string;
163
- paymentIntentIdempotencyKey?: string;
164
- chargeId?: string;
165
- chargeCapturedAt?: FirestoreTimestamp;
166
- feeAmountInCents?: number;
167
- netAmountInCents?: number;
168
- refundId?: string;
169
- };
170
- };
119
+ pricingDetails: FirestoreOrderPricingDetails;
120
+ paymentBreakdown: FirestoreOrderPaymentBreakdown;
171
121
  disputeDetails?: FirestoreOrderDisputeDetails;
172
122
  isTest: boolean;
173
123
  metrics?: {
@@ -0,0 +1,42 @@
1
+ import type { PaymentProviders, PaymentStatusTypes, SupportedIsoCurrency } from "../../../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type FirestoreOrderPaymentBreakdown = {
4
+ updatedAt: FirestoreTimestamp;
5
+ currency: SupportedIsoCurrency;
6
+ totalAmountToPayInCents: number;
7
+ remainingAmountToPayInCents: number;
8
+ remainingServicesAmountToPayInCents: number;
9
+ remainingMarketplaceFeeAmountToPayInCents: number;
10
+ totalRefundedAmountInCents: number;
11
+ totalRefundedMarketplaceFeeAmountInCents: number;
12
+ totalRefundedServicesAmountInCents: number;
13
+ externalPayment?: {
14
+ updatedAt: FirestoreTimestamp;
15
+ provider: PaymentProviders;
16
+ status: PaymentStatusTypes;
17
+ amountInCents: number;
18
+ refundedAmountInCents?: number;
19
+ paidAt?: FirestoreTimestamp;
20
+ authorizedAt?: FirestoreTimestamp;
21
+ capturedAt?: FirestoreTimestamp;
22
+ failedAt?: FirestoreTimestamp;
23
+ declinedCode?: string;
24
+ declinedMessage?: string;
25
+ feeAmountInCents?: number;
26
+ netAmountInCents?: number;
27
+ stripe?: {
28
+ customerId?: string;
29
+ connectAccountId?: string;
30
+ paymentMethodId?: string;
31
+ paymentIntentId: string;
32
+ paymentIntentIdempotencyKey?: string;
33
+ chargeId?: string;
34
+ chargeCapturedAt?: FirestoreTimestamp;
35
+ };
36
+ };
37
+ platformBalancePayment?: {
38
+ updatedAt: FirestoreTimestamp;
39
+ appliedAmountInCents: number;
40
+ refundedAmountInCents?: number;
41
+ };
42
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ import type { SupportedIsoCurrency } from "../../../../enums";
2
+ import type { PricingPostTaxLine, PricingPreTaxLine } from "../../../../pricing";
3
+ import type { TaxApplication } from "../../enums";
4
+ /**
5
+ * Snapshot of order pricing at creation time and its financial lifecycle.
6
+ * `initial*` fields must remain immutable once the order is confirmed.
7
+ * `refunded*` and `total*` are updated when refund intents succeed.
8
+ */
9
+ export type FirestoreOrderPricingDetails = {
10
+ calculationVersion: number;
11
+ pricingPreTaxLines: Array<PricingPreTaxLine>;
12
+ pricingPostTaxLines: Array<PricingPostTaxLine>;
13
+ initialServicesPreTaxInCents: number;
14
+ initialServicesVatInCents: number;
15
+ initialServicesPostTaxInCents: number;
16
+ refundedServicesPreTaxInCents: number;
17
+ refundedServicesVatInCents: number;
18
+ refundedServicesPostTaxInCents: number;
19
+ /** Net final amounts (UI, exports, invoices). */
20
+ totalServicesPreTaxInCents: number;
21
+ totalServicesPostTaxInCents: number;
22
+ totalServicesVatInCents: number;
23
+ initialMarketplaceFeePreTaxInCents: number;
24
+ initialMarketplaceFeeVatInCents: number;
25
+ initialMarketplaceFeePostTaxInCents: number;
26
+ refundedMarketplaceFeePreTaxInCents: number;
27
+ refundedMarketplaceFeeVatInCents: number;
28
+ refundedMarketplaceFeePostTaxInCents: number;
29
+ /** Net final amounts (UI, exports, invoices). */
30
+ totalMarketplaceFeePreTaxInCents: number;
31
+ totalMarketplaceFeePostTaxInCents: number;
32
+ totalMarketplaceFeeVatInCents: number;
33
+ initialOrderPreTaxInCents: number;
34
+ initialOrderVatInCents: number;
35
+ initialOrderPostTaxInCents: number;
36
+ refundedOrderPreTaxInCents: number;
37
+ refundedOrderVatInCents: number;
38
+ refundedOrderPostTaxInCents: number;
39
+ /** Net final global totals. */
40
+ totalOrderPreTaxInCents: number;
41
+ totalOrderVatInCents: number;
42
+ totalOrderPostTaxInCents: number;
43
+ serviceTaxApplication: TaxApplication;
44
+ marketplaceFeeTaxApplication: TaxApplication;
45
+ effectiveServiceVatRateBasisPoints: number;
46
+ effectiveMarketplaceFeeVatRateBasisPoints: number;
47
+ currency: SupportedIsoCurrency;
48
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type { OrderPaymentRefundReasonTypes, OrderPaymentRefundStatusTypes } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type OrderExternalPaymentRefund = {
4
+ status: OrderPaymentRefundStatusTypes;
5
+ requestedAt?: FirestoreTimestamp;
6
+ refundedAt?: FirestoreTimestamp;
7
+ failedAt?: FirestoreTimestamp;
8
+ refundRateBasisPoints: number;
9
+ requestedRefundAmountInCents: number;
10
+ refundedAmountInCents: number;
11
+ reason?: OrderPaymentRefundReasonTypes;
12
+ providerRefundId?: string;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import type { OrderPaymentRefundReasonTypes, OrderPaymentRefundStatusTypes } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type OrderPaymentBreakdownRefund = {
4
+ status: OrderPaymentRefundStatusTypes;
5
+ reason: OrderPaymentRefundReasonTypes;
6
+ targetOrderTotalRefundRateBasisPoints: number;
7
+ amountToRefundInCents: number;
8
+ requestedAt: FirestoreTimestamp;
9
+ processingStartedAt?: FirestoreTimestamp;
10
+ succeededAt?: FirestoreTimestamp;
11
+ failedAt?: FirestoreTimestamp;
12
+ failureReason?: string;
13
+ executionDetails?: {
14
+ platformBalance?: {
15
+ refundedAmountInCents: number;
16
+ refundedAt: FirestoreTimestamp;
17
+ };
18
+ externalPayment?: {
19
+ refundedAmountInCents: number;
20
+ refundedAt?: FirestoreTimestamp;
21
+ providerRefundId?: string;
22
+ };
23
+ };
24
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type { OrderPaymentRefundReasonTypes, OrderPaymentRefundStatusTypes } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type OrderPaymentRefund = {
4
+ status: OrderPaymentRefundStatusTypes;
5
+ requestedAt?: FirestoreTimestamp;
6
+ refundedAt?: FirestoreTimestamp;
7
+ failedAt?: FirestoreTimestamp;
8
+ refundRateBasisPoints: number;
9
+ requestedRefundAmountInCents: number;
10
+ refundedAmountInCents: number;
11
+ reason?: OrderPaymentRefundReasonTypes;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type { OrderPaymentRefundStatusTypes } from "../../enums";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type OrderPlatformBalancePaymentRefund = {
4
+ status: OrderPaymentRefundStatusTypes;
5
+ refundedAt?: FirestoreTimestamp;
6
+ refundedAmountInCents: number;
7
+ refundRateBasisPoints: number;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  export * from "./FirestoreOrderDocument.type";
2
2
  export * from "./FirestoreOrderServiceDetails.type";
3
3
  export * from "./FirestoreOrderCancellationDetails.type";
4
+ export * from "./FirestoreOrderPaymentBreakdown.type";
5
+ export * from "./FirestoreOrderPricingDetails.type";
6
+ export * from "./FirestoreBookedSlotCancellationDetails.type";
4
7
  export * from "./FirestoreOrderCancellationReason.type";
5
8
  export * from "./publicAssets";
6
9
  export * from "./OrderOperationalBooleanOps.type";
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./FirestoreOrderDocument.type"), exports);
18
18
  __exportStar(require("./FirestoreOrderServiceDetails.type"), exports);
19
19
  __exportStar(require("./FirestoreOrderCancellationDetails.type"), exports);
20
+ __exportStar(require("./FirestoreOrderPaymentBreakdown.type"), exports);
21
+ __exportStar(require("./FirestoreOrderPricingDetails.type"), exports);
22
+ __exportStar(require("./FirestoreBookedSlotCancellationDetails.type"), exports);
20
23
  __exportStar(require("./FirestoreOrderCancellationReason.type"), exports);
21
24
  __exportStar(require("./publicAssets"), exports);
22
25
  __exportStar(require("./OrderOperationalBooleanOps.type"), exports);
@@ -0,0 +1,27 @@
1
+ import type { OrderRefundIntentReasonTypes, OrderRefundIntentStatusTypes } from "../../enums/ordersRefundIntents";
2
+ import type { FirestoreTimestamp } from "../FirestoreTimestamp.type";
3
+ export type FirestoreOrderRefundIntent = {
4
+ orderDocumentId: string;
5
+ createdAt: FirestoreTimestamp;
6
+ updatedAt: FirestoreTimestamp;
7
+ status: OrderRefundIntentStatusTypes;
8
+ reason: OrderRefundIntentReasonTypes;
9
+ targetOrderTotalRefundRateBasisPoints: number;
10
+ amountToRefundInCents: number;
11
+ requestedAt: FirestoreTimestamp;
12
+ processingStartedAt?: FirestoreTimestamp;
13
+ succeededAt?: FirestoreTimestamp;
14
+ failedAt?: FirestoreTimestamp;
15
+ failureReason?: string;
16
+ executionDetails?: {
17
+ platformBalance?: {
18
+ refundedAmountInCents: number;
19
+ refundedAt: FirestoreTimestamp;
20
+ };
21
+ externalPayment?: {
22
+ refundedAmountInCents: number;
23
+ refundedAt?: FirestoreTimestamp;
24
+ providerRefundId?: string;
25
+ };
26
+ };
27
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });