@openrails/billing-ui 0.246.0 → 0.247.0
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.
|
@@ -2060,6 +2060,40 @@ export declare const OPENRAILS_ROUTES: readonly [{
|
|
|
2060
2060
|
};
|
|
2061
2061
|
readonly errors: readonly ["as_of_required", "invalid_param", "invalid_psp_reference", "resource_conflict"];
|
|
2062
2062
|
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2063
|
+
}, {
|
|
2064
|
+
readonly method: "GET";
|
|
2065
|
+
readonly path: "/v1/merchant/destructive-holds";
|
|
2066
|
+
readonly group: "merchant_config";
|
|
2067
|
+
readonly auth: "merchant";
|
|
2068
|
+
readonly permission: {
|
|
2069
|
+
readonly merchant: "merchant:config:read";
|
|
2070
|
+
readonly root: "root:config:read";
|
|
2071
|
+
};
|
|
2072
|
+
readonly sensitive: false;
|
|
2073
|
+
readonly mountedWhen: null;
|
|
2074
|
+
readonly request: null;
|
|
2075
|
+
readonly responses: {
|
|
2076
|
+
readonly 200: "ListPage<DestructiveHold>";
|
|
2077
|
+
};
|
|
2078
|
+
readonly errors: readonly ["invalid_cursor", "service_unavailable"];
|
|
2079
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly method: "POST";
|
|
2082
|
+
readonly path: "/v1/merchant/destructive-holds/{id}/clear";
|
|
2083
|
+
readonly group: "merchant_config";
|
|
2084
|
+
readonly auth: "merchant";
|
|
2085
|
+
readonly permission: {
|
|
2086
|
+
readonly merchant: "merchant:config:manage";
|
|
2087
|
+
readonly root: "root:config:manage";
|
|
2088
|
+
};
|
|
2089
|
+
readonly sensitive: false;
|
|
2090
|
+
readonly mountedWhen: null;
|
|
2091
|
+
readonly request: "ClearDestructiveHoldParams";
|
|
2092
|
+
readonly responses: {
|
|
2093
|
+
readonly 200: "DestructiveHold";
|
|
2094
|
+
};
|
|
2095
|
+
readonly errors: readonly ["invalid_param", "permission_required", "resource_conflict", "resource_not_found", "service_unavailable"];
|
|
2096
|
+
readonly errorSets: readonly ["tier:merchant", "request"];
|
|
2063
2097
|
}, {
|
|
2064
2098
|
readonly method: "POST";
|
|
2065
2099
|
readonly path: "/v1/app/notification-consumers/{name}";
|
|
@@ -418,6 +418,9 @@ export type CheckoutRoutingRule = {
|
|
|
418
418
|
match?: CheckoutRoutingMatch;
|
|
419
419
|
prefer: string[];
|
|
420
420
|
};
|
|
421
|
+
export type ClearDestructiveHoldParams = {
|
|
422
|
+
reason?: string;
|
|
423
|
+
};
|
|
421
424
|
export type ConfirmOrderParams = {
|
|
422
425
|
signature?: string;
|
|
423
426
|
};
|
|
@@ -748,6 +751,22 @@ export type DelinquencyHostEvent = {
|
|
|
748
751
|
grace_days: number;
|
|
749
752
|
amount_floor: string;
|
|
750
753
|
};
|
|
754
|
+
export type DestructiveHold = {
|
|
755
|
+
id: string;
|
|
756
|
+
merchant_id: string;
|
|
757
|
+
scope: string;
|
|
758
|
+
action: string;
|
|
759
|
+
window: string;
|
|
760
|
+
observed: number;
|
|
761
|
+
requested: number;
|
|
762
|
+
ceiling: number;
|
|
763
|
+
opened_at: string;
|
|
764
|
+
cleared_at: string | null;
|
|
765
|
+
};
|
|
766
|
+
export type DestructiveHoldEvent = {
|
|
767
|
+
hold_id: string;
|
|
768
|
+
scope: string;
|
|
769
|
+
};
|
|
751
770
|
export type DriftField = {
|
|
752
771
|
field: string;
|
|
753
772
|
openrails_value: string;
|
|
@@ -866,9 +885,10 @@ export type HeldEntitlements = {
|
|
|
866
885
|
truncated: boolean;
|
|
867
886
|
};
|
|
868
887
|
export type HostEvent = {
|
|
888
|
+
destructive_hold: DestructiveHoldEvent | null;
|
|
869
889
|
id: string;
|
|
870
890
|
merchant_id: string;
|
|
871
|
-
type: "balance.depleted" | "balance.low" | "customer.network_linked" | "customer.network_unlinked" | "delinquency.cleared" | "delinquency.entered" | "delinquency.grace" | "mandate.revoked" | "order.canceled" | "order.completed" | "order.expired" | "order.payment_failed" | "order.requires_action" | "order.voided" | "payment.settled" | "product.entitlements_changed";
|
|
891
|
+
type: "balance.depleted" | "balance.low" | "customer.network_linked" | "customer.network_unlinked" | "delinquency.cleared" | "delinquency.entered" | "delinquency.grace" | "destructive.hold_cleared" | "destructive.hold_opened" | "mandate.revoked" | "order.canceled" | "order.completed" | "order.expired" | "order.payment_failed" | "order.requires_action" | "order.voided" | "payment.settled" | "product.entitlements_changed";
|
|
872
892
|
occurred_at: string;
|
|
873
893
|
acknowledged_at: string | null;
|
|
874
894
|
payment: PaymentSettledEvent | null;
|
package/package.json
CHANGED