diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..243a76900
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+*.freezed.dart linguist-generated=true
+*.g.dart linguist-generated=true
diff --git a/.github/workflows/all_plugins.yaml b/.github/workflows/all_plugins.yaml
index 5ca42c5bc..4f0059856 100644
--- a/.github/workflows/all_plugins.yaml
+++ b/.github/workflows/all_plugins.yaml
@@ -76,24 +76,15 @@ jobs:
name: integration test (iOS)
needs: [analyze, test]
timeout-minutes: 60
- runs-on: macos-latest
+ runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- with:
- cache: true
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: example/server/yarn.lock
- - name: Cache pods
- uses: actions/cache@v2
- with:
- path: example/iOS/Pods
- key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
- restore-keys: |
- ${{ runner.os }}-pods-
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
@@ -120,7 +111,7 @@ jobs:
- name: "Start iOS Simulator"
run: |
- xcrun simctl boot "iPhone 13 mini"
+ xcrun simctl boot "iPhone 15"
- name: "Run Flutter Driver tests on iOS"
working-directory: example
@@ -130,12 +121,10 @@ jobs:
name: integration test (Android)
needs: [analyze, test, ios_integration_test]
timeout-minutes: 60
- runs-on: macos-latest
+ runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- with:
- cache: true
- uses: actions/setup-node@v3
with:
node-version: 16
@@ -177,6 +166,7 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
+ arch: x86_64
working-directory: example
script: |
sleep 15;
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66557a54e..72fa9968f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,227 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## 2024-03-26
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - There are no breaking changes in this release.
+
+Packages with other changes:
+
+ - [`stripe_platform_interface` - `v10.1.1`](#stripe_platform_interface---v1011)
+ - [`flutter_stripe_web` - `v5.1.1`](#flutter_stripe_web---v511)
+ - [`flutter_stripe` - `v10.1.2`](#flutter_stripe---v1012)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe_web` - `v5.1.1`
+ - `flutter_stripe` - `v10.1.2`
+
+---
+
+#### `stripe_platform_interface` - `v10.1.1`
+
+ - Fix #1639 cashapp payments
+
+
+## 2024-03-07
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - There are no breaking changes in this release.
+
+Packages with other changes:
+
+ - [`stripe_android` - `v10.1.1`](#stripe_android---v1011)
+ - [`flutter_stripe` - `v10.1.1`](#flutter_stripe---v1011)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe` - `v10.1.1`
+
+---
+
+#### `stripe_android` - `v10.1.1`
+
+ - Fix build error on SDK 34
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - [`flutter_stripe` - `v10.1.0`](#flutter_stripe---v1010)
+
+Packages with other changes:
+
+ - There are no other changes in this release.
+
+---
+
+#### `flutter_stripe` - `v10.1.0`
+
+ - aa
+
+ - **BREAKING** **BREAKING**: rename ApplePayShippingContact to Platformpayshipping contact.
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - [`flutter_stripe_web` - `v5.1.0`](#flutter_stripe_web---v510)
+
+Packages with other changes:
+
+ - There are no other changes in this release.
+
+---
+
+#### `flutter_stripe_web` - `v5.1.0`
+
+ - aaa
+
+ - **FIX**: Respect the font color for CardField on web platforms (#1658).
+ - **FIX**: #1512 add latest charge field to payment intent (Web only).
+ - **BREAKING** **BREAKING**: rename ApplePayShippingContact to Platformpayshipping contact.
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - There are no breaking changes in this release.
+
+Packages with other changes:
+
+ - [`stripe_js` - `v3.4.0`](#stripe_js---v340)
+ - [`flutter_stripe_web` - `v5.0.1`](#flutter_stripe_web---v501)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe_web` - `v5.0.1`
+
+---
+
+#### `stripe_js` - `v3.4.0`
+
+ - a
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - There are no breaking changes in this release.
+
+Packages with other changes:
+
+ - [`stripe_ios` - `v10.1.0`](#stripe_ios---v1010)
+ - [`flutter_stripe` - `v10.0.1`](#flutter_stripe---v1001)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe` - `v10.0.1`
+
+---
+
+#### `stripe_ios` - `v10.1.0`
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - There are no breaking changes in this release.
+
+Packages with other changes:
+
+ - [`stripe_android` - `v10.1.0`](#stripe_android---v1010)
+ - [`flutter_stripe` - `v10.0.1`](#flutter_stripe---v1001)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe` - `v10.0.1`
+
+---
+
+#### `stripe_android` - `v10.1.0`
+
+ - aa
+
+
+## 2024-03-02
+
+### Changes
+
+---
+
+Packages with breaking changes:
+
+ - [`stripe_platform_interface` - `v10.1.0`](#stripe_platform_interface---v1010)
+
+Packages with other changes:
+
+ - [`flutter_stripe` - `v10.0.1`](#flutter_stripe---v1001)
+ - [`flutter_stripe_web` - `v5.0.1`](#flutter_stripe_web---v501)
+
+Packages with dependency updates only:
+
+> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
+
+ - `flutter_stripe` - `v10.0.1`
+ - `flutter_stripe_web` - `v5.0.1`
+
+---
+
+#### `stripe_platform_interface` - `v10.1.0`
+
+ - aaa
+
+ - **FIX**: #1465 unknow result.
+ - **FIX**: #1512 add latest charge field to payment intent (Web only).
+ - **BREAKING** **BREAKING**: rename ApplePayShippingContact to Platformpayshipping contact.
+
+
## 2023-12-19
### Changes
diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist
index 9625e105d..7c5696400 100644
--- a/example/ios/Flutter/AppFrameworkInfo.plist
+++ b/example/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 11.0
+ 12.0
diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj
index 4c9c87614..09131faf1 100644
--- a/example/ios/Runner.xcodeproj/project.pbxproj
+++ b/example/ios/Runner.xcodeproj/project.pbxproj
@@ -216,7 +216,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 1430;
+ LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
59D21C0B270B725C007DE134 = {
diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index be6be81db..d11d0fa28 100644
--- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,6 +1,6 @@
LSRequiresIPhoneOS
+ CFBundleAllowMixedLocalizations
+ true
NSCameraUsageDescription
Scan your card to add it automatically
NSCameraUsageDescription
diff --git a/example/lib/screens/wallets/payment_sheet_screen_subscription.dart b/example/lib/screens/wallets/payment_sheet_screen_subscription.dart
index 584afc624..c966ccdd9 100644
--- a/example/lib/screens/wallets/payment_sheet_screen_subscription.dart
+++ b/example/lib/screens/wallets/payment_sheet_screen_subscription.dart
@@ -108,10 +108,15 @@ class _PaymentSheetScreenState extends State {
request: PaymentRequestType.recurring(
description: 'subscription',
managementUrl: 'https://flutter.dev',
- billing: ImmediateCartSummaryItem(
+ billing: RecurringCartSummaryItem(
label: 'Subscription',
amount: '10.0',
- isPending: false,
+ intervalCount: 12,
+ intervalUnit: ApplePayIntervalUnit.month,
+ startDate: DateTime.now().millisecondsSinceEpoch,
+ endDate: DateTime.now()
+ .add(Duration(days: 365))
+ .millisecondsSinceEpoch,
),
),
),
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index a855b7e95..bd4a49cf7 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -10,8 +10,8 @@ environment:
dependencies:
flutter:
sdk: flutter
- flutter_stripe: ^9.4.0
- flutter_stripe_web: ^4.4.0
+ flutter_stripe: ^10.2.0
+ flutter_stripe_web: ^5.1.0
stripe_checkout: ^1.0.1
pay: ^1.1.0
http: ^1.1.0
diff --git a/example/server/package.json b/example/server/package.json
index c56cff03c..59e3556f6 100644
--- a/example/server/package.json
+++ b/example/server/package.json
@@ -26,6 +26,7 @@
"@babel/cli": "^7.12.1",
"@babel/core": "^7.9.6",
"@babel/runtime": "^7.9.6",
+ "@types/body-parser": "^1.19.5",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.2",
"@types/jest": "^26.0.14",
@@ -38,7 +39,7 @@
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
- "express": "^4.17.3",
+ "express": "^4.19.2",
"husky": "^4.2.3",
"nodemon": "^1.19.1",
"onchange": "^6.1.0",
@@ -52,6 +53,7 @@
},
"dependencies": {
"@types/cors": "^2.8.12",
+ "body-parser": "^1.20.2",
"eslint-plugin-jest": "^24.1.0",
"jest": "^26.5.3",
"ts-jest": "^26.4.1"
diff --git a/example/server/src/index.ts b/example/server/src/index.ts
index c7a6e5816..2828d8c00 100644
--- a/example/server/src/index.ts
+++ b/example/server/src/index.ts
@@ -6,6 +6,7 @@ env.config({ path: './.env' });
import bodyParser from 'body-parser';
import express from 'express';
+import cors from 'cors';
import Stripe from 'stripe';
import { generateResponse } from './utils';
@@ -16,6 +17,8 @@ const stripeWebhookSecret = process.env.STRIPE_WEBHOOK_SECRET || '';
const app = express();
+app.use(cors());
+
app.use(
(
req: express.Request,
diff --git a/example/server/yarn.lock b/example/server/yarn.lock
index 4e825d95b..071338c94 100644
--- a/example/server/yarn.lock
+++ b/example/server/yarn.lock
@@ -34,6 +34,14 @@
"@babel/highlight" "^7.22.13"
chalk "^2.4.2"
+"@babel/code-frame@^7.23.5":
+ version "7.23.5"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244"
+ integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==
+ dependencies:
+ "@babel/highlight" "^7.23.4"
+ chalk "^2.4.2"
+
"@babel/compat-data@^7.22.9":
version "7.22.9"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730"
@@ -70,6 +78,16 @@
"@jridgewell/trace-mapping" "^0.3.17"
jsesc "^2.5.1"
+"@babel/generator@^7.23.6":
+ version "7.23.6"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e"
+ integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==
+ dependencies:
+ "@babel/types" "^7.23.6"
+ "@jridgewell/gen-mapping" "^0.3.2"
+ "@jridgewell/trace-mapping" "^0.3.17"
+ jsesc "^2.5.1"
+
"@babel/helper-compilation-targets@^7.22.15":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52"
@@ -81,18 +99,23 @@
lru-cache "^5.1.1"
semver "^6.3.1"
+"@babel/helper-environment-visitor@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167"
+ integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==
+
"@babel/helper-environment-visitor@^7.22.5":
version "7.22.5"
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz#f06dd41b7c1f44e1f8da6c4055b41ab3a09a7e98"
integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==
-"@babel/helper-function-name@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz#ede300828905bb15e582c037162f99d5183af1be"
- integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==
+"@babel/helper-function-name@^7.23.0":
+ version "7.23.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759"
+ integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==
dependencies:
- "@babel/template" "^7.22.5"
- "@babel/types" "^7.22.5"
+ "@babel/template" "^7.22.15"
+ "@babel/types" "^7.23.0"
"@babel/helper-hoist-variables@^7.22.5":
version "7.22.5"
@@ -143,11 +166,21 @@
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f"
integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==
+"@babel/helper-string-parser@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83"
+ integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==
+
"@babel/helper-validator-identifier@^7.22.15", "@babel/helper-validator-identifier@^7.22.5":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz#601fa28e4cc06786c18912dca138cec73b882044"
integrity sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==
+"@babel/helper-validator-identifier@^7.22.20":
+ version "7.22.20"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0"
+ integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==
+
"@babel/helper-validator-option@^7.22.15":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040"
@@ -171,11 +204,25 @@
chalk "^2.4.2"
js-tokens "^4.0.0"
+"@babel/highlight@^7.23.4":
+ version "7.23.4"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b"
+ integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.22.20"
+ chalk "^2.4.2"
+ js-tokens "^4.0.0"
+
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.15":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.15.tgz#d34592bfe288a32e741aa0663dbc4829fcd55160"
integrity sha512-RWmQ/sklUN9BvGGpCDgSubhHWfAx24XDTDObup4ffvxaYsptOg2P3KG0j+1eWKLxpkX0j0uHxmpq2Z1SP/VhxA==
+"@babel/parser@^7.24.0":
+ version "7.24.0"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.0.tgz#26a3d1ff49031c53a97d03b604375f028746a9ac"
+ integrity sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==
+
"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
@@ -267,7 +314,7 @@
dependencies:
regenerator-runtime "^0.14.0"
-"@babel/template@^7.22.15", "@babel/template@^7.22.5", "@babel/template@^7.3.3":
+"@babel/template@^7.22.15", "@babel/template@^7.3.3":
version "7.22.15"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38"
integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==
@@ -277,19 +324,19 @@
"@babel/types" "^7.22.15"
"@babel/traverse@^7.1.0", "@babel/traverse@^7.22.15":
- version "7.22.15"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.15.tgz#75be4d2d6e216e880e93017f4e2389aeb77ef2d9"
- integrity sha512-DdHPwvJY0sEeN4xJU5uRLmZjgMMDIvMPniLuYzUVXj/GGzysPl0/fwt44JBkyUIzGJPV8QgHMcQdQ34XFuKTYQ==
- dependencies:
- "@babel/code-frame" "^7.22.13"
- "@babel/generator" "^7.22.15"
- "@babel/helper-environment-visitor" "^7.22.5"
- "@babel/helper-function-name" "^7.22.5"
+ version "7.24.0"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.0.tgz#4a408fbf364ff73135c714a2ab46a5eab2831b1e"
+ integrity sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==
+ dependencies:
+ "@babel/code-frame" "^7.23.5"
+ "@babel/generator" "^7.23.6"
+ "@babel/helper-environment-visitor" "^7.22.20"
+ "@babel/helper-function-name" "^7.23.0"
"@babel/helper-hoist-variables" "^7.22.5"
"@babel/helper-split-export-declaration" "^7.22.6"
- "@babel/parser" "^7.22.15"
- "@babel/types" "^7.22.15"
- debug "^4.1.0"
+ "@babel/parser" "^7.24.0"
+ "@babel/types" "^7.24.0"
+ debug "^4.3.1"
globals "^11.1.0"
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.3.3":
@@ -301,6 +348,15 @@
"@babel/helper-validator-identifier" "^7.22.15"
to-fast-properties "^2.0.0"
+"@babel/types@^7.23.0", "@babel/types@^7.23.6", "@babel/types@^7.24.0":
+ version "7.24.0"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.0.tgz#3b951f435a92e7333eba05b7566fd297960ea1bf"
+ integrity sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==
+ dependencies:
+ "@babel/helper-string-parser" "^7.23.4"
+ "@babel/helper-validator-identifier" "^7.22.20"
+ to-fast-properties "^2.0.0"
+
"@bcoe/v8-coverage@^0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
@@ -624,6 +680,14 @@
"@types/connect" "*"
"@types/node" "*"
+"@types/body-parser@^1.19.5":
+ version "1.19.5"
+ resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4"
+ integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==
+ dependencies:
+ "@types/connect" "*"
+ "@types/node" "*"
+
"@types/connect@*":
version "3.4.36"
resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.36.tgz#e511558c15a39cb29bd5357eebb57bd1459cd1ab"
@@ -1183,13 +1247,13 @@ bindings@^1.5.0:
dependencies:
file-uri-to-path "1.0.0"
-body-parser@1.20.1:
- version "1.20.1"
- resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
- integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==
+body-parser@1.20.2, body-parser@^1.20.2:
+ version "1.20.2"
+ resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd"
+ integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==
dependencies:
bytes "3.1.2"
- content-type "~1.0.4"
+ content-type "~1.0.5"
debug "2.6.9"
depd "2.0.0"
destroy "1.2.0"
@@ -1197,7 +1261,7 @@ body-parser@1.20.1:
iconv-lite "0.4.24"
on-finished "2.4.1"
qs "6.11.0"
- raw-body "2.5.1"
+ raw-body "2.5.2"
type-is "~1.6.18"
unpipe "1.0.0"
@@ -1544,7 +1608,7 @@ content-disposition@0.5.4:
dependencies:
safe-buffer "5.2.1"
-content-type@~1.0.4:
+content-type@~1.0.4, content-type@~1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
@@ -1559,10 +1623,10 @@ cookie-signature@1.0.6:
resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==
-cookie@0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b"
- integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==
+cookie@0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051"
+ integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==
copy-descriptor@^0.1.0:
version "0.1.1"
@@ -2108,17 +2172,17 @@ expect@^26.6.2:
jest-message-util "^26.6.2"
jest-regex-util "^26.0.0"
-express@^4.17.3:
- version "4.18.2"
- resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
- integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
+express@^4.19.2:
+ version "4.19.2"
+ resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
+ integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
dependencies:
accepts "~1.3.8"
array-flatten "1.1.1"
- body-parser "1.20.1"
+ body-parser "1.20.2"
content-disposition "0.5.4"
content-type "~1.0.4"
- cookie "0.5.0"
+ cookie "0.6.0"
cookie-signature "1.0.6"
debug "2.6.9"
depd "2.0.0"
@@ -4323,10 +4387,10 @@ range-parser@~1.2.1:
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
-raw-body@2.5.1:
- version "2.5.1"
- resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
- integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
+raw-body@2.5.2:
+ version "2.5.2"
+ resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a"
+ integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==
dependencies:
bytes "3.1.2"
http-errors "2.0.0"
@@ -5516,9 +5580,9 @@ write@1.0.3:
mkdirp "^0.5.1"
ws@^7.4.6:
- version "7.5.9"
- resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
- integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
+ version "7.5.10"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9"
+ integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==
xdg-basedir@^3.0.0:
version "3.0.0"
diff --git a/packages/stripe/CHANGELOG.md b/packages/stripe/CHANGELOG.md
index e77494d15..6dbf2ec72 100644
--- a/packages/stripe/CHANGELOG.md
+++ b/packages/stripe/CHANGELOG.md
@@ -1,3 +1,30 @@
+## 10.2.0
+
+**Features**
+ - Sync with Stripe [0.38.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.38.0):
+ - Adds support for paymentMethodOrder in PaymentSheet, which provides client side sorting of payment methods.
+**Fixes**
+ - Fix: Apply dynamic Stripe account ID to confirmPayment method in WebStripe (#1798)
+ - Update models and bugfixes for flutter_stripe_web
+
+## 10.1.1
+
+**Fixes**
+- #1670 Fix issue when not providing preferredNetworks on `CardField` or `CardForm`
+
+## 10.1.0
+
+**Features**
+- #1122 Add google pay and apple pay for web
+- Sync with Stripe [0.37.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.37.0)
+- #1606 Enable tap to pay
+
+**Fixes**
+- #1637 Cash app pay causes crash on web.
+- #1608 prevent paymentintent crash.
+- #1465 unknow result.
+- #1512 add latest charge field to payment intent (Web only).
+
## 10.0.0
**Breaking changes**
diff --git a/packages/stripe/lib/src/stripe.dart b/packages/stripe/lib/src/stripe.dart
index de04e4e6a..bdbf11b6d 100644
--- a/packages/stripe/lib/src/stripe.dart
+++ b/packages/stripe/lib/src/stripe.dart
@@ -586,10 +586,28 @@ class Stripe {
/// check if a particular card can be provisioned with the current app
/// on this particular device.
+ ///
+ /// This method is deprecated. Use [canAddCardToWallet] instead.
+ @Deprecated('Use [canAddCardToWallet] instead')
Future canAddToWallet(String last4) async {
return await _platform.canAddToWallet(last4);
}
+ /// check if a particular card can be provisioned with the current app
+ /// on this particular device.
+ /// Throws [StripeException] in case creating the token fails.
+ Future canAddCardToWallet(
+ CanAddCardToWalletParams params) async {
+ return await _platform.canAddCardToWallet(params);
+ }
+
+ /// check if a particular card can be provisioned with the current app
+ /// on this particular device.
+ /// Throws [StripeException] in case creating the token fails.
+ Future isCardInWallet(String cardLastFour) async {
+ return await _platform.isCardInWallet(cardLastFour);
+ }
+
/// Call the financial connections authentication flow in order to collect a US bank account to enhance payouts.
///
/// Needs `clientSecret` of the stripe financial connections sessions.
diff --git a/packages/stripe/lib/src/widgets/apple_pay_button.dart b/packages/stripe/lib/src/widgets/apple_pay_button.dart
index 338987603..8ad31247b 100644
--- a/packages/stripe/lib/src/widgets/apple_pay_button.dart
+++ b/packages/stripe/lib/src/widgets/apple_pay_button.dart
@@ -222,7 +222,7 @@ class _UiKitApplePayButtonState extends State<_UiKitApplePayButton> {
if (widget.style != oldWidget.style || widget.type != oldWidget.type) {
methodChannel?.invokeMethod('updateStyle', {
'type': widget.type.id,
- 'style': widget.style.id,
+ 'buttonStyle': widget.style.id,
});
_updateHandlers();
}
diff --git a/packages/stripe/lib/src/widgets/card_field.dart b/packages/stripe/lib/src/widgets/card_field.dart
index bae08eb60..f599d368c 100644
--- a/packages/stripe/lib/src/widgets/card_field.dart
+++ b/packages/stripe/lib/src/widgets/card_field.dart
@@ -407,8 +407,9 @@ class _MethodChannelCardFieldState extends State<_MethodChannelCardField>
'placeholder': placeholder.toJson(),
'postalCodeEnabled': widget.enablePostalCode,
'countryCode': widget.countryCode,
- 'preferredNetworks':
- widget.preferredNetworks?.map((e) => e.brandValue).toList(),
+ if (widget.preferredNetworks != null)
+ 'preferredNetworks':
+ widget.preferredNetworks?.map((e) => e.brandValue).toList(),
'dangerouslyGetFullCardDetails': widget.dangerouslyGetFullCardDetails,
if (widget.dangerouslyUpdateFullCardDetails &&
controller.initalDetails != null)
diff --git a/packages/stripe/lib/src/widgets/card_form_field.dart b/packages/stripe/lib/src/widgets/card_form_field.dart
index 9362ff58b..0f60ba0fc 100644
--- a/packages/stripe/lib/src/widgets/card_form_field.dart
+++ b/packages/stripe/lib/src/widgets/card_form_field.dart
@@ -49,6 +49,8 @@ class CardFormField extends StatefulWidget {
/// Defaults is `true`. If your configuration in Stripe requires a postalcode
/// check as defined in https://stripe.com/docs/radar/rules#traditional-bank-checks
/// make sure this one is set to `true`.
+ ///
+ /// This is only supported on android
final bool enablePostalCode;
/// Android only: Controls the postal code entry shown (when `enablePostalCode` is set to true).
@@ -217,7 +219,7 @@ class _MethodChannelCardFormField extends StatefulWidget {
Key? key,
this.onFocus,
this.style,
- this.enablePostalCode = false,
+ this.enablePostalCode = true,
double? width,
double? height,
BoxConstraints? constraints,
@@ -316,8 +318,9 @@ class _MethodChannelCardFormFieldState
controller._initalDetails != null)
'cardDetails': controller._initalDetails?.toJson(),
'autofocus': widget.autofocus,
- 'preferredNetworks':
- widget.preferredNetworks?.map((e) => e.brandValue).toList(),
+ if (widget.preferredNetworks != null)
+ 'preferredNetworks':
+ widget.preferredNetworks?.map((e) => e.brandValue).toList(),
'disabled': widget.disabled,
'defaultValues': {
'countryCode': widget.countryCode,
diff --git a/packages/stripe/pubspec.yaml b/packages/stripe/pubspec.yaml
index ba3f660ec..30e1bd3e2 100644
--- a/packages/stripe/pubspec.yaml
+++ b/packages/stripe/pubspec.yaml
@@ -1,6 +1,6 @@
name: flutter_stripe
description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more.
-version: 10.0.0
+version: 10.2.0
homepage: https://github.com/flutter-stripe/flutter_stripe
repository: https://github.com/flutter-stripe/flutter_stripe
@@ -22,9 +22,9 @@ dependencies:
flutter:
sdk: flutter
meta: ^1.8.0
- stripe_android: ^10.0.0
- stripe_ios: ^10.0.0
- stripe_platform_interface: ^10.0.0
+ stripe_android: ^10.2.0
+ stripe_ios: ^10.2.0
+ stripe_platform_interface: ^10.2.0
dev_dependencies:
flutter_test:
sdk: flutter
diff --git a/packages/stripe_android/CHANGELOG.md b/packages/stripe_android/CHANGELOG.md
index d2cb99f99..6dbf2ec72 100644
--- a/packages/stripe_android/CHANGELOG.md
+++ b/packages/stripe_android/CHANGELOG.md
@@ -1,3 +1,30 @@
+## 10.2.0
+
+**Features**
+ - Sync with Stripe [0.38.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.38.0):
+ - Adds support for paymentMethodOrder in PaymentSheet, which provides client side sorting of payment methods.
+**Fixes**
+ - Fix: Apply dynamic Stripe account ID to confirmPayment method in WebStripe (#1798)
+ - Update models and bugfixes for flutter_stripe_web
+
+## 10.1.1
+
+**Fixes**
+- #1670 Fix issue when not providing preferredNetworks on `CardField` or `CardForm`
+
+## 10.1.0
+
+**Features**
+- #1122 Add google pay and apple pay for web
+- Sync with Stripe [0.37.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.37.0)
+- #1606 Enable tap to pay
+
+**Fixes**
+- #1637 Cash app pay causes crash on web.
+- #1608 prevent paymentintent crash.
+- #1465 unknow result.
+- #1512 add latest charge field to payment intent (Web only).
+
## 10.0.0
**Breaking changes**
@@ -5,12 +32,12 @@ Rename `ApplePayShippingContact` to `PlatformpayshippingContact`.
**Fixes**
- #1465 Handle nullable result coming from Stripe sdk.
+- #1512 add latest charge field to payment intent (Web only).
- #1522 add bankidentifiercode to ideal paymentdata.
- #1560 fix payment sheet crash when pressing back button.
## 9.6.0+1
-
- - fix: compile sdk to 33
+- add requirement for Android gradle plugin to readme
## 9.6.0
Sync with Stripe React Native v0.34 and v0.35:
diff --git a/packages/stripe_android/android/build.gradle b/packages/stripe_android/android/build.gradle
index 0e33bbe51..e659240d9 100644
--- a/packages/stripe_android/android/build.gradle
+++ b/packages/stripe_android/android/build.gradle
@@ -3,7 +3,7 @@ version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.8.0'
- ext.stripe_version = '20.37.+'
+ ext.stripe_version = '20.44.+'
repositories {
google()
@@ -28,7 +28,7 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.flutter.stripe'
- compileSdk 33
+ compileSdk 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
@@ -60,7 +60,7 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
// play-services-wallet is already included in stripe-android
- compileOnly "com.google.android.gms:play-services-wallet:19.2.0"
+ compileOnly "com.google.android.gms:play-services-wallet:19.3.0"
// Users need to declare this dependency on their own, otherwise all methods are a no-op
compileOnly 'com.stripe:stripe-android-issuing-push-provisioning:1.1.0'
diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt
index d4926021f..520434ff0 100644
--- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt
+++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt
@@ -284,7 +284,8 @@ class PaymentLauncherFragment(
StripeIntent.NextActionType.DisplayOxxoDetails,
StripeIntent.NextActionType.DisplayBoletoDetails,
StripeIntent.NextActionType.DisplayKonbiniDetails,
- StripeIntent.NextActionType.VerifyWithMicrodeposits -> true
+ StripeIntent.NextActionType.VerifyWithMicrodeposits,
+ StripeIntent.NextActionType.DisplayMultibancoDetails -> true
StripeIntent.NextActionType.RedirectToUrl,
StripeIntent.NextActionType.UseStripeSdk,
StripeIntent.NextActionType.AlipayRedirect,
diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt
index 75fabe128..0daffa5e4 100644
--- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt
+++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt
@@ -23,11 +23,13 @@ import com.reactnativestripesdk.addresssheet.AddressSheetView
import com.reactnativestripesdk.utils.*
import com.reactnativestripesdk.utils.createError
import com.reactnativestripesdk.utils.createResult
+import com.stripe.android.ExperimentalAllowsRemovalOfLastSavedPaymentMethodApi
import com.stripe.android.paymentsheet.*
import kotlinx.coroutines.CompletableDeferred
import java.io.ByteArrayOutputStream
import kotlin.Exception
+@OptIn(ExperimentalAllowsRemovalOfLastSavedPaymentMethodApi::class)
class PaymentSheetFragment(
private val context: ReactApplicationContext,
private val initPromise: Promise
@@ -67,6 +69,8 @@ class PaymentSheetFragment(
val allowsDelayedPaymentMethods = arguments?.getBoolean("allowsDelayedPaymentMethods")
val billingDetailsBundle = arguments?.getBundle("defaultBillingDetails")
val billingConfigParams = arguments?.getBundle("billingDetailsCollectionConfiguration")
+ val paymentMethodOrder = arguments?.getStringArrayList("paymentMethodOrder")
+ val allowsRemovalOfLastSavedPaymentMethod = arguments?.getBoolean("allowsRemovalOfLastSavedPaymentMethod")
paymentIntentClientSecret = arguments?.getString("paymentIntentClientSecret").orEmpty()
setupIntentClientSecret = arguments?.getString("setupIntentClientSecret").orEmpty()
intentConfiguration = try {
@@ -181,22 +185,29 @@ class PaymentSheetFragment(
billingDetailsBundle.getString("name"),
billingDetailsBundle.getString("phone"))
}
+ val configurationBuilder = PaymentSheet.Configuration.Builder(merchantDisplayName)
+ .allowsDelayedPaymentMethods(allowsDelayedPaymentMethods ?: false)
+ .defaultBillingDetails(defaultBillingDetails)
+ .customer(
+ if (customerId.isNotEmpty() && customerEphemeralKeySecret.isNotEmpty()) PaymentSheet.CustomerConfiguration(
+ id = customerId,
+ ephemeralKeySecret = customerEphemeralKeySecret
+ ) else null
+ )
+ .googlePay(googlePayConfig)
+ .appearance(appearance)
+ .shippingDetails(shippingDetails)
+ .billingDetailsCollectionConfiguration(billingDetailsConfig)
+ .preferredNetworks(mapToPreferredNetworks(arguments?.getIntegerArrayList("preferredNetworks")))
+ .allowsRemovalOfLastSavedPaymentMethod(allowsRemovalOfLastSavedPaymentMethod ?: true)
+ primaryButtonLabel?.let {
+ configurationBuilder.primaryButtonLabel(it)
+ }
+ paymentMethodOrder?.let {
+ configurationBuilder.paymentMethodOrder(it)
+ }
- paymentSheetConfiguration = PaymentSheet.Configuration(
- merchantDisplayName = merchantDisplayName,
- allowsDelayedPaymentMethods = allowsDelayedPaymentMethods ?: false,
- defaultBillingDetails=defaultBillingDetails,
- customer = if (customerId.isNotEmpty() && customerEphemeralKeySecret.isNotEmpty()) PaymentSheet.CustomerConfiguration(
- id = customerId,
- ephemeralKeySecret = customerEphemeralKeySecret
- ) else null,
- googlePay = googlePayConfig,
- appearance = appearance,
- shippingDetails = shippingDetails,
- primaryButtonLabel = primaryButtonLabel,
- billingDetailsCollectionConfiguration = billingDetailsConfig,
- preferredNetworks = mapToPreferredNetworks(arguments?.getIntegerArrayList("preferredNetworks"))
- )
+ paymentSheetConfiguration = configurationBuilder.build()
if (arguments?.getBoolean("customFlow") == true) {
flowController = if (intentConfiguration != null) {
diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt
index 78ea3402f..0347a4c85 100644
--- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt
+++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt
@@ -15,6 +15,7 @@ import androidx.fragment.app.Fragment
import com.facebook.react.bridge.*
import com.reactnativestripesdk.customersheet.ReactNativeCustomerAdapter
import com.reactnativestripesdk.utils.*
+import com.stripe.android.ExperimentalAllowsRemovalOfLastSavedPaymentMethodApi
import com.stripe.android.customersheet.CustomerAdapter
import com.stripe.android.customersheet.CustomerEphemeralKey
import com.stripe.android.customersheet.CustomerSheet
@@ -28,7 +29,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
-@OptIn(ExperimentalCustomerSheetApi::class)
+@OptIn(ExperimentalCustomerSheetApi::class, ExperimentalAllowsRemovalOfLastSavedPaymentMethodApi::class)
class CustomerSheetFragment : Fragment() {
private var customerSheet: CustomerSheet? = null
internal var customerAdapter: ReactNativeCustomerAdapter? = null
@@ -67,7 +68,8 @@ class CustomerSheetFragment : Fragment() {
val customerId = arguments?.getString("customerId")
val customerEphemeralKeySecret = arguments?.getString("customerEphemeralKeySecret")
val customerAdapterOverrideParams = arguments?.getBundle("customerAdapter")
-
+ val allowsRemovalOfLastSavedPaymentMethod = arguments?.getBoolean("allowsRemovalOfLastSavedPaymentMethod")
+ val paymentMethodOrder = arguments?.getStringArrayList("paymentMethodOrder")
if (customerId == null) {
initPromise.resolve(createError(ErrorType.Failed.toString(), "You must provide a value for `customerId`"))
return
@@ -89,7 +91,11 @@ class CustomerSheetFragment : Fragment() {
.googlePayEnabled(googlePayEnabled)
.headerTextForSelectionScreen(headerTextForSelectionScreen)
.preferredNetworks(mapToPreferredNetworks(arguments?.getIntegerArrayList("preferredNetworks")))
+ .allowsRemovalOfLastSavedPaymentMethod(allowsRemovalOfLastSavedPaymentMethod ?: true)
+ paymentMethodOrder?.let {
+ configuration.paymentMethodOrder(it)
+ }
billingDetailsBundle?.let {
configuration.defaultBillingDetails(createDefaultBillingDetails(billingDetailsBundle))
}
diff --git a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt
index 6b91a18ca..ca66b44a7 100644
--- a/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt
+++ b/packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk/utils/Mappers.kt
@@ -513,6 +513,12 @@ internal fun mapNextAction(type: NextActionType?, data: NextActionData?): Writab
nextActionMap.putString("mobileAuthUrl", it.mobileAuthUrl)
}
}
+ NextActionType.DisplayMultibancoDetails -> {
+ (data as? NextActionData.DisplayMultibancoDetails)?.let {
+ nextActionMap.putString("type", "multibanco")
+ nextActionMap.putString("voucherURL", it.hostedVoucherUrl)
+ }
+ }
}
return nextActionMap
}
diff --git a/packages/stripe_android/pubspec.yaml b/packages/stripe_android/pubspec.yaml
index 248fc6a76..ae6506668 100644
--- a/packages/stripe_android/pubspec.yaml
+++ b/packages/stripe_android/pubspec.yaml
@@ -1,6 +1,6 @@
name: stripe_android
description: Stripe platform implementation for Android
-version: 10.0.0
+version: 10.2.0
repository: https://github.com/flutter-stripe/flutter_stripe
homepage: https://pub.dev/packages/flutter_stripe
diff --git a/packages/stripe_ios/CHANGELOG.md b/packages/stripe_ios/CHANGELOG.md
index c02cd0f8f..6dbf2ec72 100644
--- a/packages/stripe_ios/CHANGELOG.md
+++ b/packages/stripe_ios/CHANGELOG.md
@@ -1,3 +1,30 @@
+## 10.2.0
+
+**Features**
+ - Sync with Stripe [0.38.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.38.0):
+ - Adds support for paymentMethodOrder in PaymentSheet, which provides client side sorting of payment methods.
+**Fixes**
+ - Fix: Apply dynamic Stripe account ID to confirmPayment method in WebStripe (#1798)
+ - Update models and bugfixes for flutter_stripe_web
+
+## 10.1.1
+
+**Fixes**
+- #1670 Fix issue when not providing preferredNetworks on `CardField` or `CardForm`
+
+## 10.1.0
+
+**Features**
+- #1122 Add google pay and apple pay for web
+- Sync with Stripe [0.37.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.37.0)
+- #1606 Enable tap to pay
+
+**Fixes**
+- #1637 Cash app pay causes crash on web.
+- #1608 prevent paymentintent crash.
+- #1465 unknow result.
+- #1512 add latest charge field to payment intent (Web only).
+
## 10.0.0
**Breaking changes**
@@ -5,9 +32,13 @@ Rename `ApplePayShippingContact` to `PlatformpayshippingContact`.
**Fixes**
- #1465 Handle nullable result coming from Stripe sdk.
+- #1512 add latest charge field to payment intent (Web only).
- #1522 add bankidentifiercode to ideal paymentdata.
- #1560 fix payment sheet crash when pressing back button.
+## 9.6.0+1
+- add requirement for Android gradle plugin to readme
+
## 9.6.0
Sync with Stripe React Native v0.34 and v0.35:
@@ -17,7 +48,7 @@ Sync with Stripe React Native v0.34 and v0.35:
- Support PlatformPayButton's appearance and borderRadius props on Android.
- PaymentSheet now supports Swish for PaymentIntents in private beta.
- PaymentSheet now supports saved payment method support for SEPA family payment methods.
-- Added support for Flutter 3.16.
+- Added support for Flutter 3.16 and AGP 8
**Fixes**
#1459 allow image to be null (#1466).
diff --git a/packages/stripe_ios/ios/Classes/ApplePayButtonView.swift b/packages/stripe_ios/ios/Classes/ApplePayButtonView.swift
index 2189aab27..a439f7886 100644
--- a/packages/stripe_ios/ios/Classes/ApplePayButtonView.swift
+++ b/packages/stripe_ios/ios/Classes/ApplePayButtonView.swift
@@ -83,7 +83,7 @@ class ApplePayButtonView: NSObject, FlutterPlatformView {
onOrderTrackingAction = onOrderTracking
if let arguments = args as? Dictionary {
type = arguments["type"] as? NSNumber
- buttonStyle = arguments["style"] as? NSNumber
+ buttonStyle = arguments["buttonStyle"] as? NSNumber
borderRadius = arguments["borderRadius"] as? NSNumber
}
// iOS views can be created here
@@ -114,7 +114,7 @@ class ApplePayButtonView: NSObject, FlutterPlatformView {
case "updateStyle":
if let arguments = call.arguments as? Dictionary {
self.type = arguments["type"] as? NSNumber
- self.buttonStyle = arguments["style"] as? NSNumber
+ self.buttonStyle = arguments["buttonStyle"] as? NSNumber
self.borderRadius = arguments["borderRadius"] as? NSNumber
}
diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/CustomerSheet/CustomerSheetUtils.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/CustomerSheet/CustomerSheetUtils.swift
index d764cd9d0..bd836b7d5 100644
--- a/packages/stripe_ios/ios/Classes/Stripe Sdk/CustomerSheet/CustomerSheetUtils.swift
+++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/CustomerSheet/CustomerSheetUtils.swift
@@ -6,7 +6,7 @@
//
import Foundation
-@_spi(PrivateBetaCustomerSheet) import StripePaymentSheet
+@_spi(PrivateBetaCustomerSheet) @_spi(STP) import StripePaymentSheet
class CustomerSheetUtils {
internal class func buildCustomerSheetConfiguration(
@@ -19,7 +19,8 @@ class CustomerSheetUtils {
merchantDisplayName: String?,
billingDetailsCollectionConfiguration: NSDictionary?,
defaultBillingDetails: NSDictionary?,
- preferredNetworks: Array?
+ preferredNetworks: Array?,
+ allowsRemovalOfLastSavedPaymentMethod: Bool?
) -> CustomerSheet.Configuration {
var config = CustomerSheet.Configuration()
config.appearance = appearance
@@ -54,6 +55,9 @@ class CustomerSheetUtils {
state: address["state"])
}
}
+ if let allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod {
+ config.allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod
+ }
return config
}
diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+CustomerSheet.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+CustomerSheet.swift
index a616c9801..49630a3d2 100644
--- a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+CustomerSheet.swift
+++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+CustomerSheet.swift
@@ -23,7 +23,8 @@ extension StripeSdk {
merchantDisplayName: params["merchantDisplayName"] as? String,
billingDetailsCollectionConfiguration: params["billingDetailsCollectionConfiguration"] as? NSDictionary,
defaultBillingDetails: params["defaultBillingDetails"] as? NSDictionary,
- preferredNetworks: params["preferredNetworks"] as? Array
+ preferredNetworks: params["preferredNetworks"] as? Array,
+ allowsRemovalOfLastSavedPaymentMethod: params["allowsRemovalOfLastSavedPaymentMethod"] as? Bool
)
} catch {
resolve(
diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift
index c39247aef..497b330f7 100644
--- a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift
+++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift
@@ -6,7 +6,7 @@
//
import Foundation
-import StripePaymentSheet
+@_spi(ExperimentalAllowsRemovalOfLastSavedPaymentMethodAPI) @_spi(STP) import StripePaymentSheet
extension StripeSdk {
internal func buildPaymentSheetConfiguration(
@@ -103,6 +103,14 @@ extension StripeSdk {
configuration.preferredNetworks = preferredNetworksAsInts.map(Mappers.intToCardBrand).compactMap { $0 }
}
+ if let allowsRemovalOfLastSavedPaymentMethod = params["allowsRemovalOfLastSavedPaymentMethod"] as? Bool {
+ configuration.allowsRemovalOfLastSavedPaymentMethod = allowsRemovalOfLastSavedPaymentMethod
+ }
+
+ if let paymentMethodOrder = params["paymentMethodOrder"] as? Array {
+ configuration.paymentMethodOrder = paymentMethodOrder
+ }
+
return (nil, configuration)
}
diff --git a/packages/stripe_ios/ios/stripe_ios.podspec b/packages/stripe_ios/ios/stripe_ios.podspec
index 9877ebd44..5710284a7 100644
--- a/packages/stripe_ios/ios/stripe_ios.podspec
+++ b/packages/stripe_ios/ios/stripe_ios.podspec
@@ -2,7 +2,7 @@
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint stripe_ios.podspec' to validate before publishing.
#
-stripe_version = '~> 23.22.0'
+stripe_version = '~> 23.27.0'
Pod::Spec.new do |s|
s.name = 'stripe_ios'
s.version = '0.0.1'
diff --git a/packages/stripe_ios/pubspec.yaml b/packages/stripe_ios/pubspec.yaml
index f20f02c5a..b64bdc5a0 100644
--- a/packages/stripe_ios/pubspec.yaml
+++ b/packages/stripe_ios/pubspec.yaml
@@ -1,6 +1,6 @@
name: stripe_ios
description: Stripe platform implementation for iOS
-version: 10.0.0
+version: 10.2.0
repository: https://github.com/flutter-stripe/flutter_stripe
homepage: https://pub.dev/packages/flutter_stripe
diff --git a/packages/stripe_js/CHANGELOG.md b/packages/stripe_js/CHANGELOG.md
index 743031d35..445713c44 100644
--- a/packages/stripe_js/CHANGELOG.md
+++ b/packages/stripe_js/CHANGELOG.md
@@ -1,3 +1,15 @@
+## 3.4.0
+**Features**
+- #1122 Add google pay and apple pay for web
+- Sync with Stripe [0.37.0](https://github.com/stripe/stripe-react-native/releases/tag/v0.37.0)
+- #1606 Enable tap to pay
+
+**Fixes**
+- #1637 Cash app pay causes crash on web.
+- #1608 prevent paymentintent crash.
+- #1465 unknow result.
+- #1512 add latest charge field to payment intent (Web only).
+
## 3.3.0
**FIXES**
- Invalid argument `requires_capture` on web (#1431).
diff --git a/packages/stripe_js/dart_test.yaml b/packages/stripe_js/dart_test.yaml
index 817070891..f537b54f6 100644
--- a/packages/stripe_js/dart_test.yaml
+++ b/packages/stripe_js/dart_test.yaml
@@ -1,13 +1,13 @@
tags:
browser: {test_on: "browser"}
-override_platforms:
- chrome:
- settings:
- arguments: --user-data-dir=/tmp --disable-web-security --disable-site-isolation-trials --remote-debugging-port=9222
+# override_platforms:
+ # chrome:
+ # settings:
+ # arguments: --user-data-dir=/tmp --disable-web-security --disable-site-isolation-trials --remote-debugging-port=9222
presets:
# Pass "-P chrome" to run only Chrome tests.
chrome:
include_tags: browser
- platforms: [chrome]
+ # platforms: [chrome]
diff --git a/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart b/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart
index 94b011cac..0c1a52c6c 100644
--- a/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart
+++ b/packages/stripe_js/lib/src/api/core/billing_details.freezed.dart
@@ -102,11 +102,11 @@ class _$BillingDetailsCopyWithImpl<$Res, $Val extends BillingDetails>
}
/// @nodoc
-abstract class _$$_BillingDetailsCopyWith<$Res>
+abstract class _$$BillingDetailsImplCopyWith<$Res>
implements $BillingDetailsCopyWith<$Res> {
- factory _$$_BillingDetailsCopyWith(
- _$_BillingDetails value, $Res Function(_$_BillingDetails) then) =
- __$$_BillingDetailsCopyWithImpl<$Res>;
+ factory _$$BillingDetailsImplCopyWith(_$BillingDetailsImpl value,
+ $Res Function(_$BillingDetailsImpl) then) =
+ __$$BillingDetailsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -117,11 +117,11 @@ abstract class _$$_BillingDetailsCopyWith<$Res>
}
/// @nodoc
-class __$$_BillingDetailsCopyWithImpl<$Res>
- extends _$BillingDetailsCopyWithImpl<$Res, _$_BillingDetails>
- implements _$$_BillingDetailsCopyWith<$Res> {
- __$$_BillingDetailsCopyWithImpl(
- _$_BillingDetails _value, $Res Function(_$_BillingDetails) _then)
+class __$$BillingDetailsImplCopyWithImpl<$Res>
+ extends _$BillingDetailsCopyWithImpl<$Res, _$BillingDetailsImpl>
+ implements _$$BillingDetailsImplCopyWith<$Res> {
+ __$$BillingDetailsImplCopyWithImpl(
+ _$BillingDetailsImpl _value, $Res Function(_$BillingDetailsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -132,7 +132,7 @@ class __$$_BillingDetailsCopyWithImpl<$Res>
Object? phone = freezed,
Object? name = freezed,
}) {
- return _then(_$_BillingDetails(
+ return _then(_$BillingDetailsImpl(
email: freezed == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
@@ -155,11 +155,11 @@ class __$$_BillingDetailsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_BillingDetails implements _BillingDetails {
- const _$_BillingDetails({this.email, this.address, this.phone, this.name});
+class _$BillingDetailsImpl implements _BillingDetails {
+ const _$BillingDetailsImpl({this.email, this.address, this.phone, this.name});
- factory _$_BillingDetails.fromJson(Map json) =>
- _$$_BillingDetailsFromJson(json);
+ factory _$BillingDetailsImpl.fromJson(Map json) =>
+ _$$BillingDetailsImplFromJson(json);
/// Email address.
@override
@@ -186,7 +186,7 @@ class _$_BillingDetails implements _BillingDetails {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_BillingDetails &&
+ other is _$BillingDetailsImpl &&
(identical(other.email, email) || other.email == email) &&
(identical(other.address, address) || other.address == address) &&
(identical(other.phone, phone) || other.phone == phone) &&
@@ -200,12 +200,13 @@ class _$_BillingDetails implements _BillingDetails {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_BillingDetailsCopyWith<_$_BillingDetails> get copyWith =>
- __$$_BillingDetailsCopyWithImpl<_$_BillingDetails>(this, _$identity);
+ _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith =>
+ __$$BillingDetailsImplCopyWithImpl<_$BillingDetailsImpl>(
+ this, _$identity);
@override
Map toJson() {
- return _$$_BillingDetailsToJson(
+ return _$$BillingDetailsImplToJson(
this,
);
}
@@ -216,10 +217,10 @@ abstract class _BillingDetails implements BillingDetails {
{final String? email,
final BillingAddress? address,
final String? phone,
- final String? name}) = _$_BillingDetails;
+ final String? name}) = _$BillingDetailsImpl;
factory _BillingDetails.fromJson(Map json) =
- _$_BillingDetails.fromJson;
+ _$BillingDetailsImpl.fromJson;
@override
@@ -239,7 +240,7 @@ abstract class _BillingDetails implements BillingDetails {
String? get name;
@override
@JsonKey(ignore: true)
- _$$_BillingDetailsCopyWith<_$_BillingDetails> get copyWith =>
+ _$$BillingDetailsImplCopyWith<_$BillingDetailsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
@@ -339,12 +340,12 @@ class _$BillingAddressCopyWithImpl<$Res, $Val extends BillingAddress>
}
/// @nodoc
-abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
+abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res>
implements $BillingAddressCopyWith<$Res> {
- factory _$$_PaymentElementBillingDetailsAddressCopyWith(
- _$_PaymentElementBillingDetailsAddress value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) then) =
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>;
+ factory _$$PaymentElementBillingDetailsAddressImplCopyWith(
+ _$PaymentElementBillingDetailsAddressImpl value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) =
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -357,13 +358,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
+class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>
extends _$BillingAddressCopyWithImpl<$Res,
- _$_PaymentElementBillingDetailsAddress>
- implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> {
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl(
- _$_PaymentElementBillingDetailsAddress _value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) _then)
+ _$PaymentElementBillingDetailsAddressImpl>
+ implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> {
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl(
+ _$PaymentElementBillingDetailsAddressImpl _value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -376,7 +377,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
Object? country = freezed,
Object? postalCode = freezed,
}) {
- return _then(_$_PaymentElementBillingDetailsAddress(
+ return _then(_$PaymentElementBillingDetailsAddressImpl(
line1: freezed == line1
? _value.line1
: line1 // ignore: cast_nullable_to_non_nullable
@@ -407,9 +408,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementBillingDetailsAddress
+class _$PaymentElementBillingDetailsAddressImpl
implements _PaymentElementBillingDetailsAddress {
- const _$_PaymentElementBillingDetailsAddress(
+ const _$PaymentElementBillingDetailsAddressImpl(
{this.line1,
this.line2,
this.city,
@@ -417,9 +418,9 @@ class _$_PaymentElementBillingDetailsAddress
this.country,
@JsonKey(name: 'postal_code') this.postalCode});
- factory _$_PaymentElementBillingDetailsAddress.fromJson(
+ factory _$PaymentElementBillingDetailsAddressImpl.fromJson(
Map json) =>
- _$$_PaymentElementBillingDetailsAddressFromJson(json);
+ _$$PaymentElementBillingDetailsAddressImplFromJson(json);
/// Address line 1 (e.g., street, PO Box, or company name).
@override
@@ -455,7 +456,7 @@ class _$_PaymentElementBillingDetailsAddress
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementBillingDetailsAddress &&
+ other is _$PaymentElementBillingDetailsAddressImpl &&
(identical(other.line1, line1) || other.line1 == line1) &&
(identical(other.line2, line2) || other.line2 == line2) &&
(identical(other.city, city) || other.city == city) &&
@@ -473,14 +474,14 @@ class _$_PaymentElementBillingDetailsAddress
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
- get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl<
- _$_PaymentElementBillingDetailsAddress>(this, _$identity);
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
+ get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<
+ _$PaymentElementBillingDetailsAddressImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementBillingDetailsAddressToJson(
+ return _$$PaymentElementBillingDetailsAddressImplToJson(
this,
);
}
@@ -494,11 +495,11 @@ abstract class _PaymentElementBillingDetailsAddress implements BillingAddress {
final String? state,
final String? country,
@JsonKey(name: 'postal_code') final String? postalCode}) =
- _$_PaymentElementBillingDetailsAddress;
+ _$PaymentElementBillingDetailsAddressImpl;
factory _PaymentElementBillingDetailsAddress.fromJson(
Map json) =
- _$_PaymentElementBillingDetailsAddress.fromJson;
+ _$PaymentElementBillingDetailsAddressImpl.fromJson;
@override
@@ -527,7 +528,7 @@ abstract class _PaymentElementBillingDetailsAddress implements BillingAddress {
String? get postalCode;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/core/billing_details.g.dart b/packages/stripe_js/lib/src/api/core/billing_details.g.dart
index fae145c4c..48a3fcd60 100644
--- a/packages/stripe_js/lib/src/api/core/billing_details.g.dart
+++ b/packages/stripe_js/lib/src/api/core/billing_details.g.dart
@@ -6,7 +6,8 @@ part of 'billing_details.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_BillingDetails _$$_BillingDetailsFromJson(Map json) => _$_BillingDetails(
+_$BillingDetailsImpl _$$BillingDetailsImplFromJson(Map json) =>
+ _$BillingDetailsImpl(
email: json['email'] as String?,
address: json['address'] == null
? null
@@ -16,7 +17,8 @@ _$_BillingDetails _$$_BillingDetailsFromJson(Map json) => _$_BillingDetails(
name: json['name'] as String?,
);
-Map _$$_BillingDetailsToJson(_$_BillingDetails instance) {
+Map _$$BillingDetailsImplToJson(
+ _$BillingDetailsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -32,9 +34,9 @@ Map _$$_BillingDetailsToJson(_$_BillingDetails instance) {
return val;
}
-_$_PaymentElementBillingDetailsAddress
- _$$_PaymentElementBillingDetailsAddressFromJson(Map json) =>
- _$_PaymentElementBillingDetailsAddress(
+_$PaymentElementBillingDetailsAddressImpl
+ _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) =>
+ _$PaymentElementBillingDetailsAddressImpl(
line1: json['line1'] as String?,
line2: json['line2'] as String?,
city: json['city'] as String?,
@@ -43,8 +45,8 @@ _$_PaymentElementBillingDetailsAddress
postalCode: json['postal_code'] as String?,
);
-Map _$$_PaymentElementBillingDetailsAddressToJson(
- _$_PaymentElementBillingDetailsAddress instance) {
+Map _$$PaymentElementBillingDetailsAddressImplToJson(
+ _$PaymentElementBillingDetailsAddressImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/core/error.freezed.dart b/packages/stripe_js/lib/src/api/core/error.freezed.dart
index 8444a536b..794c150d7 100644
--- a/packages/stripe_js/lib/src/api/core/error.freezed.dart
+++ b/packages/stripe_js/lib/src/api/core/error.freezed.dart
@@ -106,12 +106,12 @@ class _$StripeErrorCopyWithImpl<$Res, $Val extends StripeError>
}
/// @nodoc
-abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
+abstract class _$$PaymentElementChangeEventImplCopyWith<$Res>
implements $StripeErrorCopyWith<$Res> {
- factory _$$_PaymentElementChangeEventCopyWith(
- _$_PaymentElementChangeEvent value,
- $Res Function(_$_PaymentElementChangeEvent) then) =
- __$$_PaymentElementChangeEventCopyWithImpl<$Res>;
+ factory _$$PaymentElementChangeEventImplCopyWith(
+ _$PaymentElementChangeEventImpl value,
+ $Res Function(_$PaymentElementChangeEventImpl) then) =
+ __$$PaymentElementChangeEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -123,12 +123,12 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
- extends _$StripeErrorCopyWithImpl<$Res, _$_PaymentElementChangeEvent>
- implements _$$_PaymentElementChangeEventCopyWith<$Res> {
- __$$_PaymentElementChangeEventCopyWithImpl(
- _$_PaymentElementChangeEvent _value,
- $Res Function(_$_PaymentElementChangeEvent) _then)
+class __$$PaymentElementChangeEventImplCopyWithImpl<$Res>
+ extends _$StripeErrorCopyWithImpl<$Res, _$PaymentElementChangeEventImpl>
+ implements _$$PaymentElementChangeEventImplCopyWith<$Res> {
+ __$$PaymentElementChangeEventImplCopyWithImpl(
+ _$PaymentElementChangeEventImpl _value,
+ $Res Function(_$PaymentElementChangeEventImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -140,7 +140,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
Object? message = freezed,
Object? param = freezed,
}) {
- return _then(_$_PaymentElementChangeEvent(
+ return _then(_$PaymentElementChangeEventImpl(
type: freezed == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
@@ -167,12 +167,12 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
- const _$_PaymentElementChangeEvent(
+class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
+ const _$PaymentElementChangeEventImpl(
{this.type, this.code, this.decline_code, this.message, this.param});
- factory _$_PaymentElementChangeEvent.fromJson(Map json) =>
- _$$_PaymentElementChangeEventFromJson(json);
+ factory _$PaymentElementChangeEventImpl.fromJson(Map json) =>
+ _$$PaymentElementChangeEventImplFromJson(json);
/// The type of error returned. One of api_error, card_error,
/// idempotency_error, or invalid_request_error
@@ -209,7 +209,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementChangeEvent &&
+ other is _$PaymentElementChangeEventImpl &&
(identical(other.type, type) || other.type == type) &&
(identical(other.code, code) || other.code == code) &&
(identical(other.decline_code, decline_code) ||
@@ -226,13 +226,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
- get copyWith => __$$_PaymentElementChangeEventCopyWithImpl<
- _$_PaymentElementChangeEvent>(this, _$identity);
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
+ get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl<
+ _$PaymentElementChangeEventImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementChangeEventToJson(
+ return _$$PaymentElementChangeEventImplToJson(
this,
);
}
@@ -244,10 +244,10 @@ abstract class _PaymentElementChangeEvent implements StripeError {
final String? code,
final String? decline_code,
final String? message,
- final String? param}) = _$_PaymentElementChangeEvent;
+ final String? param}) = _$PaymentElementChangeEventImpl;
factory _PaymentElementChangeEvent.fromJson(Map json) =
- _$_PaymentElementChangeEvent.fromJson;
+ _$PaymentElementChangeEventImpl.fromJson;
@override
@@ -277,6 +277,6 @@ abstract class _PaymentElementChangeEvent implements StripeError {
String? get param;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/core/error.g.dart b/packages/stripe_js/lib/src/api/core/error.g.dart
index 03a7f48c9..88d7b9c5a 100644
--- a/packages/stripe_js/lib/src/api/core/error.g.dart
+++ b/packages/stripe_js/lib/src/api/core/error.g.dart
@@ -6,8 +6,9 @@ part of 'error.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
- _$_PaymentElementChangeEvent(
+_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson(
+ Map json) =>
+ _$PaymentElementChangeEventImpl(
type: json['type'] as String?,
code: json['code'] as String?,
decline_code: json['decline_code'] as String?,
@@ -15,8 +16,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
param: json['param'] as String?,
);
-Map _$$_PaymentElementChangeEventToJson(
- _$_PaymentElementChangeEvent instance) {
+Map _$$PaymentElementChangeEventImplToJson(
+ _$PaymentElementChangeEventImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart b/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart
index 111b38dce..30c3ba084 100644
--- a/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart
+++ b/packages/stripe_js/lib/src/api/core/shipping_details.freezed.dart
@@ -114,12 +114,12 @@ class _$ShippingDetailsCopyWithImpl<$Res, $Val extends ShippingDetails>
}
/// @nodoc
-abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
+abstract class _$$PaymentElementChangeEventImplCopyWith<$Res>
implements $ShippingDetailsCopyWith<$Res> {
- factory _$$_PaymentElementChangeEventCopyWith(
- _$_PaymentElementChangeEvent value,
- $Res Function(_$_PaymentElementChangeEvent) then) =
- __$$_PaymentElementChangeEventCopyWithImpl<$Res>;
+ factory _$$PaymentElementChangeEventImplCopyWith(
+ _$PaymentElementChangeEventImpl value,
+ $Res Function(_$PaymentElementChangeEventImpl) then) =
+ __$$PaymentElementChangeEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -134,12 +134,12 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
- extends _$ShippingDetailsCopyWithImpl<$Res, _$_PaymentElementChangeEvent>
- implements _$$_PaymentElementChangeEventCopyWith<$Res> {
- __$$_PaymentElementChangeEventCopyWithImpl(
- _$_PaymentElementChangeEvent _value,
- $Res Function(_$_PaymentElementChangeEvent) _then)
+class __$$PaymentElementChangeEventImplCopyWithImpl<$Res>
+ extends _$ShippingDetailsCopyWithImpl<$Res, _$PaymentElementChangeEventImpl>
+ implements _$$PaymentElementChangeEventImplCopyWith<$Res> {
+ __$$PaymentElementChangeEventImplCopyWithImpl(
+ _$PaymentElementChangeEventImpl _value,
+ $Res Function(_$PaymentElementChangeEventImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -151,7 +151,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
Object? phone = freezed,
Object? trackingNumber = freezed,
}) {
- return _then(_$_PaymentElementChangeEvent(
+ return _then(_$PaymentElementChangeEventImpl(
address: null == address
? _value.address
: address // ignore: cast_nullable_to_non_nullable
@@ -178,16 +178,16 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
- const _$_PaymentElementChangeEvent(
+class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
+ const _$PaymentElementChangeEventImpl(
{this.address = const ShippingDetailsAddress(),
this.carrier,
this.name,
this.phone,
@JsonKey(name: 'tracking_number') this.trackingNumber});
- factory _$_PaymentElementChangeEvent.fromJson(Map json) =>
- _$$_PaymentElementChangeEventFromJson(json);
+ factory _$PaymentElementChangeEventImpl.fromJson(Map json) =>
+ _$$PaymentElementChangeEventImplFromJson(json);
/// Shipping address.
@override
@@ -223,7 +223,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementChangeEvent &&
+ other is _$PaymentElementChangeEventImpl &&
(identical(other.address, address) || other.address == address) &&
(identical(other.carrier, carrier) || other.carrier == carrier) &&
(identical(other.name, name) || other.name == name) &&
@@ -240,13 +240,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
- get copyWith => __$$_PaymentElementChangeEventCopyWithImpl<
- _$_PaymentElementChangeEvent>(this, _$identity);
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
+ get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl<
+ _$PaymentElementChangeEventImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementChangeEventToJson(
+ return _$$PaymentElementChangeEventImplToJson(
this,
);
}
@@ -259,10 +259,10 @@ abstract class _PaymentElementChangeEvent implements ShippingDetails {
final String? name,
final String? phone,
@JsonKey(name: 'tracking_number') final String? trackingNumber}) =
- _$_PaymentElementChangeEvent;
+ _$PaymentElementChangeEventImpl;
factory _PaymentElementChangeEvent.fromJson(Map json) =
- _$_PaymentElementChangeEvent.fromJson;
+ _$PaymentElementChangeEventImpl.fromJson;
@override
@@ -290,7 +290,7 @@ abstract class _PaymentElementChangeEvent implements ShippingDetails {
String? get trackingNumber;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
@@ -392,12 +392,12 @@ class _$ShippingDetailsAddressCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
+abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res>
implements $ShippingDetailsAddressCopyWith<$Res> {
- factory _$$_PaymentElementBillingDetailsAddressCopyWith(
- _$_PaymentElementBillingDetailsAddress value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) then) =
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>;
+ factory _$$PaymentElementBillingDetailsAddressImplCopyWith(
+ _$PaymentElementBillingDetailsAddressImpl value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) =
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -410,13 +410,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
+class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>
extends _$ShippingDetailsAddressCopyWithImpl<$Res,
- _$_PaymentElementBillingDetailsAddress>
- implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> {
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl(
- _$_PaymentElementBillingDetailsAddress _value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) _then)
+ _$PaymentElementBillingDetailsAddressImpl>
+ implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> {
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl(
+ _$PaymentElementBillingDetailsAddressImpl _value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -429,7 +429,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
Object? country = freezed,
Object? postalCode = freezed,
}) {
- return _then(_$_PaymentElementBillingDetailsAddress(
+ return _then(_$PaymentElementBillingDetailsAddressImpl(
line1: freezed == line1
? _value.line1
: line1 // ignore: cast_nullable_to_non_nullable
@@ -460,9 +460,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementBillingDetailsAddress
+class _$PaymentElementBillingDetailsAddressImpl
implements _PaymentElementBillingDetailsAddress {
- const _$_PaymentElementBillingDetailsAddress(
+ const _$PaymentElementBillingDetailsAddressImpl(
{this.line1,
this.line2,
this.city,
@@ -470,9 +470,9 @@ class _$_PaymentElementBillingDetailsAddress
this.country,
@JsonKey(name: 'postal_code') this.postalCode});
- factory _$_PaymentElementBillingDetailsAddress.fromJson(
+ factory _$PaymentElementBillingDetailsAddressImpl.fromJson(
Map json) =>
- _$$_PaymentElementBillingDetailsAddressFromJson(json);
+ _$$PaymentElementBillingDetailsAddressImplFromJson(json);
/// Address line 1 (e.g., street, PO Box, or company name).
@override
@@ -508,7 +508,7 @@ class _$_PaymentElementBillingDetailsAddress
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementBillingDetailsAddress &&
+ other is _$PaymentElementBillingDetailsAddressImpl &&
(identical(other.line1, line1) || other.line1 == line1) &&
(identical(other.line2, line2) || other.line2 == line2) &&
(identical(other.city, city) || other.city == city) &&
@@ -526,14 +526,14 @@ class _$_PaymentElementBillingDetailsAddress
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
- get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl<
- _$_PaymentElementBillingDetailsAddress>(this, _$identity);
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
+ get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<
+ _$PaymentElementBillingDetailsAddressImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementBillingDetailsAddressToJson(
+ return _$$PaymentElementBillingDetailsAddressImplToJson(
this,
);
}
@@ -548,11 +548,11 @@ abstract class _PaymentElementBillingDetailsAddress
final String? state,
final String? country,
@JsonKey(name: 'postal_code') final String? postalCode}) =
- _$_PaymentElementBillingDetailsAddress;
+ _$PaymentElementBillingDetailsAddressImpl;
factory _PaymentElementBillingDetailsAddress.fromJson(
Map json) =
- _$_PaymentElementBillingDetailsAddress.fromJson;
+ _$PaymentElementBillingDetailsAddressImpl.fromJson;
@override
@@ -581,7 +581,7 @@ abstract class _PaymentElementBillingDetailsAddress
String? get postalCode;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/core/shipping_details.g.dart b/packages/stripe_js/lib/src/api/core/shipping_details.g.dart
index a61156b2d..24b77611a 100644
--- a/packages/stripe_js/lib/src/api/core/shipping_details.g.dart
+++ b/packages/stripe_js/lib/src/api/core/shipping_details.g.dart
@@ -6,8 +6,9 @@ part of 'shipping_details.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
- _$_PaymentElementChangeEvent(
+_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson(
+ Map json) =>
+ _$PaymentElementChangeEventImpl(
address: json['address'] == null
? const ShippingDetailsAddress()
: ShippingDetailsAddress.fromJson(
@@ -18,8 +19,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
trackingNumber: json['tracking_number'] as String?,
);
-Map _$$_PaymentElementChangeEventToJson(
- _$_PaymentElementChangeEvent instance) {
+Map _$$PaymentElementChangeEventImplToJson(
+ _$PaymentElementChangeEventImpl instance) {
final val = {
'address': instance.address.toJson(),
};
@@ -37,9 +38,9 @@ Map _$$_PaymentElementChangeEventToJson(
return val;
}
-_$_PaymentElementBillingDetailsAddress
- _$$_PaymentElementBillingDetailsAddressFromJson(Map json) =>
- _$_PaymentElementBillingDetailsAddress(
+_$PaymentElementBillingDetailsAddressImpl
+ _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) =>
+ _$PaymentElementBillingDetailsAddressImpl(
line1: json['line1'] as String?,
line2: json['line2'] as String?,
city: json['city'] as String?,
@@ -48,8 +49,8 @@ _$_PaymentElementBillingDetailsAddress
postalCode: json['postal_code'] as String?,
);
-Map _$$_PaymentElementBillingDetailsAddressToJson(
- _$_PaymentElementBillingDetailsAddress instance) {
+Map _$$PaymentElementBillingDetailsAddressImplToJson(
+ _$PaymentElementBillingDetailsAddressImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart b/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart
index edfcba015..00ca4f680 100644
--- a/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/card_element_change_event.freezed.dart
@@ -127,11 +127,12 @@ class _$CardElementChangeEventCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_CardElementChangeEventCopyWith<$Res>
+abstract class _$$CardElementChangeEventImplCopyWith<$Res>
implements $CardElementChangeEventCopyWith<$Res> {
- factory _$$_CardElementChangeEventCopyWith(_$_CardElementChangeEvent value,
- $Res Function(_$_CardElementChangeEvent) then) =
- __$$_CardElementChangeEventCopyWithImpl<$Res>;
+ factory _$$CardElementChangeEventImplCopyWith(
+ _$CardElementChangeEventImpl value,
+ $Res Function(_$CardElementChangeEventImpl) then) =
+ __$$CardElementChangeEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -149,12 +150,13 @@ abstract class _$$_CardElementChangeEventCopyWith<$Res>
}
/// @nodoc
-class __$$_CardElementChangeEventCopyWithImpl<$Res>
+class __$$CardElementChangeEventImplCopyWithImpl<$Res>
extends _$CardElementChangeEventCopyWithImpl<$Res,
- _$_CardElementChangeEvent>
- implements _$$_CardElementChangeEventCopyWith<$Res> {
- __$$_CardElementChangeEventCopyWithImpl(_$_CardElementChangeEvent _value,
- $Res Function(_$_CardElementChangeEvent) _then)
+ _$CardElementChangeEventImpl>
+ implements _$$CardElementChangeEventImplCopyWith<$Res> {
+ __$$CardElementChangeEventImplCopyWithImpl(
+ _$CardElementChangeEventImpl _value,
+ $Res Function(_$CardElementChangeEventImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -167,7 +169,7 @@ class __$$_CardElementChangeEventCopyWithImpl<$Res>
Object? brand = null,
Object? value = freezed,
}) {
- return _then(_$_CardElementChangeEvent(
+ return _then(_$CardElementChangeEventImpl(
elementType: null == elementType
? _value.elementType
: elementType // ignore: cast_nullable_to_non_nullable
@@ -198,8 +200,8 @@ class __$$_CardElementChangeEventCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_CardElementChangeEvent implements _CardElementChangeEvent {
- const _$_CardElementChangeEvent(
+class _$CardElementChangeEventImpl implements _CardElementChangeEvent {
+ const _$CardElementChangeEventImpl(
{required this.elementType,
required this.empty,
required this.complete,
@@ -207,8 +209,8 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent {
required this.brand,
this.value});
- factory _$_CardElementChangeEvent.fromJson(Map json) =>
- _$$_CardElementChangeEventFromJson(json);
+ factory _$CardElementChangeEventImpl.fromJson(Map json) =>
+ _$$CardElementChangeEventImplFromJson(json);
@override
final String elementType;
@@ -232,7 +234,7 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_CardElementChangeEvent &&
+ other is _$CardElementChangeEventImpl &&
(identical(other.elementType, elementType) ||
other.elementType == elementType) &&
(identical(other.empty, empty) || other.empty == empty) &&
@@ -251,13 +253,13 @@ class _$_CardElementChangeEvent implements _CardElementChangeEvent {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_CardElementChangeEventCopyWith<_$_CardElementChangeEvent> get copyWith =>
- __$$_CardElementChangeEventCopyWithImpl<_$_CardElementChangeEvent>(
- this, _$identity);
+ _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl>
+ get copyWith => __$$CardElementChangeEventImplCopyWithImpl<
+ _$CardElementChangeEventImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_CardElementChangeEventToJson(
+ return _$$CardElementChangeEventImplToJson(
this,
);
}
@@ -270,10 +272,10 @@ abstract class _CardElementChangeEvent implements CardElementChangeEvent {
required final bool complete,
final StripeError? error,
required final String brand,
- final CardElementChangeEventValue? value}) = _$_CardElementChangeEvent;
+ final CardElementChangeEventValue? value}) = _$CardElementChangeEventImpl;
factory _CardElementChangeEvent.fromJson(Map json) =
- _$_CardElementChangeEvent.fromJson;
+ _$CardElementChangeEventImpl.fromJson;
@override
String get elementType;
@@ -289,8 +291,8 @@ abstract class _CardElementChangeEvent implements CardElementChangeEvent {
CardElementChangeEventValue? get value;
@override
@JsonKey(ignore: true)
- _$$_CardElementChangeEventCopyWith<_$_CardElementChangeEvent> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$CardElementChangeEventImplCopyWith<_$CardElementChangeEventImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
CardElementChangeEventValue _$CardElementChangeEventValueFromJson(
@@ -345,25 +347,25 @@ class _$CardElementChangeEventValueCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_CardElementChangeEventValueCopyWith<$Res>
+abstract class _$$CardElementChangeEventValueImplCopyWith<$Res>
implements $CardElementChangeEventValueCopyWith<$Res> {
- factory _$$_CardElementChangeEventValueCopyWith(
- _$_CardElementChangeEventValue value,
- $Res Function(_$_CardElementChangeEventValue) then) =
- __$$_CardElementChangeEventValueCopyWithImpl<$Res>;
+ factory _$$CardElementChangeEventValueImplCopyWith(
+ _$CardElementChangeEventValueImpl value,
+ $Res Function(_$CardElementChangeEventValueImpl) then) =
+ __$$CardElementChangeEventValueImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? postalCode});
}
/// @nodoc
-class __$$_CardElementChangeEventValueCopyWithImpl<$Res>
+class __$$CardElementChangeEventValueImplCopyWithImpl<$Res>
extends _$CardElementChangeEventValueCopyWithImpl<$Res,
- _$_CardElementChangeEventValue>
- implements _$$_CardElementChangeEventValueCopyWith<$Res> {
- __$$_CardElementChangeEventValueCopyWithImpl(
- _$_CardElementChangeEventValue _value,
- $Res Function(_$_CardElementChangeEventValue) _then)
+ _$CardElementChangeEventValueImpl>
+ implements _$$CardElementChangeEventValueImplCopyWith<$Res> {
+ __$$CardElementChangeEventValueImplCopyWithImpl(
+ _$CardElementChangeEventValueImpl _value,
+ $Res Function(_$CardElementChangeEventValueImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -371,7 +373,7 @@ class __$$_CardElementChangeEventValueCopyWithImpl<$Res>
$Res call({
Object? postalCode = freezed,
}) {
- return _then(_$_CardElementChangeEventValue(
+ return _then(_$CardElementChangeEventValueImpl(
postalCode: freezed == postalCode
? _value.postalCode
: postalCode // ignore: cast_nullable_to_non_nullable
@@ -382,11 +384,13 @@ class __$$_CardElementChangeEventValueCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_CardElementChangeEventValue implements _CardElementChangeEventValue {
- const _$_CardElementChangeEventValue({required this.postalCode});
+class _$CardElementChangeEventValueImpl
+ implements _CardElementChangeEventValue {
+ const _$CardElementChangeEventValueImpl({required this.postalCode});
- factory _$_CardElementChangeEventValue.fromJson(Map json) =>
- _$$_CardElementChangeEventValueFromJson(json);
+ factory _$CardElementChangeEventValueImpl.fromJson(
+ Map json) =>
+ _$$CardElementChangeEventValueImplFromJson(json);
@override
final String? postalCode;
@@ -400,7 +404,7 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_CardElementChangeEventValue &&
+ other is _$CardElementChangeEventValueImpl &&
(identical(other.postalCode, postalCode) ||
other.postalCode == postalCode));
}
@@ -412,13 +416,13 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_CardElementChangeEventValueCopyWith<_$_CardElementChangeEventValue>
- get copyWith => __$$_CardElementChangeEventValueCopyWithImpl<
- _$_CardElementChangeEventValue>(this, _$identity);
+ _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl>
+ get copyWith => __$$CardElementChangeEventValueImplCopyWithImpl<
+ _$CardElementChangeEventValueImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_CardElementChangeEventValueToJson(
+ return _$$CardElementChangeEventValueImplToJson(
this,
);
}
@@ -427,15 +431,15 @@ class _$_CardElementChangeEventValue implements _CardElementChangeEventValue {
abstract class _CardElementChangeEventValue
implements CardElementChangeEventValue {
const factory _CardElementChangeEventValue(
- {required final String? postalCode}) = _$_CardElementChangeEventValue;
+ {required final String? postalCode}) = _$CardElementChangeEventValueImpl;
factory _CardElementChangeEventValue.fromJson(Map json) =
- _$_CardElementChangeEventValue.fromJson;
+ _$CardElementChangeEventValueImpl.fromJson;
@override
String? get postalCode;
@override
@JsonKey(ignore: true)
- _$$_CardElementChangeEventValueCopyWith<_$_CardElementChangeEventValue>
+ _$$CardElementChangeEventValueImplCopyWith<_$CardElementChangeEventValueImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart b/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart
index db136e93e..a91faf06b 100644
--- a/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/card_element_change_event.g.dart
@@ -6,8 +6,8 @@ part of 'card_element_change_event.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_CardElementChangeEvent _$$_CardElementChangeEventFromJson(Map json) =>
- _$_CardElementChangeEvent(
+_$CardElementChangeEventImpl _$$CardElementChangeEventImplFromJson(Map json) =>
+ _$CardElementChangeEventImpl(
elementType: json['elementType'] as String,
empty: json['empty'] as bool,
complete: json['complete'] as bool,
@@ -22,8 +22,8 @@ _$_CardElementChangeEvent _$$_CardElementChangeEventFromJson(Map json) =>
Map.from(json['value'] as Map)),
);
-Map _$$_CardElementChangeEventToJson(
- _$_CardElementChangeEvent instance) {
+Map _$$CardElementChangeEventImplToJson(
+ _$CardElementChangeEventImpl instance) {
final val = {
'elementType': instance.elementType,
'empty': instance.empty,
@@ -42,14 +42,14 @@ Map _$$_CardElementChangeEventToJson(
return val;
}
-_$_CardElementChangeEventValue _$$_CardElementChangeEventValueFromJson(
+_$CardElementChangeEventValueImpl _$$CardElementChangeEventValueImplFromJson(
Map json) =>
- _$_CardElementChangeEventValue(
+ _$CardElementChangeEventValueImpl(
postalCode: json['postalCode'] as String?,
);
-Map _$$_CardElementChangeEventValueToJson(
- _$_CardElementChangeEventValue instance) {
+Map _$$CardElementChangeEventValueImplToJson(
+ _$CardElementChangeEventValueImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart b/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart
index 52f332607..b3c0afbcf 100644
--- a/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/card_element_options.freezed.dart
@@ -121,11 +121,11 @@ class _$CardElementOptionsCopyWithImpl<$Res, $Val extends CardElementOptions>
}
/// @nodoc
-abstract class _$$_CardElementOptionsCopyWith<$Res>
+abstract class _$$CardElementOptionsImplCopyWith<$Res>
implements $CardElementOptionsCopyWith<$Res> {
- factory _$$_CardElementOptionsCopyWith(_$_CardElementOptions value,
- $Res Function(_$_CardElementOptions) then) =
- __$$_CardElementOptionsCopyWithImpl<$Res>;
+ factory _$$CardElementOptionsImplCopyWith(_$CardElementOptionsImpl value,
+ $Res Function(_$CardElementOptionsImpl) then) =
+ __$$CardElementOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -142,11 +142,11 @@ abstract class _$$_CardElementOptionsCopyWith<$Res>
}
/// @nodoc
-class __$$_CardElementOptionsCopyWithImpl<$Res>
- extends _$CardElementOptionsCopyWithImpl<$Res, _$_CardElementOptions>
- implements _$$_CardElementOptionsCopyWith<$Res> {
- __$$_CardElementOptionsCopyWithImpl(
- _$_CardElementOptions _value, $Res Function(_$_CardElementOptions) _then)
+class __$$CardElementOptionsImplCopyWithImpl<$Res>
+ extends _$CardElementOptionsCopyWithImpl<$Res, _$CardElementOptionsImpl>
+ implements _$$CardElementOptionsImplCopyWith<$Res> {
+ __$$CardElementOptionsImplCopyWithImpl(_$CardElementOptionsImpl _value,
+ $Res Function(_$CardElementOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -160,7 +160,7 @@ class __$$_CardElementOptionsCopyWithImpl<$Res>
Object? hideIcon = freezed,
Object? disabled = freezed,
}) {
- return _then(_$_CardElementOptions(
+ return _then(_$CardElementOptionsImpl(
classes: freezed == classes
? _value.classes
: classes // ignore: cast_nullable_to_non_nullable
@@ -195,8 +195,8 @@ class __$$_CardElementOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_CardElementOptions implements _CardElementOptions {
- const _$_CardElementOptions(
+class _$CardElementOptionsImpl implements _CardElementOptions {
+ const _$CardElementOptionsImpl(
{this.classes,
this.style,
this.value,
@@ -205,8 +205,8 @@ class _$_CardElementOptions implements _CardElementOptions {
this.hideIcon,
this.disabled});
- factory _$_CardElementOptions.fromJson(Map json) =>
- _$$_CardElementOptionsFromJson(json);
+ factory _$CardElementOptionsImpl.fromJson(Map json) =>
+ _$$CardElementOptionsImplFromJson(json);
/// Set custom class names on the container DOM element when the
/// Stripe element is in a particular state.
@@ -234,7 +234,7 @@ class _$_CardElementOptions implements _CardElementOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_CardElementOptions &&
+ other is _$CardElementOptionsImpl &&
(identical(other.classes, classes) || other.classes == classes) &&
const DeepCollectionEquality().equals(other.style, style) &&
(identical(other.value, value) || other.value == value) &&
@@ -263,13 +263,13 @@ class _$_CardElementOptions implements _CardElementOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_CardElementOptionsCopyWith<_$_CardElementOptions> get copyWith =>
- __$$_CardElementOptionsCopyWithImpl<_$_CardElementOptions>(
+ _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith =>
+ __$$CardElementOptionsImplCopyWithImpl<_$CardElementOptionsImpl>(
this, _$identity);
@override
Map toJson() {
- return _$$_CardElementOptionsToJson(
+ return _$$CardElementOptionsImplToJson(
this,
);
}
@@ -283,10 +283,10 @@ abstract class _CardElementOptions implements CardElementOptions {
final bool? hidePostalCode,
final CardElementIconStyle? iconStyle,
final bool? hideIcon,
- final bool? disabled}) = _$_CardElementOptions;
+ final bool? disabled}) = _$CardElementOptionsImpl;
factory _CardElementOptions.fromJson(Map json) =
- _$_CardElementOptions.fromJson;
+ _$CardElementOptionsImpl.fromJson;
@override
@@ -307,7 +307,7 @@ abstract class _CardElementOptions implements CardElementOptions {
bool? get disabled;
@override
@JsonKey(ignore: true)
- _$$_CardElementOptionsCopyWith<_$_CardElementOptions> get copyWith =>
+ _$$CardElementOptionsImplCopyWith<_$CardElementOptionsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
@@ -412,11 +412,11 @@ class _$CardElementClassesCopyWithImpl<$Res, $Val extends CardElementClasses>
}
/// @nodoc
-abstract class _$$_CardElementClassesCopyWith<$Res>
+abstract class _$$CardElementClassesImplCopyWith<$Res>
implements $CardElementClassesCopyWith<$Res> {
- factory _$$_CardElementClassesCopyWith(_$_CardElementClasses value,
- $Res Function(_$_CardElementClasses) then) =
- __$$_CardElementClassesCopyWithImpl<$Res>;
+ factory _$$CardElementClassesImplCopyWith(_$CardElementClassesImpl value,
+ $Res Function(_$CardElementClassesImpl) then) =
+ __$$CardElementClassesImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -429,11 +429,11 @@ abstract class _$$_CardElementClassesCopyWith<$Res>
}
/// @nodoc
-class __$$_CardElementClassesCopyWithImpl<$Res>
- extends _$CardElementClassesCopyWithImpl<$Res, _$_CardElementClasses>
- implements _$$_CardElementClassesCopyWith<$Res> {
- __$$_CardElementClassesCopyWithImpl(
- _$_CardElementClasses _value, $Res Function(_$_CardElementClasses) _then)
+class __$$CardElementClassesImplCopyWithImpl<$Res>
+ extends _$CardElementClassesCopyWithImpl<$Res, _$CardElementClassesImpl>
+ implements _$$CardElementClassesImplCopyWith<$Res> {
+ __$$CardElementClassesImplCopyWithImpl(_$CardElementClassesImpl _value,
+ $Res Function(_$CardElementClassesImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -446,7 +446,7 @@ class __$$_CardElementClassesCopyWithImpl<$Res>
Object? invalid = freezed,
Object? webkitAutofill = freezed,
}) {
- return _then(_$_CardElementClasses(
+ return _then(_$CardElementClassesImpl(
base: freezed == base
? _value.base
: base // ignore: cast_nullable_to_non_nullable
@@ -477,8 +477,8 @@ class __$$_CardElementClassesCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_CardElementClasses implements _CardElementClasses {
- const _$_CardElementClasses(
+class _$CardElementClassesImpl implements _CardElementClasses {
+ const _$CardElementClassesImpl(
{this.base,
this.complete,
this.empty,
@@ -486,8 +486,8 @@ class _$_CardElementClasses implements _CardElementClasses {
this.invalid,
this.webkitAutofill});
- factory _$_CardElementClasses.fromJson(Map json) =>
- _$$_CardElementClassesFromJson(json);
+ factory _$CardElementClassesImpl.fromJson(Map json) =>
+ _$$CardElementClassesImplFromJson(json);
/// The base class applied to the container. Defaults to StripeElement.
@override
@@ -528,7 +528,7 @@ class _$_CardElementClasses implements _CardElementClasses {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_CardElementClasses &&
+ other is _$CardElementClassesImpl &&
(identical(other.base, base) || other.base == base) &&
(identical(other.complete, complete) ||
other.complete == complete) &&
@@ -547,13 +547,13 @@ class _$_CardElementClasses implements _CardElementClasses {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_CardElementClassesCopyWith<_$_CardElementClasses> get copyWith =>
- __$$_CardElementClassesCopyWithImpl<_$_CardElementClasses>(
+ _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith =>
+ __$$CardElementClassesImplCopyWithImpl<_$CardElementClassesImpl>(
this, _$identity);
@override
Map toJson() {
- return _$$_CardElementClassesToJson(
+ return _$$CardElementClassesImplToJson(
this,
);
}
@@ -566,10 +566,10 @@ abstract class _CardElementClasses implements CardElementClasses {
final String? empty,
final String? focus,
final String? invalid,
- final bool? webkitAutofill}) = _$_CardElementClasses;
+ final bool? webkitAutofill}) = _$CardElementClassesImpl;
factory _CardElementClasses.fromJson(Map json) =
- _$_CardElementClasses.fromJson;
+ _$CardElementClassesImpl.fromJson;
@override
@@ -603,6 +603,6 @@ abstract class _CardElementClasses implements CardElementClasses {
bool? get webkitAutofill;
@override
@JsonKey(ignore: true)
- _$$_CardElementClassesCopyWith<_$_CardElementClasses> get copyWith =>
+ _$$CardElementClassesImplCopyWith<_$CardElementClassesImpl> get copyWith =>
throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart b/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart
index 7541d7474..23027d83a 100644
--- a/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/card_element_options.g.dart
@@ -6,8 +6,8 @@ part of 'card_element_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_CardElementOptions _$$_CardElementOptionsFromJson(Map json) =>
- _$_CardElementOptions(
+_$CardElementOptionsImpl _$$CardElementOptionsImplFromJson(Map json) =>
+ _$CardElementOptionsImpl(
classes: json['classes'] == null
? null
: CardElementClasses.fromJson(
@@ -21,8 +21,8 @@ _$_CardElementOptions _$$_CardElementOptionsFromJson(Map json) =>
disabled: json['disabled'] as bool?,
);
-Map _$$_CardElementOptionsToJson(
- _$_CardElementOptions instance) {
+Map _$$CardElementOptionsImplToJson(
+ _$CardElementOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -46,8 +46,8 @@ const _$CardElementIconStyleEnumMap = {
CardElementIconStyle.defaultStyle: 'defaultStyle',
};
-_$_CardElementClasses _$$_CardElementClassesFromJson(Map json) =>
- _$_CardElementClasses(
+_$CardElementClassesImpl _$$CardElementClassesImplFromJson(Map json) =>
+ _$CardElementClassesImpl(
base: json['base'] as String?,
complete: json['complete'] as String?,
empty: json['empty'] as String?,
@@ -56,8 +56,8 @@ _$_CardElementClasses _$$_CardElementClassesFromJson(Map json) =>
webkitAutofill: json['webkitAutofill'] as bool?,
);
-Map _$$_CardElementClassesToJson(
- _$_CardElementClasses instance) {
+Map _$$CardElementClassesImplToJson(
+ _$CardElementClassesImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart b/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart
index d61c5bde5..8e0b70b25 100644
--- a/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/element_appearance.freezed.dart
@@ -85,11 +85,11 @@ class _$ElementAppearanceCopyWithImpl<$Res, $Val extends ElementAppearance>
}
/// @nodoc
-abstract class _$$_ElementAppearanceCopyWith<$Res>
+abstract class _$$ElementAppearanceImplCopyWith<$Res>
implements $ElementAppearanceCopyWith<$Res> {
- factory _$$_ElementAppearanceCopyWith(_$_ElementAppearance value,
- $Res Function(_$_ElementAppearance) then) =
- __$$_ElementAppearanceCopyWithImpl<$Res>;
+ factory _$$ElementAppearanceImplCopyWith(_$ElementAppearanceImpl value,
+ $Res Function(_$ElementAppearanceImpl) then) =
+ __$$ElementAppearanceImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -100,11 +100,11 @@ abstract class _$$_ElementAppearanceCopyWith<$Res>
}
/// @nodoc
-class __$$_ElementAppearanceCopyWithImpl<$Res>
- extends _$ElementAppearanceCopyWithImpl<$Res, _$_ElementAppearance>
- implements _$$_ElementAppearanceCopyWith<$Res> {
- __$$_ElementAppearanceCopyWithImpl(
- _$_ElementAppearance _value, $Res Function(_$_ElementAppearance) _then)
+class __$$ElementAppearanceImplCopyWithImpl<$Res>
+ extends _$ElementAppearanceCopyWithImpl<$Res, _$ElementAppearanceImpl>
+ implements _$$ElementAppearanceImplCopyWith<$Res> {
+ __$$ElementAppearanceImplCopyWithImpl(_$ElementAppearanceImpl _value,
+ $Res Function(_$ElementAppearanceImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -115,7 +115,7 @@ class __$$_ElementAppearanceCopyWithImpl<$Res>
Object? rules = freezed,
Object? labels = null,
}) {
- return _then(_$_ElementAppearance(
+ return _then(_$ElementAppearanceImpl(
theme: null == theme
? _value.theme
: theme // ignore: cast_nullable_to_non_nullable
@@ -138,8 +138,8 @@ class __$$_ElementAppearanceCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ElementAppearance implements _ElementAppearance {
- const _$_ElementAppearance(
+class _$ElementAppearanceImpl implements _ElementAppearance {
+ const _$ElementAppearanceImpl(
{this.theme = ElementTheme.stripe,
final Map? variables,
final Map>? rules,
@@ -147,8 +147,8 @@ class _$_ElementAppearance implements _ElementAppearance {
: _variables = variables,
_rules = rules;
- factory _$_ElementAppearance.fromJson(Map json) =>
- _$$_ElementAppearanceFromJson(json);
+ factory _$ElementAppearanceImpl.fromJson(Map json) =>
+ _$$ElementAppearanceImplFromJson(json);
@override
@JsonKey()
@@ -186,7 +186,7 @@ class _$_ElementAppearance implements _ElementAppearance {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ElementAppearance &&
+ other is _$ElementAppearanceImpl &&
(identical(other.theme, theme) || other.theme == theme) &&
const DeepCollectionEquality()
.equals(other._variables, _variables) &&
@@ -206,13 +206,13 @@ class _$_ElementAppearance implements _ElementAppearance {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ElementAppearanceCopyWith<_$_ElementAppearance> get copyWith =>
- __$$_ElementAppearanceCopyWithImpl<_$_ElementAppearance>(
+ _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith =>
+ __$$ElementAppearanceImplCopyWithImpl<_$ElementAppearanceImpl>(
this, _$identity);
@override
Map toJson() {
- return _$$_ElementAppearanceToJson(
+ return _$$ElementAppearanceImplToJson(
this,
);
}
@@ -223,10 +223,10 @@ abstract class _ElementAppearance implements ElementAppearance {
{final ElementTheme theme,
final Map? variables,
final Map>? rules,
- final ElementAppearanceLabels labels}) = _$_ElementAppearance;
+ final ElementAppearanceLabels labels}) = _$ElementAppearanceImpl;
factory _ElementAppearance.fromJson(Map json) =
- _$_ElementAppearance.fromJson;
+ _$ElementAppearanceImpl.fromJson;
@override
ElementTheme get theme;
@@ -238,6 +238,6 @@ abstract class _ElementAppearance implements ElementAppearance {
ElementAppearanceLabels get labels;
@override
@JsonKey(ignore: true)
- _$$_ElementAppearanceCopyWith<_$_ElementAppearance> get copyWith =>
+ _$$ElementAppearanceImplCopyWith<_$ElementAppearanceImpl> get copyWith =>
throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart b/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart
index 95b7d417f..77a5f7282 100644
--- a/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/element_appearance.g.dart
@@ -6,8 +6,8 @@ part of 'element_appearance.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ElementAppearance _$$_ElementAppearanceFromJson(Map json) =>
- _$_ElementAppearance(
+_$ElementAppearanceImpl _$$ElementAppearanceImplFromJson(Map json) =>
+ _$ElementAppearanceImpl(
theme: $enumDecodeNullable(_$ElementThemeEnumMap, json['theme']) ??
ElementTheme.stripe,
variables: (json['variables'] as Map?)?.map(
@@ -21,8 +21,8 @@ _$_ElementAppearance _$$_ElementAppearanceFromJson(Map json) =>
ElementAppearanceLabels.above,
);
-Map _$$_ElementAppearanceToJson(
- _$_ElementAppearance instance) {
+Map _$$ElementAppearanceImplToJson(
+ _$ElementAppearanceImpl instance) {
final val = {
'theme': _$ElementThemeEnumMap[instance.theme]!,
};
diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart
index 8f71ddead..250624c7c 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.freezed.dart
@@ -109,12 +109,12 @@ class _$PaymentElementChangeEventCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
+abstract class _$$PaymentElementChangeEventImplCopyWith<$Res>
implements $PaymentElementChangeEventCopyWith<$Res> {
- factory _$$_PaymentElementChangeEventCopyWith(
- _$_PaymentElementChangeEvent value,
- $Res Function(_$_PaymentElementChangeEvent) then) =
- __$$_PaymentElementChangeEventCopyWithImpl<$Res>;
+ factory _$$PaymentElementChangeEventImplCopyWith(
+ _$PaymentElementChangeEventImpl value,
+ $Res Function(_$PaymentElementChangeEventImpl) then) =
+ __$$PaymentElementChangeEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -129,13 +129,13 @@ abstract class _$$_PaymentElementChangeEventCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
+class __$$PaymentElementChangeEventImplCopyWithImpl<$Res>
extends _$PaymentElementChangeEventCopyWithImpl<$Res,
- _$_PaymentElementChangeEvent>
- implements _$$_PaymentElementChangeEventCopyWith<$Res> {
- __$$_PaymentElementChangeEventCopyWithImpl(
- _$_PaymentElementChangeEvent _value,
- $Res Function(_$_PaymentElementChangeEvent) _then)
+ _$PaymentElementChangeEventImpl>
+ implements _$$PaymentElementChangeEventImplCopyWith<$Res> {
+ __$$PaymentElementChangeEventImplCopyWithImpl(
+ _$PaymentElementChangeEventImpl _value,
+ $Res Function(_$PaymentElementChangeEventImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -147,7 +147,7 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
Object? collapsed = null,
Object? value = freezed,
}) {
- return _then(_$_PaymentElementChangeEvent(
+ return _then(_$PaymentElementChangeEventImpl(
elementType: null == elementType
? _value.elementType
: elementType // ignore: cast_nullable_to_non_nullable
@@ -174,16 +174,16 @@ class __$$_PaymentElementChangeEventCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
- const _$_PaymentElementChangeEvent(
+class _$PaymentElementChangeEventImpl implements _PaymentElementChangeEvent {
+ const _$PaymentElementChangeEventImpl(
{required this.elementType,
required this.empty,
required this.complete,
required this.collapsed,
this.value});
- factory _$_PaymentElementChangeEvent.fromJson(Map json) =>
- _$$_PaymentElementChangeEventFromJson(json);
+ factory _$PaymentElementChangeEventImpl.fromJson(Map json) =>
+ _$$PaymentElementChangeEventImplFromJson(json);
@override
final String elementType;
@@ -205,7 +205,7 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementChangeEvent &&
+ other is _$PaymentElementChangeEventImpl &&
(identical(other.elementType, elementType) ||
other.elementType == elementType) &&
(identical(other.empty, empty) || other.empty == empty) &&
@@ -224,13 +224,13 @@ class _$_PaymentElementChangeEvent implements _PaymentElementChangeEvent {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
- get copyWith => __$$_PaymentElementChangeEventCopyWithImpl<
- _$_PaymentElementChangeEvent>(this, _$identity);
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
+ get copyWith => __$$PaymentElementChangeEventImplCopyWithImpl<
+ _$PaymentElementChangeEventImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementChangeEventToJson(
+ return _$$PaymentElementChangeEventImplToJson(
this,
);
}
@@ -243,10 +243,10 @@ abstract class _PaymentElementChangeEvent implements PaymentElementChangeEvent {
required final bool complete,
required final bool collapsed,
final PaymentElementChangeEventValue? value}) =
- _$_PaymentElementChangeEvent;
+ _$PaymentElementChangeEventImpl;
factory _PaymentElementChangeEvent.fromJson(Map json) =
- _$_PaymentElementChangeEvent.fromJson;
+ _$PaymentElementChangeEventImpl.fromJson;
@override
String get elementType;
@@ -260,7 +260,7 @@ abstract class _PaymentElementChangeEvent implements PaymentElementChangeEvent {
PaymentElementChangeEventValue? get value;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementChangeEventCopyWith<_$_PaymentElementChangeEvent>
+ _$$PaymentElementChangeEventImplCopyWith<_$PaymentElementChangeEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
@@ -316,25 +316,25 @@ class _$PaymentElementChangeEventValueCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementChangeEventValueCopyWith<$Res>
+abstract class _$$PaymentElementChangeEventValueImplCopyWith<$Res>
implements $PaymentElementChangeEventValueCopyWith<$Res> {
- factory _$$_PaymentElementChangeEventValueCopyWith(
- _$_PaymentElementChangeEventValue value,
- $Res Function(_$_PaymentElementChangeEventValue) then) =
- __$$_PaymentElementChangeEventValueCopyWithImpl<$Res>;
+ factory _$$PaymentElementChangeEventValueImplCopyWith(
+ _$PaymentElementChangeEventValueImpl value,
+ $Res Function(_$PaymentElementChangeEventValueImpl) then) =
+ __$$PaymentElementChangeEventValueImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? type});
}
/// @nodoc
-class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res>
+class __$$PaymentElementChangeEventValueImplCopyWithImpl<$Res>
extends _$PaymentElementChangeEventValueCopyWithImpl<$Res,
- _$_PaymentElementChangeEventValue>
- implements _$$_PaymentElementChangeEventValueCopyWith<$Res> {
- __$$_PaymentElementChangeEventValueCopyWithImpl(
- _$_PaymentElementChangeEventValue _value,
- $Res Function(_$_PaymentElementChangeEventValue) _then)
+ _$PaymentElementChangeEventValueImpl>
+ implements _$$PaymentElementChangeEventValueImplCopyWith<$Res> {
+ __$$PaymentElementChangeEventValueImplCopyWithImpl(
+ _$PaymentElementChangeEventValueImpl _value,
+ $Res Function(_$PaymentElementChangeEventValueImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -342,7 +342,7 @@ class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res>
$Res call({
Object? type = freezed,
}) {
- return _then(_$_PaymentElementChangeEventValue(
+ return _then(_$PaymentElementChangeEventValueImpl(
type: freezed == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
@@ -353,13 +353,13 @@ class __$$_PaymentElementChangeEventValueCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementChangeEventValue
+class _$PaymentElementChangeEventValueImpl
implements _PaymentElementChangeEventValue {
- const _$_PaymentElementChangeEventValue({required this.type});
+ const _$PaymentElementChangeEventValueImpl({required this.type});
- factory _$_PaymentElementChangeEventValue.fromJson(
+ factory _$PaymentElementChangeEventValueImpl.fromJson(
Map json) =>
- _$$_PaymentElementChangeEventValueFromJson(json);
+ _$$PaymentElementChangeEventValueImplFromJson(json);
@override
final String? type;
@@ -373,7 +373,7 @@ class _$_PaymentElementChangeEventValue
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementChangeEventValue &&
+ other is _$PaymentElementChangeEventValueImpl &&
(identical(other.type, type) || other.type == type));
}
@@ -384,13 +384,14 @@ class _$_PaymentElementChangeEventValue
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementChangeEventValueCopyWith<_$_PaymentElementChangeEventValue>
- get copyWith => __$$_PaymentElementChangeEventValueCopyWithImpl<
- _$_PaymentElementChangeEventValue>(this, _$identity);
+ _$$PaymentElementChangeEventValueImplCopyWith<
+ _$PaymentElementChangeEventValueImpl>
+ get copyWith => __$$PaymentElementChangeEventValueImplCopyWithImpl<
+ _$PaymentElementChangeEventValueImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementChangeEventValueToJson(
+ return _$$PaymentElementChangeEventValueImplToJson(
this,
);
}
@@ -399,15 +400,16 @@ class _$_PaymentElementChangeEventValue
abstract class _PaymentElementChangeEventValue
implements PaymentElementChangeEventValue {
const factory _PaymentElementChangeEventValue({required final String? type}) =
- _$_PaymentElementChangeEventValue;
+ _$PaymentElementChangeEventValueImpl;
factory _PaymentElementChangeEventValue.fromJson(Map json) =
- _$_PaymentElementChangeEventValue.fromJson;
+ _$PaymentElementChangeEventValueImpl.fromJson;
@override
String? get type;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementChangeEventValueCopyWith<_$_PaymentElementChangeEventValue>
+ _$$PaymentElementChangeEventValueImplCopyWith<
+ _$PaymentElementChangeEventValueImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart
index a7aa3282c..f4c73afda 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_element_change_event.g.dart
@@ -6,8 +6,9 @@ part of 'payment_element_change_event.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
- _$_PaymentElementChangeEvent(
+_$PaymentElementChangeEventImpl _$$PaymentElementChangeEventImplFromJson(
+ Map json) =>
+ _$PaymentElementChangeEventImpl(
elementType: json['elementType'] as String,
empty: json['empty'] as bool,
complete: json['complete'] as bool,
@@ -18,8 +19,8 @@ _$_PaymentElementChangeEvent _$$_PaymentElementChangeEventFromJson(Map json) =>
Map.from(json['value'] as Map)),
);
-Map _$$_PaymentElementChangeEventToJson(
- _$_PaymentElementChangeEvent instance) {
+Map _$$PaymentElementChangeEventImplToJson(
+ _$PaymentElementChangeEventImpl instance) {
final val = {
'elementType': instance.elementType,
'empty': instance.empty,
@@ -37,14 +38,14 @@ Map _$$_PaymentElementChangeEventToJson(
return val;
}
-_$_PaymentElementChangeEventValue _$$_PaymentElementChangeEventValueFromJson(
- Map json) =>
- _$_PaymentElementChangeEventValue(
- type: json['type'] as String?,
- );
+_$PaymentElementChangeEventValueImpl
+ _$$PaymentElementChangeEventValueImplFromJson(Map json) =>
+ _$PaymentElementChangeEventValueImpl(
+ type: json['type'] as String?,
+ );
-Map _$$_PaymentElementChangeEventValueToJson(
- _$_PaymentElementChangeEventValue instance) {
+Map _$$PaymentElementChangeEventValueImplToJson(
+ _$PaymentElementChangeEventValueImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart
index b0ac60dee..375fdaf79 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_element_options.freezed.dart
@@ -192,11 +192,12 @@ class _$PaymentElementOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementOptionsCopyWith<$Res>
+abstract class _$$PaymentElementOptionsImplCopyWith<$Res>
implements $PaymentElementOptionsCopyWith<$Res> {
- factory _$$_PaymentElementOptionsCopyWith(_$_PaymentElementOptions value,
- $Res Function(_$_PaymentElementOptions) then) =
- __$$_PaymentElementOptionsCopyWithImpl<$Res>;
+ factory _$$PaymentElementOptionsImplCopyWith(
+ _$PaymentElementOptionsImpl value,
+ $Res Function(_$PaymentElementOptionsImpl) then) =
+ __$$PaymentElementOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -220,11 +221,12 @@ abstract class _$$_PaymentElementOptionsCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementOptionsCopyWithImpl<$Res>
- extends _$PaymentElementOptionsCopyWithImpl<$Res, _$_PaymentElementOptions>
- implements _$$_PaymentElementOptionsCopyWith<$Res> {
- __$$_PaymentElementOptionsCopyWithImpl(_$_PaymentElementOptions _value,
- $Res Function(_$_PaymentElementOptions) _then)
+class __$$PaymentElementOptionsImplCopyWithImpl<$Res>
+ extends _$PaymentElementOptionsCopyWithImpl<$Res,
+ _$PaymentElementOptionsImpl>
+ implements _$$PaymentElementOptionsImplCopyWith<$Res> {
+ __$$PaymentElementOptionsImplCopyWithImpl(_$PaymentElementOptionsImpl _value,
+ $Res Function(_$PaymentElementOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -239,7 +241,7 @@ class __$$_PaymentElementOptionsCopyWithImpl<$Res>
Object? terms = freezed,
Object? wallets = freezed,
}) {
- return _then(_$_PaymentElementOptions(
+ return _then(_$PaymentElementOptionsImpl(
layout: freezed == layout
? _value.layout
: layout // ignore: cast_nullable_to_non_nullable
@@ -278,8 +280,8 @@ class __$$_PaymentElementOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementOptions implements _PaymentElementOptions {
- const _$_PaymentElementOptions(
+class _$PaymentElementOptionsImpl implements _PaymentElementOptions {
+ const _$PaymentElementOptionsImpl(
{this.layout,
this.defaultValues,
this.business,
@@ -289,8 +291,8 @@ class _$_PaymentElementOptions implements _PaymentElementOptions {
this.terms,
this.wallets});
- factory _$_PaymentElementOptions.fromJson(Map json) =>
- _$$_PaymentElementOptionsFromJson(json);
+ factory _$PaymentElementOptionsImpl.fromJson(Map json) =>
+ _$$PaymentElementOptionsImplFromJson(json);
@override
final PaymentElementLayout? layout;
@@ -341,7 +343,7 @@ class _$_PaymentElementOptions implements _PaymentElementOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementOptions &&
+ other is _$PaymentElementOptionsImpl &&
(identical(other.layout, layout) || other.layout == layout) &&
(identical(other.defaultValues, defaultValues) ||
other.defaultValues == defaultValues) &&
@@ -371,13 +373,13 @@ class _$_PaymentElementOptions implements _PaymentElementOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementOptionsCopyWith<_$_PaymentElementOptions> get copyWith =>
- __$$_PaymentElementOptionsCopyWithImpl<_$_PaymentElementOptions>(
- this, _$identity);
+ _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl>
+ get copyWith => __$$PaymentElementOptionsImplCopyWithImpl<
+ _$PaymentElementOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementOptionsToJson(
+ return _$$PaymentElementOptionsImplToJson(
this,
);
}
@@ -392,10 +394,10 @@ abstract class _PaymentElementOptions implements PaymentElementOptions {
final PaymentElementFields? fields,
final dynamic readOnly,
final dynamic terms,
- final dynamic wallets}) = _$_PaymentElementOptions;
+ final dynamic wallets}) = _$PaymentElementOptionsImpl;
factory _PaymentElementOptions.fromJson(Map json) =
- _$_PaymentElementOptions.fromJson;
+ _$PaymentElementOptionsImpl.fromJson;
@override
PaymentElementLayout? get layout;
@@ -438,8 +440,8 @@ abstract class _PaymentElementOptions implements PaymentElementOptions {
dynamic get wallets;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementOptionsCopyWith<_$_PaymentElementOptions> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$PaymentElementOptionsImplCopyWith<_$PaymentElementOptionsImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
PaymentElementLayout _$PaymentElementLayoutFromJson(Map json) {
@@ -530,11 +532,11 @@ class _$PaymentElementLayoutCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementLayoutCopyWith<$Res>
+abstract class _$$PaymentElementLayoutImplCopyWith<$Res>
implements $PaymentElementLayoutCopyWith<$Res> {
- factory _$$_PaymentElementLayoutCopyWith(_$_PaymentElementLayout value,
- $Res Function(_$_PaymentElementLayout) then) =
- __$$_PaymentElementLayoutCopyWithImpl<$Res>;
+ factory _$$PaymentElementLayoutImplCopyWith(_$PaymentElementLayoutImpl value,
+ $Res Function(_$PaymentElementLayoutImpl) then) =
+ __$$PaymentElementLayoutImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -545,11 +547,11 @@ abstract class _$$_PaymentElementLayoutCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementLayoutCopyWithImpl<$Res>
- extends _$PaymentElementLayoutCopyWithImpl<$Res, _$_PaymentElementLayout>
- implements _$$_PaymentElementLayoutCopyWith<$Res> {
- __$$_PaymentElementLayoutCopyWithImpl(_$_PaymentElementLayout _value,
- $Res Function(_$_PaymentElementLayout) _then)
+class __$$PaymentElementLayoutImplCopyWithImpl<$Res>
+ extends _$PaymentElementLayoutCopyWithImpl<$Res, _$PaymentElementLayoutImpl>
+ implements _$$PaymentElementLayoutImplCopyWith<$Res> {
+ __$$PaymentElementLayoutImplCopyWithImpl(_$PaymentElementLayoutImpl _value,
+ $Res Function(_$PaymentElementLayoutImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -560,7 +562,7 @@ class __$$_PaymentElementLayoutCopyWithImpl<$Res>
Object? radios = freezed,
Object? spacedAccordionItems = freezed,
}) {
- return _then(_$_PaymentElementLayout(
+ return _then(_$PaymentElementLayoutImpl(
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
@@ -583,15 +585,15 @@ class __$$_PaymentElementLayoutCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementLayout implements _PaymentElementLayout {
- const _$_PaymentElementLayout(
+class _$PaymentElementLayoutImpl implements _PaymentElementLayout {
+ const _$PaymentElementLayoutImpl(
{required this.type,
this.defaultCollapsed,
this.radios,
this.spacedAccordionItems});
- factory _$_PaymentElementLayout.fromJson(Map json) =>
- _$$_PaymentElementLayoutFromJson(json);
+ factory _$PaymentElementLayoutImpl.fromJson(Map json) =>
+ _$$PaymentElementLayoutImplFromJson(json);
/// Defines the layout to render the Payment Element.
@override
@@ -628,7 +630,7 @@ class _$_PaymentElementLayout implements _PaymentElementLayout {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementLayout &&
+ other is _$PaymentElementLayoutImpl &&
(identical(other.type, type) || other.type == type) &&
(identical(other.defaultCollapsed, defaultCollapsed) ||
other.defaultCollapsed == defaultCollapsed) &&
@@ -645,13 +647,14 @@ class _$_PaymentElementLayout implements _PaymentElementLayout {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementLayoutCopyWith<_$_PaymentElementLayout> get copyWith =>
- __$$_PaymentElementLayoutCopyWithImpl<_$_PaymentElementLayout>(
- this, _$identity);
+ _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl>
+ get copyWith =>
+ __$$PaymentElementLayoutImplCopyWithImpl<_$PaymentElementLayoutImpl>(
+ this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementLayoutToJson(
+ return _$$PaymentElementLayoutImplToJson(
this,
);
}
@@ -662,10 +665,10 @@ abstract class _PaymentElementLayout implements PaymentElementLayout {
{required final PaymentElementLayoutType type,
final bool? defaultCollapsed,
final bool? radios,
- final bool? spacedAccordionItems}) = _$_PaymentElementLayout;
+ final bool? spacedAccordionItems}) = _$PaymentElementLayoutImpl;
factory _PaymentElementLayout.fromJson(Map json) =
- _$_PaymentElementLayout.fromJson;
+ _$PaymentElementLayoutImpl.fromJson;
@override
@@ -695,8 +698,8 @@ abstract class _PaymentElementLayout implements PaymentElementLayout {
bool? get spacedAccordionItems;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementLayoutCopyWith<_$_PaymentElementLayout> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$PaymentElementLayoutImplCopyWith<_$PaymentElementLayoutImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
PaymentElementDefaultValues _$PaymentElementDefaultValuesFromJson(
@@ -772,12 +775,12 @@ class _$PaymentElementDefaultValuesCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementDefaultValuesCopyWith<$Res>
+abstract class _$$PaymentElementDefaultValuesImplCopyWith<$Res>
implements $PaymentElementDefaultValuesCopyWith<$Res> {
- factory _$$_PaymentElementDefaultValuesCopyWith(
- _$_PaymentElementDefaultValues value,
- $Res Function(_$_PaymentElementDefaultValues) then) =
- __$$_PaymentElementDefaultValuesCopyWithImpl<$Res>;
+ factory _$$PaymentElementDefaultValuesImplCopyWith(
+ _$PaymentElementDefaultValuesImpl value,
+ $Res Function(_$PaymentElementDefaultValuesImpl) then) =
+ __$$PaymentElementDefaultValuesImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({PaymentElementBillingDetails? billingDetails});
@@ -787,13 +790,13 @@ abstract class _$$_PaymentElementDefaultValuesCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res>
+class __$$PaymentElementDefaultValuesImplCopyWithImpl<$Res>
extends _$PaymentElementDefaultValuesCopyWithImpl<$Res,
- _$_PaymentElementDefaultValues>
- implements _$$_PaymentElementDefaultValuesCopyWith<$Res> {
- __$$_PaymentElementDefaultValuesCopyWithImpl(
- _$_PaymentElementDefaultValues _value,
- $Res Function(_$_PaymentElementDefaultValues) _then)
+ _$PaymentElementDefaultValuesImpl>
+ implements _$$PaymentElementDefaultValuesImplCopyWith<$Res> {
+ __$$PaymentElementDefaultValuesImplCopyWithImpl(
+ _$PaymentElementDefaultValuesImpl _value,
+ $Res Function(_$PaymentElementDefaultValuesImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -801,7 +804,7 @@ class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res>
$Res call({
Object? billingDetails = freezed,
}) {
- return _then(_$_PaymentElementDefaultValues(
+ return _then(_$PaymentElementDefaultValuesImpl(
billingDetails: freezed == billingDetails
? _value.billingDetails
: billingDetails // ignore: cast_nullable_to_non_nullable
@@ -812,11 +815,13 @@ class __$$_PaymentElementDefaultValuesCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues {
- const _$_PaymentElementDefaultValues({this.billingDetails});
+class _$PaymentElementDefaultValuesImpl
+ implements _PaymentElementDefaultValues {
+ const _$PaymentElementDefaultValuesImpl({this.billingDetails});
- factory _$_PaymentElementDefaultValues.fromJson(Map json) =>
- _$$_PaymentElementDefaultValuesFromJson(json);
+ factory _$PaymentElementDefaultValuesImpl.fromJson(
+ Map json) =>
+ _$$PaymentElementDefaultValuesImplFromJson(json);
/// Specify customer's billing details, which lets you pre-fill a
/// customer’s name, email, phone number and address if required by
@@ -835,7 +840,7 @@ class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementDefaultValues &&
+ other is _$PaymentElementDefaultValuesImpl &&
(identical(other.billingDetails, billingDetails) ||
other.billingDetails == billingDetails));
}
@@ -847,13 +852,13 @@ class _$_PaymentElementDefaultValues implements _PaymentElementDefaultValues {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementDefaultValuesCopyWith<_$_PaymentElementDefaultValues>
- get copyWith => __$$_PaymentElementDefaultValuesCopyWithImpl<
- _$_PaymentElementDefaultValues>(this, _$identity);
+ _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl>
+ get copyWith => __$$PaymentElementDefaultValuesImplCopyWithImpl<
+ _$PaymentElementDefaultValuesImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementDefaultValuesToJson(
+ return _$$PaymentElementDefaultValuesImplToJson(
this,
);
}
@@ -863,10 +868,10 @@ abstract class _PaymentElementDefaultValues
implements PaymentElementDefaultValues {
const factory _PaymentElementDefaultValues(
{final PaymentElementBillingDetails? billingDetails}) =
- _$_PaymentElementDefaultValues;
+ _$PaymentElementDefaultValuesImpl;
factory _PaymentElementDefaultValues.fromJson(Map json) =
- _$_PaymentElementDefaultValues.fromJson;
+ _$PaymentElementDefaultValuesImpl.fromJson;
@override
@@ -878,7 +883,7 @@ abstract class _PaymentElementDefaultValues
PaymentElementBillingDetails? get billingDetails;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementDefaultValuesCopyWith<_$_PaymentElementDefaultValues>
+ _$$PaymentElementDefaultValuesImplCopyWith<_$PaymentElementDefaultValuesImpl>
get copyWith => throw _privateConstructorUsedError;
}
@@ -972,12 +977,12 @@ class _$PaymentElementBillingDetailsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementBillingDetailsCopyWith<$Res>
+abstract class _$$PaymentElementBillingDetailsImplCopyWith<$Res>
implements $PaymentElementBillingDetailsCopyWith<$Res> {
- factory _$$_PaymentElementBillingDetailsCopyWith(
- _$_PaymentElementBillingDetails value,
- $Res Function(_$_PaymentElementBillingDetails) then) =
- __$$_PaymentElementBillingDetailsCopyWithImpl<$Res>;
+ factory _$$PaymentElementBillingDetailsImplCopyWith(
+ _$PaymentElementBillingDetailsImpl value,
+ $Res Function(_$PaymentElementBillingDetailsImpl) then) =
+ __$$PaymentElementBillingDetailsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -991,13 +996,13 @@ abstract class _$$_PaymentElementBillingDetailsCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res>
+class __$$PaymentElementBillingDetailsImplCopyWithImpl<$Res>
extends _$PaymentElementBillingDetailsCopyWithImpl<$Res,
- _$_PaymentElementBillingDetails>
- implements _$$_PaymentElementBillingDetailsCopyWith<$Res> {
- __$$_PaymentElementBillingDetailsCopyWithImpl(
- _$_PaymentElementBillingDetails _value,
- $Res Function(_$_PaymentElementBillingDetails) _then)
+ _$PaymentElementBillingDetailsImpl>
+ implements _$$PaymentElementBillingDetailsImplCopyWith<$Res> {
+ __$$PaymentElementBillingDetailsImplCopyWithImpl(
+ _$PaymentElementBillingDetailsImpl _value,
+ $Res Function(_$PaymentElementBillingDetailsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -1008,7 +1013,7 @@ class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res>
Object? phone = freezed,
Object? address = freezed,
}) {
- return _then(_$_PaymentElementBillingDetails(
+ return _then(_$PaymentElementBillingDetailsImpl(
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
@@ -1031,12 +1036,14 @@ class __$$_PaymentElementBillingDetailsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails {
- const _$_PaymentElementBillingDetails(
+class _$PaymentElementBillingDetailsImpl
+ implements _PaymentElementBillingDetails {
+ const _$PaymentElementBillingDetailsImpl(
{this.name, this.email, this.phone, this.address});
- factory _$_PaymentElementBillingDetails.fromJson(Map json) =>
- _$$_PaymentElementBillingDetailsFromJson(json);
+ factory _$PaymentElementBillingDetailsImpl.fromJson(
+ Map json) =>
+ _$$PaymentElementBillingDetailsImplFromJson(json);
@override
final String? name;
@@ -1056,7 +1063,7 @@ class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementBillingDetails &&
+ other is _$PaymentElementBillingDetailsImpl &&
(identical(other.name, name) || other.name == name) &&
(identical(other.email, email) || other.email == email) &&
(identical(other.phone, phone) || other.phone == phone) &&
@@ -1070,13 +1077,14 @@ class _$_PaymentElementBillingDetails implements _PaymentElementBillingDetails {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementBillingDetailsCopyWith<_$_PaymentElementBillingDetails>
- get copyWith => __$$_PaymentElementBillingDetailsCopyWithImpl<
- _$_PaymentElementBillingDetails>(this, _$identity);
+ _$$PaymentElementBillingDetailsImplCopyWith<
+ _$PaymentElementBillingDetailsImpl>
+ get copyWith => __$$PaymentElementBillingDetailsImplCopyWithImpl<
+ _$PaymentElementBillingDetailsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementBillingDetailsToJson(
+ return _$$PaymentElementBillingDetailsImplToJson(
this,
);
}
@@ -1089,10 +1097,10 @@ abstract class _PaymentElementBillingDetails
final String? email,
final String? phone,
final PaymentElementBillingDetailsAddress? address}) =
- _$_PaymentElementBillingDetails;
+ _$PaymentElementBillingDetailsImpl;
factory _PaymentElementBillingDetails.fromJson(Map json) =
- _$_PaymentElementBillingDetails.fromJson;
+ _$PaymentElementBillingDetailsImpl.fromJson;
@override
String? get name;
@@ -1104,7 +1112,8 @@ abstract class _PaymentElementBillingDetails
PaymentElementBillingDetailsAddress? get address;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementBillingDetailsCopyWith<_$_PaymentElementBillingDetails>
+ _$$PaymentElementBillingDetailsImplCopyWith<
+ _$PaymentElementBillingDetailsImpl>
get copyWith => throw _privateConstructorUsedError;
}
@@ -1209,12 +1218,12 @@ class _$PaymentElementBillingDetailsAddressCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
+abstract class _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res>
implements $PaymentElementBillingDetailsAddressCopyWith<$Res> {
- factory _$$_PaymentElementBillingDetailsAddressCopyWith(
- _$_PaymentElementBillingDetailsAddress value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) then) =
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>;
+ factory _$$PaymentElementBillingDetailsAddressImplCopyWith(
+ _$PaymentElementBillingDetailsAddressImpl value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) then) =
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -1227,13 +1236,13 @@ abstract class _$$_PaymentElementBillingDetailsAddressCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
+class __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<$Res>
extends _$PaymentElementBillingDetailsAddressCopyWithImpl<$Res,
- _$_PaymentElementBillingDetailsAddress>
- implements _$$_PaymentElementBillingDetailsAddressCopyWith<$Res> {
- __$$_PaymentElementBillingDetailsAddressCopyWithImpl(
- _$_PaymentElementBillingDetailsAddress _value,
- $Res Function(_$_PaymentElementBillingDetailsAddress) _then)
+ _$PaymentElementBillingDetailsAddressImpl>
+ implements _$$PaymentElementBillingDetailsAddressImplCopyWith<$Res> {
+ __$$PaymentElementBillingDetailsAddressImplCopyWithImpl(
+ _$PaymentElementBillingDetailsAddressImpl _value,
+ $Res Function(_$PaymentElementBillingDetailsAddressImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -1246,7 +1255,7 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
Object? country = freezed,
Object? postalCode = freezed,
}) {
- return _then(_$_PaymentElementBillingDetailsAddress(
+ return _then(_$PaymentElementBillingDetailsAddressImpl(
line1: freezed == line1
? _value.line1
: line1 // ignore: cast_nullable_to_non_nullable
@@ -1277,9 +1286,9 @@ class __$$_PaymentElementBillingDetailsAddressCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementBillingDetailsAddress
+class _$PaymentElementBillingDetailsAddressImpl
implements _PaymentElementBillingDetailsAddress {
- const _$_PaymentElementBillingDetailsAddress(
+ const _$PaymentElementBillingDetailsAddressImpl(
{this.line1,
this.line2,
this.city,
@@ -1287,9 +1296,9 @@ class _$_PaymentElementBillingDetailsAddress
this.country,
@JsonKey(name: 'postal_code') this.postalCode});
- factory _$_PaymentElementBillingDetailsAddress.fromJson(
+ factory _$PaymentElementBillingDetailsAddressImpl.fromJson(
Map json) =>
- _$$_PaymentElementBillingDetailsAddressFromJson(json);
+ _$$PaymentElementBillingDetailsAddressImplFromJson(json);
/// Address line 1 (e.g., street, PO Box, or company name).
@override
@@ -1325,7 +1334,7 @@ class _$_PaymentElementBillingDetailsAddress
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementBillingDetailsAddress &&
+ other is _$PaymentElementBillingDetailsAddressImpl &&
(identical(other.line1, line1) || other.line1 == line1) &&
(identical(other.line2, line2) || other.line2 == line2) &&
(identical(other.city, city) || other.city == city) &&
@@ -1343,14 +1352,14 @@ class _$_PaymentElementBillingDetailsAddress
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
- get copyWith => __$$_PaymentElementBillingDetailsAddressCopyWithImpl<
- _$_PaymentElementBillingDetailsAddress>(this, _$identity);
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
+ get copyWith => __$$PaymentElementBillingDetailsAddressImplCopyWithImpl<
+ _$PaymentElementBillingDetailsAddressImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementBillingDetailsAddressToJson(
+ return _$$PaymentElementBillingDetailsAddressImplToJson(
this,
);
}
@@ -1365,11 +1374,11 @@ abstract class _PaymentElementBillingDetailsAddress
final String? state,
final String? country,
@JsonKey(name: 'postal_code') final String? postalCode}) =
- _$_PaymentElementBillingDetailsAddress;
+ _$PaymentElementBillingDetailsAddressImpl;
factory _PaymentElementBillingDetailsAddress.fromJson(
Map json) =
- _$_PaymentElementBillingDetailsAddress.fromJson;
+ _$PaymentElementBillingDetailsAddressImpl.fromJson;
@override
@@ -1398,8 +1407,8 @@ abstract class _PaymentElementBillingDetailsAddress
String? get postalCode;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementBillingDetailsAddressCopyWith<
- _$_PaymentElementBillingDetailsAddress>
+ _$$PaymentElementBillingDetailsAddressImplCopyWith<
+ _$PaymentElementBillingDetailsAddressImpl>
get copyWith => throw _privateConstructorUsedError;
}
@@ -1453,23 +1462,25 @@ class _$PaymentElementBusinessCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementBusinessCopyWith<$Res>
+abstract class _$$PaymentElementBusinessImplCopyWith<$Res>
implements $PaymentElementBusinessCopyWith<$Res> {
- factory _$$_PaymentElementBusinessCopyWith(_$_PaymentElementBusiness value,
- $Res Function(_$_PaymentElementBusiness) then) =
- __$$_PaymentElementBusinessCopyWithImpl<$Res>;
+ factory _$$PaymentElementBusinessImplCopyWith(
+ _$PaymentElementBusinessImpl value,
+ $Res Function(_$PaymentElementBusinessImpl) then) =
+ __$$PaymentElementBusinessImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? name});
}
/// @nodoc
-class __$$_PaymentElementBusinessCopyWithImpl<$Res>
+class __$$PaymentElementBusinessImplCopyWithImpl<$Res>
extends _$PaymentElementBusinessCopyWithImpl<$Res,
- _$_PaymentElementBusiness>
- implements _$$_PaymentElementBusinessCopyWith<$Res> {
- __$$_PaymentElementBusinessCopyWithImpl(_$_PaymentElementBusiness _value,
- $Res Function(_$_PaymentElementBusiness) _then)
+ _$PaymentElementBusinessImpl>
+ implements _$$PaymentElementBusinessImplCopyWith<$Res> {
+ __$$PaymentElementBusinessImplCopyWithImpl(
+ _$PaymentElementBusinessImpl _value,
+ $Res Function(_$PaymentElementBusinessImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -1477,7 +1488,7 @@ class __$$_PaymentElementBusinessCopyWithImpl<$Res>
$Res call({
Object? name = freezed,
}) {
- return _then(_$_PaymentElementBusiness(
+ return _then(_$PaymentElementBusinessImpl(
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
@@ -1488,11 +1499,11 @@ class __$$_PaymentElementBusinessCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementBusiness implements _PaymentElementBusiness {
- const _$_PaymentElementBusiness({this.name});
+class _$PaymentElementBusinessImpl implements _PaymentElementBusiness {
+ const _$PaymentElementBusinessImpl({this.name});
- factory _$_PaymentElementBusiness.fromJson(Map json) =>
- _$$_PaymentElementBusinessFromJson(json);
+ factory _$PaymentElementBusinessImpl.fromJson(Map json) =>
+ _$$PaymentElementBusinessImplFromJson(json);
@override
final String? name;
@@ -1506,7 +1517,7 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementBusiness &&
+ other is _$PaymentElementBusinessImpl &&
(identical(other.name, name) || other.name == name));
}
@@ -1517,13 +1528,13 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementBusinessCopyWith<_$_PaymentElementBusiness> get copyWith =>
- __$$_PaymentElementBusinessCopyWithImpl<_$_PaymentElementBusiness>(
- this, _$identity);
+ _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl>
+ get copyWith => __$$PaymentElementBusinessImplCopyWithImpl<
+ _$PaymentElementBusinessImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementBusinessToJson(
+ return _$$PaymentElementBusinessImplToJson(
this,
);
}
@@ -1531,17 +1542,17 @@ class _$_PaymentElementBusiness implements _PaymentElementBusiness {
abstract class _PaymentElementBusiness implements PaymentElementBusiness {
const factory _PaymentElementBusiness({final String? name}) =
- _$_PaymentElementBusiness;
+ _$PaymentElementBusinessImpl;
factory _PaymentElementBusiness.fromJson(Map json) =
- _$_PaymentElementBusiness.fromJson;
+ _$PaymentElementBusinessImpl.fromJson;
@override
String? get name;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementBusinessCopyWith<_$_PaymentElementBusiness> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$PaymentElementBusinessImplCopyWith<_$PaymentElementBusinessImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
PaymentElementFields _$PaymentElementFieldsFromJson(Map json) {
@@ -1609,11 +1620,11 @@ class _$PaymentElementFieldsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementFieldsCopyWith<$Res>
+abstract class _$$PaymentElementFieldsImplCopyWith<$Res>
implements $PaymentElementFieldsCopyWith<$Res> {
- factory _$$_PaymentElementFieldsCopyWith(_$_PaymentElementFields value,
- $Res Function(_$_PaymentElementFields) then) =
- __$$_PaymentElementFieldsCopyWithImpl<$Res>;
+ factory _$$PaymentElementFieldsImplCopyWith(_$PaymentElementFieldsImpl value,
+ $Res Function(_$PaymentElementFieldsImpl) then) =
+ __$$PaymentElementFieldsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({BillingDetailsFields billingDetails});
@@ -1623,11 +1634,11 @@ abstract class _$$_PaymentElementFieldsCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementFieldsCopyWithImpl<$Res>
- extends _$PaymentElementFieldsCopyWithImpl<$Res, _$_PaymentElementFields>
- implements _$$_PaymentElementFieldsCopyWith<$Res> {
- __$$_PaymentElementFieldsCopyWithImpl(_$_PaymentElementFields _value,
- $Res Function(_$_PaymentElementFields) _then)
+class __$$PaymentElementFieldsImplCopyWithImpl<$Res>
+ extends _$PaymentElementFieldsCopyWithImpl<$Res, _$PaymentElementFieldsImpl>
+ implements _$$PaymentElementFieldsImplCopyWith<$Res> {
+ __$$PaymentElementFieldsImplCopyWithImpl(_$PaymentElementFieldsImpl _value,
+ $Res Function(_$PaymentElementFieldsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -1635,7 +1646,7 @@ class __$$_PaymentElementFieldsCopyWithImpl<$Res>
$Res call({
Object? billingDetails = null,
}) {
- return _then(_$_PaymentElementFields(
+ return _then(_$PaymentElementFieldsImpl(
billingDetails: null == billingDetails
? _value.billingDetails
: billingDetails // ignore: cast_nullable_to_non_nullable
@@ -1646,12 +1657,12 @@ class __$$_PaymentElementFieldsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementFields implements _PaymentElementFields {
- const _$_PaymentElementFields(
+class _$PaymentElementFieldsImpl implements _PaymentElementFields {
+ const _$PaymentElementFieldsImpl(
{this.billingDetails = BillingDetailsFields.auto});
- factory _$_PaymentElementFields.fromJson(Map json) =>
- _$$_PaymentElementFieldsFromJson(json);
+ factory _$PaymentElementFieldsImpl.fromJson(Map json) =>
+ _$$PaymentElementFieldsImplFromJson(json);
/// Specify never to avoid collecting all billing details in the
/// Payment Element.
@@ -1672,7 +1683,7 @@ class _$_PaymentElementFields implements _PaymentElementFields {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementFields &&
+ other is _$PaymentElementFieldsImpl &&
(identical(other.billingDetails, billingDetails) ||
other.billingDetails == billingDetails));
}
@@ -1684,13 +1695,14 @@ class _$_PaymentElementFields implements _PaymentElementFields {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementFieldsCopyWith<_$_PaymentElementFields> get copyWith =>
- __$$_PaymentElementFieldsCopyWithImpl<_$_PaymentElementFields>(
- this, _$identity);
+ _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl>
+ get copyWith =>
+ __$$PaymentElementFieldsImplCopyWithImpl<_$PaymentElementFieldsImpl>(
+ this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementFieldsToJson(
+ return _$$PaymentElementFieldsImplToJson(
this,
);
}
@@ -1698,10 +1710,10 @@ class _$_PaymentElementFields implements _PaymentElementFields {
abstract class _PaymentElementFields implements PaymentElementFields {
const factory _PaymentElementFields(
- {final BillingDetailsFields billingDetails}) = _$_PaymentElementFields;
+ {final BillingDetailsFields billingDetails}) = _$PaymentElementFieldsImpl;
factory _PaymentElementFields.fromJson(Map json) =
- _$_PaymentElementFields.fromJson;
+ _$PaymentElementFieldsImpl.fromJson;
@override
@@ -1714,8 +1726,8 @@ abstract class _PaymentElementFields implements PaymentElementFields {
BillingDetailsFields get billingDetails;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementFieldsCopyWith<_$_PaymentElementFields> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$PaymentElementFieldsImplCopyWith<_$PaymentElementFieldsImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
BillingDetailsFields _$BillingDetailsFieldsFromJson(Map json) {
@@ -1799,11 +1811,11 @@ class _$BillingDetailsFieldsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_BillingDetailsFieldsCopyWith<$Res>
+abstract class _$$BillingDetailsFieldsImplCopyWith<$Res>
implements $BillingDetailsFieldsCopyWith<$Res> {
- factory _$$_BillingDetailsFieldsCopyWith(_$_BillingDetailsFields value,
- $Res Function(_$_BillingDetailsFields) then) =
- __$$_BillingDetailsFieldsCopyWithImpl<$Res>;
+ factory _$$BillingDetailsFieldsImplCopyWith(_$BillingDetailsFieldsImpl value,
+ $Res Function(_$BillingDetailsFieldsImpl) then) =
+ __$$BillingDetailsFieldsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -1817,11 +1829,11 @@ abstract class _$$_BillingDetailsFieldsCopyWith<$Res>
}
/// @nodoc
-class __$$_BillingDetailsFieldsCopyWithImpl<$Res>
- extends _$BillingDetailsFieldsCopyWithImpl<$Res, _$_BillingDetailsFields>
- implements _$$_BillingDetailsFieldsCopyWith<$Res> {
- __$$_BillingDetailsFieldsCopyWithImpl(_$_BillingDetailsFields _value,
- $Res Function(_$_BillingDetailsFields) _then)
+class __$$BillingDetailsFieldsImplCopyWithImpl<$Res>
+ extends _$BillingDetailsFieldsCopyWithImpl<$Res, _$BillingDetailsFieldsImpl>
+ implements _$$BillingDetailsFieldsImplCopyWith<$Res> {
+ __$$BillingDetailsFieldsImplCopyWithImpl(_$BillingDetailsFieldsImpl _value,
+ $Res Function(_$BillingDetailsFieldsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -1832,7 +1844,7 @@ class __$$_BillingDetailsFieldsCopyWithImpl<$Res>
Object? phone = null,
Object? address = null,
}) {
- return _then(_$_BillingDetailsFields(
+ return _then(_$BillingDetailsFieldsImpl(
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
@@ -1855,15 +1867,15 @@ class __$$_BillingDetailsFieldsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_BillingDetailsFields implements _BillingDetailsFields {
- const _$_BillingDetailsFields(
+class _$BillingDetailsFieldsImpl implements _BillingDetailsFields {
+ const _$BillingDetailsFieldsImpl(
{this.name = PaymentElementFieldRequired.auto,
this.email = PaymentElementFieldRequired.auto,
this.phone = PaymentElementFieldRequired.auto,
this.address = PaymentElementAddressFields.auto});
- factory _$_BillingDetailsFields.fromJson(Map json) =>
- _$$_BillingDetailsFieldsFromJson(json);
+ factory _$BillingDetailsFieldsImpl.fromJson(Map json) =>
+ _$$BillingDetailsFieldsImplFromJson(json);
@override
@JsonKey()
@@ -1887,7 +1899,7 @@ class _$_BillingDetailsFields implements _BillingDetailsFields {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_BillingDetailsFields &&
+ other is _$BillingDetailsFieldsImpl &&
(identical(other.name, name) || other.name == name) &&
(identical(other.email, email) || other.email == email) &&
(identical(other.phone, phone) || other.phone == phone) &&
@@ -1901,13 +1913,14 @@ class _$_BillingDetailsFields implements _BillingDetailsFields {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_BillingDetailsFieldsCopyWith<_$_BillingDetailsFields> get copyWith =>
- __$$_BillingDetailsFieldsCopyWithImpl<_$_BillingDetailsFields>(
- this, _$identity);
+ _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl>
+ get copyWith =>
+ __$$BillingDetailsFieldsImplCopyWithImpl<_$BillingDetailsFieldsImpl>(
+ this, _$identity);
@override
Map toJson() {
- return _$$_BillingDetailsFieldsToJson(
+ return _$$BillingDetailsFieldsImplToJson(
this,
);
}
@@ -1918,10 +1931,10 @@ abstract class _BillingDetailsFields implements BillingDetailsFields {
{final PaymentElementFieldRequired name,
final PaymentElementFieldRequired email,
final PaymentElementFieldRequired phone,
- final PaymentElementAddressFields address}) = _$_BillingDetailsFields;
+ final PaymentElementAddressFields address}) = _$BillingDetailsFieldsImpl;
factory _BillingDetailsFields.fromJson(Map json) =
- _$_BillingDetailsFields.fromJson;
+ _$BillingDetailsFieldsImpl.fromJson;
@override
PaymentElementFieldRequired get name;
@@ -1933,8 +1946,8 @@ abstract class _BillingDetailsFields implements BillingDetailsFields {
PaymentElementAddressFields get address;
@override
@JsonKey(ignore: true)
- _$$_BillingDetailsFieldsCopyWith<_$_BillingDetailsFields> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$BillingDetailsFieldsImplCopyWith<_$BillingDetailsFieldsImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
PaymentElementAddressFields _$PaymentElementAddressFieldsFromJson(
@@ -2026,12 +2039,12 @@ class _$PaymentElementAddressFieldsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementAddressFieldsCopyWith<$Res>
+abstract class _$$PaymentElementAddressFieldsImplCopyWith<$Res>
implements $PaymentElementAddressFieldsCopyWith<$Res> {
- factory _$$_PaymentElementAddressFieldsCopyWith(
- _$_PaymentElementAddressFields value,
- $Res Function(_$_PaymentElementAddressFields) then) =
- __$$_PaymentElementAddressFieldsCopyWithImpl<$Res>;
+ factory _$$PaymentElementAddressFieldsImplCopyWith(
+ _$PaymentElementAddressFieldsImpl value,
+ $Res Function(_$PaymentElementAddressFieldsImpl) then) =
+ __$$PaymentElementAddressFieldsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -2044,13 +2057,13 @@ abstract class _$$_PaymentElementAddressFieldsCopyWith<$Res>
}
/// @nodoc
-class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res>
+class __$$PaymentElementAddressFieldsImplCopyWithImpl<$Res>
extends _$PaymentElementAddressFieldsCopyWithImpl<$Res,
- _$_PaymentElementAddressFields>
- implements _$$_PaymentElementAddressFieldsCopyWith<$Res> {
- __$$_PaymentElementAddressFieldsCopyWithImpl(
- _$_PaymentElementAddressFields _value,
- $Res Function(_$_PaymentElementAddressFields) _then)
+ _$PaymentElementAddressFieldsImpl>
+ implements _$$PaymentElementAddressFieldsImplCopyWith<$Res> {
+ __$$PaymentElementAddressFieldsImplCopyWithImpl(
+ _$PaymentElementAddressFieldsImpl _value,
+ $Res Function(_$PaymentElementAddressFieldsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -2063,7 +2076,7 @@ class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res>
Object? country = null,
Object? postalCode = null,
}) {
- return _then(_$_PaymentElementAddressFields(
+ return _then(_$PaymentElementAddressFieldsImpl(
line1: null == line1
? _value.line1
: line1 // ignore: cast_nullable_to_non_nullable
@@ -2094,8 +2107,9 @@ class __$$_PaymentElementAddressFieldsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementAddressFields implements _PaymentElementAddressFields {
- const _$_PaymentElementAddressFields(
+class _$PaymentElementAddressFieldsImpl
+ implements _PaymentElementAddressFields {
+ const _$PaymentElementAddressFieldsImpl(
{this.line1 = PaymentElementFieldRequired.auto,
this.line2 = PaymentElementFieldRequired.auto,
this.city = PaymentElementFieldRequired.auto,
@@ -2103,8 +2117,9 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields {
this.country = PaymentElementFieldRequired.auto,
this.postalCode = PaymentElementFieldRequired.auto});
- factory _$_PaymentElementAddressFields.fromJson(Map json) =>
- _$$_PaymentElementAddressFieldsFromJson(json);
+ factory _$PaymentElementAddressFieldsImpl.fromJson(
+ Map json) =>
+ _$$PaymentElementAddressFieldsImplFromJson(json);
@override
@JsonKey()
@@ -2134,7 +2149,7 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementAddressFields &&
+ other is _$PaymentElementAddressFieldsImpl &&
(identical(other.line1, line1) || other.line1 == line1) &&
(identical(other.line2, line2) || other.line2 == line2) &&
(identical(other.city, city) || other.city == city) &&
@@ -2152,13 +2167,13 @@ class _$_PaymentElementAddressFields implements _PaymentElementAddressFields {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementAddressFieldsCopyWith<_$_PaymentElementAddressFields>
- get copyWith => __$$_PaymentElementAddressFieldsCopyWithImpl<
- _$_PaymentElementAddressFields>(this, _$identity);
+ _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl>
+ get copyWith => __$$PaymentElementAddressFieldsImplCopyWithImpl<
+ _$PaymentElementAddressFieldsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementAddressFieldsToJson(
+ return _$$PaymentElementAddressFieldsImplToJson(
this,
);
}
@@ -2173,10 +2188,10 @@ abstract class _PaymentElementAddressFields
final PaymentElementFieldRequired state,
final PaymentElementFieldRequired country,
final PaymentElementFieldRequired postalCode}) =
- _$_PaymentElementAddressFields;
+ _$PaymentElementAddressFieldsImpl;
factory _PaymentElementAddressFields.fromJson(Map json) =
- _$_PaymentElementAddressFields.fromJson;
+ _$PaymentElementAddressFieldsImpl.fromJson;
@override
PaymentElementFieldRequired get line1;
@@ -2192,6 +2207,6 @@ abstract class _PaymentElementAddressFields
PaymentElementFieldRequired get postalCode;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementAddressFieldsCopyWith<_$_PaymentElementAddressFields>
+ _$$PaymentElementAddressFieldsImplCopyWith<_$PaymentElementAddressFieldsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart b/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart
index da3cd660c..4bf4f4d66 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_element_options.g.dart
@@ -6,8 +6,8 @@ part of 'payment_element_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_PaymentElementOptions _$$_PaymentElementOptionsFromJson(Map json) =>
- _$_PaymentElementOptions(
+_$PaymentElementOptionsImpl _$$PaymentElementOptionsImplFromJson(Map json) =>
+ _$PaymentElementOptionsImpl(
layout: json['layout'] == null
? null
: PaymentElementLayout.fromJson(
@@ -30,8 +30,8 @@ _$_PaymentElementOptions _$$_PaymentElementOptionsFromJson(Map json) =>
wallets: json['wallets'],
);
-Map _$$_PaymentElementOptionsToJson(
- _$_PaymentElementOptions instance) {
+Map _$$PaymentElementOptionsImplToJson(
+ _$PaymentElementOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -51,16 +51,16 @@ Map _$$_PaymentElementOptionsToJson(
return val;
}
-_$_PaymentElementLayout _$$_PaymentElementLayoutFromJson(Map json) =>
- _$_PaymentElementLayout(
+_$PaymentElementLayoutImpl _$$PaymentElementLayoutImplFromJson(Map json) =>
+ _$PaymentElementLayoutImpl(
type: $enumDecode(_$PaymentElementLayoutTypeEnumMap, json['type']),
defaultCollapsed: json['defaultCollapsed'] as bool?,
radios: json['radios'] as bool?,
spacedAccordionItems: json['spacedAccordionItems'] as bool?,
);
-Map _$$_PaymentElementLayoutToJson(
- _$_PaymentElementLayout instance) {
+Map _$$PaymentElementLayoutImplToJson(
+ _$PaymentElementLayoutImpl instance) {
final val = {
'type': _$PaymentElementLayoutTypeEnumMap[instance.type]!,
};
@@ -82,17 +82,17 @@ const _$PaymentElementLayoutTypeEnumMap = {
PaymentElementLayoutType.tabs: 'tabs',
};
-_$_PaymentElementDefaultValues _$$_PaymentElementDefaultValuesFromJson(
+_$PaymentElementDefaultValuesImpl _$$PaymentElementDefaultValuesImplFromJson(
Map json) =>
- _$_PaymentElementDefaultValues(
+ _$PaymentElementDefaultValuesImpl(
billingDetails: json['billingDetails'] == null
? null
: PaymentElementBillingDetails.fromJson(
Map.from(json['billingDetails'] as Map)),
);
-Map _$$_PaymentElementDefaultValuesToJson(
- _$_PaymentElementDefaultValues instance) {
+Map _$$PaymentElementDefaultValuesImplToJson(
+ _$PaymentElementDefaultValuesImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -105,9 +105,9 @@ Map _$$_PaymentElementDefaultValuesToJson(
return val;
}
-_$_PaymentElementBillingDetails _$$_PaymentElementBillingDetailsFromJson(
+_$PaymentElementBillingDetailsImpl _$$PaymentElementBillingDetailsImplFromJson(
Map json) =>
- _$_PaymentElementBillingDetails(
+ _$PaymentElementBillingDetailsImpl(
name: json['name'] as String?,
email: json['email'] as String?,
phone: json['phone'] as String?,
@@ -117,8 +117,8 @@ _$_PaymentElementBillingDetails _$$_PaymentElementBillingDetailsFromJson(
Map.from(json['address'] as Map)),
);
-Map _$$_PaymentElementBillingDetailsToJson(
- _$_PaymentElementBillingDetails instance) {
+Map _$$PaymentElementBillingDetailsImplToJson(
+ _$PaymentElementBillingDetailsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -134,9 +134,9 @@ Map _$$_PaymentElementBillingDetailsToJson(
return val;
}
-_$_PaymentElementBillingDetailsAddress
- _$$_PaymentElementBillingDetailsAddressFromJson(Map json) =>
- _$_PaymentElementBillingDetailsAddress(
+_$PaymentElementBillingDetailsAddressImpl
+ _$$PaymentElementBillingDetailsAddressImplFromJson(Map json) =>
+ _$PaymentElementBillingDetailsAddressImpl(
line1: json['line1'] as String?,
line2: json['line2'] as String?,
city: json['city'] as String?,
@@ -145,8 +145,8 @@ _$_PaymentElementBillingDetailsAddress
postalCode: json['postal_code'] as String?,
);
-Map _$$_PaymentElementBillingDetailsAddressToJson(
- _$_PaymentElementBillingDetailsAddress instance) {
+Map _$$PaymentElementBillingDetailsAddressImplToJson(
+ _$PaymentElementBillingDetailsAddressImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -164,13 +164,13 @@ Map _$$_PaymentElementBillingDetailsAddressToJson(
return val;
}
-_$_PaymentElementBusiness _$$_PaymentElementBusinessFromJson(Map json) =>
- _$_PaymentElementBusiness(
+_$PaymentElementBusinessImpl _$$PaymentElementBusinessImplFromJson(Map json) =>
+ _$PaymentElementBusinessImpl(
name: json['name'] as String?,
);
-Map _$$_PaymentElementBusinessToJson(
- _$_PaymentElementBusiness instance) {
+Map _$$PaymentElementBusinessImplToJson(
+ _$PaymentElementBusinessImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -183,22 +183,22 @@ Map _$$_PaymentElementBusinessToJson(
return val;
}
-_$_PaymentElementFields _$$_PaymentElementFieldsFromJson(Map json) =>
- _$_PaymentElementFields(
+_$PaymentElementFieldsImpl _$$PaymentElementFieldsImplFromJson(Map json) =>
+ _$PaymentElementFieldsImpl(
billingDetails: json['billingDetails'] == null
? BillingDetailsFields.auto
: BillingDetailsFields.fromJson(
Map.from(json['billingDetails'] as Map)),
);
-Map _$$_PaymentElementFieldsToJson(
- _$_PaymentElementFields instance) =>
+Map _$$PaymentElementFieldsImplToJson(
+ _$PaymentElementFieldsImpl instance) =>
{
'billingDetails': instance.billingDetails.toJson(),
};
-_$_BillingDetailsFields _$$_BillingDetailsFieldsFromJson(Map json) =>
- _$_BillingDetailsFields(
+_$BillingDetailsFieldsImpl _$$BillingDetailsFieldsImplFromJson(Map json) =>
+ _$BillingDetailsFieldsImpl(
name: $enumDecodeNullable(
_$PaymentElementFieldRequiredEnumMap, json['name']) ??
PaymentElementFieldRequired.auto,
@@ -214,8 +214,8 @@ _$_BillingDetailsFields _$$_BillingDetailsFieldsFromJson(Map json) =>
Map.from(json['address'] as Map)),
);
-Map _$$_BillingDetailsFieldsToJson(
- _$_BillingDetailsFields instance) =>
+Map _$$BillingDetailsFieldsImplToJson(
+ _$BillingDetailsFieldsImpl instance) =>
{
'name': _$PaymentElementFieldRequiredEnumMap[instance.name]!,
'email': _$PaymentElementFieldRequiredEnumMap[instance.email]!,
@@ -228,9 +228,9 @@ const _$PaymentElementFieldRequiredEnumMap = {
PaymentElementFieldRequired.auto: 'auto',
};
-_$_PaymentElementAddressFields _$$_PaymentElementAddressFieldsFromJson(
+_$PaymentElementAddressFieldsImpl _$$PaymentElementAddressFieldsImplFromJson(
Map json) =>
- _$_PaymentElementAddressFields(
+ _$PaymentElementAddressFieldsImpl(
line1: $enumDecodeNullable(
_$PaymentElementFieldRequiredEnumMap, json['line1']) ??
PaymentElementFieldRequired.auto,
@@ -251,8 +251,8 @@ _$_PaymentElementAddressFields _$$_PaymentElementAddressFieldsFromJson(
PaymentElementFieldRequired.auto,
);
-Map _$$_PaymentElementAddressFieldsToJson(
- _$_PaymentElementAddressFields instance) =>
+Map _$$PaymentElementAddressFieldsImplToJson(
+ _$PaymentElementAddressFieldsImpl instance) =>
{
'line1': _$PaymentElementFieldRequiredEnumMap[instance.line1]!,
'line2': _$PaymentElementFieldRequiredEnumMap[instance.line2]!,
diff --git a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart
index d2ce3a057..01d89cb4f 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.freezed.dart
@@ -70,25 +70,25 @@ class _$PaymentElementShippingDetailsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_PaymentElementShippingDetailsCopyWith<$Res>
+abstract class _$$PaymentElementShippingDetailsImplCopyWith<$Res>
implements $PaymentElementShippingDetailsCopyWith<$Res> {
- factory _$$_PaymentElementShippingDetailsCopyWith(
- _$_PaymentElementShippingDetails value,
- $Res Function(_$_PaymentElementShippingDetails) then) =
- __$$_PaymentElementShippingDetailsCopyWithImpl<$Res>;
+ factory _$$PaymentElementShippingDetailsImplCopyWith(
+ _$PaymentElementShippingDetailsImpl value,
+ $Res Function(_$PaymentElementShippingDetailsImpl) then) =
+ __$$PaymentElementShippingDetailsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? trackingNumber});
}
/// @nodoc
-class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res>
+class __$$PaymentElementShippingDetailsImplCopyWithImpl<$Res>
extends _$PaymentElementShippingDetailsCopyWithImpl<$Res,
- _$_PaymentElementShippingDetails>
- implements _$$_PaymentElementShippingDetailsCopyWith<$Res> {
- __$$_PaymentElementShippingDetailsCopyWithImpl(
- _$_PaymentElementShippingDetails _value,
- $Res Function(_$_PaymentElementShippingDetails) _then)
+ _$PaymentElementShippingDetailsImpl>
+ implements _$$PaymentElementShippingDetailsImplCopyWith<$Res> {
+ __$$PaymentElementShippingDetailsImplCopyWithImpl(
+ _$PaymentElementShippingDetailsImpl _value,
+ $Res Function(_$PaymentElementShippingDetailsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -96,7 +96,7 @@ class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res>
$Res call({
Object? trackingNumber = freezed,
}) {
- return _then(_$_PaymentElementShippingDetails(
+ return _then(_$PaymentElementShippingDetailsImpl(
trackingNumber: freezed == trackingNumber
? _value.trackingNumber
: trackingNumber // ignore: cast_nullable_to_non_nullable
@@ -107,13 +107,13 @@ class __$$_PaymentElementShippingDetailsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_PaymentElementShippingDetails
+class _$PaymentElementShippingDetailsImpl
implements _PaymentElementShippingDetails {
- const _$_PaymentElementShippingDetails({this.trackingNumber});
+ const _$PaymentElementShippingDetailsImpl({this.trackingNumber});
- factory _$_PaymentElementShippingDetails.fromJson(
+ factory _$PaymentElementShippingDetailsImpl.fromJson(
Map json) =>
- _$$_PaymentElementShippingDetailsFromJson(json);
+ _$$PaymentElementShippingDetailsImplFromJson(json);
/// The Elements instance that was used to create the Payment Element.
// @ElementsConverter() required Elements elements,
@@ -131,7 +131,7 @@ class _$_PaymentElementShippingDetails
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_PaymentElementShippingDetails &&
+ other is _$PaymentElementShippingDetailsImpl &&
(identical(other.trackingNumber, trackingNumber) ||
other.trackingNumber == trackingNumber));
}
@@ -143,13 +143,14 @@ class _$_PaymentElementShippingDetails
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_PaymentElementShippingDetailsCopyWith<_$_PaymentElementShippingDetails>
- get copyWith => __$$_PaymentElementShippingDetailsCopyWithImpl<
- _$_PaymentElementShippingDetails>(this, _$identity);
+ _$$PaymentElementShippingDetailsImplCopyWith<
+ _$PaymentElementShippingDetailsImpl>
+ get copyWith => __$$PaymentElementShippingDetailsImplCopyWithImpl<
+ _$PaymentElementShippingDetailsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_PaymentElementShippingDetailsToJson(
+ return _$$PaymentElementShippingDetailsImplToJson(
this,
);
}
@@ -158,10 +159,10 @@ class _$_PaymentElementShippingDetails
abstract class _PaymentElementShippingDetails
implements PaymentElementShippingDetails {
const factory _PaymentElementShippingDetails({final String? trackingNumber}) =
- _$_PaymentElementShippingDetails;
+ _$PaymentElementShippingDetailsImpl;
factory _PaymentElementShippingDetails.fromJson(Map json) =
- _$_PaymentElementShippingDetails.fromJson;
+ _$PaymentElementShippingDetailsImpl.fromJson;
@override
@@ -172,6 +173,7 @@ abstract class _PaymentElementShippingDetails
String? get trackingNumber;
@override
@JsonKey(ignore: true)
- _$$_PaymentElementShippingDetailsCopyWith<_$_PaymentElementShippingDetails>
+ _$$PaymentElementShippingDetailsImplCopyWith<
+ _$PaymentElementShippingDetailsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart
index 768d359f4..40059557e 100644
--- a/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart
+++ b/packages/stripe_js/lib/src/api/elements/payment_intent_shipping_information.g.dart
@@ -6,14 +6,14 @@ part of 'payment_intent_shipping_information.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_PaymentElementShippingDetails _$$_PaymentElementShippingDetailsFromJson(
- Map json) =>
- _$_PaymentElementShippingDetails(
- trackingNumber: json['trackingNumber'] as String?,
- );
+_$PaymentElementShippingDetailsImpl
+ _$$PaymentElementShippingDetailsImplFromJson(Map json) =>
+ _$PaymentElementShippingDetailsImpl(
+ trackingNumber: json['trackingNumber'] as String?,
+ );
-Map _$$_PaymentElementShippingDetailsToJson(
- _$_PaymentElementShippingDetails instance) {
+Map _$$PaymentElementShippingDetailsImplToJson(
+ _$PaymentElementShippingDetailsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart
index 13427bdd1..89a1739f4 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.freezed.dart
@@ -70,25 +70,25 @@ class _$ConfirmAcssDebitPaymentDataCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmAcssDebitPaymentDataCopyWith<$Res>
+abstract class _$$ConfirmAcssDebitPaymentDataImplCopyWith<$Res>
implements $ConfirmAcssDebitPaymentDataCopyWith<$Res> {
- factory _$$_ConfirmAcssDebitPaymentDataCopyWith(
- _$_ConfirmAcssDebitPaymentData value,
- $Res Function(_$_ConfirmAcssDebitPaymentData) then) =
- __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res>;
+ factory _$$ConfirmAcssDebitPaymentDataImplCopyWith(
+ _$ConfirmAcssDebitPaymentDataImpl value,
+ $Res Function(_$ConfirmAcssDebitPaymentDataImpl) then) =
+ __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({@JsonKey(name: "payment_method") String? paymentMethod});
}
/// @nodoc
-class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res>
+class __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<$Res>
extends _$ConfirmAcssDebitPaymentDataCopyWithImpl<$Res,
- _$_ConfirmAcssDebitPaymentData>
- implements _$$_ConfirmAcssDebitPaymentDataCopyWith<$Res> {
- __$$_ConfirmAcssDebitPaymentDataCopyWithImpl(
- _$_ConfirmAcssDebitPaymentData _value,
- $Res Function(_$_ConfirmAcssDebitPaymentData) _then)
+ _$ConfirmAcssDebitPaymentDataImpl>
+ implements _$$ConfirmAcssDebitPaymentDataImplCopyWith<$Res> {
+ __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl(
+ _$ConfirmAcssDebitPaymentDataImpl _value,
+ $Res Function(_$ConfirmAcssDebitPaymentDataImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -96,7 +96,7 @@ class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res>
$Res call({
Object? paymentMethod = freezed,
}) {
- return _then(_$_ConfirmAcssDebitPaymentData(
+ return _then(_$ConfirmAcssDebitPaymentDataImpl(
paymentMethod: freezed == paymentMethod
? _value.paymentMethod
: paymentMethod // ignore: cast_nullable_to_non_nullable
@@ -107,12 +107,14 @@ class __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData {
- const _$_ConfirmAcssDebitPaymentData(
+class _$ConfirmAcssDebitPaymentDataImpl
+ implements _ConfirmAcssDebitPaymentData {
+ const _$ConfirmAcssDebitPaymentDataImpl(
{@JsonKey(name: "payment_method") this.paymentMethod});
- factory _$_ConfirmAcssDebitPaymentData.fromJson(Map json) =>
- _$$_ConfirmAcssDebitPaymentDataFromJson(json);
+ factory _$ConfirmAcssDebitPaymentDataImpl.fromJson(
+ Map json) =>
+ _$$ConfirmAcssDebitPaymentDataImplFromJson(json);
/// Either the id of an existing PaymentMethod, or an object containing
/// data to create a PaymentMethod with.
@@ -130,7 +132,7 @@ class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmAcssDebitPaymentData &&
+ other is _$ConfirmAcssDebitPaymentDataImpl &&
(identical(other.paymentMethod, paymentMethod) ||
other.paymentMethod == paymentMethod));
}
@@ -142,13 +144,13 @@ class _$_ConfirmAcssDebitPaymentData implements _ConfirmAcssDebitPaymentData {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmAcssDebitPaymentDataCopyWith<_$_ConfirmAcssDebitPaymentData>
- get copyWith => __$$_ConfirmAcssDebitPaymentDataCopyWithImpl<
- _$_ConfirmAcssDebitPaymentData>(this, _$identity);
+ _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl>
+ get copyWith => __$$ConfirmAcssDebitPaymentDataImplCopyWithImpl<
+ _$ConfirmAcssDebitPaymentDataImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmAcssDebitPaymentDataToJson(
+ return _$$ConfirmAcssDebitPaymentDataImplToJson(
this,
);
}
@@ -158,10 +160,10 @@ abstract class _ConfirmAcssDebitPaymentData
implements ConfirmAcssDebitPaymentData {
const factory _ConfirmAcssDebitPaymentData(
{@JsonKey(name: "payment_method") final String? paymentMethod}) =
- _$_ConfirmAcssDebitPaymentData;
+ _$ConfirmAcssDebitPaymentDataImpl;
factory _ConfirmAcssDebitPaymentData.fromJson(Map json) =
- _$_ConfirmAcssDebitPaymentData.fromJson;
+ _$ConfirmAcssDebitPaymentDataImpl.fromJson;
@override
@@ -172,6 +174,6 @@ abstract class _ConfirmAcssDebitPaymentData
String? get paymentMethod;
@override
@JsonKey(ignore: true)
- _$$_ConfirmAcssDebitPaymentDataCopyWith<_$_ConfirmAcssDebitPaymentData>
+ _$$ConfirmAcssDebitPaymentDataImplCopyWith<_$ConfirmAcssDebitPaymentDataImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart
index bdaf2ce64..cfa84371b 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_data.g.dart
@@ -6,14 +6,14 @@ part of 'confirm_acss_debit_payment_data.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmAcssDebitPaymentData _$$_ConfirmAcssDebitPaymentDataFromJson(
+_$ConfirmAcssDebitPaymentDataImpl _$$ConfirmAcssDebitPaymentDataImplFromJson(
Map json) =>
- _$_ConfirmAcssDebitPaymentData(
+ _$ConfirmAcssDebitPaymentDataImpl(
paymentMethod: json['payment_method'] as String?,
);
-Map _$$_ConfirmAcssDebitPaymentDataToJson(
- _$_ConfirmAcssDebitPaymentData instance) {
+Map _$$ConfirmAcssDebitPaymentDataImplToJson(
+ _$ConfirmAcssDebitPaymentDataImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart
index 367c281ed..b9b8a6e30 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.freezed.dart
@@ -67,25 +67,25 @@ class _$ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmAcssDebitPaymentOptionsCopyWith<$Res>
+abstract class _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<$Res>
implements $ConfirmAcssDebitPaymentOptionsCopyWith<$Res> {
- factory _$$_ConfirmAcssDebitPaymentOptionsCopyWith(
- _$_ConfirmAcssDebitPaymentOptions value,
- $Res Function(_$_ConfirmAcssDebitPaymentOptions) then) =
- __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res>;
+ factory _$$ConfirmAcssDebitPaymentOptionsImplCopyWith(
+ _$ConfirmAcssDebitPaymentOptionsImpl value,
+ $Res Function(_$ConfirmAcssDebitPaymentOptionsImpl) then) =
+ __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool? skipMandate});
}
/// @nodoc
-class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res>
+class __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<$Res>
extends _$ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res,
- _$_ConfirmAcssDebitPaymentOptions>
- implements _$$_ConfirmAcssDebitPaymentOptionsCopyWith<$Res> {
- __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl(
- _$_ConfirmAcssDebitPaymentOptions _value,
- $Res Function(_$_ConfirmAcssDebitPaymentOptions) _then)
+ _$ConfirmAcssDebitPaymentOptionsImpl>
+ implements _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<$Res> {
+ __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl(
+ _$ConfirmAcssDebitPaymentOptionsImpl _value,
+ $Res Function(_$ConfirmAcssDebitPaymentOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -93,7 +93,7 @@ class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res>
$Res call({
Object? skipMandate = freezed,
}) {
- return _then(_$_ConfirmAcssDebitPaymentOptions(
+ return _then(_$ConfirmAcssDebitPaymentOptionsImpl(
skipMandate: freezed == skipMandate
? _value.skipMandate
: skipMandate // ignore: cast_nullable_to_non_nullable
@@ -104,13 +104,13 @@ class __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmAcssDebitPaymentOptions
+class _$ConfirmAcssDebitPaymentOptionsImpl
implements _ConfirmAcssDebitPaymentOptions {
- const _$_ConfirmAcssDebitPaymentOptions({this.skipMandate = false});
+ const _$ConfirmAcssDebitPaymentOptionsImpl({this.skipMandate = false});
- factory _$_ConfirmAcssDebitPaymentOptions.fromJson(
+ factory _$ConfirmAcssDebitPaymentOptionsImpl.fromJson(
Map json) =>
- _$$_ConfirmAcssDebitPaymentOptionsFromJson(json);
+ _$$ConfirmAcssDebitPaymentOptionsImplFromJson(json);
/// Set this to true if you want to skip displaying the mandate confirmation.
@override
@@ -126,7 +126,7 @@ class _$_ConfirmAcssDebitPaymentOptions
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmAcssDebitPaymentOptions &&
+ other is _$ConfirmAcssDebitPaymentOptionsImpl &&
(identical(other.skipMandate, skipMandate) ||
other.skipMandate == skipMandate));
}
@@ -138,13 +138,14 @@ class _$_ConfirmAcssDebitPaymentOptions
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmAcssDebitPaymentOptionsCopyWith<_$_ConfirmAcssDebitPaymentOptions>
- get copyWith => __$$_ConfirmAcssDebitPaymentOptionsCopyWithImpl<
- _$_ConfirmAcssDebitPaymentOptions>(this, _$identity);
+ _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<
+ _$ConfirmAcssDebitPaymentOptionsImpl>
+ get copyWith => __$$ConfirmAcssDebitPaymentOptionsImplCopyWithImpl<
+ _$ConfirmAcssDebitPaymentOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmAcssDebitPaymentOptionsToJson(
+ return _$$ConfirmAcssDebitPaymentOptionsImplToJson(
this,
);
}
@@ -153,10 +154,10 @@ class _$_ConfirmAcssDebitPaymentOptions
abstract class _ConfirmAcssDebitPaymentOptions
implements ConfirmAcssDebitPaymentOptions {
const factory _ConfirmAcssDebitPaymentOptions({final bool? skipMandate}) =
- _$_ConfirmAcssDebitPaymentOptions;
+ _$ConfirmAcssDebitPaymentOptionsImpl;
factory _ConfirmAcssDebitPaymentOptions.fromJson(Map json) =
- _$_ConfirmAcssDebitPaymentOptions.fromJson;
+ _$ConfirmAcssDebitPaymentOptionsImpl.fromJson;
@override
@@ -164,6 +165,7 @@ abstract class _ConfirmAcssDebitPaymentOptions
bool? get skipMandate;
@override
@JsonKey(ignore: true)
- _$$_ConfirmAcssDebitPaymentOptionsCopyWith<_$_ConfirmAcssDebitPaymentOptions>
+ _$$ConfirmAcssDebitPaymentOptionsImplCopyWith<
+ _$ConfirmAcssDebitPaymentOptionsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart
index 9d57efdeb..a6ce0bbce 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_acss_debit_payment_options.g.dart
@@ -6,14 +6,14 @@ part of 'confirm_acss_debit_payment_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmAcssDebitPaymentOptions _$$_ConfirmAcssDebitPaymentOptionsFromJson(
- Map json) =>
- _$_ConfirmAcssDebitPaymentOptions(
- skipMandate: json['skipMandate'] as bool? ?? false,
- );
+_$ConfirmAcssDebitPaymentOptionsImpl
+ _$$ConfirmAcssDebitPaymentOptionsImplFromJson(Map json) =>
+ _$ConfirmAcssDebitPaymentOptionsImpl(
+ skipMandate: json['skipMandate'] as bool? ?? false,
+ );
-Map _$$_ConfirmAcssDebitPaymentOptionsToJson(
- _$_ConfirmAcssDebitPaymentOptions instance) {
+Map _$$ConfirmAcssDebitPaymentOptionsImplToJson(
+ _$ConfirmAcssDebitPaymentOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart
index 53abb4d05..30fc07777 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.freezed.dart
@@ -79,12 +79,12 @@ class _$ConfirmAlipayPaymentDataCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmAlipayPaymentDataCopyWith<$Res>
+abstract class _$$ConfirmAlipayPaymentDataImplCopyWith<$Res>
implements $ConfirmAlipayPaymentDataCopyWith<$Res> {
- factory _$$_ConfirmAlipayPaymentDataCopyWith(
- _$_ConfirmAlipayPaymentData value,
- $Res Function(_$_ConfirmAlipayPaymentData) then) =
- __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res>;
+ factory _$$ConfirmAlipayPaymentDataImplCopyWith(
+ _$ConfirmAlipayPaymentDataImpl value,
+ $Res Function(_$ConfirmAlipayPaymentDataImpl) then) =
+ __$$ConfirmAlipayPaymentDataImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -93,12 +93,13 @@ abstract class _$$_ConfirmAlipayPaymentDataCopyWith<$Res>
}
/// @nodoc
-class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res>
+class __$$ConfirmAlipayPaymentDataImplCopyWithImpl<$Res>
extends _$ConfirmAlipayPaymentDataCopyWithImpl<$Res,
- _$_ConfirmAlipayPaymentData>
- implements _$$_ConfirmAlipayPaymentDataCopyWith<$Res> {
- __$$_ConfirmAlipayPaymentDataCopyWithImpl(_$_ConfirmAlipayPaymentData _value,
- $Res Function(_$_ConfirmAlipayPaymentData) _then)
+ _$ConfirmAlipayPaymentDataImpl>
+ implements _$$ConfirmAlipayPaymentDataImplCopyWith<$Res> {
+ __$$ConfirmAlipayPaymentDataImplCopyWithImpl(
+ _$ConfirmAlipayPaymentDataImpl _value,
+ $Res Function(_$ConfirmAlipayPaymentDataImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -107,7 +108,7 @@ class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res>
Object? paymentMethod = freezed,
Object? returnUrl = freezed,
}) {
- return _then(_$_ConfirmAlipayPaymentData(
+ return _then(_$ConfirmAlipayPaymentDataImpl(
paymentMethod: freezed == paymentMethod
? _value.paymentMethod
: paymentMethod // ignore: cast_nullable_to_non_nullable
@@ -122,13 +123,13 @@ class __$$_ConfirmAlipayPaymentDataCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData {
- const _$_ConfirmAlipayPaymentData(
+class _$ConfirmAlipayPaymentDataImpl implements _ConfirmAlipayPaymentData {
+ const _$ConfirmAlipayPaymentDataImpl(
{@JsonKey(name: "payment_method") this.paymentMethod,
@JsonKey(name: "return_url") this.returnUrl});
- factory _$_ConfirmAlipayPaymentData.fromJson(Map json) =>
- _$$_ConfirmAlipayPaymentDataFromJson(json);
+ factory _$ConfirmAlipayPaymentDataImpl.fromJson(Map json) =>
+ _$$ConfirmAlipayPaymentDataImplFromJson(json);
/// Either the id of an existing PaymentMethod, or an object containing
/// data to create a PaymentMethod with.
@@ -151,7 +152,7 @@ class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmAlipayPaymentData &&
+ other is _$ConfirmAlipayPaymentDataImpl &&
(identical(other.paymentMethod, paymentMethod) ||
other.paymentMethod == paymentMethod) &&
(identical(other.returnUrl, returnUrl) ||
@@ -165,13 +166,13 @@ class _$_ConfirmAlipayPaymentData implements _ConfirmAlipayPaymentData {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmAlipayPaymentDataCopyWith<_$_ConfirmAlipayPaymentData>
- get copyWith => __$$_ConfirmAlipayPaymentDataCopyWithImpl<
- _$_ConfirmAlipayPaymentData>(this, _$identity);
+ _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl>
+ get copyWith => __$$ConfirmAlipayPaymentDataImplCopyWithImpl<
+ _$ConfirmAlipayPaymentDataImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmAlipayPaymentDataToJson(
+ return _$$ConfirmAlipayPaymentDataImplToJson(
this,
);
}
@@ -181,10 +182,10 @@ abstract class _ConfirmAlipayPaymentData implements ConfirmAlipayPaymentData {
const factory _ConfirmAlipayPaymentData(
{@JsonKey(name: "payment_method") final String? paymentMethod,
@JsonKey(name: "return_url") final String? returnUrl}) =
- _$_ConfirmAlipayPaymentData;
+ _$ConfirmAlipayPaymentDataImpl;
factory _ConfirmAlipayPaymentData.fromJson(Map json) =
- _$_ConfirmAlipayPaymentData.fromJson;
+ _$ConfirmAlipayPaymentDataImpl.fromJson;
@override
@@ -200,6 +201,6 @@ abstract class _ConfirmAlipayPaymentData implements ConfirmAlipayPaymentData {
String? get returnUrl;
@override
@JsonKey(ignore: true)
- _$$_ConfirmAlipayPaymentDataCopyWith<_$_ConfirmAlipayPaymentData>
+ _$$ConfirmAlipayPaymentDataImplCopyWith<_$ConfirmAlipayPaymentDataImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart
index 445220946..c07019a0d 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_data.g.dart
@@ -6,14 +6,15 @@ part of 'confirm_alipay_payment_data.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmAlipayPaymentData _$$_ConfirmAlipayPaymentDataFromJson(Map json) =>
- _$_ConfirmAlipayPaymentData(
+_$ConfirmAlipayPaymentDataImpl _$$ConfirmAlipayPaymentDataImplFromJson(
+ Map json) =>
+ _$ConfirmAlipayPaymentDataImpl(
paymentMethod: json['payment_method'] as String?,
returnUrl: json['return_url'] as String?,
);
-Map _$$_ConfirmAlipayPaymentDataToJson(
- _$_ConfirmAlipayPaymentData instance) {
+Map _$$ConfirmAlipayPaymentDataImplToJson(
+ _$ConfirmAlipayPaymentDataImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart
index 70830a594..2ec05406f 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.freezed.dart
@@ -68,25 +68,25 @@ class _$ConfirmAlipayPaymentOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmAlipayPaymentOptionsCopyWith<$Res>
+abstract class _$$ConfirmAlipayPaymentOptionsImplCopyWith<$Res>
implements $ConfirmAlipayPaymentOptionsCopyWith<$Res> {
- factory _$$_ConfirmAlipayPaymentOptionsCopyWith(
- _$_ConfirmAlipayPaymentOptions value,
- $Res Function(_$_ConfirmAlipayPaymentOptions) then) =
- __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res>;
+ factory _$$ConfirmAlipayPaymentOptionsImplCopyWith(
+ _$ConfirmAlipayPaymentOptionsImpl value,
+ $Res Function(_$ConfirmAlipayPaymentOptionsImpl) then) =
+ __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool? handleActions});
}
/// @nodoc
-class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res>
+class __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<$Res>
extends _$ConfirmAlipayPaymentOptionsCopyWithImpl<$Res,
- _$_ConfirmAlipayPaymentOptions>
- implements _$$_ConfirmAlipayPaymentOptionsCopyWith<$Res> {
- __$$_ConfirmAlipayPaymentOptionsCopyWithImpl(
- _$_ConfirmAlipayPaymentOptions _value,
- $Res Function(_$_ConfirmAlipayPaymentOptions) _then)
+ _$ConfirmAlipayPaymentOptionsImpl>
+ implements _$$ConfirmAlipayPaymentOptionsImplCopyWith<$Res> {
+ __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl(
+ _$ConfirmAlipayPaymentOptionsImpl _value,
+ $Res Function(_$ConfirmAlipayPaymentOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -94,7 +94,7 @@ class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res>
$Res call({
Object? handleActions = freezed,
}) {
- return _then(_$_ConfirmAlipayPaymentOptions(
+ return _then(_$ConfirmAlipayPaymentOptionsImpl(
handleActions: freezed == handleActions
? _value.handleActions
: handleActions // ignore: cast_nullable_to_non_nullable
@@ -105,11 +105,13 @@ class __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions {
- const _$_ConfirmAlipayPaymentOptions({this.handleActions = true});
+class _$ConfirmAlipayPaymentOptionsImpl
+ implements _ConfirmAlipayPaymentOptions {
+ const _$ConfirmAlipayPaymentOptionsImpl({this.handleActions = true});
- factory _$_ConfirmAlipayPaymentOptions.fromJson(Map json) =>
- _$$_ConfirmAlipayPaymentOptionsFromJson(json);
+ factory _$ConfirmAlipayPaymentOptionsImpl.fromJson(
+ Map json) =>
+ _$$ConfirmAlipayPaymentOptionsImplFromJson(json);
/// Set this to false if you want to manually handle
/// the authorization redirect. Default is true.
@@ -126,7 +128,7 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmAlipayPaymentOptions &&
+ other is _$ConfirmAlipayPaymentOptionsImpl &&
(identical(other.handleActions, handleActions) ||
other.handleActions == handleActions));
}
@@ -138,13 +140,13 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmAlipayPaymentOptionsCopyWith<_$_ConfirmAlipayPaymentOptions>
- get copyWith => __$$_ConfirmAlipayPaymentOptionsCopyWithImpl<
- _$_ConfirmAlipayPaymentOptions>(this, _$identity);
+ _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl>
+ get copyWith => __$$ConfirmAlipayPaymentOptionsImplCopyWithImpl<
+ _$ConfirmAlipayPaymentOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmAlipayPaymentOptionsToJson(
+ return _$$ConfirmAlipayPaymentOptionsImplToJson(
this,
);
}
@@ -153,10 +155,10 @@ class _$_ConfirmAlipayPaymentOptions implements _ConfirmAlipayPaymentOptions {
abstract class _ConfirmAlipayPaymentOptions
implements ConfirmAlipayPaymentOptions {
const factory _ConfirmAlipayPaymentOptions({final bool? handleActions}) =
- _$_ConfirmAlipayPaymentOptions;
+ _$ConfirmAlipayPaymentOptionsImpl;
factory _ConfirmAlipayPaymentOptions.fromJson(Map json) =
- _$_ConfirmAlipayPaymentOptions.fromJson;
+ _$ConfirmAlipayPaymentOptionsImpl.fromJson;
@override
@@ -165,6 +167,6 @@ abstract class _ConfirmAlipayPaymentOptions
bool? get handleActions;
@override
@JsonKey(ignore: true)
- _$$_ConfirmAlipayPaymentOptionsCopyWith<_$_ConfirmAlipayPaymentOptions>
+ _$$ConfirmAlipayPaymentOptionsImplCopyWith<_$ConfirmAlipayPaymentOptionsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart
index ae234c54f..ef7602620 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_alipay_payment_options.g.dart
@@ -6,14 +6,14 @@ part of 'confirm_alipay_payment_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmAlipayPaymentOptions _$$_ConfirmAlipayPaymentOptionsFromJson(
+_$ConfirmAlipayPaymentOptionsImpl _$$ConfirmAlipayPaymentOptionsImplFromJson(
Map json) =>
- _$_ConfirmAlipayPaymentOptions(
+ _$ConfirmAlipayPaymentOptionsImpl(
handleActions: json['handleActions'] as bool? ?? true,
);
-Map _$$_ConfirmAlipayPaymentOptionsToJson(
- _$_ConfirmAlipayPaymentOptions instance) {
+Map _$$ConfirmAlipayPaymentOptionsImplToJson(
+ _$ConfirmAlipayPaymentOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart
index 4bd4c7da0..b9c746b2d 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.freezed.dart
@@ -165,11 +165,12 @@ class _$ConfirmCardPaymentDataCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmCardPaymentDataCopyWith<$Res>
+abstract class _$$ConfirmCardPaymentDataImplCopyWith<$Res>
implements $ConfirmCardPaymentDataCopyWith<$Res> {
- factory _$$_ConfirmCardPaymentDataCopyWith(_$_ConfirmCardPaymentData value,
- $Res Function(_$_ConfirmCardPaymentData) then) =
- __$$_ConfirmCardPaymentDataCopyWithImpl<$Res>;
+ factory _$$ConfirmCardPaymentDataImplCopyWith(
+ _$ConfirmCardPaymentDataImpl value,
+ $Res Function(_$ConfirmCardPaymentDataImpl) then) =
+ __$$ConfirmCardPaymentDataImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -188,12 +189,13 @@ abstract class _$$_ConfirmCardPaymentDataCopyWith<$Res>
}
/// @nodoc
-class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res>
+class __$$ConfirmCardPaymentDataImplCopyWithImpl<$Res>
extends _$ConfirmCardPaymentDataCopyWithImpl<$Res,
- _$_ConfirmCardPaymentData>
- implements _$$_ConfirmCardPaymentDataCopyWith<$Res> {
- __$$_ConfirmCardPaymentDataCopyWithImpl(_$_ConfirmCardPaymentData _value,
- $Res Function(_$_ConfirmCardPaymentData) _then)
+ _$ConfirmCardPaymentDataImpl>
+ implements _$$ConfirmCardPaymentDataImplCopyWith<$Res> {
+ __$$ConfirmCardPaymentDataImplCopyWithImpl(
+ _$ConfirmCardPaymentDataImpl _value,
+ $Res Function(_$ConfirmCardPaymentDataImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -206,7 +208,7 @@ class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res>
Object? setupFutureUsage = freezed,
Object? paymentMethodOptions = freezed,
}) {
- return _then(_$_ConfirmCardPaymentData(
+ return _then(_$ConfirmCardPaymentDataImpl(
paymentMethod: freezed == paymentMethod
? _value.paymentMethod
: paymentMethod // ignore: cast_nullable_to_non_nullable
@@ -237,8 +239,8 @@ class __$$_ConfirmCardPaymentDataCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData {
- const _$_ConfirmCardPaymentData(
+class _$ConfirmCardPaymentDataImpl implements _ConfirmCardPaymentData {
+ const _$ConfirmCardPaymentDataImpl(
{@paymentMethodDetailJsonKey this.paymentMethod,
this.shipping,
@JsonKey(name: "return_url") this.returnUrl,
@@ -246,8 +248,8 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData {
@JsonKey(name: "setup_future_usage") this.setupFutureUsage,
@JsonKey(name: "payment_method_options") this.paymentMethodOptions});
- factory _$_ConfirmCardPaymentData.fromJson(Map json) =>
- _$$_ConfirmCardPaymentDataFromJson(json);
+ factory _$ConfirmCardPaymentDataImpl.fromJson(Map json) =>
+ _$$ConfirmCardPaymentDataImplFromJson(json);
/// Either the id of an existing PaymentMethod, or an object containing
/// data to create a PaymentMethod with.
@@ -305,7 +307,7 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmCardPaymentData &&
+ other is _$ConfirmCardPaymentDataImpl &&
(identical(other.paymentMethod, paymentMethod) ||
other.paymentMethod == paymentMethod) &&
(identical(other.shipping, shipping) ||
@@ -334,13 +336,13 @@ class _$_ConfirmCardPaymentData implements _ConfirmCardPaymentData {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmCardPaymentDataCopyWith<_$_ConfirmCardPaymentData> get copyWith =>
- __$$_ConfirmCardPaymentDataCopyWithImpl<_$_ConfirmCardPaymentData>(
- this, _$identity);
+ _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl>
+ get copyWith => __$$ConfirmCardPaymentDataImplCopyWithImpl<
+ _$ConfirmCardPaymentDataImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmCardPaymentDataToJson(
+ return _$$ConfirmCardPaymentDataImplToJson(
this,
);
}
@@ -356,10 +358,10 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData {
@JsonKey(name: "setup_future_usage")
final PaymentIntentSetupFutureUsage? setupFutureUsage,
@JsonKey(name: "payment_method_options")
- final dynamic paymentMethodOptions}) = _$_ConfirmCardPaymentData;
+ final dynamic paymentMethodOptions}) = _$ConfirmCardPaymentDataImpl;
factory _ConfirmCardPaymentData.fromJson(Map json) =
- _$_ConfirmCardPaymentData.fromJson;
+ _$ConfirmCardPaymentDataImpl.fromJson;
@override
@@ -410,6 +412,6 @@ abstract class _ConfirmCardPaymentData implements ConfirmCardPaymentData {
dynamic get paymentMethodOptions;
@override
@JsonKey(ignore: true)
- _$$_ConfirmCardPaymentDataCopyWith<_$_ConfirmCardPaymentData> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$ConfirmCardPaymentDataImplCopyWith<_$ConfirmCardPaymentDataImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart
index 99b66093f..e138e69cb 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_data.g.dart
@@ -6,8 +6,8 @@ part of 'confirm_card_payment_data.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmCardPaymentData _$$_ConfirmCardPaymentDataFromJson(Map json) =>
- _$_ConfirmCardPaymentData(
+_$ConfirmCardPaymentDataImpl _$$ConfirmCardPaymentDataImplFromJson(Map json) =>
+ _$ConfirmCardPaymentDataImpl(
paymentMethod: json['payment_method'] == null
? null
: CardPaymentMethodDetails.fromJson(
@@ -23,8 +23,8 @@ _$_ConfirmCardPaymentData _$$_ConfirmCardPaymentDataFromJson(Map json) =>
paymentMethodOptions: json['payment_method_options'],
);
-Map _$$_ConfirmCardPaymentDataToJson(
- _$_ConfirmCardPaymentData instance) {
+Map _$$ConfirmCardPaymentDataImplToJson(
+ _$ConfirmCardPaymentDataImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart
index e39da2511..ffe838752 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.freezed.dart
@@ -67,25 +67,25 @@ class _$ConfirmCardPaymentOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmCardPaymentOptionsCopyWith<$Res>
+abstract class _$$ConfirmCardPaymentOptionsImplCopyWith<$Res>
implements $ConfirmCardPaymentOptionsCopyWith<$Res> {
- factory _$$_ConfirmCardPaymentOptionsCopyWith(
- _$_ConfirmCardPaymentOptions value,
- $Res Function(_$_ConfirmCardPaymentOptions) then) =
- __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res>;
+ factory _$$ConfirmCardPaymentOptionsImplCopyWith(
+ _$ConfirmCardPaymentOptionsImpl value,
+ $Res Function(_$ConfirmCardPaymentOptionsImpl) then) =
+ __$$ConfirmCardPaymentOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool? handleActions});
}
/// @nodoc
-class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res>
+class __$$ConfirmCardPaymentOptionsImplCopyWithImpl<$Res>
extends _$ConfirmCardPaymentOptionsCopyWithImpl<$Res,
- _$_ConfirmCardPaymentOptions>
- implements _$$_ConfirmCardPaymentOptionsCopyWith<$Res> {
- __$$_ConfirmCardPaymentOptionsCopyWithImpl(
- _$_ConfirmCardPaymentOptions _value,
- $Res Function(_$_ConfirmCardPaymentOptions) _then)
+ _$ConfirmCardPaymentOptionsImpl>
+ implements _$$ConfirmCardPaymentOptionsImplCopyWith<$Res> {
+ __$$ConfirmCardPaymentOptionsImplCopyWithImpl(
+ _$ConfirmCardPaymentOptionsImpl _value,
+ $Res Function(_$ConfirmCardPaymentOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -93,7 +93,7 @@ class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res>
$Res call({
Object? handleActions = freezed,
}) {
- return _then(_$_ConfirmCardPaymentOptions(
+ return _then(_$ConfirmCardPaymentOptionsImpl(
handleActions: freezed == handleActions
? _value.handleActions
: handleActions // ignore: cast_nullable_to_non_nullable
@@ -104,11 +104,11 @@ class __$$_ConfirmCardPaymentOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions {
- const _$_ConfirmCardPaymentOptions({this.handleActions = true});
+class _$ConfirmCardPaymentOptionsImpl implements _ConfirmCardPaymentOptions {
+ const _$ConfirmCardPaymentOptionsImpl({this.handleActions = true});
- factory _$_ConfirmCardPaymentOptions.fromJson(Map json) =>
- _$$_ConfirmCardPaymentOptionsFromJson(json);
+ factory _$ConfirmCardPaymentOptionsImpl.fromJson(Map json) =>
+ _$$ConfirmCardPaymentOptionsImplFromJson(json);
/// Set this to false if you want to handle next actions yourself,
/// or if you want to defer next action handling until later
@@ -126,7 +126,7 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmCardPaymentOptions &&
+ other is _$ConfirmCardPaymentOptionsImpl &&
(identical(other.handleActions, handleActions) ||
other.handleActions == handleActions));
}
@@ -138,13 +138,13 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmCardPaymentOptionsCopyWith<_$_ConfirmCardPaymentOptions>
- get copyWith => __$$_ConfirmCardPaymentOptionsCopyWithImpl<
- _$_ConfirmCardPaymentOptions>(this, _$identity);
+ _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl>
+ get copyWith => __$$ConfirmCardPaymentOptionsImplCopyWithImpl<
+ _$ConfirmCardPaymentOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmCardPaymentOptionsToJson(
+ return _$$ConfirmCardPaymentOptionsImplToJson(
this,
);
}
@@ -152,10 +152,10 @@ class _$_ConfirmCardPaymentOptions implements _ConfirmCardPaymentOptions {
abstract class _ConfirmCardPaymentOptions implements ConfirmCardPaymentOptions {
const factory _ConfirmCardPaymentOptions({final bool? handleActions}) =
- _$_ConfirmCardPaymentOptions;
+ _$ConfirmCardPaymentOptionsImpl;
factory _ConfirmCardPaymentOptions.fromJson(Map json) =
- _$_ConfirmCardPaymentOptions.fromJson;
+ _$ConfirmCardPaymentOptionsImpl.fromJson;
@override
@@ -165,6 +165,6 @@ abstract class _ConfirmCardPaymentOptions implements ConfirmCardPaymentOptions {
bool? get handleActions;
@override
@JsonKey(ignore: true)
- _$$_ConfirmCardPaymentOptionsCopyWith<_$_ConfirmCardPaymentOptions>
+ _$$ConfirmCardPaymentOptionsImplCopyWith<_$ConfirmCardPaymentOptionsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart
index d470c27fb..330f88c64 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_card_payment_options.g.dart
@@ -6,13 +6,14 @@ part of 'confirm_card_payment_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmCardPaymentOptions _$$_ConfirmCardPaymentOptionsFromJson(Map json) =>
- _$_ConfirmCardPaymentOptions(
+_$ConfirmCardPaymentOptionsImpl _$$ConfirmCardPaymentOptionsImplFromJson(
+ Map json) =>
+ _$ConfirmCardPaymentOptionsImpl(
handleActions: json['handleActions'] as bool? ?? true,
);
-Map _$$_ConfirmCardPaymentOptionsToJson(
- _$_ConfirmCardPaymentOptions instance) {
+Map _$$ConfirmCardPaymentOptionsImplToJson(
+ _$ConfirmCardPaymentOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart
index 588bfb322..5e149f778 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.freezed.dart
@@ -111,11 +111,12 @@ class _$ConfirmIdealPaymentDataCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmIdealPaymentDataCopyWith<$Res>
+abstract class _$$ConfirmIdealPaymentDataImplCopyWith<$Res>
implements $ConfirmIdealPaymentDataCopyWith<$Res> {
- factory _$$_ConfirmIdealPaymentDataCopyWith(_$_ConfirmIdealPaymentData value,
- $Res Function(_$_ConfirmIdealPaymentData) then) =
- __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res>;
+ factory _$$ConfirmIdealPaymentDataImplCopyWith(
+ _$ConfirmIdealPaymentDataImpl value,
+ $Res Function(_$ConfirmIdealPaymentDataImpl) then) =
+ __$$ConfirmIdealPaymentDataImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -129,12 +130,13 @@ abstract class _$$_ConfirmIdealPaymentDataCopyWith<$Res>
}
/// @nodoc
-class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res>
+class __$$ConfirmIdealPaymentDataImplCopyWithImpl<$Res>
extends _$ConfirmIdealPaymentDataCopyWithImpl<$Res,
- _$_ConfirmIdealPaymentData>
- implements _$$_ConfirmIdealPaymentDataCopyWith<$Res> {
- __$$_ConfirmIdealPaymentDataCopyWithImpl(_$_ConfirmIdealPaymentData _value,
- $Res Function(_$_ConfirmIdealPaymentData) _then)
+ _$ConfirmIdealPaymentDataImpl>
+ implements _$$ConfirmIdealPaymentDataImplCopyWith<$Res> {
+ __$$ConfirmIdealPaymentDataImplCopyWithImpl(
+ _$ConfirmIdealPaymentDataImpl _value,
+ $Res Function(_$ConfirmIdealPaymentDataImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -144,7 +146,7 @@ class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res>
Object? returnUrl = freezed,
Object? setupFutureUsage = freezed,
}) {
- return _then(_$_ConfirmIdealPaymentData(
+ return _then(_$ConfirmIdealPaymentDataImpl(
paymentMethod: freezed == paymentMethod
? _value.paymentMethod
: paymentMethod // ignore: cast_nullable_to_non_nullable
@@ -163,14 +165,14 @@ class __$$_ConfirmIdealPaymentDataCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData {
- const _$_ConfirmIdealPaymentData(
+class _$ConfirmIdealPaymentDataImpl implements _ConfirmIdealPaymentData {
+ const _$ConfirmIdealPaymentDataImpl(
{@paymentMethodDetailJsonKey this.paymentMethod,
@JsonKey(name: "return_url") this.returnUrl,
@JsonKey(name: "setup_future_usage") this.setupFutureUsage});
- factory _$_ConfirmIdealPaymentData.fromJson(Map json) =>
- _$$_ConfirmIdealPaymentDataFromJson(json);
+ factory _$ConfirmIdealPaymentDataImpl.fromJson(Map json) =>
+ _$$ConfirmIdealPaymentDataImplFromJson(json);
/// Either the id of an existing PaymentMethod, or an object containing
/// data to create a PaymentMethod with.
@@ -202,7 +204,7 @@ class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmIdealPaymentData &&
+ other is _$ConfirmIdealPaymentDataImpl &&
(identical(other.paymentMethod, paymentMethod) ||
other.paymentMethod == paymentMethod) &&
(identical(other.returnUrl, returnUrl) ||
@@ -219,14 +221,13 @@ class _$_ConfirmIdealPaymentData implements _ConfirmIdealPaymentData {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmIdealPaymentDataCopyWith<_$_ConfirmIdealPaymentData>
- get copyWith =>
- __$$_ConfirmIdealPaymentDataCopyWithImpl<_$_ConfirmIdealPaymentData>(
- this, _$identity);
+ _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl>
+ get copyWith => __$$ConfirmIdealPaymentDataImplCopyWithImpl<
+ _$ConfirmIdealPaymentDataImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmIdealPaymentDataToJson(
+ return _$$ConfirmIdealPaymentDataImplToJson(
this,
);
}
@@ -239,10 +240,10 @@ abstract class _ConfirmIdealPaymentData implements ConfirmIdealPaymentData {
@JsonKey(name: "return_url") final String? returnUrl,
@JsonKey(name: "setup_future_usage")
final PaymentIntentSetupFutureUsage? setupFutureUsage}) =
- _$_ConfirmIdealPaymentData;
+ _$ConfirmIdealPaymentDataImpl;
factory _ConfirmIdealPaymentData.fromJson(Map json) =
- _$_ConfirmIdealPaymentData.fromJson;
+ _$ConfirmIdealPaymentDataImpl.fromJson;
@override
@@ -267,6 +268,6 @@ abstract class _ConfirmIdealPaymentData implements ConfirmIdealPaymentData {
PaymentIntentSetupFutureUsage? get setupFutureUsage;
@override
@JsonKey(ignore: true)
- _$$_ConfirmIdealPaymentDataCopyWith<_$_ConfirmIdealPaymentData>
+ _$$ConfirmIdealPaymentDataImplCopyWith<_$ConfirmIdealPaymentDataImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart
index 0be184805..b8463f328 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_data.g.dart
@@ -6,8 +6,9 @@ part of 'confirm_ideal_payment_data.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmIdealPaymentData _$$_ConfirmIdealPaymentDataFromJson(Map json) =>
- _$_ConfirmIdealPaymentData(
+_$ConfirmIdealPaymentDataImpl _$$ConfirmIdealPaymentDataImplFromJson(
+ Map json) =>
+ _$ConfirmIdealPaymentDataImpl(
paymentMethod: json['payment_method'] == null
? null
: IdealPaymentMethodDetails.fromJson(
@@ -17,8 +18,8 @@ _$_ConfirmIdealPaymentData _$$_ConfirmIdealPaymentDataFromJson(Map json) =>
_$PaymentIntentSetupFutureUsageEnumMap, json['setup_future_usage']),
);
-Map _$$_ConfirmIdealPaymentDataToJson(
- _$_ConfirmIdealPaymentData instance) {
+Map _$$ConfirmIdealPaymentDataImplToJson(
+ _$ConfirmIdealPaymentDataImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart
index 972c40cbc..964dd47b7 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.freezed.dart
@@ -67,25 +67,25 @@ class _$ConfirmIdealPaymentOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmIdealPaymentOptionsCopyWith<$Res>
+abstract class _$$ConfirmIdealPaymentOptionsImplCopyWith<$Res>
implements $ConfirmIdealPaymentOptionsCopyWith<$Res> {
- factory _$$_ConfirmIdealPaymentOptionsCopyWith(
- _$_ConfirmIdealPaymentOptions value,
- $Res Function(_$_ConfirmIdealPaymentOptions) then) =
- __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res>;
+ factory _$$ConfirmIdealPaymentOptionsImplCopyWith(
+ _$ConfirmIdealPaymentOptionsImpl value,
+ $Res Function(_$ConfirmIdealPaymentOptionsImpl) then) =
+ __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool? handleActions});
}
/// @nodoc
-class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res>
+class __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<$Res>
extends _$ConfirmIdealPaymentOptionsCopyWithImpl<$Res,
- _$_ConfirmIdealPaymentOptions>
- implements _$$_ConfirmIdealPaymentOptionsCopyWith<$Res> {
- __$$_ConfirmIdealPaymentOptionsCopyWithImpl(
- _$_ConfirmIdealPaymentOptions _value,
- $Res Function(_$_ConfirmIdealPaymentOptions) _then)
+ _$ConfirmIdealPaymentOptionsImpl>
+ implements _$$ConfirmIdealPaymentOptionsImplCopyWith<$Res> {
+ __$$ConfirmIdealPaymentOptionsImplCopyWithImpl(
+ _$ConfirmIdealPaymentOptionsImpl _value,
+ $Res Function(_$ConfirmIdealPaymentOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -93,7 +93,7 @@ class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res>
$Res call({
Object? handleActions = freezed,
}) {
- return _then(_$_ConfirmIdealPaymentOptions(
+ return _then(_$ConfirmIdealPaymentOptionsImpl(
handleActions: freezed == handleActions
? _value.handleActions
: handleActions // ignore: cast_nullable_to_non_nullable
@@ -104,11 +104,12 @@ class __$$_ConfirmIdealPaymentOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions {
- const _$_ConfirmIdealPaymentOptions({this.handleActions = true});
+class _$ConfirmIdealPaymentOptionsImpl implements _ConfirmIdealPaymentOptions {
+ const _$ConfirmIdealPaymentOptionsImpl({this.handleActions = true});
- factory _$_ConfirmIdealPaymentOptions.fromJson(Map json) =>
- _$$_ConfirmIdealPaymentOptionsFromJson(json);
+ factory _$ConfirmIdealPaymentOptionsImpl.fromJson(
+ Map json) =>
+ _$$ConfirmIdealPaymentOptionsImplFromJson(json);
/// Set this to false if you want to manually handle
/// the authorization redirect. Default is true.
@@ -125,7 +126,7 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmIdealPaymentOptions &&
+ other is _$ConfirmIdealPaymentOptionsImpl &&
(identical(other.handleActions, handleActions) ||
other.handleActions == handleActions));
}
@@ -137,13 +138,13 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmIdealPaymentOptionsCopyWith<_$_ConfirmIdealPaymentOptions>
- get copyWith => __$$_ConfirmIdealPaymentOptionsCopyWithImpl<
- _$_ConfirmIdealPaymentOptions>(this, _$identity);
+ _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl>
+ get copyWith => __$$ConfirmIdealPaymentOptionsImplCopyWithImpl<
+ _$ConfirmIdealPaymentOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmIdealPaymentOptionsToJson(
+ return _$$ConfirmIdealPaymentOptionsImplToJson(
this,
);
}
@@ -152,10 +153,10 @@ class _$_ConfirmIdealPaymentOptions implements _ConfirmIdealPaymentOptions {
abstract class _ConfirmIdealPaymentOptions
implements ConfirmIdealPaymentOptions {
const factory _ConfirmIdealPaymentOptions({final bool? handleActions}) =
- _$_ConfirmIdealPaymentOptions;
+ _$ConfirmIdealPaymentOptionsImpl;
factory _ConfirmIdealPaymentOptions.fromJson(Map json) =
- _$_ConfirmIdealPaymentOptions.fromJson;
+ _$ConfirmIdealPaymentOptionsImpl.fromJson;
@override
@@ -164,6 +165,6 @@ abstract class _ConfirmIdealPaymentOptions
bool? get handleActions;
@override
@JsonKey(ignore: true)
- _$$_ConfirmIdealPaymentOptionsCopyWith<_$_ConfirmIdealPaymentOptions>
+ _$$ConfirmIdealPaymentOptionsImplCopyWith<_$ConfirmIdealPaymentOptionsImpl>
get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart
index 6f0e30a07..b9acbf656 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_ideal_payment_options.g.dart
@@ -6,14 +6,14 @@ part of 'confirm_ideal_payment_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmIdealPaymentOptions _$$_ConfirmIdealPaymentOptionsFromJson(
+_$ConfirmIdealPaymentOptionsImpl _$$ConfirmIdealPaymentOptionsImplFromJson(
Map json) =>
- _$_ConfirmIdealPaymentOptions(
+ _$ConfirmIdealPaymentOptionsImpl(
handleActions: json['handleActions'] as bool? ?? true,
);
-Map _$$_ConfirmIdealPaymentOptionsToJson(
- _$_ConfirmIdealPaymentOptions instance) {
+Map _$$ConfirmIdealPaymentOptionsImplToJson(
+ _$ConfirmIdealPaymentOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart
index a2b346952..6f11f938b 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.freezed.dart
@@ -106,11 +106,12 @@ class _$ConfirmPaymentOptionsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmPaymentOptionsCopyWith<$Res>
+abstract class _$$ConfirmPaymentOptionsImplCopyWith<$Res>
implements $ConfirmPaymentOptionsCopyWith<$Res> {
- factory _$$_ConfirmPaymentOptionsCopyWith(_$_ConfirmPaymentOptions value,
- $Res Function(_$_ConfirmPaymentOptions) then) =
- __$$_ConfirmPaymentOptionsCopyWithImpl<$Res>;
+ factory _$$ConfirmPaymentOptionsImplCopyWith(
+ _$ConfirmPaymentOptionsImpl value,
+ $Res Function(_$ConfirmPaymentOptionsImpl) then) =
+ __$$ConfirmPaymentOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -123,11 +124,12 @@ abstract class _$$_ConfirmPaymentOptionsCopyWith<$Res>
}
/// @nodoc
-class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res>
- extends _$ConfirmPaymentOptionsCopyWithImpl<$Res, _$_ConfirmPaymentOptions>
- implements _$$_ConfirmPaymentOptionsCopyWith<$Res> {
- __$$_ConfirmPaymentOptionsCopyWithImpl(_$_ConfirmPaymentOptions _value,
- $Res Function(_$_ConfirmPaymentOptions) _then)
+class __$$ConfirmPaymentOptionsImplCopyWithImpl<$Res>
+ extends _$ConfirmPaymentOptionsCopyWithImpl<$Res,
+ _$ConfirmPaymentOptionsImpl>
+ implements _$$ConfirmPaymentOptionsImplCopyWith<$Res> {
+ __$$ConfirmPaymentOptionsImplCopyWithImpl(_$ConfirmPaymentOptionsImpl _value,
+ $Res Function(_$ConfirmPaymentOptionsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -137,7 +139,7 @@ class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res>
Object? confirmParams = null,
Object? redirect = freezed,
}) {
- return _then(_$_ConfirmPaymentOptions(
+ return _then(_$ConfirmPaymentOptionsImpl(
elements: null == elements
? _value.elements
: elements // ignore: cast_nullable_to_non_nullable
@@ -156,14 +158,14 @@ class __$$_ConfirmPaymentOptionsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions {
- const _$_ConfirmPaymentOptions(
+class _$ConfirmPaymentOptionsImpl implements _ConfirmPaymentOptions {
+ const _$ConfirmPaymentOptionsImpl(
{@ElementsConverter() required this.elements,
required this.confirmParams,
this.redirect});
- factory _$_ConfirmPaymentOptions.fromJson(Map json) =>
- _$$_ConfirmPaymentOptionsFromJson(json);
+ factory _$ConfirmPaymentOptionsImpl.fromJson(Map json) =>
+ _$$ConfirmPaymentOptionsImplFromJson(json);
/// The Elements instance that was used to create the Payment Element.
@override
@@ -197,7 +199,7 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmPaymentOptions &&
+ other is _$ConfirmPaymentOptionsImpl &&
(identical(other.elements, elements) ||
other.elements == elements) &&
(identical(other.confirmParams, confirmParams) ||
@@ -214,13 +216,13 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmPaymentOptionsCopyWith<_$_ConfirmPaymentOptions> get copyWith =>
- __$$_ConfirmPaymentOptionsCopyWithImpl<_$_ConfirmPaymentOptions>(
- this, _$identity);
+ _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl>
+ get copyWith => __$$ConfirmPaymentOptionsImplCopyWithImpl<
+ _$ConfirmPaymentOptionsImpl>(this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmPaymentOptionsToJson(
+ return _$$ConfirmPaymentOptionsImplToJson(
this,
);
}
@@ -228,12 +230,13 @@ class _$_ConfirmPaymentOptions implements _ConfirmPaymentOptions {
abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions {
const factory _ConfirmPaymentOptions(
- {@ElementsConverter() required final Elements elements,
- required final ConfirmPaymentParams confirmParams,
- final PaymentConfirmationRedirect? redirect}) = _$_ConfirmPaymentOptions;
+ {@ElementsConverter() required final Elements elements,
+ required final ConfirmPaymentParams confirmParams,
+ final PaymentConfirmationRedirect? redirect}) =
+ _$ConfirmPaymentOptionsImpl;
factory _ConfirmPaymentOptions.fromJson(Map json) =
- _$_ConfirmPaymentOptions.fromJson;
+ _$ConfirmPaymentOptionsImpl.fromJson;
@override
@@ -260,8 +263,8 @@ abstract class _ConfirmPaymentOptions implements ConfirmPaymentOptions {
PaymentConfirmationRedirect? get redirect;
@override
@JsonKey(ignore: true)
- _$$_ConfirmPaymentOptionsCopyWith<_$_ConfirmPaymentOptions> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$ConfirmPaymentOptionsImplCopyWith<_$ConfirmPaymentOptionsImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
ConfirmPaymentParams _$ConfirmPaymentParamsFromJson(Map json) {
@@ -314,22 +317,22 @@ class _$ConfirmPaymentParamsCopyWithImpl<$Res,
}
/// @nodoc
-abstract class _$$_ConfirmPaymentParamsCopyWith<$Res>
+abstract class _$$ConfirmPaymentParamsImplCopyWith<$Res>
implements $ConfirmPaymentParamsCopyWith<$Res> {
- factory _$$_ConfirmPaymentParamsCopyWith(_$_ConfirmPaymentParams value,
- $Res Function(_$_ConfirmPaymentParams) then) =
- __$$_ConfirmPaymentParamsCopyWithImpl<$Res>;
+ factory _$$ConfirmPaymentParamsImplCopyWith(_$ConfirmPaymentParamsImpl value,
+ $Res Function(_$ConfirmPaymentParamsImpl) then) =
+ __$$ConfirmPaymentParamsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String return_url});
}
/// @nodoc
-class __$$_ConfirmPaymentParamsCopyWithImpl<$Res>
- extends _$ConfirmPaymentParamsCopyWithImpl<$Res, _$_ConfirmPaymentParams>
- implements _$$_ConfirmPaymentParamsCopyWith<$Res> {
- __$$_ConfirmPaymentParamsCopyWithImpl(_$_ConfirmPaymentParams _value,
- $Res Function(_$_ConfirmPaymentParams) _then)
+class __$$ConfirmPaymentParamsImplCopyWithImpl<$Res>
+ extends _$ConfirmPaymentParamsCopyWithImpl<$Res, _$ConfirmPaymentParamsImpl>
+ implements _$$ConfirmPaymentParamsImplCopyWith<$Res> {
+ __$$ConfirmPaymentParamsImplCopyWithImpl(_$ConfirmPaymentParamsImpl _value,
+ $Res Function(_$ConfirmPaymentParamsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@@ -337,7 +340,7 @@ class __$$_ConfirmPaymentParamsCopyWithImpl<$Res>
$Res call({
Object? return_url = null,
}) {
- return _then(_$_ConfirmPaymentParams(
+ return _then(_$ConfirmPaymentParamsImpl(
return_url: null == return_url
? _value.return_url
: return_url // ignore: cast_nullable_to_non_nullable
@@ -348,11 +351,11 @@ class __$$_ConfirmPaymentParamsCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
-class _$_ConfirmPaymentParams implements _ConfirmPaymentParams {
- const _$_ConfirmPaymentParams({required this.return_url});
+class _$ConfirmPaymentParamsImpl implements _ConfirmPaymentParams {
+ const _$ConfirmPaymentParamsImpl({required this.return_url});
- factory _$_ConfirmPaymentParams.fromJson(Map json) =>
- _$$_ConfirmPaymentParamsFromJson(json);
+ factory _$ConfirmPaymentParamsImpl.fromJson(Map json) =>
+ _$$ConfirmPaymentParamsImplFromJson(json);
/// The url your customer will be directed to after they complete payment.
@override
@@ -367,7 +370,7 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$_ConfirmPaymentParams &&
+ other is _$ConfirmPaymentParamsImpl &&
(identical(other.return_url, return_url) ||
other.return_url == return_url));
}
@@ -379,13 +382,14 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$_ConfirmPaymentParamsCopyWith<_$_ConfirmPaymentParams> get copyWith =>
- __$$_ConfirmPaymentParamsCopyWithImpl<_$_ConfirmPaymentParams>(
- this, _$identity);
+ _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl>
+ get copyWith =>
+ __$$ConfirmPaymentParamsImplCopyWithImpl<_$ConfirmPaymentParamsImpl>(
+ this, _$identity);
@override
Map toJson() {
- return _$$_ConfirmPaymentParamsToJson(
+ return _$$ConfirmPaymentParamsImplToJson(
this,
);
}
@@ -393,10 +397,10 @@ class _$_ConfirmPaymentParams implements _ConfirmPaymentParams {
abstract class _ConfirmPaymentParams implements ConfirmPaymentParams {
const factory _ConfirmPaymentParams({required final String return_url}) =
- _$_ConfirmPaymentParams;
+ _$ConfirmPaymentParamsImpl;
factory _ConfirmPaymentParams.fromJson(Map json) =
- _$_ConfirmPaymentParams.fromJson;
+ _$ConfirmPaymentParamsImpl.fromJson;
@override
@@ -404,6 +408,6 @@ abstract class _ConfirmPaymentParams implements ConfirmPaymentParams {
String get return_url;
@override
@JsonKey(ignore: true)
- _$$_ConfirmPaymentParamsCopyWith<_$_ConfirmPaymentParams> get copyWith =>
- throw _privateConstructorUsedError;
+ _$$ConfirmPaymentParamsImplCopyWith<_$ConfirmPaymentParamsImpl>
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart
index 8c76a1250..a1718bdd0 100644
--- a/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart
+++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_payment_options.g.dart
@@ -6,8 +6,8 @@ part of 'confirm_payment_options.dart';
// JsonSerializableGenerator
// **************************************************************************
-_$_ConfirmPaymentOptions _$$_ConfirmPaymentOptionsFromJson(Map json) =>
- _$_ConfirmPaymentOptions(
+_$ConfirmPaymentOptionsImpl _$$ConfirmPaymentOptionsImplFromJson(Map json) =>
+ _$ConfirmPaymentOptionsImpl(
elements: const ElementsConverter().fromJson(json['elements']),
confirmParams: ConfirmPaymentParams.fromJson(
Map.from(json['confirmParams'] as Map)),
@@ -15,8 +15,8 @@ _$_ConfirmPaymentOptions _$$_ConfirmPaymentOptionsFromJson(Map json) =>
_$PaymentConfirmationRedirectEnumMap, json['redirect']),
);
-Map _$$_ConfirmPaymentOptionsToJson(
- _$_ConfirmPaymentOptions instance) {
+Map _$$ConfirmPaymentOptionsImplToJson(
+ _$ConfirmPaymentOptionsImpl instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
@@ -37,13 +37,13 @@ const _$PaymentConfirmationRedirectEnumMap = {
PaymentConfirmationRedirect.ifRequired: 'if_required',
};
-_$_ConfirmPaymentParams _$$_ConfirmPaymentParamsFromJson(Map json) =>
- _$_ConfirmPaymentParams(
+_$ConfirmPaymentParamsImpl _$$ConfirmPaymentParamsImplFromJson(Map json) =>
+ _$ConfirmPaymentParamsImpl(
return_url: json['return_url'] as String,
);
-Map _$$_ConfirmPaymentParamsToJson(
- _$_ConfirmPaymentParams instance) =>
+Map _$$ConfirmPaymentParamsImplToJson(
+ _$ConfirmPaymentParamsImpl instance) =>