Skip to content

Type Alias: ReconcileResult ​

ts
type ReconcileResult = 
  | AppliedResult
  | {
  operation: ReconcilableOperation;
  reason: string;
  status: "not-applied";
}
  | {
  operation?: OperationName;
  reason: string;
  status: "indeterminate";
};

Defined in: src/client-types.ts:134

What reconcile found out about a call whose outcome was unknown.

  • applied: LINE Pay did process it. body is built from the payment details, not received from the API.
  • not-applied: it did not take effect. Either the error proves it (the request was never sent, or LINE Pay refused it), or the payment details show no sign of it. The second kind is never concluded for a refund, whose absence from the details proves nothing, nor for a context that does not name its channel. It is what one look found: a payment that is still being processed shows up later, so look again after a while before repeating. LINE Pay is expected to refuse a second confirm, capture or void when the first took effect (verify that in the V4 sandbox); a second payPreapproved is refused only with the same orderId, and a new orderId is a new payment.
  • indeterminate: the evidence does not settle it. Look again later, or check the Merchant Center.

Union Members ​

AppliedResult


Type Literal ​

ts
{
  operation: ReconcilableOperation;
  reason: string;
  status: "not-applied";
}

Type Literal ​

ts
{
  operation?: OperationName;
  reason: string;
  status: "indeterminate";
}

operation? ​

ts
operation?: OperationName;

Absent when the error carries nothing to look up.

reason ​

ts
reason: string;

status ​

ts
status: "indeterminate";

Released under the MIT License. An independent library, not made or endorsed by LINE Pay.