@mestra-dev/contract 0.0.155 → 0.0.156
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.ts +13 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8241,7 +8241,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8241
8241
|
"Payments"
|
|
8242
8242
|
];
|
|
8243
8243
|
readonly summary: "Apply a coupon to a pending invoice";
|
|
8244
|
-
readonly description: "Workspace owner only. Applies a fixed or percentage coupon
|
|
8244
|
+
readonly description: "Workspace owner only. Applies a fixed or percentage coupon. If the invoice has a live YooKassa checkout, it is replaced with a discounted invoice and this response includes a new checkout link. Coupon attempts are rate limited; invalid codes intentionally return the same response.";
|
|
8245
8245
|
readonly security: readonly [
|
|
8246
8246
|
never
|
|
8247
8247
|
];
|
|
@@ -8293,6 +8293,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8293
8293
|
readonly type: "object";
|
|
8294
8294
|
readonly properties: any;
|
|
8295
8295
|
};
|
|
8296
|
+
readonly paymentUrl: {
|
|
8297
|
+
readonly type: "string";
|
|
8298
|
+
readonly format: "uri";
|
|
8299
|
+
readonly description: "New YooKassa checkout URL when a live checkout was replaced.";
|
|
8300
|
+
};
|
|
8301
|
+
readonly providerPaymentId: {
|
|
8302
|
+
readonly type: "string";
|
|
8303
|
+
readonly description: "Identifier for the replacement YooKassa payment.";
|
|
8304
|
+
};
|
|
8296
8305
|
};
|
|
8297
8306
|
};
|
|
8298
8307
|
};
|
|
@@ -23604,6 +23613,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
23604
23613
|
};
|
|
23605
23614
|
};
|
|
23606
23615
|
output: {
|
|
23616
|
+
paymentUrl?: string | undefined;
|
|
23617
|
+
providerPaymentId?: string | undefined;
|
|
23607
23618
|
success: true;
|
|
23608
23619
|
invoice: {
|
|
23609
23620
|
id: string;
|
|
@@ -23628,7 +23639,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
23628
23639
|
code: string | undefined;
|
|
23629
23640
|
};
|
|
23630
23641
|
outputFormat: "json";
|
|
23631
|
-
status: 400 | 403 | 404 | 409;
|
|
23642
|
+
status: 400 | 403 | 404 | 409 | 502 | 503;
|
|
23632
23643
|
};
|
|
23633
23644
|
};
|
|
23634
23645
|
} & {
|