Commit Graph

60 Commits

Author SHA1 Message Date
Andrew Mayorov
4529702db5
Generalize the notion of InternationalBankAccount (#358)
* Drop local bank code from InternationalBankAccount
* Unify bank accounts + make it possible to modify them
2018-08-31 19:53:40 +03:00
Andrey Fadeev
f780cf7c2e
HG-386 Remove wallet management methods from party management (#356) 2018-08-22 00:19:27 +03:00
Evgeny Levenets
36907b0e50
DC-83: add RBKWallet to party management (#325)
* DC-83: add RBKWallet to party management (#311)

* DC-83: new exceptions for wallets & contractors (#330)

* CDS-57: introduce identity storage service (#338)

* HOOK-86: Hooks for wallets (#337)

* HG-364 CDS-57 Rename indentity docs erlang namespace. (#339)

Renamig is caused by review rbkmoney/cds#55

* HG-364 CDS-57 Simplify cds ident protocol. Move mask functions to API (#340)

* HG-371: Introduce simplistic withdrawal processing (#333)

* HG-371: add cumulative limits (#341)

* add turnover limits to wallet service terms
* add some thoughts in form of TODOs

* Add rbkmoney to DigitalWalletProvider enum (#343)

* DC-92: add ability to compute terms for wallet (#344)
2018-07-17 17:32:10 +03:00
Andrey Fadeev
e0be900435
DC-94 Split payment start message into multiple stages (#345) 2018-07-04 17:56:19 +03:00
Evgeny Levenets
ec88305207
DC-84: add act preferences to contract (#317) (#329)
* DC-84: add act preferences to contract (#317)

* add act preferences to contract
* enrich calendar with first day of week
* use business schedule to generalize all schedules

* Add other preferences for reports (#331)

* Add other preferences for reports

* Add reference parameter

* Review fixes

* Review fixes

* Remove unused fields
2018-05-16 16:03:37 +03:00
Evgeny Levenets
9fbdcd8101
HG-334: new exceptions for claims (#308)
* new exceptions for claims should replace InvalidRequest
* decompose reason to shop & contract
2018-04-19 19:44:56 +03:00
Natalia Pulina
73652893ee
HG-330: New ex InconsistentPaymentCurrency -> refundPayment (#315) 2018-03-22 15:42:45 +03:00
Natalia Pulina
cdf69d5c85
HG-330: Introduce partial refunds (#291)
* HG-330: Introduce partial refunds and terms (#289)

* HG-332: InvoicePaymentRefund is enriched with cash (#290)

* HG-330:
- TimeSpan added;
- optional cash in InvoicePaymentRefundParams;
- ex InvoicePaymentAmountExceeded added.

* HG-330: TimeSpanSelector for eligibility_time

* HG-330: Add some comments, use InvoicePaymentMaximumAmountExceeded ex

* HG-330: InvoicePaymentAmountExceeded fixed

* HG-339: operation_amount -> CashFlowConstant (#300)

* HG-341: Introduce provision terms for partial refunds (#301)

* HOOK-76: Partial refunds for webhooks (#309)
2018-03-06 17:04:49 +03:00
Andrew Mayorov
3dd66accb3
DC-66: Introduce payout terms (#283)
* DC-66: Introduce payout terms (#269)
* DC-66: Generalize cash flow constants
* DC-78: add ability to disable scheduled payouts (#284)
* DC-76: add ability to calculate fees for payout (#285)
* HG-312: add payout method condition (#294)
* HG-312: change InvalidRequest to OperationNotPermitted (#295)
* DC-80: enlarge international entities (#297)
* PAYOUT-52: Nonresidents in payout events (#298)
* CAPI-251: add varset for payment institution terms computation (#302)
2018-02-26 15:14:59 +03:00
Andrew Mayorov
7904077554
Allow for ad-hoc repairs w/ the ability to push arbitrary changes (#303) 2018-02-15 11:20:36 +03:00
Evgeny Levenets
284cb1ad85
BA-43: Bring payment institutions on the table (#259)
DC-62: add payment institution (#254)
  * add payment institution
  * add PaymentInstitutionRealm to identify test or live one
  * bump build image for the best thrift compiler
  * add PaymentInstitutionRef to contract creation params
  * remove shop, contract and party proto entirely

DC-64: add discrete party revisioning (#258)
  * add discrete party revisioning
  * add special PartyCreated change to separate service interface and event payload

DC-64: make party revisioning in change instead of event (#261)

DC-71: add international legal entity and bank account (#270)

DC-75: add migration data to Globals (#277)

DC-75: add backwards compatibility to party events (#278)
  * add notes about party revisioning
2018-01-19 16:44:26 +03:00
Dmitry Manik
0abdda2e76
Epic: Subscriptions 2 (#250) 2017-11-22 13:21:20 +03:00
Evgeny Levenets
8271b2e389 DC-51: penetrate invoice cart into invoice template (#248) 2017-10-25 15:44:15 +03:00
Dmitry Manik
478235a1bd HG-231: Introduce subscriptions (#163) (#205) 2017-10-23 15:00:48 +03:00
Natalia Pulina
50a6930a2a HG-280: Introduce compute terms for invoice templating (#242) 2017-10-02 19:42:13 +04:00
Andrew Mayorov
23b50e4c46 HG-264: Allow proxies ask for a payment state with a callback tag (#221) (#238)
* HG-264: Bump to rbkmoney/image-build@317d286

* HG-264: Allow proxies ask for a payment state with callback tags

* HG-264: Supply suspend tag with session changes
2017-09-28 19:21:55 +03:00
Natalia Pulina
01ba0fd72f DC-52: add interface for getting computed payment terms (#225) (#233)
* add interface for getting computed payment terms
* use short names for ContractID & ShopID
2017-09-27 16:47:14 +04:00
Andrew Mayorov
65cff9f2dc HG-58: List insufficient funds as why refund may fail (#226) 2017-09-21 10:18:01 +03:00
Andrew Mayorov
2223cc606c Make status reasons optional in claims (#223) 2017-09-14 15:59:29 +03:00
Alexey Semenkov
49773b2cc3 HG-58: Allow to refund payment (#210)
* HG-227: Introduce basic payment refunds (#158)

* HG-229: Move moving state parts out (#193)

* MST-112: Add refund status in stat proto (#206)

* HOOK-34: Introduce refunds (#203)

* HG-229: Introduce refund terms (#200)

* HG-229: Make provision terms much more strict (#211)

* HG-262: Use yet unallocated tag for the redesigned holds terms (#219)
2017-09-12 12:36:42 +03:00
Alexey Semenkov
44afec3edc HG-237: Introduce hold payments (#209)
* HG-233: Support of holds added (#159)

* HG-236: InvalidOperation ex added (#165)

* HG-236: InvalidPartyStatus, InvalidShopStatus -> CapturePayment, CancelPayment (#167)

* MST-111: holds in mst (#181)

* HG-255: Selector for holds (#207)
2017-08-29 18:51:12 +03:00
Evgeny Levenets
8c432f7f76 HG-246: add better support for 54FL (#184)
* add metadata to Party
* add interface for PartyMeta modification
* add cart with lines to invoice
2017-08-03 13:48:31 +03:00
Anton Belyaev
2b2e351ed4 Introduce invoice templates (#166)
* Introduce invoice templates
* Fix Jenkinsfile
2017-07-26 13:32:38 +03:00
Alexey Semenkov
b665c89c83 HG-192: Introduce multiclaims (#131)
* DC-23: changed PartyManagement interface to claims (#122)

* DC-23: changed PartyManagement interface to work with claims as primary editing method

DC-25: changed PartyChangeset to match with new interface (DC-23)
Moved ShopLocation to Shop level

* added ContractExpiered status and creation timestamp

* changed contracts & shops IDs types from Int to String

* extracted ShopUpdate fields to ShopModification level

* added InvalidChangeset exception

* Claim effects added (v0.1)

* Claim effects v1.0

* Claim effects v1.1

added created_at in all party objects

* Added ShopProxyChanged effect produced by ProxyModification changeset

* added ClaimUpdated event and ClaimRevision property

* added revision check to AcceptClaim

* added revision to deny/revoke methods for uniformity

* added ShopContractChanged to make one-to-one relations beetween change & effect

* Category is back to ShopParams as optional field

* AcceptClaim can throw InvalidChangeset exception

* Added AnonymousEntity to fulfill contract creation requirements

* Renamed AninymousEntity to RegisteredUser

* Added PayoutToolType to distinguish test and live payout tools

* Removed payout tool type due to redundancy

* Added PayoutToolPrototype to incapsulate test payout tool params

* Walker2 API (#125)

* Walker 2 api
new Methods for 
CRUD operations fro Claims, Comments and history(Actions)
WALK-20

* rename to wc_deploy

* add deploy_epic_nexus to list

* fix make cmd

* fixed suspension naming

* elastico interface

get end search party methods
Ft/walk 27/elastico (#133)

* Syncronize walker and payment processing thrifts

* WALK-27: Bump to rbkmoney/image-build@efd28e5 (#138)

* DC-27: added timestamp and revision to claim related events

* DC-27: added updated timestamp to claim

Added timestamp to blocking/suspension statuses (party & shop) for same reason.

* DC-27: removed unnecessary timestamp from accepted status (#143)

* Added missed InvalidContractStatus exception (#144)

* Removed timestamp from ContractTermination changeset

rebased to newest master

* jenkins pr crutch

* update walker 2 interface

* fix signature

* replace strings

* add update and create date

* Event batching v0.1 (obvious one) (#160)

* HG-227: Publish formerly internal events (#161)

* HG-227: Streamline event payload definitions

* HG-227: Publish formerly internal events

* HG-227: Introduce session-level result

* HG-227: Start classifying operation failures

* HG-227: Differentiate between domain and payproc invoicing models

* HG-227: Strip domain models further

* HG-227: Make risk score, route and cash flow required

* HG-227: Give shop location back to proxies (#164)
2017-07-17 13:21:41 +03:00
Evgeny Levenets
f0627b8750 HG-218: added specific exception to Checkout with bad timestamp (#154) 2017-06-16 18:38:35 +03:00
Evgeny Levenets
05017566dc HG-218: added Checkout(timestamp) interface in PartyManagement (#152) 2017-06-16 14:59:04 +03:00
Andrew Mayorov
874759043e HG-195: Introduce payment adjustments (#148)
* HG-195: Simplify create flow in payproc

* HG-195: Introduce payment adjustments

* HG-195: Disallow more than one pending adjustment

* HG-195: Add reason to the payment adjustment

* HG-195: Sprinkle over some comments

* HG-195: Include cash flow diff

* HG-196: Fix according to complaints
2017-06-15 19:24:35 +03:00
Evgeny Levenets
07b0898a7b DC-21: change 'category' param to optional at shop creation (#120) 2017-03-06 14:27:08 +03:00
Andrew Mayorov
9ec1a2ec70 HG-170: Expand exception interface in the invoicing service (#121) 2017-03-03 20:24:31 +03:00
Andrew Mayorov
4e4e214f52 HG-152: Allow to set up proxy while creating a shop (#114) 2017-02-01 16:22:27 +03:00
Evgeny Levenets
7687bb8de3 DC-15: party management improvements and various fixes (#110) 2017-01-20 12:16:31 +03:00
Andrew Mayorov
c05205983f HG-149: Stuff some party contact info in (#107) 2017-01-17 16:12:35 +03:00
Andrew Mayorov
91298f7e6d HG-131: Provide merchant proxy binding facility (#105)
* HG-131: Provide merchant proxy binding facility

* HG-131: Make a crutch for the capi to know what merchant proxy to use
2017-01-13 17:24:47 +03:00
Evgeny Levenets
7352d74536 HG-129: added user type for security checks in HG (#104) 2017-01-13 14:44:56 +03:00
Andrew Mayorov
737d7a0cf5 HG-130: Fix whoopsies (#102)
* HG-130: Fix whoopsies

* HG-130: Make exception name in line with the function names
2017-01-11 17:33:44 +03:00
Andrew Mayorov
db8eaf9479 HG-118: Design merchant proxy interface (#99)
* HG-118: Rename `InvoiceInfo` into `InvoiceDetails`

* HG-118: Sketch up a merchant proxy interface

* HG-118: Strip off invoice status dramatically

* HG-118: Fix a couple of issues
2016-12-21 15:53:12 +03:00
Andrew Mayorov
74233c7378 HG-115: Strictly identify cash flow accounts in a graph (#95)
* HG-115: Strictly identify cash flow accounts in a graph

* HG-115: Fix review issues

 * Further specify final cash flow to exclude the possibility of ambiguity
 * Use the `Cash` term everywhere instead of ambiguous `Amount`

* HG-115: Fix merge issues

* HG-115: Remove excessive constructs
2016-12-14 14:09:57 +03:00
Andrew Mayorov
5e569fcaaa HG-116: Fix a couple of consistency and clarity issues (#97)
* HG-116: Fix a couple of consistency and clarity issues

* HG-116: Introduce JSON-like type

* HG-116: Fix JSON types and introduce msgpack types

* HG-116: Remove the notion of schema revision

* HG-116: Introduce invoice info, better term needed

* HG-116: Rename `SmthPredicate` -> `SmthDecision`

* HG-116: Add missing namespace declarations

* HG-116: Try to get rid of keyword conflicts

* HG-116: Mention missing support for extreme floats
2016-12-13 20:23:13 +03:00
Evgeny Levenets
bfed187f41 Added test and default contract templates to Globals (#96)
* added test and default contract templates to Globals
* made contract template optional at contract creation
2016-12-12 19:12:03 +03:00
Artem Ocheredko
6ab8146009 HG-109 Add basic inspector proxy and minor refactoring (#92)
* HG-109 Add basic inspector proxy and minor refactoring. Add terminal selection based of risk scores
2016-12-09 16:03:31 +03:00
Evgeny Levenets
0992e40416 HG-91: contract belongs to party (#91)
* contract belongs to party and shop must be linked with contract upon creation
* one payout account, dumb selectors for currency and category

* Last fix
2016-12-09 15:05:35 +03:00
Andrew Mayorov
29d6caf9d1 HG-64: Pass routing and cash flow data down w/ events (#76)
* HG-64: Pass routing and cash flow data down w/ events

* HG-64: Change system account designation

* HG-64: Praise the javac overlord

* HG-64: Imply single limit

* HG-64: Include shop details in the prototype

* HG-64: Write a couple of comments
2016-10-17 17:27:32 +03:00
Artem Ocheredko
1a085d37c8 CAPI-32 Remove excessive field (#77) 2016-10-14 22:03:43 +03:00
Artem Ocheredko
5e264e070d HG-67 Fix category mismatch in party management (#75) 2016-10-13 19:33:13 +03:00
Andrew Mayorov
07af34c8ee HG-64: Streamline invoicing service (#74)
* HG-64: Streamline invoicing service

* HG-64: Bump image tag up

* HG-64: Forward-declare a couple of exceptions
2016-10-13 16:16:41 +03:00
Artem Ocheredko
12d4663343 HG-66 Modify payment processing to satisfy new domain requirements (#68) 2016-10-11 17:39:48 +03:00
Artem Ocheredko
1698e333ba HG-66 Add account management (#65)
* HG-66 Add account management
2016-10-10 18:36:37 +03:00
Andrew Mayorov
fc2b572995 HG-60: Introduce a notion of user interaction and related events (#58)
* HG-60: Introduce a notion of user interaction and related events

* HG-60: Declare required namespaces

* HG-60: Imply more general templates

* HG-60: Simplify HTTP request significantly
2016-09-23 23:54:14 +03:00
Andrew Mayorov
71887ddee8 HG-47: Fix a couple of issues which tainted party management interfaces (#53)
* HG-47: Fix function return type

* HG-47: Fix union field name

* HG-47: Feature claim revocation

* HG-47: Add invalid party status as a possible failure in claim revocation

* HG-47: Fix naming of claim status tags
2016-09-09 13:11:33 +03:00
Andrew Mayorov
c2a01157b3 HG-49: Make it possible to properly mark events from parties (#49) 2016-08-11 11:07:40 +00:00