StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches
stripekit::ClaimRequest Struct Reference

Asks the store to reserve an event id. More...

#include <WebhookDedupStore.h>

Public Attributes

std::string event_id
 The Stripe event id to reserve.
std::chrono::system_clock::time_point now
 Current time, used for claim timestamps and staleness checks.
std::chrono::minutes stale_inflight_timeout = defaultStaleInflightTimeout
 How old an unfinished claim must be before it can be taken over.

Detailed Description

Asks the store to reserve an event id.

The store must hand out a reservation to exactly one caller. If the id is already reserved or already finished, it reports a duplicate instead, which is what keeps repeated Stripe deliveries from being processed twice.

Definition at line 55 of file WebhookDedupStore.h.

Member Data Documentation

◆ event_id

std::string stripekit::ClaimRequest::event_id

The Stripe event id to reserve.

Definition at line 57 of file WebhookDedupStore.h.

◆ now

std::chrono::system_clock::time_point stripekit::ClaimRequest::now

Current time, used for claim timestamps and staleness checks.

Definition at line 60 of file WebhookDedupStore.h.

◆ stale_inflight_timeout

std::chrono::minutes stripekit::ClaimRequest::stale_inflight_timeout = defaultStaleInflightTimeout

How old an unfinished claim must be before it can be taken over.

Definition at line 63 of file WebhookDedupStore.h.


The documentation for this struct was generated from the following file: