Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): add SettlementReport property is_complete #343

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions report.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ type SettlementReport struct {
// fees, and disputes).
TransactionsGrossAmount int64 `json:"transactions_gross_amount,required"`
// Date and time when the transaction first occurred. UTC time zone.
Updated time.Time `json:"updated,required" format:"date-time"`
JSON settlementReportJSON `json:"-"`
Updated time.Time `json:"updated,required" format:"date-time"`
// Indicates that all data expected on the given report date is available.
IsComplete bool `json:"is_complete"`
JSON settlementReportJSON `json:"-"`
}

// settlementReportJSON contains the JSON metadata for the struct
Expand All @@ -216,6 +218,7 @@ type settlementReportJSON struct {
SettledNetAmount apijson.Field
TransactionsGrossAmount apijson.Field
Updated apijson.Field
IsComplete apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down