struct Mollie::Client

Defined in:

mollie/client.cr

Constant Summary

API_ENDPOINT = "https://api.mollie.com"
API_VERSION = "v2"
METHODS = ["GET", "POST", "PATCH", "DELETE"] of ::String
MODE_LIVE = "live"
MODE_TEST = "test"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(api_key : String | Nil = Mollie.config.api_key, api_endpoint : String = API_ENDPOINT) #

[View source]

Class Method Detail

def self.instance #

[View source]
def self.with_api_key(api_key : String | Nil) #

[View source]
def self.with_api_key(api_key : String | Nil, &) #

[View source]

Instance Method Detail

def api_endpoint : String #

[View source]
def api_key : String | Nil #

[View source]
def api_path(api_method : String, id : String | Nil = nil) #

[View source]
def perform_http_call(http_method : String, api_method : String, id : String | Nil = nil, http_body : Hash | NamedTuple = HS2.new, query : Hash | NamedTuple = HS2.new) #

[View source]