class AmexTokenizationClient::NotificationsPayload

Attributes

notification_type[R]
token_ref_id[R]

Public Class Methods

new(token_ref_id:, notification_type:) click to toggle source
# 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

Public Instance Methods

to_json(_encryption_key_id, _encryption_key) click to toggle source
# 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