Skip to content

Commit

Permalink
Tweaking Resource Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonredfern committed Jul 4, 2016
1 parent a0c9a3a commit e4bac9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/main/scala/code/api/v1_2_1/APIMethods121.scala
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ trait APIMethods121 {
"updateAccountLabel",
"POST",
"/banks/BANK_ID/accounts/ACCOUNT_ID",
"Change account label.",
"",
"Update Account Label.",
"Update the label for the account. The label is how the account is known to the account owner e.g. 'My savings account' ",
Extraction.decompose(UpdateAccountJSON("ACCOUNT_ID of the account we want to update", "New label", "BANK_ID")),
emptyObjectJson,
emptyObjectJson :: Nil,
Expand Down Expand Up @@ -599,8 +599,8 @@ trait APIMethods121 {
"deleteViewForBankAccount",
"DELETE",
"/banks/BANK_ID/accounts/ACCOUNT_ID/views/VIEW_ID",
"Deletes a view on an bank account.",
"",
"Delete View",
"Deletes the view specified by VIEW_ID on the bank account specified by ACCOUNT_ID at bank BANK_ID.",
emptyObjectJson,
emptyObjectJson,
emptyObjectJson :: Nil,
Expand Down Expand Up @@ -1044,7 +1044,7 @@ trait APIMethods121 {
"deleteCounterpartyPublicAlias",
"DELETE",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/public_alias",
"Delete public alias of other bank account.",
"Delete Counterparty Public Alias",
"""Deletes the public alias of the other account OTHER_ACCOUNT_ID.
|
|OAuth authentication is required if the view is not public.""",
Expand Down Expand Up @@ -1077,7 +1077,7 @@ trait APIMethods121 {
"getCounterpartyPrivateAlias",
"GET",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/private_alias",
"Get private alias of other bank account.",
"Get Counterparty Private Alias",
"""Returns the private alias of the other account OTHER_ACCOUNT_ID.
|
|OAuth authentication is required if the view is not public.""",
Expand Down Expand Up @@ -1112,7 +1112,7 @@ trait APIMethods121 {
"addCounterpartyPrivateAlias",
"POST",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/private_alias",
"Add private alias to other bank account.",
"Create Counterparty Private Alias",
"""Creates a private alias for the other account OTHER_ACCOUNT_ID.
|
|OAuth authentication is required if the view is not public.""",
Expand Down Expand Up @@ -1149,8 +1149,8 @@ trait APIMethods121 {
"updateCounterpartyPrivateAlias",
"PUT",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/private_alias",
"Update private alias of other bank account.",
"""Updates the private alias of the other account OTHER_ACCOUNT_ID.
"Update Counterparty Private Alias",
"""Updates the private alias of the counterparty (AKA other account) OTHER_ACCOUNT_ID.
|
|OAuth authentication is required if the view is not public.""",
Extraction.decompose(AliasJSON("An Alias")),
Expand Down Expand Up @@ -1463,7 +1463,7 @@ trait APIMethods121 {
"updateCounterpartyImageUrl",
"PUT",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/metadata/image_url",
"Update image url of other bank account.",
"Update Counterparty Image Url",
"Update the url that points to the logo of the counterparty",
Extraction.decompose(ImageUrlJSON("www.example.com/logo.png")),
emptyObjectJson,
Expand Down Expand Up @@ -1671,7 +1671,7 @@ trait APIMethods121 {
"updateCounterpartyCorporateLocation",
"PUT",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/metadata/corporate_location",
"Update corporate location of other bank account.",
"Update Counterparty Corporate Location",
"Update the geolocation of the counterparty's registered address",
Extraction.decompose(CorporateLocationJSON(JSONFactory.createLocationPlainJSON(52.5571573,13.3728025))),
emptyObjectJson,
Expand Down Expand Up @@ -1783,7 +1783,7 @@ trait APIMethods121 {
"updateCounterpartyPhysicalLocation",
"PUT",
"/banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/other_accounts/OTHER_ACCOUNT_ID/metadata/physical_location",
"Update counterparties physical location",
"Update Counterparty Physical Location",
"Update geocoordinates of the counterparty's main location",
Extraction.decompose(PhysicalLocationJSON(JSONFactory.createLocationPlainJSON(52.5571573,13.3728025))),
emptyObjectJson,
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/code/api/v2_0_0/APIMethods200.scala
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ trait APIMethods200 {
|
|If USER_ID is not specified the account will be owned by the logged in User.
|
|Note: Type is currently ignored and the Amount must be zero. You can update the account label with another call (see updateAccountLabel)""".stripMargin,
|Note: Type is currently ignored and the Amount must be zero. You can update the account label with another call (see 1_2_1-updateAccountLabel)""".stripMargin,
Extraction.decompose(CreateAccountJSON("A user_id","CURRENT", AmountOfMoneyJSON121("EUR", "0"))),
emptyObjectJson,
emptyObjectJson :: Nil,
Expand Down

0 comments on commit e4bac9d

Please sign in to comment.