Class: AmexTokenizationClient::NotificationsPayload
- Inherits:
-
Object
- Object
- AmexTokenizationClient::NotificationsPayload
- Defined in:
- lib/amex_tokenization_client/notifications_payload.rb
Instance Attribute Summary collapse
-
#notification_type ⇒ Object
readonly
Returns the value of attribute notification_type.
-
#token_ref_id ⇒ Object
readonly
Returns the value of attribute token_ref_id.
Instance Method Summary collapse
-
#initialize(token_ref_id:, notification_type:) ⇒ NotificationsPayload
constructor
A new instance of NotificationsPayload.
- #to_json(_encryption_key_id, _encryption_key) ⇒ Object
Constructor Details
#initialize(token_ref_id:, notification_type:) ⇒ NotificationsPayload
Returns a new instance of NotificationsPayload.
5 6 7 |
# File 'lib/amex_tokenization_client/notifications_payload.rb', line 5 def initialize(token_ref_id:, notification_type:) @token_ref_id, @notification_type = token_ref_id, notification_type end |
Instance Attribute Details
#notification_type ⇒ Object (readonly)
Returns the value of attribute notification_type.
3 4 5 |
# File 'lib/amex_tokenization_client/notifications_payload.rb', line 3 def notification_type @notification_type end |
#token_ref_id ⇒ Object (readonly)
Returns the value of attribute token_ref_id.
3 4 5 |
# File 'lib/amex_tokenization_client/notifications_payload.rb', line 3 def token_ref_id @token_ref_id end |
Instance Method Details
#to_json(_encryption_key_id, _encryption_key) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/amex_tokenization_client/notifications_payload.rb', line 9 def to_json(_encryption_key_id, _encryption_key) Hash[ token_ref_id: token_ref_id, notification_type: notification_type ].to_json end |