mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
18 lines
441 B
Ruby
18 lines
441 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'pay_zen/client'
|
|
|
|
# Transaction/* endpoints of the PayZen REST API
|
|
class PayZen::Transaction < PayZen::Client
|
|
def initialize(base_url: nil, username: nil, password: nil)
|
|
super(base_url: base_url, username: username, password: password)
|
|
end
|
|
|
|
##
|
|
# @see https://payzen.io/fr-FR/rest/V4.0/api/playground/Transaction/Get/
|
|
##
|
|
def get(uuid)
|
|
post('/Transaction/Get/', uuid: uuid)
|
|
end
|
|
end
|