From c59cb7c2b82633c3c9aac2be785848b3eff3dac1 Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Thu, 12 Sep 2024 12:32:53 +0300 Subject: [PATCH] IMP-278: Reverts damsel w/ legacy payouts support (#49) * IMP-278: Reverts damsel w/ legacy payouts support * Bumps damsel --- apps/pm_client/src/pm_client_party.erl | 6 ++++++ compose.yaml | 2 +- rebar.lock | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/pm_client/src/pm_client_party.erl b/apps/pm_client/src/pm_client_party.erl index cdcb44a..52e83cf 100644 --- a/apps/pm_client/src/pm_client_party.erl +++ b/apps/pm_client/src/pm_client_party.erl @@ -45,6 +45,7 @@ -export([get_shop_account/2]). -export([pull_event/1]). -export([pull_event/2]). +-export([get_events/3]). -export([compute_provider/4]). -export([compute_provider_terminal/4]). @@ -290,6 +291,11 @@ pull_event(Client) -> pull_event(Timeout, Client) -> gen_server:call(Client, {pull_event, Timeout}, infinity). +-spec get_events(non_neg_integer() | undefined, pos_integer() | undefined, pid()) -> + [tuple()] | woody_error:business_error(). +get_events(After, Limit, Client) -> + call(Client, 'GetEvents', with_party_id([]) ++ [#payproc_EventRange{'after' = After, limit = Limit}]). + call(Client, Function, Args) -> map_result_error(gen_server:call(Client, {call, Function, Args})). diff --git a/compose.yaml b/compose.yaml index 8beb2ee..ecbd764 100644 --- a/compose.yaml +++ b/compose.yaml @@ -24,7 +24,7 @@ services: command: /sbin/init dominant: - image: ghcr.io/valitydev/dominant:sha-1c283be-epic-IMP-278-fx-retire-payouts + image: ghcr.io/valitydev/dominant:sha-7e33b86 depends_on: - machinegun ports: diff --git a/rebar.lock b/rebar.lock index 63c2144..809c88e 100644 --- a/rebar.lock +++ b/rebar.lock @@ -13,7 +13,7 @@ {<<"ctx">>,{pkg,<<"ctx">>,<<"0.6.0">>},2}, {<<"damsel">>, {git,"https://github.com/valitydev/damsel.git", - {ref,"8e034bc74b1f4ed0e00dd63d0c3ca9c922be1c47"}}, + {ref,"9d4aa513fcbc1cc7ba5eedd9f96d8bc8590a6ac2"}}, 0}, {<<"dmt_client">>, {git,"https://github.com/valitydev/dmt_client.git",