StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches
StripeKit.h
1/** StripeKit.h
2 *
3 * A library for interacting with the Stripe API.
4 *
5 * Umbrella header: including this pulls in the whole application API, and is
6 * the simplest starting point. Individual headers can be included instead when
7 * a translation unit only needs part of it.
8 *
9 * @author Hans de Ruiter
10 *
11 * @license See LICENSE.md for details.
12 */
13
14#pragma once
15
16#include "StripeKit/Callback.h"
17#include "StripeKit/Client.h"
18#include "StripeKit/Errors.h"
19#include "StripeKit/Models.h"
20#include "StripeKit/RequestOptions.h"
21#include "StripeKit/StripeApiClient.h"
22#include "StripeKit/WebhookProcessor.h"
23#include "StripeKit/Webhooks.h"
24
25#include <string_view>
26
27namespace stripekit {
28
29/**
30 * @addtogroup version
31 * @{
32 */
33
34/**
35 * Returns the StripeKit version as a "major.minor.patch" string.
36 *
37 * @return The version string, for example "0.1.0".
38 */
39std::string_view version();
40
41/**
42 * Returns the major version number.
43 *
44 * This changes when the API breaks compatibility with earlier releases.
45 *
46 * @return The major version number.
47 */
49
50/**
51 * Returns the minor version number.
52 *
53 * This changes when features are added in a backwards-compatible way.
54 *
55 * @return The minor version number.
56 */
58
59/**
60 * Returns the patch version number.
61 *
62 * @return The patch version number.
63 */
65
66/**
67 * Returns the identifier of the source revision this build came from.
68 *
69 * Useful for pinning down exactly which build a bug report came from.
70 *
71 * @return The revision identifier, or an empty string when it could not be
72 * determined at build time.
73 */
74std::string_view build_id();
75
76/**
77 * Returns the date this build was produced.
78 *
79 * @return The build date in ISO 8601 form.
80 */
81std::string_view build_date();
82
83/** @} */
84
85} // namespace stripekit
std::string_view build_date()
Returns the date this build was produced.
std::string_view build_id()
Returns the identifier of the source revision this build came from.
int version_major()
Returns the major version number.
int version_minor()
Returns the minor version number.
int version_patch()
Returns the patch version number.
std::string_view version()
Returns the StripeKit version as a "major.minor.patch" string.
Async.h.
Definition Async.h:20