PaystackBulkChargeBatch class

Represents the status and summary of a Paystack bulk charge batch.

Returned by PayWithPayStack.bulkCharge and PayWithPayStack.fetchBulkChargeBatch.

Constructors

PaystackBulkChargeBatch({String? batchCode, String? reference, String? status, int? totalCharges, int? pendingCharges, int? unit, int? id, int? integration, String? createdAt, String? updatedAt, Map<String, dynamic> rawJson = const {}})
const
PaystackBulkChargeBatch.fromJson(Map<String, dynamic> json)
Constructs a PaystackBulkChargeBatch from Paystack's response JSON map.
factory

Properties

batchCode → String?
The batch code identifier assigned by Paystack (e.g. BCH_1878848492023).
final
createdAt → String?
Timestamp when the batch was created.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int?
Unique batch ID (when fetched via detail endpoint).
final
integration → int?
Paystack integration ID.
final
isComplete → bool
Whether the batch processing has finished completely.
no setter
isFailed → bool
Whether the batch has failed.
no setter
isPaused → bool
Whether the batch has been paused.
no setter
isPending → bool
Whether the batch is still pending initial processing.
no setter
isProcessing → bool
Whether the batch is actively being processed by Paystack.
no setter
pendingCharges → int?
Number of charges still pending processing in this batch.
final
rawJson → Map<String, dynamic>
Raw response JSON from Paystack.
final
reference → String?
The reference identifier for this batch.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String?
Current processing status (pending, processing, complete, paused, failed).
final
totalCharges → int?
Total number of charges in the batch.
final
unit → int?
Total processing units or charges count.
final
updatedAt → String?
Timestamp when the batch was last updated.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the batch data to a Map.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited