Changes for page ../credit-account
Last modified by Helge Dahl on 2020/02/06 17:55
From version 58.1
edited by David Persson
on 2020/01/10 00:51
on 2020/01/10 00:51
To version 59.1
edited by David Persson
on 2020/01/10 01:45
on 2020/01/10 01:45
Change comment: There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -51,12 +51,7 @@ 51 51 "totalBalance" : -1900.0, 52 52 "reservedAmount": 50.0, 53 53 "availableAmount": 50.0, 54 - "openBill" : { 55 - "amountToBePayed" : 250.0, 56 - "bill" : "/ledger/credit-account/v1/501/accounts/123456/bills/963", 57 - "dueDate" : "2019-12-10", 58 - "billType" : "Bill" 59 - }, 54 + "openBill" : "/ledger/credit-account/v1/501/accounts/123456/bills/reminder-456", 60 60 "charityDonation": true, 61 61 "interestRate": { 62 62 "debtInterest" : 10.00, ... ... @@ -69,12 +69,12 @@ 69 69 "iban": "SE12345678945631", 70 70 "paymentReference": "54867165675646" 71 71 }, 72 - "active DirectDebitOrder": {73 - "payment Type": "AUTOGIRO",67 + "activePaymentOrder": { 68 + "paymentMethod": "AUTOGIRO", 74 74 "executionDate": "2020-01-01", 75 75 "amount" : 200.0 76 76 }, 77 - " directDebit": "/ledger/credit-account/v1/501/accounts/123456/direct-debit",72 + "recurringPaymentConsent": "/ledger/credit-account/v1/501/accounts/123456/recurring-payment", 78 78 "cards": "/ledger/credit-account/v1/501/accounts/123456/cards", 79 79 "transactions": "/ledger/credit-account/v1/501/accounts/123456/transactions", 80 80 "currency": "sek", ... ... @@ -200,7 +200,8 @@ 200 200 "@id": "/ledger/credit-account/v1/501/accounts/123456/bills/124645", 201 201 "dueDate": "2018-12-05", 202 202 "billNo": "124645", 203 - "amountToBePayed": 240.00, 198 + "billAmount": 240.00, 199 + "minimumAmountToBePayed": 240.00, 204 204 "billType" : "Bill", 205 205 "bankPayment": { 206 206 "bankAccountNo": "123", ... ... @@ -209,11 +209,7 @@ 209 209 "iban": "SE12345678945631", 210 210 "paymentReference": "5465164654663" 211 211 }, 212 - "activeDirectDebitOrder": { 213 - "paymentType": "AUTOGIRO", 214 - "executionDate": "2019-01-01", 215 - "amount" : 200.0 216 - }, 208 + "activePaymentOrder": "/ledger/credit-account/v1/501/accounts/123456/payment-order", 217 217 "pdf": "/ledger/credit-account/v1/501/accounts/123456/bills/963/pdf" 218 218 } 219 219 {{/code}} ... ... @@ -225,7 +225,8 @@ 225 225 |(% style="width:337px" %)@id|(% style="width:205px" %)string|(% style="width:208px" %)Uri|(% style="width:621px" %) 226 226 |(% style="width:337px" %)dueDate|(% style="width:205px" %)date|(% style="width:208px" %)[[ISO 8601>>url:http://en.wikipedia.org/wiki/ISO_8601||rel="noreferrer" title="ISO8601 on Wikipedia"]]|(% style="width:621px" %) 227 227 |(% style="width:337px" %)billNo|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 50|(% style="width:621px" %)The identifier of the bill 228 -|(% style="width:337px" %)minimumAmountToBePayed|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:621px" %)The minimum amount to pay on the currently open bill 220 +|(% style="width:337px" %)billAmount|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:621px" %)the amount that is stated on the actual bill/document 221 +|(% style="width:337px" %)minimumAmountToBePayed|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:621px" %)currently the minimum amount to pay on the bill 229 229 |(% style="width:337px" %)billType|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 25|(% style="width:621px" %)((( 230 230 BillTypes: 231 231 ... ... @@ -244,22 +244,22 @@ 244 244 |(% style="width:337px" %)bankPayment.bic|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 11|(% style="width:621px" %) 245 245 |(% style="width:337px" %)bankPayment.iban|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 34|(% style="width:621px" %) 246 246 |(% style="width:337px" %)bankPayment.paymentReference|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 50|(% style="width:621px" %) 247 -|(% style="width:337px" %)activePaymentOrder.payment Type|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 15|(% style="width:621px" %)(((240 +|(% style="width:337px" %)activePaymentOrder.paymentMethod|(% style="width:205px" %)string|(% style="width:208px" %)Maxlength: 15|(% style="width:621px" %)((( 248 248 PaymentTypes: 249 249 250 250 * AUTOGIRO 251 251 ))) 252 252 |(% style="width:337px" %)activePaymentOrder.executionDate|(% style="width:205px" %)date|(% style="width:208px" %)[[ISO 8601>>url:http://en.wikipedia.org/wiki/ISO_8601||rel="noreferrer" title="ISO8601 on Wikipedia"]]|(% style="width:621px" %)Date when the paymentorder will be executed (when end-customer will be debited) 253 -|(% style="width:337px" %)activePaymentOrder.amount|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:621px" %) **INTERN KOMMENTAR-**beroendepå directdebittypesåkandennavaraberäknadvidvarje hämtning(utifrån ev.delbet)246 +|(% style="width:337px" %)activePaymentOrder.amount|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:621px" %)Amount that will be charged, this amount may be adjusted when the payment order is executed, if the "amount to pay" on the bill has decreased 254 254 |(% style="width:337px" %)pdf|(% style="width:205px" %)string|(% style="width:208px" %)Url|(% style="width:621px" %)Url to download pdf 255 255 256 256 === === 257 257 258 -=== Direct-debit / recurring-payment ===251 +=== recurring-payment-consent === 259 259 260 260 261 261 {{code language="http" title="**Request**"}} 262 -POST /ledger/credit-account/v1/XXX/accounts/123/ direct-debit HTTP/1.1255 +POST /ledger/credit-account/v1/XXX/accounts/123/recurring-payment-consent HTTP/1.1 263 263 Host: - 264 264 Authorization: Bearer <Token> 265 265 Content-Type: application/json ... ... @@ -271,7 +271,7 @@ 271 271 Content-Type: application/json 272 272 273 273 { 274 - "@id" : "/ledger/credit-account/v1/501/accounts/123456/recurring-payment", 267 + "@id" : "/ledger/credit-account/v1/501/accounts/123456/recurring-payment-consent", 275 275 "recurringPaymentMethod" : "autogiro", 276 276 "recurringPaymentScope" : "fixedRecurring | totalDebt | billedAmount | onDemand", 277 277 "fixedRecurringAmount" : 1500.00,