@fragmentpay/server 0.3.0 → 0.3.1
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.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -187,6 +187,10 @@ declare class PaymentIntentResource {
|
|
|
187
187
|
transactions(id: string): Promise<{
|
|
188
188
|
data: IntentTransaction[];
|
|
189
189
|
}>;
|
|
190
|
+
routing(id: string): Promise<{
|
|
191
|
+
data: RouteCandidate[];
|
|
192
|
+
}>;
|
|
193
|
+
/** @deprecated use `routing()` — kept for backwards compatibility. */
|
|
190
194
|
route(id: string): Promise<{
|
|
191
195
|
data: RouteCandidate[];
|
|
192
196
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,10 @@ declare class PaymentIntentResource {
|
|
|
187
187
|
transactions(id: string): Promise<{
|
|
188
188
|
data: IntentTransaction[];
|
|
189
189
|
}>;
|
|
190
|
+
routing(id: string): Promise<{
|
|
191
|
+
data: RouteCandidate[];
|
|
192
|
+
}>;
|
|
193
|
+
/** @deprecated use `routing()` — kept for backwards compatibility. */
|
|
190
194
|
route(id: string): Promise<{
|
|
191
195
|
data: RouteCandidate[];
|
|
192
196
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -300,9 +300,13 @@ var PaymentIntentResource = class {
|
|
|
300
300
|
v.id("paymentIntents.transactions.id", id);
|
|
301
301
|
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/transactions`);
|
|
302
302
|
}
|
|
303
|
+
routing(id) {
|
|
304
|
+
v.id("paymentIntents.routing.id", id);
|
|
305
|
+
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/routing`);
|
|
306
|
+
}
|
|
307
|
+
/** @deprecated use `routing()` — kept for backwards compatibility. */
|
|
303
308
|
route(id) {
|
|
304
|
-
|
|
305
|
-
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/route`);
|
|
309
|
+
return this.routing(id);
|
|
306
310
|
}
|
|
307
311
|
};
|
|
308
312
|
var RefundResource = class {
|
package/dist/index.mjs
CHANGED
|
@@ -270,9 +270,13 @@ var PaymentIntentResource = class {
|
|
|
270
270
|
v.id("paymentIntents.transactions.id", id);
|
|
271
271
|
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/transactions`);
|
|
272
272
|
}
|
|
273
|
+
routing(id) {
|
|
274
|
+
v.id("paymentIntents.routing.id", id);
|
|
275
|
+
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/routing`);
|
|
276
|
+
}
|
|
277
|
+
/** @deprecated use `routing()` — kept for backwards compatibility. */
|
|
273
278
|
route(id) {
|
|
274
|
-
|
|
275
|
-
return this.req(`/api/public/v1/payment-intents/${encodeURIComponent(id)}/route`);
|
|
279
|
+
return this.routing(id);
|
|
276
280
|
}
|
|
277
281
|
};
|
|
278
282
|
var RefundResource = class {
|
package/package.json
CHANGED