Sha256: e468c37212f03c632fc2fca14d0d1cd9c38c0ddb6a2482f27106feaf5c9047fa

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

module Sumsub
  # https://developers.sumsub.com/api-reference/#verifying-webhook-sender
  class WebhookSender
    def self.get_payload(params)
      JSON.pretty_generate(
        params,
        space_before: ' ',
      )
      .gsub("[\n      \"", "[ \"")
      .gsub("\n    ]", " ]")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sumsub-ruby-sdk-0.2.1 lib/sumsub/webhook_sender.rb
sumsub-ruby-sdk-0.2.0 lib/sumsub/webhook_sender.rb