-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lg/Add-IPY-Operation-detail
- Loading branch information
Showing
6 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module CFONB | ||
module OperationDetail | ||
class IBE | ||
ATTRIBUTES = %i[creditor_identifier creditor_identifier_type].freeze | ||
|
||
def self.apply(operation, line) | ||
operation.creditor_identifier = line.detail[0..34].strip | ||
operation.creditor_identifier_type = line.detail[35..-1].strip | ||
end | ||
|
||
CFONB::OperationDetail.register('IBE', self) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module CFONB | ||
module OperationDetail | ||
class NBU | ||
ATTRIBUTES = %i[ultimate_creditor].freeze | ||
|
||
def self.apply(operation, line) | ||
operation.ultimate_creditor = line.detail.strip | ||
end | ||
|
||
CFONB::OperationDetail.register('NBU', self) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module CFONB | ||
module OperationDetail | ||
class NPO | ||
ATTRIBUTES = %i[ultimate_debtor].freeze | ||
|
||
def self.apply(operation, line) | ||
operation.ultimate_debtor = line.detail.strip | ||
end | ||
|
||
CFONB::OperationDetail.register('NPO', self) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters