You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// how do I set the report type id properly?
stripe.reportRuns.create(params: paramsMap1).then((jsonResponse) => print(jsonResponse));
stripe.reportRuns.create(params: paramsMap2).then((jsonResponse) => print(jsonResponse));
}
String truncateLast3(final String s) {
//
return s.substring(0, s.length - 3);
}
`
I just keep getting errors for unknown parameters.
The text was updated successfully, but these errors were encountered:
I'm trying to follow the nodejs api examples but I'm lost. Here is all of my test dart file.
`//
import 'package:stripedart/stripedart.dart' as sd;
const liveApiKey = 'sk_live_your_key_here';
void main() {
final start = DateTime(2020, 7, 1, 0, 0, 0, 0, 0); // q3 start
final end = DateTime(2020, 9, 25, 0, 0, 0, 0, 0); // q3 end
final payouts4 = 'payout_reconciliation.itemized.4';
final columns = [
'created',
'charge_created',
'created_utc',
'charge_created_utc',
'payment_intent_id',
'automatic_payout_id',
'gross',
'fee',
'net'
];
var paramsMap1 = <String, dynamic>{}
..putIfAbsent('report_type', () => 'payouts.itemized.1') // probably incorrect
..putIfAbsent('interval_start', () => truncateLast3(start.millisecondsSinceEpoch.toString()))
..putIfAbsent('interval_end', () => truncateLast3(end.millisecondsSinceEpoch.toString()));
var paramsMap2 = <String, dynamic>{}
..putIfAbsent('report_type', () => payouts4) // probably incorrect
..putIfAbsent('timezone', () => 'America/Chicago') // valid with cUrl
..putIfAbsent('interval_start', () => truncateLast3(start.millisecondsSinceEpoch.toString()))
..putIfAbsent('interval_end', () => truncateLast3(end.millisecondsSinceEpoch.toString()))
..putIfAbsent('columns', () => columns);
var stripe = sd.Stripe(liveApiKey);
// how do I set the report type id properly?
stripe.reportRuns.create(params: paramsMap1).then((jsonResponse) => print(jsonResponse));
stripe.reportRuns.create(params: paramsMap2).then((jsonResponse) => print(jsonResponse));
}
String truncateLast3(final String s) {
//
return s.substring(0, s.length - 3);
}
`
I just keep getting errors for unknown parameters.
The text was updated successfully, but these errors were encountered: