Class: AmexTokenizationClient::NotificationsPayload

Inherits:
Object
  • Object
show all
Defined in:
lib/amex_tokenization_client/notifications_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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_idObject (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