Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c5238f5
Add Sigma query run and scheduled query run resources
solid-maksymtielnyi Sep 3, 2025
307c818
Fix: scheduled_query_run JSON value
solid-maksymtielnyi Sep 3, 2025
c972142
Add file resource
solid-maksymtielnyi Sep 3, 2025
f063950
Add id field to SigmaScheduledQueryRun
solid-maksymtielnyi Sep 3, 2025
ba124b6
Fix the response parsing error message
solid-maksymtielnyi Sep 3, 2025
acb2c56
Rename fileResource field to file
solid-maksymtielnyi Sep 3, 2025
851ba53
Fix getBytes responseType
solid-maksymtielnyi Sep 3, 2025
84d4240
Parse body on error
solid-maksymtielnyi Sep 3, 2025
ca08c8f
Disable automatic Dio response status validation
solid-maksymtielnyi Sep 3, 2025
ca1358e
Add doc comments for getBytes methods
solid-maksymtielnyi Sep 4, 2025
cf4eaa1
Add downloadContentPlain method to FileResource
solid-maksymtielnyi Sep 4, 2025
8b3db07
Fix file contents endpoints paths
solid-maksymtielnyi Sep 4, 2025
96c48af
Fix file contents endpoints base url, refactor resource and client
solid-maksymtielnyi Sep 4, 2025
271eaba
Change url param type from Uri to String
solid-maksymtielnyi Sep 4, 2025
dbdbee5
Make ApiConfig public
solid-maksymtielnyi Sep 4, 2025
7750363
Export api_config.dart from stripe.dart
solid-maksymtielnyi Sep 4, 2025
4331a4c
Remove apiKey from ApiConfig
solid-maksymtielnyi Sep 4, 2025
d78c303
Add experimental POST sigma/scheduled_query_runs
solid-maksymtielnyi Sep 4, 2025
a6b9f6b
Revert "Add experimental POST sigma/scheduled_query_runs"
solid-maksymtielnyi Sep 4, 2025
fa3faad
Add SigmaScheduledQueryRunEvent
solid-maksymtielnyi Sep 10, 2025
b22a931
Rename name field to title in SigmaScheduledQueryRun
solid-maksymtielnyi Sep 10, 2025
a197484
Add scheduled_query_run to Event.fromJson
solid-maksymtielnyi Sep 11, 2025
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
5 changes: 5 additions & 0 deletions lib/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ part 'src/messages/customer_balance_transaction.dart';
part 'src/messages/data_list.dart';
part 'src/messages/discount.dart';
part 'src/messages/event.dart';
part 'src/messages/file.dart';
part 'src/messages/file_link.dart';
part 'src/messages/invoice.dart';
part 'src/messages/invoice_line_item.dart';
part 'src/messages/pause_collection.dart';
Expand All @@ -39,6 +41,7 @@ part 'src/messages/requests/create_portal_session.dart';
part 'src/messages/requests/create_price.dart';
part 'src/messages/requests/create_product.dart';
part 'src/messages/requests/create_refund.dart';
part 'src/messages/requests/create_sigma_query_run.dart';
part 'src/messages/requests/create_subscription.dart';
part 'src/messages/requests/create_subscription_schedule.dart';
part 'src/messages/requests/created.dart';
Expand All @@ -58,6 +61,8 @@ part 'src/messages/requests/update_subscription.dart';
part 'src/messages/requests/update_subscription_item.dart';
part 'src/messages/requests/update_subscription_schedule.dart';
part 'src/messages/shipping_specification.dart';
part 'src/messages/sigma_query_run.dart';
part 'src/messages/sigma_scheduled_query_run.dart';
part 'src/messages/source.dart';
part 'src/messages/stripe_api_error.dart';
part 'src/messages/subscription.dart';
Expand Down
299 changes: 287 additions & 12 deletions lib/messages.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions lib/src/api_config.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class ApiConfig {
static const defaultVersion = '2020-08-27';
static const defaultApiUrl = 'https://api.stripe.com/v1/';
static const defaultFilesUrl = 'https://files.stripe.com/v1/';

final String version;
final String baseApiUrl;
final String baseFilesUrl;

const ApiConfig({
this.version = defaultVersion,
this.baseApiUrl = defaultApiUrl,
this.baseFilesUrl = defaultFilesUrl,
});
}
Loading