mirror of
https://github.com/valitydev/party-client-erlang.git
synced 2024-11-06 02:35:20 +00:00
HG-452: Rename methods (#17)
This commit is contained in:
parent
416647f36f
commit
052db7d6bb
@ -20,8 +20,8 @@
|
||||
-export([compute_contract_terms/8]).
|
||||
-export([get_shop/4]).
|
||||
-export([compute_shop_terms/6]).
|
||||
-export([compute_payment_provider/5]).
|
||||
-export([compute_payment_provider_terminal_terms/6]).
|
||||
-export([compute_provider/5]).
|
||||
-export([compute_provider_terminal_terms/6]).
|
||||
-export([compute_payment_institution_terms/5]).
|
||||
-export([compute_payment_institution/5]).
|
||||
-export([compute_payout_cash_flow/4]).
|
||||
@ -249,17 +249,17 @@ compute_contract_terms(PartyId, ContractId, Timestamp, PartyRevision, DomainRevi
|
||||
Args = [PartyId, ContractId, Timestamp, PartyRevision, DomainRevision, Varset],
|
||||
call('ComputeContractTerms', Args, Client, Context).
|
||||
|
||||
-spec compute_payment_provider(Ref, Domain, Varset, client(), context()) ->
|
||||
-spec compute_provider(Ref, Domain, Varset, client(), context()) ->
|
||||
result(provider(), Error)
|
||||
when
|
||||
Ref :: provider_ref(),
|
||||
Domain :: domain_revision(),
|
||||
Varset :: varset(),
|
||||
Error :: provider_not_found().
|
||||
compute_payment_provider(Ref, Domain, Varset, Client, Context) ->
|
||||
compute_provider(Ref, Domain, Varset, Client, Context) ->
|
||||
call('ComputeProvider', [Ref, Domain, Varset], Client, Context).
|
||||
|
||||
-spec compute_payment_provider_terminal_terms(Ref, TerminalRef, Domain, Varset, client(), context()) ->
|
||||
-spec compute_provider_terminal_terms(Ref, TerminalRef, Domain, Varset, client(), context()) ->
|
||||
result(provision_term_set(), Error)
|
||||
when
|
||||
Ref :: provider_ref(),
|
||||
@ -267,7 +267,7 @@ compute_payment_provider(Ref, Domain, Varset, Client, Context) ->
|
||||
Domain :: domain_revision(),
|
||||
Varset :: varset(),
|
||||
Error :: provider_not_found() | terminal_not_found().
|
||||
compute_payment_provider_terminal_terms(Ref, TerminalRef, Domain, Varset, Client, Context) ->
|
||||
compute_provider_terminal_terms(Ref, TerminalRef, Domain, Varset, Client, Context) ->
|
||||
call('ComputeProviderTerminalTerms', [Ref, TerminalRef, Domain, Varset], Client, Context).
|
||||
|
||||
-spec compute_payment_institution_terms(party_id(), payment_institution_ref(), varset(), client(), context()) ->
|
||||
|
@ -296,14 +296,14 @@ compute_provider_ok(C) ->
|
||||
cash_value = {value, ?cash(1000, <<"RUB">>)}
|
||||
}
|
||||
}
|
||||
}} = party_client_thrift:compute_payment_provider(?prv(1), DomainRevision, Varset, Client, Context).
|
||||
}} = party_client_thrift:compute_provider(?prv(1), DomainRevision, Varset, Client, Context).
|
||||
|
||||
-spec compute_provider_not_found(config()) -> any().
|
||||
compute_provider_not_found(C) ->
|
||||
{ok, _PartyId, Client, Context} = test_init_info(C),
|
||||
{ok, DomainRevision} = dmt_client_cache:update(),
|
||||
{error, #payproc_ProviderNotFound{}} =
|
||||
party_client_thrift:compute_payment_provider(
|
||||
party_client_thrift:compute_provider(
|
||||
?prv(2), DomainRevision, #payproc_Varset{}, Client, Context).
|
||||
|
||||
-spec compute_provider_terminal_terms_ok(config()) -> any().
|
||||
@ -326,7 +326,7 @@ compute_provider_terminal_terms_ok(C) ->
|
||||
payments = #domain_PaymentsProvisionTerms{
|
||||
cash_flow = {value, [CashFlow]},
|
||||
payment_methods = {value, PaymentMethods}
|
||||
}}} = party_client_thrift:compute_payment_provider_terminal_terms(
|
||||
}}} = party_client_thrift:compute_provider_terminal_terms(
|
||||
?prv(1), ?trm(1), DomainRevision, Varset, Client, Context).
|
||||
|
||||
-spec compute_provider_terminal_terms_not_found(config()) -> any().
|
||||
@ -334,13 +334,13 @@ compute_provider_terminal_terms_not_found(C) ->
|
||||
{ok, _PartyId, Client, Context} = test_init_info(C),
|
||||
{ok, DomainRevision} = dmt_client_cache:update(),
|
||||
{error, #payproc_TerminalNotFound{}} =
|
||||
party_client_thrift:compute_payment_provider_terminal_terms(
|
||||
party_client_thrift:compute_provider_terminal_terms(
|
||||
?prv(1), ?trm(2), DomainRevision, #payproc_Varset{}, Client, Context),
|
||||
{error, #payproc_ProviderNotFound{}} =
|
||||
party_client_thrift:compute_payment_provider_terminal_terms(
|
||||
party_client_thrift:compute_provider_terminal_terms(
|
||||
?prv(2), ?trm(1), DomainRevision, #payproc_Varset{}, Client, Context),
|
||||
{error, #payproc_ProviderNotFound{}} =
|
||||
party_client_thrift:compute_payment_provider_terminal_terms(
|
||||
party_client_thrift:compute_provider_terminal_terms(
|
||||
?prv(2), ?trm(2), DomainRevision, #payproc_Varset{}, Client, Context).
|
||||
|
||||
%% Internal functions
|
||||
|
Loading…
Reference in New Issue
Block a user