@delopay/sdk 0.153.0 → 0.154.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.
package/dist/index.d.cts CHANGED
@@ -8172,6 +8172,8 @@ interface PaymentListOrder {
8172
8172
  * omitted = both.
8173
8173
  */
8174
8174
  interface PaymentListFilterConstraints {
8175
+ /** General case-insensitive search across plaintext transaction fields. */
8176
+ search?: string | null;
8175
8177
  /** Literal ID prefix (3+ characters), otherwise exact; supported across connectors. */
8176
8178
  connector_transaction_id?: string | null;
8177
8179
  /** Literal ID prefix (3+ characters), otherwise exact; supported across connectors. */
package/dist/index.d.ts CHANGED
@@ -8172,6 +8172,8 @@ interface PaymentListOrder {
8172
8172
  * omitted = both.
8173
8173
  */
8174
8174
  interface PaymentListFilterConstraints {
8175
+ /** General case-insensitive search across plaintext transaction fields. */
8176
+ search?: string | null;
8175
8177
  /** Literal ID prefix (3+ characters), otherwise exact; supported across connectors. */
8176
8178
  connector_transaction_id?: string | null;
8177
8179
  /** Literal ID prefix (3+ characters), otherwise exact; supported across connectors. */
package/dist/internal.cjs CHANGED
@@ -8630,8 +8630,9 @@ var AdminPortal = class {
8630
8630
  return this.request("GET", `/admin-portal/customers/${encodeURIComponent(customerId)}`);
8631
8631
  }
8632
8632
  async listTransactions(params) {
8633
+ const query = transactionListQuery(params);
8633
8634
  return this.request("GET", "/admin-portal/transactions", {
8634
- query: params
8635
+ query
8635
8636
  });
8636
8637
  }
8637
8638
  /**
@@ -8674,6 +8675,15 @@ var AdminPortal = class {
8674
8675
  `/admin-portal/transactions/${encodeURIComponent(paymentId)}/refunds`
8675
8676
  );
8676
8677
  }
8678
+ /**
8679
+ * Refunds of ANY merchant mirrored from a connector webhook at a
8680
+ * non-terminal status that no sync can advance. Newest first.
8681
+ */
8682
+ async listUnresolvedRefunds(params) {
8683
+ return this.request("GET", "/admin-portal/refunds/unresolved", {
8684
+ query: params
8685
+ });
8686
+ }
8677
8687
  async analytics(params) {
8678
8688
  return this.request("GET", "/admin-portal/analytics", {
8679
8689
  query: params
@@ -9150,6 +9160,31 @@ var AdminPortal = class {
9150
9160
  return this.request("PUT", "/admin-portal/promo-config", { body: params });
9151
9161
  }
9152
9162
  };
9163
+ function transactionListQuery(params) {
9164
+ if (!params) return void 0;
9165
+ const {
9166
+ statuses,
9167
+ connectors,
9168
+ payment_methods,
9169
+ payment_method_types,
9170
+ currencies,
9171
+ merchant_connector_ids,
9172
+ connector_settlement_statuses,
9173
+ routing_approaches,
9174
+ ...query
9175
+ } = params;
9176
+ return {
9177
+ ...query,
9178
+ ...statuses?.length ? { statuses: statuses.join(",") } : {},
9179
+ ...connectors?.length ? { connectors: connectors.join(",") } : {},
9180
+ ...payment_methods?.length ? { payment_methods: payment_methods.join(",") } : {},
9181
+ ...payment_method_types?.length ? { payment_method_types: payment_method_types.join(",") } : {},
9182
+ ...currencies?.length ? { currencies: currencies.join(",") } : {},
9183
+ ...merchant_connector_ids?.length ? { merchant_connector_ids: merchant_connector_ids.join(",") } : {},
9184
+ ...connector_settlement_statuses?.length ? { connector_settlement_statuses: connector_settlement_statuses.join(",") } : {},
9185
+ ...routing_approaches?.length ? { routing_approaches: routing_approaches.join(",") } : {}
9186
+ };
9187
+ }
9153
9188
 
9154
9189
  // src/internal/resources/auditLogs.ts
9155
9190
  var AuditLogs = class {