@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240405154416

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/dist/auth/common/auth-user.d.ts +21 -16
  2. package/dist/auth/common/auth-user.d.ts.map +1 -1
  3. package/dist/auth/common/provider.d.ts +28 -15
  4. package/dist/auth/common/provider.d.ts.map +1 -1
  5. package/dist/auth/service.d.ts +137 -75
  6. package/dist/auth/service.d.ts.map +1 -1
  7. package/dist/bundles.d.ts +2 -0
  8. package/dist/bundles.d.ts.map +1 -1
  9. package/dist/bundles.js +3 -1
  10. package/dist/bundles.js.map +1 -1
  11. package/dist/cart/common.d.ts +443 -62
  12. package/dist/cart/common.d.ts.map +1 -1
  13. package/dist/cart/mutations.d.ts +483 -0
  14. package/dist/cart/mutations.d.ts.map +1 -1
  15. package/dist/cart/mutations.js.map +1 -1
  16. package/dist/cart/service.d.ts +1607 -0
  17. package/dist/cart/service.d.ts.map +1 -1
  18. package/dist/common/index.d.ts +1 -0
  19. package/dist/common/index.d.ts.map +1 -1
  20. package/dist/common/index.js +1 -0
  21. package/dist/common/index.js.map +1 -1
  22. package/dist/common/rule.d.ts +2 -0
  23. package/dist/common/rule.d.ts.map +1 -0
  24. package/dist/common/rule.js +3 -0
  25. package/dist/common/rule.js.map +1 -0
  26. package/dist/customer/service.d.ts +445 -197
  27. package/dist/customer/service.d.ts.map +1 -1
  28. package/dist/file/common.d.ts +14 -0
  29. package/dist/file/common.d.ts.map +1 -0
  30. package/dist/file/common.js +3 -0
  31. package/dist/file/common.js.map +1 -0
  32. package/dist/file/index.d.ts +4 -0
  33. package/dist/file/index.d.ts.map +1 -0
  34. package/dist/file/index.js +20 -0
  35. package/dist/file/index.js.map +1 -0
  36. package/dist/file/mutations.d.ts +18 -0
  37. package/dist/file/mutations.d.ts.map +1 -0
  38. package/dist/file/mutations.js +3 -0
  39. package/dist/file/mutations.js.map +1 -0
  40. package/dist/file/service.d.ts +76 -0
  41. package/dist/file/service.d.ts.map +1 -0
  42. package/dist/file/service.js +3 -0
  43. package/dist/file/service.js.map +1 -0
  44. package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
  45. package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
  46. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
  47. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
  48. package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
  49. package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
  50. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
  51. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
  52. package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
  53. package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
  54. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
  55. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
  56. package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
  57. package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
  58. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
  59. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
  60. package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
  61. package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
  62. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
  63. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
  64. package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
  65. package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
  66. package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
  67. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
  68. package/dist/http/fulfillment/admin/fulfillment.js +3 -0
  69. package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
  70. package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
  71. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
  72. package/dist/http/fulfillment/admin/geo-zone.js +3 -0
  73. package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
  74. package/dist/http/fulfillment/admin/index.d.ts +13 -0
  75. package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
  76. package/dist/http/fulfillment/admin/index.js +29 -0
  77. package/dist/http/fulfillment/admin/index.js.map +1 -0
  78. package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
  79. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
  80. package/dist/http/fulfillment/admin/service-zone.js +3 -0
  81. package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
  82. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
  83. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
  84. package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
  85. package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
  86. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
  87. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
  88. package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
  89. package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
  90. package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
  91. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
  92. package/dist/http/fulfillment/admin/shipping-option.js +3 -0
  93. package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
  94. package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
  95. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
  96. package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
  97. package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
  98. package/dist/http/fulfillment/index.d.ts +2 -0
  99. package/dist/http/fulfillment/index.d.ts.map +1 -0
  100. package/dist/http/fulfillment/index.js +18 -0
  101. package/dist/http/fulfillment/index.js.map +1 -0
  102. package/dist/http/index.d.ts +2 -0
  103. package/dist/http/index.d.ts.map +1 -0
  104. package/dist/http/index.js +18 -0
  105. package/dist/http/index.js.map +1 -0
  106. package/dist/index.d.ts +2 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +2 -0
  109. package/dist/index.js.map +1 -1
  110. package/dist/inventory/common/inventory-item.d.ts +55 -64
  111. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  112. package/dist/inventory/common/inventory-level.d.ts +37 -37
  113. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  114. package/dist/inventory/common/reservation-item.d.ts +34 -44
  115. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  116. package/dist/inventory/service-next.d.ts +596 -534
  117. package/dist/inventory/service-next.d.ts.map +1 -1
  118. package/dist/payment/common.d.ts +174 -53
  119. package/dist/payment/common.d.ts.map +1 -1
  120. package/dist/payment/common.js +3 -3
  121. package/dist/payment/common.js.map +1 -1
  122. package/dist/payment/mutations.d.ts +58 -17
  123. package/dist/payment/mutations.d.ts.map +1 -1
  124. package/dist/payment/provider.d.ts +128 -43
  125. package/dist/payment/provider.d.ts.map +1 -1
  126. package/dist/payment/provider.js.map +1 -1
  127. package/dist/payment/service.d.ts +460 -39
  128. package/dist/payment/service.d.ts.map +1 -1
  129. package/dist/pricing/common/price-list.d.ts +2 -2
  130. package/dist/pricing/common/price-set.d.ts +6 -4
  131. package/dist/pricing/common/price-set.d.ts.map +1 -1
  132. package/dist/pricing/service.d.ts +731 -1695
  133. package/dist/pricing/service.d.ts.map +1 -1
  134. package/dist/promotion/common/application-method.d.ts +153 -0
  135. package/dist/promotion/common/application-method.d.ts.map +1 -1
  136. package/dist/promotion/common/campaign-budget.d.ts +37 -0
  137. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  138. package/dist/promotion/common/campaign.d.ts +36 -0
  139. package/dist/promotion/common/campaign.d.ts.map +1 -1
  140. package/dist/promotion/common/compute-actions.d.ts +135 -0
  141. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  142. package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
  143. package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
  144. package/dist/promotion/common/promotion-rule.d.ts +77 -0
  145. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  146. package/dist/promotion/common/promotion.d.ts +100 -0
  147. package/dist/promotion/common/promotion.d.ts.map +1 -1
  148. package/dist/promotion/mutations.d.ts +84 -0
  149. package/dist/promotion/mutations.d.ts.map +1 -1
  150. package/dist/promotion/service.d.ts +786 -0
  151. package/dist/promotion/service.d.ts.map +1 -1
  152. package/dist/stock-location/common.d.ts +14 -0
  153. package/dist/stock-location/common.d.ts.map +1 -1
  154. package/dist/stock-location/service-next.d.ts +178 -186
  155. package/dist/stock-location/service-next.d.ts.map +1 -1
  156. package/dist/store/common/store.d.ts +42 -0
  157. package/dist/store/common/store.d.ts.map +1 -1
  158. package/dist/store/mutations/store.d.ts +75 -0
  159. package/dist/store/mutations/store.d.ts.map +1 -1
  160. package/dist/store/service.d.ts +113 -75
  161. package/dist/store/service.d.ts.map +1 -1
  162. package/dist/tax/common.d.ts +298 -10
  163. package/dist/tax/common.d.ts.map +1 -1
  164. package/dist/tax/mutations.d.ts +157 -0
  165. package/dist/tax/mutations.d.ts.map +1 -1
  166. package/dist/tax/provider.d.ts +126 -0
  167. package/dist/tax/provider.d.ts.map +1 -1
  168. package/dist/tax/service.d.ts +600 -0
  169. package/dist/tax/service.d.ts.map +1 -1
  170. package/package.json +1 -1
@@ -9,7 +9,7 @@ export interface CreatePaymentCollectionDTO {
9
9
  */
10
10
  region_id: string;
11
11
  /**
12
- * The currency code of the payment collection.
12
+ * The ISO 3 character currency code of the payment collection.
13
13
  */
14
14
  currency_code: string;
15
15
  /**
@@ -30,20 +30,50 @@ export interface UpdatePaymentCollectionDTO extends Partial<CreatePaymentCollect
30
30
  */
31
31
  id: string;
32
32
  }
33
+ /**
34
+ * The attributes in the payment collection to be created or updated.
35
+ */
33
36
  export interface UpsertPaymentCollectionDTO {
37
+ /**
38
+ * The ID of the payment collection.
39
+ */
34
40
  id?: string;
41
+ /**
42
+ * The associated region's ID.
43
+ */
35
44
  region_id?: string;
45
+ /**
46
+ * The ISO 3 character currency code of the payment collection.
47
+ */
36
48
  currency_code?: string;
49
+ /**
50
+ * The amount of the payment collection.
51
+ */
37
52
  amount?: number;
53
+ /**
54
+ * Holds custom data in key-value pairs.
55
+ */
38
56
  metadata?: Record<string, unknown>;
39
57
  }
40
58
  /**
41
59
  * The attributes to update in the payment collection.
42
60
  */
43
61
  export interface PaymentCollectionUpdatableFields {
62
+ /**
63
+ * The associated region's ID.
64
+ */
44
65
  region_id?: string;
66
+ /**
67
+ * {The ISO 3 character currency code of the payment collection.
68
+ */
45
69
  currency_code?: string;
70
+ /**
71
+ * The amount of the payment collection.
72
+ */
46
73
  amount?: number;
74
+ /**
75
+ * Holds custom data in key-value pairs.
76
+ */
47
77
  metadata?: Record<string, unknown>;
48
78
  }
49
79
  /**
@@ -55,7 +85,7 @@ export interface CreatePaymentDTO {
55
85
  */
56
86
  amount: number;
57
87
  /**
58
- * The currency code of the payment.
88
+ * The ISO 3 character currency code of the payment.
59
89
  */
60
90
  currency_code: string;
61
91
  /**
@@ -63,11 +93,11 @@ export interface CreatePaymentDTO {
63
93
  */
64
94
  provider_id: string;
65
95
  /**
66
- * The data of the payment.
96
+ * The data necessary for the associated payment provider to process the payment.
67
97
  */
68
98
  data: Record<string, unknown>;
69
99
  /**
70
- * The associated payment session's ID.
100
+ * The ID of the payment session this payment was created from.
71
101
  */
72
102
  payment_session_id: string;
73
103
  /**
@@ -129,7 +159,8 @@ export interface CreateCaptureDTO {
129
159
  */
130
160
  payment_id: string;
131
161
  /**
132
- * The captured by of the capture.
162
+ * Who captured the payment. For example,
163
+ * a user's ID.
133
164
  */
134
165
  captured_by?: string;
135
166
  }
@@ -146,7 +177,8 @@ export interface CreateRefundDTO {
146
177
  */
147
178
  payment_id: string;
148
179
  /**
149
- * The created by of the refund.
180
+ * Who refunded the payment. For example,
181
+ * a user's ID.
150
182
  */
151
183
  created_by?: string;
152
184
  }
@@ -159,19 +191,19 @@ export interface CreatePaymentSessionDTO {
159
191
  */
160
192
  provider_id: string;
161
193
  /**
162
- * The selected currency code.
194
+ * The ISO 3 character currency code of the payment session.
163
195
  */
164
196
  currency_code: string;
165
197
  /**
166
- * The payment's amount.
198
+ * The amount to be authorized.
167
199
  */
168
200
  amount: number;
169
201
  /**
170
- * The value of the payment session's `data` field.
202
+ * Necessary data for the associated payment provider to process the payment.
171
203
  */
172
204
  data: Record<string, unknown>;
173
205
  /**
174
- * The payment session's context.
206
+ * Necessary context data for the associated payment provider.
175
207
  */
176
208
  context?: PaymentProviderContext;
177
209
  }
@@ -184,19 +216,19 @@ export interface UpdatePaymentSessionDTO {
184
216
  */
185
217
  id: string;
186
218
  /**
187
- * The value of the payment session's `data` field.
219
+ * Necessary data for the associated payment provider to process the payment.
188
220
  */
189
221
  data: Record<string, unknown>;
190
222
  /**
191
- * The selected currency code.
223
+ * The ISO 3 character currency code.
192
224
  */
193
225
  currency_code: string;
194
226
  /**
195
- * The payment's amount.
227
+ * The amount to be authorized.
196
228
  */
197
229
  amount: number;
198
230
  /**
199
- * The payment session's context.
231
+ * Necessary context data for the associated payment provider.
200
232
  */
201
233
  context?: PaymentProviderContext;
202
234
  }
@@ -214,19 +246,28 @@ export interface CreatePaymentProviderDTO {
214
246
  is_enabled?: boolean;
215
247
  }
216
248
  /**
217
- * Webhook
249
+ * The details of the webhook event payload.
218
250
  */
219
251
  export interface ProviderWebhookPayload {
252
+ /**
253
+ * The ID of the provider to pass the webhook event payload to.
254
+ */
220
255
  provider: string;
256
+ /**
257
+ * The webhook event payload passed to the specified provider.
258
+ */
221
259
  payload: {
222
260
  /**
223
- * Parsed webhook body
261
+ * The parsed webhook body.
224
262
  */
225
263
  data: Record<string, unknown>;
226
264
  /**
227
- * Raw request body
265
+ * The raw webhook request body.
228
266
  */
229
267
  rawData: string | Buffer;
268
+ /**
269
+ * The headers of the webhook request.
270
+ */
230
271
  headers: Record<string, unknown>;
231
272
  };
232
273
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/payment/mutations.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,0BACf,SAAQ,OAAO,CAAC,0BAA0B,CAAC;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IAC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AE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE;QACP;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAC7B;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;QACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,CAAA;CACF"}
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/payment/mutations.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,0BACf,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AAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,EAAE;QACP;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAE7B;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;QAExB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,CAAA;CACF"}
@@ -2,7 +2,13 @@ import { AddressDTO } from "../address";
2
2
  import { CustomerDTO } from "../customer";
3
3
  import { PaymentSessionStatus } from "./common";
4
4
  import { ProviderWebhookPayload } from "./mutations";
5
+ /**
6
+ * The address of the payment.
7
+ */
5
8
  export type PaymentAddressDTO = Partial<AddressDTO>;
9
+ /**
10
+ * The customer associated with the payment.
11
+ */
6
12
  export type PaymentCustomerDTO = Partial<CustomerDTO>;
7
13
  /**
8
14
  * Normalized events from payment provider to internal payment module events.
@@ -28,7 +34,7 @@ export declare enum PaymentActions {
28
34
  /**
29
35
  * @interface
30
36
  *
31
- * A payment's context.
37
+ * Context data provided to the payment provider when authorizing a payment session.
32
38
  */
33
39
  export type PaymentProviderContext = {
34
40
  /**
@@ -36,11 +42,11 @@ export type PaymentProviderContext = {
36
42
  */
37
43
  billing_address?: PaymentAddressDTO;
38
44
  /**
39
- * The customer's email.
45
+ * The associated customer's email.
40
46
  */
41
47
  email?: string;
42
48
  /**
43
- * The ID of the resource the payment is associated with i.e. the ID of the PaymentSession in Medusa
49
+ * The ID of the resource the payment is associated with. For example, the ID of the payment session.
44
50
  */
45
51
  resource_id?: string;
46
52
  /**
@@ -52,15 +58,47 @@ export type PaymentProviderContext = {
52
58
  */
53
59
  extra?: Record<string, unknown>;
54
60
  };
61
+ /**
62
+ * @interface
63
+ *
64
+ * The data used initiate a payment in a provider when a payment
65
+ * session is created.
66
+ */
55
67
  export type CreatePaymentProviderSession = {
68
+ /**
69
+ * A context necessary for the payment provider.
70
+ */
56
71
  context: PaymentProviderContext;
72
+ /**
73
+ * The amount to be authorized.
74
+ */
57
75
  amount: number;
76
+ /**
77
+ * The ISO 3 character currency code.
78
+ */
58
79
  currency_code: string;
59
80
  };
81
+ /**
82
+ * @interface
83
+ *
84
+ * The attributes to update a payment related to a payment session in a provider.
85
+ */
60
86
  export type UpdatePaymentProviderSession = {
87
+ /**
88
+ * A payment's context.
89
+ */
61
90
  context: PaymentProviderContext;
91
+ /**
92
+ * The `data` field of the payment session.
93
+ */
62
94
  data: Record<string, unknown>;
95
+ /**
96
+ * The payment session's amount.
97
+ */
63
98
  amount: number;
99
+ /**
100
+ * The ISO 3 character code of the payment session.
101
+ */
64
102
  currency_code: string;
65
103
  };
66
104
  /**
@@ -75,6 +113,11 @@ export type PaymentProviderSessionResponse = {
75
113
  */
76
114
  data: Record<string, unknown>;
77
115
  };
116
+ /**
117
+ * @interface
118
+ *
119
+ * The successful result of authorizing a payment session using a payment provider.
120
+ */
78
121
  export type PaymentProviderAuthorizeResponse = {
79
122
  /**
80
123
  * The status of the payment, which will be stored in the payment session's `status` field.
@@ -85,8 +128,20 @@ export type PaymentProviderAuthorizeResponse = {
85
128
  */
86
129
  data: PaymentProviderSessionResponse["data"];
87
130
  };
131
+ /**
132
+ * @interface
133
+ *
134
+ * The details of which payment provider to use to perform an action, and what
135
+ * data to be passed to that provider.
136
+ */
88
137
  export type PaymentProviderDataInput = {
138
+ /**
139
+ * The ID of the provider to be used to perform an action.
140
+ */
89
141
  provider_id: string;
142
+ /**
143
+ * The data to be passed to the provider.
144
+ */
90
145
  data: Record<string, unknown>;
91
146
  };
92
147
  /**
@@ -106,14 +161,40 @@ export interface PaymentProviderError {
106
161
  */
107
162
  detail?: any;
108
163
  }
164
+ /**
165
+ * @interface
166
+ *
167
+ * The details of an action to be performed as a result of a received webhook event.
168
+ */
109
169
  export type WebhookActionData = {
170
+ /**
171
+ * The associated resource's ID. For example,
172
+ * a payment session's ID.
173
+ */
110
174
  resource_id: string;
175
+ /**
176
+ * The amount to be captured or authorized (based on the action's type.)
177
+ */
111
178
  amount: number;
112
179
  };
180
+ /**
181
+ * @interface
182
+ *
183
+ * The actions that the payment provider informs the Payment Module to perform.
184
+ */
113
185
  export type WebhookActionResult = {
186
+ /**
187
+ * Received an event that is not processable.
188
+ */
114
189
  action: PaymentActions.NOT_SUPPORTED;
115
190
  } | {
191
+ /**
192
+ * Normalized events from payment provider to internal payment module events.
193
+ */
116
194
  action: PaymentActions;
195
+ /**
196
+ * The webhook action's details.
197
+ */
117
198
  data: WebhookActionData;
118
199
  };
119
200
  export interface IPaymentProvider {
@@ -124,96 +205,100 @@ export interface IPaymentProvider {
124
205
  */
125
206
  getIdentifier(): string;
126
207
  /**
127
- * Make calls to the third-party provider to initialize the payment. For example, in Stripe this method is used to create a Payment Intent for the customer.
208
+ * This methods sends a request to the third-party provider to initialize the payment. It's called when the payment session is created.
209
+ *
210
+ * For example, in the Stripe provider, this method is used to create a Payment Intent for the customer.
128
211
  *
129
- * @param {CreatePaymentProviderSession} context
130
- * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse>} Either the payment's data or an error object.
212
+ * @param {CreatePaymentProviderSession} data - The data necessary to initiate the payment.
213
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse>} Either the payment's data, which is stored in the `data` field
214
+ * of the payment session, or an error object.
131
215
  */
132
216
  initiatePayment(data: CreatePaymentProviderSession): Promise<PaymentProviderError | PaymentProviderSessionResponse>;
133
217
  /**
134
- * This method is used to update the payment session.
218
+ * This method is used to update a payment associated with a session in the third-party provider.
135
219
  *
136
- * @param {UpdatePaymentProviderSession} context
220
+ * @param {UpdatePaymentProviderSession} context - The data related to the update.
137
221
  * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse | void>} Either the payment's data or an error object.
138
222
  */
139
223
  updatePayment(context: UpdatePaymentProviderSession): Promise<PaymentProviderError | PaymentProviderSessionResponse>;
140
224
  /**
141
- * This method is used to perform any actions necessary before a Payment Session is deleted. The Payment Session is deleted in one of the following cases:
225
+ * This method is called before a payment session is deleted. It's used to perform any actions necessary before the deletion.
142
226
  *
143
227
  * @param {Record<string, unknown>} paymentSessionData - The `data` field of the Payment Session.
144
- * @returns Either an error object or an empty object.
228
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>} Either an error object or an empty object.
145
229
  */
146
230
  deletePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>;
147
231
  /**
148
- * This method is used to authorize payment using the Payment Session.
149
- * You can interact with a third-party provider and perform any actions necessary to authorize the payment.
150
- *
151
- * The payment authorization might require additional action from the customer before it is declared authorized. Once that additional action is performed,
152
- * the `authorizePayment` method will be called again to validate that the payment is now fully authorized. So, make sure to implement it for this case as well, if necessary.
153
- *
154
- * :::note
232
+ * This method is called when a payment session should be authorized.
233
+ * You can interact with a third-party provider and perform the necessary actions to authorize the payment.
155
234
  *
156
- * The payment authorization status is determined using the {@link getPaymentStatus} method. If the status is `requires_more`, then it means additional actions are required
157
- * from the customer.
158
- *
159
- * :::
235
+ * Refer to [this guide](https://docs.medusajs.com/experimental/payment/payment-flow/#3-authorize-payment-session)
236
+ * to learn more about how this fits into the payment flow and how to handle required actions.
160
237
  *
161
238
  * @param {Record<string, unknown>} paymentSessionData - The `data` field of the payment session.
162
239
  * @param {Record<string, unknown>} context - The context of the authorization.
163
- * @returns The authorization details or an error object.
240
+ * @returns {Promise<PaymentProviderError | PaymentProviderAuthorizeResponse>} The authorization details or an error object. If
241
+ * the authorization details are returned, the `data` and `status` field are set in the associated payment session.
164
242
  */
165
243
  authorizePayment(paymentSessionData: Record<string, unknown>, context: Record<string, unknown>): Promise<PaymentProviderError | PaymentProviderAuthorizeResponse>;
166
244
  /**
167
- * This method is used to capture the payment amount. This is typically triggered manually by the store operator from the admin.
245
+ * This method is called when a payment should be captured. The payment is captured in one of the following scenarios:
246
+ *
247
+ * - The payment provider supports automatically capturing the payment after authorization.
248
+ * - The merchant requests to capture the payment after its associated payment session was authorized.
249
+ * - A webhook event occurred that instructs the payment provider to capture the payment session. Learn more about handing webhook events in [this guide](https://docs.medusajs.com/experimental/payment/webhook-events/)
168
250
  *
169
- * You can utilize this method to interact with the third-party provider and perform any actions necessary to capture the payment.
251
+ * In this method, you can interact with the third-party provider and perform any actions necessary to capture the payment.
170
252
  *
171
- * @param {Record<string, unknown>} paymentSessionData - The `data` field of the Payment for its first parameter.
172
- * @returns Either an error object or a value that's stored in the `data` field of the Payment.
253
+ * @param {Record<string, unknown>} paymentSessionData - The `data` field of the payment.
254
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>} Either an error object or a value that's stored in the `data` field of the payment.
173
255
  */
174
256
  capturePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>;
175
257
  /**
176
- * This method is used to refund a payment. This is typically triggered manually by the store operator from the admin. The refund amount might be the total amount or part of it.
258
+ * This method is called when a payment should be refunded. This is typically triggered manually by the merchant.
177
259
  *
178
- * You can utilize this method to interact with the third-party provider and perform any actions necessary to refund the payment.
260
+ * In this method, you can interact with the third-party provider and perform any actions necessary to refund the payment.
179
261
  *
180
262
  * @param {Record<string, unknown>} paymentSessionData - The `data` field of a Payment.
181
- * @param {number} refundAmount - the amount to refund.
182
- * @returns Either an error object or a value that's stored in the `data` field of the Payment.
263
+ * @param {number} refundAmount - The amount to refund.
264
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>} Either an error object or an object that's stored in the `data` field of the payment.
183
265
  */
184
266
  refundPayment(paymentSessionData: Record<string, unknown>, refundAmount: number): Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>;
185
267
  /**
186
268
  * This method is used to provide a uniform way of retrieving the payment information from the third-party provider.
187
- * For example, in Stripe’s Payment Provider this method is used to retrieve the payment intent details from Stripe.
269
+ *
270
+ * For example, in Stripe’s payment provider this method is used to retrieve the payment intent details from Stripe.
188
271
  *
189
272
  * @param {Record<string, unknown>} paymentSessionData -
190
- * The `data` field of a Payment Session. Make sure to store in the `data` field any necessary data that would allow you to retrieve the payment data from the third-party provider.
191
- * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["session_data"]>} The payment's data, typically retrieved from a third-party provider.
273
+ * The `data` field of a payment session. Make sure to store in the `data` field any necessary data that would allow you to retrieve the payment data from the third-party provider.
274
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["session_data"]>} Either an error object or the payment's data retrieved from a third-party provider.
192
275
  */
193
276
  retrievePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>;
194
277
  /**
195
- * This method is used to cancel a payment. This method is typically triggered by one of the following situations:
278
+ * This method is called when a payment is canceled.
196
279
  *
197
- * You can utilize this method to interact with the third-party provider and perform any actions necessary to cancel the payment.
280
+ * In this method, you can interact with the third-party provider and perform any actions necessary to cancel the payment.
198
281
  *
199
- * @param {Record<string, unknown>} paymentSessionData - The `data` field of the Payment.
200
- * @returns Either an error object or a value that's stored in the `data` field of the Payment.
282
+ * @param {Record<string, unknown>} paymentSessionData - The `data` field of the payment.
283
+ * @returns {Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>} Either an error object or a value that's stored in the `data` field of the payment.
201
284
  */
202
285
  cancelPayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProviderError | PaymentProviderSessionResponse["data"]>;
203
286
  /**
204
- * This method is used to get the status of a Payment or a Payment Session.
287
+ * This method is used to get the status of a payment or a payment session.
205
288
  *
206
289
  * @param {Record<string, unknown>} paymentSessionData -
207
- * The `data` field of a Payment as a parameter. You can use this data to interact with the third-party provider to check the status of the payment if necessary.
208
- * @returns {Promise<PaymentSessionStatus>} The status of the Payment or Payment Session.
290
+ * The `data` field of a payment as a parameter. You can use this data to interact with the third-party provider to check the status of the payment if necessary.
291
+ * @returns {Promise<PaymentSessionStatus>} The status of the payment or payment session.
209
292
  */
210
293
  getPaymentStatus(paymentSessionData: Record<string, unknown>): Promise<PaymentSessionStatus>;
211
294
  /**
212
- * The method is called when å webhook call for this particular provider is received.
295
+ * The method is called when a webhook event is received for this provider.
296
+ *
297
+ * The method is responsible for normalizing the received event and inform the Payment Module of actions to perform, such as authorize or capture payment.
213
298
  *
214
- * The method is responsible for normalizing the received event and provide
299
+ * Learn more about handling webhook events in [this guide](https://docs.medusajs.com/experimental/payment/webhook-events/)
215
300
  *
216
- * @param data - object containing provider id and data from the provider
301
+ * @param data - The webhook event's details.
217
302
  */
218
303
  getWebhookActionAndData(data: ProviderWebhookPayload["payload"]): Promise<WebhookActionResult>;
219
304
  }
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/payment/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAEnD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;AAErD;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,UAAU,aAAa;IACvB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,aAAa,kBAAkB;CAChC;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAA;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,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AEzE;;;;;;;;OAQG;IACH,aAAa,CACX,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAA;IAEzE;;;;;;;;OAQG;IACH,eAAe,CACb,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,oBAAoB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAA;IAEzE;;;;;;;OAOG;IACH,aAAa,CACX,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,oBAAoB,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAA;IAEzE;;;;;;OAMG;IACH,gBAAgB,CACd,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAEhC;;;;;;;;OAQG;IACH,uBAAuB,CACrB,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/payment/provider.ts"],"names":[],"mappings":";;;AASA;;GAEG;AACH,IAAY,cAiBX;AAjBD,WAAY,cAAc;IACxB;;OAEG;IACH,2CAAyB,CAAA;IACzB;;OAEG;IACH,yCAAuB,CAAA;IACvB;;OAEG;IACH,mCAAiB,CAAA;IACjB;;OAEG;IACH,iDAA+B,CAAA;AACjC,CAAC,EAjBW,cAAc,8BAAd,cAAc,QAiBzB"}
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/payment/provider.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH,IAAY,cAoBX;AApBD,WAAY,cAAc;IACxB;;OAEG;IACH,2CAAyB,CAAA;IAEzB;;OAEG;IACH,yCAAuB,CAAA;IAEvB;;OAEG;IACH,mCAAiB,CAAA;IAEjB;;OAEG;IACH,iDAA+B,CAAA;AACjC,CAAC,EApBW,cAAc,8BAAd,cAAc,QAoBzB"}