Skip to content

Commit

Permalink
fix automatic async for the web
Browse files Browse the repository at this point in the history
  • Loading branch information
Remon committed May 13, 2024
1 parent 7f3f8a8 commit ce52f14
Show file tree
Hide file tree
Showing 24 changed files with 109 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'card_element_change_event.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

CardElementChangeEvent _$CardElementChangeEventFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -231,7 +231,7 @@ class _$CardElementChangeEventImpl implements _CardElementChangeEvent {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CardElementChangeEventImpl &&
Expand Down Expand Up @@ -401,7 +401,7 @@ class _$CardElementChangeEventValueImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CardElementChangeEventValueImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_alipay_payment_data.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmAlipayPaymentData _$ConfirmAlipayPaymentDataFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -149,7 +149,7 @@ class _$ConfirmAlipayPaymentDataImpl implements _ConfirmAlipayPaymentData {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmAlipayPaymentDataImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_alipay_payment_options.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmAlipayPaymentOptions _$ConfirmAlipayPaymentOptionsFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -125,7 +125,7 @@ class _$ConfirmAlipayPaymentOptionsImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmAlipayPaymentOptionsImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_card_payment_data.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmCardPaymentData _$ConfirmCardPaymentDataFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -304,7 +304,7 @@ class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmCardPaymentDataImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_card_payment_options.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmCardPaymentOptions _$ConfirmCardPaymentOptionsFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -123,7 +123,7 @@ class _$ConfirmCardPaymentOptionsImpl implements _ConfirmCardPaymentOptions {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmCardPaymentOptionsImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_ideal_payment_data.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmIdealPaymentData _$ConfirmIdealPaymentDataFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -201,7 +201,7 @@ class _$ConfirmIdealPaymentDataImpl implements _ConfirmIdealPaymentData {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmIdealPaymentDataImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_ideal_payment_options.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmIdealPaymentOptions _$ConfirmIdealPaymentOptionsFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -123,7 +123,7 @@ class _$ConfirmIdealPaymentOptionsImpl implements _ConfirmIdealPaymentOptions {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmIdealPaymentOptionsImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_payment_options.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmPaymentOptions _$ConfirmPaymentOptionsFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -196,7 +196,7 @@ class _$ConfirmPaymentOptionsImpl implements _ConfirmPaymentOptions {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmPaymentOptionsImpl &&
Expand Down Expand Up @@ -367,7 +367,7 @@ class _$ConfirmPaymentParamsImpl implements _ConfirmPaymentParams {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmPaymentParamsImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'confirm_sepa_debit_payment_data.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

ConfirmSepaDebitPaymentData _$ConfirmSepaDebitPaymentDataFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -183,7 +183,7 @@ class _$ConfirmSepaDebitPaymentDataImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ConfirmSepaDebitPaymentDataImpl &&
Expand Down Expand Up @@ -417,7 +417,7 @@ class _$IdSepaDebitPaymentMethodDetailsImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$IdSepaDebitPaymentMethodDetailsImpl &&
Expand Down Expand Up @@ -641,7 +641,7 @@ class _$SepaDebitPaymentMethodDetailsImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SepaDebitPaymentMethodDetailsImpl &&
Expand Down Expand Up @@ -888,7 +888,7 @@ class _$SepaDebitPaymentMethodDetailsWithIbanImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SepaDebitPaymentMethodDetailsWithIbanImpl &&
Expand Down Expand Up @@ -1135,7 +1135,7 @@ class _$SepaDebitIbanDataImpl implements _SepaDebitIbanData {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SepaDebitIbanDataImpl &&
Expand Down Expand Up @@ -1348,7 +1348,7 @@ class _$SepaBillingDetailsImpl implements _SepaBillingDetails {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SepaBillingDetailsImpl &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:stripe_js/stripe_api.dart';

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:stripe_js/stripe_api.dart';

part 'payment_intent.freezed.dart';
part 'payment_intent.g.dart';
Expand All @@ -26,6 +25,12 @@ enum PaymentIntentCaptureMethod {
/// customer authorizes the payment.
automatic,

/// Asynchronously capture funds when the customer authorizes the payment.
/// Note: Recommended over [automatic] due to improved latency, but may require additional integration changes.
/// Seealso: https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async
@JsonValue('automatic_async')
automaticAsync,

/// Place a hold on the funds when the customer authorizes the payment,
/// but don’t capture the funds until later.
/// (Not all payment methods support this.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'payment_intent.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

PaymentIntent _$PaymentIntentFromJson(Map<String, dynamic> json) {
return _PaymentIntent.fromJson(json);
Expand Down Expand Up @@ -1178,7 +1178,7 @@ class _$PaymentIntentImpl implements _PaymentIntent {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentIntentImpl &&
Expand Down Expand Up @@ -1742,7 +1742,7 @@ class _$PaymentIntentAmountDetailsImpl implements _PaymentIntentAmountDetails {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentIntentAmountDetailsImpl &&
Expand Down Expand Up @@ -1885,7 +1885,7 @@ class _$PaymentIntentTipImpl implements _PaymentIntentTip {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentIntentTipImpl &&
Expand Down Expand Up @@ -2036,7 +2036,7 @@ class _$PaymentIntentAutomaticPaymentMethodsImpl
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentIntentAutomaticPaymentMethodsImpl &&
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'payment_intent_response.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

PaymentIntentResponse _$PaymentIntentResponseFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -166,7 +166,7 @@ class _$PaymentIntentResponseImpl implements _PaymentIntentResponse {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentIntentResponseImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'create_payment_method_data.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

Check warning on line 15 in packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

"freezed" is a typo. Did you mean "freezes"?

CreatePaymentMethodData _$CreatePaymentMethodDataFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -384,7 +384,7 @@ class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData {
}

@override
bool operator ==(Object other) {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CreatePaymentMethodDataImpl &&
Expand Down
Loading

0 comments on commit ce52f14

Please sign in to comment.