Skip to content

Commit

Permalink
Stripe web element integration (#1790)
Browse files Browse the repository at this point in the history
* feat: implement default values and new layout porperties web element

* feat: add apple pay recurring payment options

* feat: add apple pay deferred payment to web element

* feat add auto reload paymentoptions

---------

Co-authored-by: Remon <[email protected]>
  • Loading branch information
remonh87 and Remon authored Jun 10, 2024
1 parent 34f03ef commit f12d3b7
Show file tree
Hide file tree
Showing 23 changed files with 4,790 additions and 909 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'billing_details.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#custom-getters-and-methods');
'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');

Check warning on line 15 in packages/stripe_js/lib/src/api/core/billing_details.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

BillingDetails _$BillingDetailsFromJson(Map<String, dynamic> json) {
return _BillingDetails.fromJson(json);
Expand Down Expand Up @@ -183,7 +183,7 @@ class _$BillingDetailsImpl implements _BillingDetails {
}

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

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentElementBillingDetailsAddressImpl &&
Expand Down
4 changes: 2 additions & 2 deletions packages/stripe_js/lib/src/api/core/error.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'error.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#custom-getters-and-methods');
'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');

Check warning on line 15 in packages/stripe_js/lib/src/api/core/error.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

StripeError _$StripeErrorFromJson(Map<String, dynamic> json) {
return _PaymentElementChangeEvent.fromJson(json);
Expand Down Expand Up @@ -206,7 +206,7 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentElementChangeEventImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'shipping_details.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#custom-getters-and-methods');
'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');

Check warning on line 15 in packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

ShippingDetails _$ShippingDetailsFromJson(Map<String, dynamic> json) {
return _PaymentElementChangeEvent.fromJson(json);
Expand Down Expand Up @@ -220,7 +220,7 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
}

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

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentElementBillingDetailsAddressImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'card_element_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#custom-getters-and-methods');
'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');

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

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

CardElementOptions _$CardElementOptionsFromJson(Map<String, dynamic> json) {
return _CardElementOptions.fromJson(json);
Expand Down Expand Up @@ -231,7 +231,7 @@ class _$CardElementOptionsImpl implements _CardElementOptions {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CardElementOptionsImpl &&
Expand Down Expand Up @@ -525,7 +525,7 @@ class _$CardElementClassesImpl implements _CardElementClasses {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CardElementClassesImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'element_appearance.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#custom-getters-and-methods');
'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');

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

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

ElementAppearance _$ElementAppearanceFromJson(Map<String, dynamic> json) {
return _ElementAppearance.fromJson(json);
Expand Down Expand Up @@ -183,7 +183,7 @@ class _$ElementAppearanceImpl implements _ElementAppearance {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ElementAppearanceImpl &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part of 'payment_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#custom-getters-and-methods');
'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');

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

View workflow job for this annotation

GitHub Actions / Typo CI

freezed

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

PaymentElementChangeEvent _$PaymentElementChangeEventFromJson(
Map<String, dynamic> json) {
Expand Down Expand Up @@ -202,7 +202,7 @@ class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
}

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

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

0 comments on commit f12d3b7

Please sign in to comment.