Synctera.CardWebhookSimulations (Synctera v1.0.0)

Copy Markdown View Source

Synctera 'Card Webhook Simulations' endpoints.

Code generated by scripts/generate.py from the Synctera OpenAPI spec. Do not edit by hand — re-run mix generate (or python3 scripts/generate.py) to regenerate.

Summary

Functions

Simulate Card Fulfillment Event — This endpoint is for testing environment only to trigger a simulated change in card fulfillment status event

Like simulate_card_fulfillment_event/3 but returns the value directly and raises on error.

Functions

simulate_card_fulfillment_event(client, card_id, opts \\ [])

@spec simulate_card_fulfillment_event(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Simulate Card Fulfillment Event — This endpoint is for testing environment only to trigger a simulated change in card fulfillment status event

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

simulate_card_fulfillment_event!(client, card_id, opts)

@spec simulate_card_fulfillment_event!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like simulate_card_fulfillment_event/3 but returns the value directly and raises on error.