-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SEPA Direct Debit Core Support (#139)
- Loading branch information
1 parent
8e04613
commit 66e5935
Showing
6 changed files
with
78 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Instruments | ||
# @!attribute account_number | ||
# @return [String] | ||
# @!attribute country | ||
# @return [String] {CheckoutSdk::Common::Country} | ||
# @!attribute currency | ||
# @return [String] {CheckoutSdk::Common::Currency} | ||
# @!attribute payment_type | ||
# @return [String] {CheckoutSdk::Payments::PaymentType} | ||
# @!attribute mandate_id | ||
# @return [String] | ||
# @!attribute date_of_signature | ||
# @return [DateTime] | ||
class InstrumentData | ||
attr_accessor :account_number, | ||
:country, | ||
:currency, | ||
:payment_type, | ||
:mandate_id, | ||
:date_of_signature | ||
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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
module CheckoutSdk | ||
module Instruments | ||
# @!attribute instrument_data | ||
# @return [InstrumentData] | ||
# @!attribute account_holder | ||
# @return [CheckoutSdk::Common::AccountHolder] | ||
class InstrumentSepa < Instrument | ||
attr_accessor :instrument_data, | ||
:account_holder | ||
|
||
def initialize | ||
super CheckoutSdk::Common::InstrumentType::SEPA | ||
end | ||
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
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