Skip to content

Commit 9ed4e6e

Browse files
authored
BG-378: Bump (#39)
1 parent 9eb96a7 commit 9ed4e6e

6 files changed

Lines changed: 19 additions & 18 deletions

File tree

apps/limiter/src/lim_config_machine.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,8 @@ check_calculate_year_shard_id_test() ->
10161016

10171017
-define(INVOICE(OwnerID, ShopID), #domain_Invoice{
10181018
id = <<"ID">>,
1019-
owner_id = OwnerID,
1020-
shop_id = ShopID,
1019+
party_ref = #domain_PartyConfigRef{id = OwnerID},
1020+
shop_ref = #domain_ShopConfigRef{id = ShopID},
10211021
domain_revision = 1,
10221022
created_at = <<"2000-02-02T12:12:12Z">>,
10231023
status = {unpaid, #domain_InvoiceUnpaid{}},
@@ -1065,7 +1065,7 @@ check_calculate_year_shard_id_test() ->
10651065

10661066
-define(WITHDRAWAL(OwnerID, PaymentTool), #wthd_domain_Withdrawal{
10671067
destination = PaymentTool,
1068-
sender = OwnerID,
1068+
sender = #domain_PartyConfigRef{id = OwnerID},
10691069
created_at = <<"2000-02-02T12:12:12Z">>,
10701070
body = #domain_Cash{amount = 42, currency = #domain_CurrencyRef{symbolic_code = <<"CNY">>}}
10711071
}).

apps/limiter/src/lim_payproc_context.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ get_value(ValueName, _Operation, _Context) ->
130130
}).
131131

132132
get_owner_id(?INVOICE(Invoice)) ->
133-
{ok, Invoice#domain_Invoice.owner_id};
133+
{ok, Invoice#domain_Invoice.party_ref#domain_PartyConfigRef.id};
134134
get_owner_id(_) ->
135135
{error, notfound}.
136136

137137
get_shop_id(?INVOICE(Invoice)) ->
138-
{ok, Invoice#domain_Invoice.shop_id};
138+
{ok, Invoice#domain_Invoice.shop_ref#domain_ShopConfigRef.id};
139139
get_shop_id(_) ->
140140
{error, notfound}.
141141

apps/limiter/src/lim_wthdproc_context.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
-include_lib("limiter_proto/include/limproto_context_withdrawal_thrift.hrl").
44
-include_lib("limiter_proto/include/limproto_base_thrift.hrl").
55
-include_lib("damsel/include/dmsl_wthd_domain_thrift.hrl").
6+
-include_lib("damsel/include/dmsl_domain_thrift.hrl").
67

78
-behaviour(lim_context).
89
-export([get_operation/1]).
@@ -110,7 +111,7 @@ get_value(ValueName, _Operation, _Context) ->
110111
-define(SENDER_RECEIVER(V), ?AUTH_DATA({sender_receiver, V})).
111112

112113
get_owner_id(?WITHDRAWAL(Wthd)) ->
113-
{ok, Wthd#wthd_domain_Withdrawal.sender};
114+
{ok, Wthd#wthd_domain_Withdrawal.sender#domain_PartyConfigRef.id};
114115
get_owner_id(_CtxWithdrawal) ->
115116
{error, notfound}.
116117

apps/limiter/test/lim_ct_helper.hrl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130

131131
-define(invoice(OwnerID, ShopID, Cost), #domain_Invoice{
132132
id = ?string,
133-
owner_id = OwnerID,
134-
shop_id = ShopID,
133+
party_ref = #domain_PartyConfigRef{id = OwnerID},
134+
shop_ref = #domain_ShopConfigRef{id = ShopID},
135135
domain_revision = 1,
136136
created_at = ?timestamp,
137137
status = {unpaid, #domain_InvoiceUnpaid{}},
@@ -243,7 +243,7 @@
243243
body = Body,
244244
created_at = ?timestamp,
245245
destination = Destination,
246-
sender = OwnerID,
246+
sender = #domain_PartyConfigRef{id = OwnerID},
247247
auth_data = AuthData
248248
}).
249249

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
{deps, [
2929
{prometheus, "4.11.0"},
3030
{prometheus_cowboy, "0.1.9"},
31-
{damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.11"}}},
31+
{damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.12"}}},
3232
{limiter_proto, {git, "https://github.com/valitydev/limiter-proto.git", {branch, "master"}}},
3333
{liminator_proto, {git, "https://github.com/valitydev/liminator-proto.git", {branch, "master"}}},
3434
{xrates_proto, {git, "https://github.com/valitydev/xrates-proto.git", {branch, "master"}}},
35-
{machinery, {git, "https://github.com/valitydev/machinery-erlang.git", {tag, "v1.1.7"}}},
35+
{machinery, {git, "https://github.com/valitydev/machinery-erlang.git", {tag, "v1.1.10"}}},
3636
{erl_health, {git, "https://github.com/valitydev/erlang-health.git", {branch, "master"}}},
3737
{genlib, {git, "https://github.com/valitydev/genlib.git", {tag, "v1.1.0"}}},
3838
{scoper, {git, "https://github.com/valitydev/scoper.git", {tag, "v1.1.0"}}},

rebar.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{<<"cache">>,{pkg,<<"cache">>,<<"2.3.3">>},1},
66
{<<"canal">>,
77
{git,"https://github.com/valitydev/canal",
8-
{ref,"621d3821cd0a6036fee75d8e3b2d17167f3268e4"}},
8+
{ref,"89faedce3b054bcca7cc31ca64d2ead8a9402305"}},
99
3},
1010
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.8.0">>},2},
1111
{<<"cg_mon">>,
@@ -19,19 +19,19 @@
1919
{<<"ctx">>,{pkg,<<"ctx">>,<<"0.6.0">>},2},
2020
{<<"damsel">>,
2121
{git,"https://github.com/valitydev/damsel.git",
22-
{ref,"ff9b01f552f922ce4a16710827aa872325dbe5a9"}},
22+
{ref,"8cab698cd78125ac47489d0ba81169df376757a4"}},
2323
0},
2424
{<<"dmt_client">>,
2525
{git,"https://github.com/valitydev/dmt_client.git",
2626
{ref,"fff521d3d50b48e3c6b628fe4796b3628aedc6b7"}},
2727
0},
2828
{<<"epg_connector">>,
2929
{git,"https://github.com/valitydev/epg_connector.git",
30-
{ref,"dd93e27c00d492169e8a7bfc38976b911c6e7d05"}},
30+
{ref,"2e86da8083908d0d35a4eed3e2168c9ba6a8d04a"}},
3131
2},
3232
{<<"epgsql">>,
3333
{git,"https://github.com/epgsql/epgsql.git",
34-
{ref,"7ba52768cf0ea7d084df24d4275a88eef4db13c2"}},
34+
{ref,"28e9f84c95065a51e92baeb37d2cf1687fc4b9ce"}},
3535
3},
3636
{<<"erl_health">>,
3737
{git,"https://github.com/valitydev/erlang-health.git",
@@ -59,12 +59,12 @@
5959
0},
6060
{<<"machinery">>,
6161
{git,"https://github.com/valitydev/machinery-erlang.git",
62-
{ref,"74f49ff6c2a161ecad426e1bd0dcef6f508babab"}},
62+
{ref,"066f6cecd5d8f011c1b3bf8e45f6ad967c0e733d"}},
6363
0},
6464
{<<"metrics">>,{pkg,<<"metrics">>,<<"1.0.1">>},2},
6565
{<<"mg_proto">>,
6666
{git,"https://github.com/valitydev/machinegun-proto",
67-
{ref,"3decc8f8b13c9cd1701deab47781aacddd7dbc92"}},
67+
{ref,"cc2c27c30d30dc34c0c56fc7c7e96326d6bd6a14"}},
6868
1},
6969
{<<"mimerl">>,{pkg,<<"mimerl">>,<<"1.4.0">>},2},
7070
{<<"opentelemetry">>,{pkg,<<"opentelemetry">>,<<"1.5.0">>},0},
@@ -75,7 +75,7 @@
7575
{<<"parse_trans">>,{pkg,<<"parse_trans">>,<<"3.3.1">>},2},
7676
{<<"progressor">>,
7777
{git,"https://github.com/valitydev/progressor.git",
78-
{ref,"4c44615f712ae8992ff1a654f227def9f44c8aa7"}},
78+
{ref,"d429410a0f2b42fbcc22b340cc8dc1915b13f119"}},
7979
1},
8080
{<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.11.0">>},0},
8181
{<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.9">>},0},

0 commit comments

Comments
 (0)