-
-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2c17ee
commit e6f4d43
Showing
35 changed files
with
1,786 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/stripe_js/lib/src/api/payment_intents/confirm_klarna_payment_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:stripe_js/stripe_api.dart'; | ||
|
||
part 'confirm_klarna_payment_data.freezed.dart'; | ||
part 'confirm_klarna_payment_data.g.dart'; | ||
|
||
@freezed | ||
class ConfirmKlarnaPaymentData with _$ConfirmKlarnaPaymentData { | ||
const factory ConfirmKlarnaPaymentData({ | ||
/// Either the id of an existing PaymentMethod, or an object containing | ||
/// data to create a PaymentMethod with. | ||
/// See the use case sections below for details. | ||
@paymentMethodDetailJsonKey KlarnaPaymentMethodDetails? paymentMethod, | ||
|
||
/// The url your customer will be directed to after they complete authentication. | ||
@JsonKey(name: "return_url") String? returnUrl, | ||
}) = _ConfirmKlarnaPaymentData; | ||
|
||
factory ConfirmKlarnaPaymentData.fromJson(Map<String, dynamic> json) => | ||
_$ConfirmKlarnaPaymentDataFromJson(json); | ||
} |
Oops, something went wrong.