struct Mollie::Client
- Mollie::Client
- Struct
- Value
- Object
Defined in:
mollie/client.crConstant 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
- #api_endpoint : String
- #api_key : String | Nil
- #api_path(api_method : String, id : String | Nil = nil)
- #perform_http_call(http_method : String, api_method : String, id : String | Nil = nil, http_body : Hash | NamedTuple = HS2.new, query : Hash | NamedTuple = HS2.new)
Constructor Detail
def self.new(api_key : String | Nil = Mollie.config.api_key, api_endpoint : String = API_ENDPOINT)
#
Class Method Detail
Instance Method Detail
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)
#