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) => { 'return_url': instance.return_url, }; diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart index 3c3ef4dec..d80d048f4 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.freezed.dart @@ -103,12 +103,12 @@ class _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> +abstract class _$$ConfirmSepaDebitPaymentDataImplCopyWith<$Res> implements $ConfirmSepaDebitPaymentDataCopyWith<$Res> { - factory _$$_ConfirmSepaDebitPaymentDataCopyWith( - _$_ConfirmSepaDebitPaymentData value, - $Res Function(_$_ConfirmSepaDebitPaymentData) then) = - __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res>; + factory _$$ConfirmSepaDebitPaymentDataImplCopyWith( + _$ConfirmSepaDebitPaymentDataImpl value, + $Res Function(_$ConfirmSepaDebitPaymentDataImpl) then) = + __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -121,13 +121,13 @@ abstract class _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> +class __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl<$Res> extends _$ConfirmSepaDebitPaymentDataCopyWithImpl<$Res, - _$_ConfirmSepaDebitPaymentData> - implements _$$_ConfirmSepaDebitPaymentDataCopyWith<$Res> { - __$$_ConfirmSepaDebitPaymentDataCopyWithImpl( - _$_ConfirmSepaDebitPaymentData _value, - $Res Function(_$_ConfirmSepaDebitPaymentData) _then) + _$ConfirmSepaDebitPaymentDataImpl> + implements _$$ConfirmSepaDebitPaymentDataImplCopyWith<$Res> { + __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl( + _$ConfirmSepaDebitPaymentDataImpl _value, + $Res Function(_$ConfirmSepaDebitPaymentDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -136,7 +136,7 @@ class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? setupFutureUsage = freezed, }) { - return _then(_$_ConfirmSepaDebitPaymentData( + return _then(_$ConfirmSepaDebitPaymentDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -151,13 +151,15 @@ class __$$_ConfirmSepaDebitPaymentDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { - const _$_ConfirmSepaDebitPaymentData( +class _$ConfirmSepaDebitPaymentDataImpl + implements _ConfirmSepaDebitPaymentData { + const _$ConfirmSepaDebitPaymentDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, @JsonKey(name: "setup_future_usage") this.setupFutureUsage}); - factory _$_ConfirmSepaDebitPaymentData.fromJson(Map json) => - _$$_ConfirmSepaDebitPaymentDataFromJson(json); + factory _$ConfirmSepaDebitPaymentDataImpl.fromJson( + Map json) => + _$$ConfirmSepaDebitPaymentDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -184,7 +186,7 @@ class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmSepaDebitPaymentData && + other is _$ConfirmSepaDebitPaymentDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.setupFutureUsage, setupFutureUsage) || @@ -198,13 +200,13 @@ class _$_ConfirmSepaDebitPaymentData implements _ConfirmSepaDebitPaymentData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmSepaDebitPaymentDataCopyWith<_$_ConfirmSepaDebitPaymentData> - get copyWith => __$$_ConfirmSepaDebitPaymentDataCopyWithImpl< - _$_ConfirmSepaDebitPaymentData>(this, _$identity); + _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> + get copyWith => __$$ConfirmSepaDebitPaymentDataImplCopyWithImpl< + _$ConfirmSepaDebitPaymentDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmSepaDebitPaymentDataToJson( + return _$$ConfirmSepaDebitPaymentDataImplToJson( this, ); } @@ -217,10 +219,10 @@ abstract class _ConfirmSepaDebitPaymentData final SepaDebitPaymentMethodDetails? paymentMethod, @JsonKey(name: "setup_future_usage") final PaymentIntentSetupFutureUsage? setupFutureUsage}) = - _$_ConfirmSepaDebitPaymentData; + _$ConfirmSepaDebitPaymentDataImpl; factory _ConfirmSepaDebitPaymentData.fromJson(Map json) = - _$_ConfirmSepaDebitPaymentData.fromJson; + _$ConfirmSepaDebitPaymentDataImpl.fromJson; @override @@ -240,7 +242,7 @@ abstract class _ConfirmSepaDebitPaymentData PaymentIntentSetupFutureUsage? get setupFutureUsage; @override @JsonKey(ignore: true) - _$$_ConfirmSepaDebitPaymentDataCopyWith<_$_ConfirmSepaDebitPaymentData> + _$$ConfirmSepaDebitPaymentDataImplCopyWith<_$ConfirmSepaDebitPaymentDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -359,23 +361,23 @@ class _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_IdSepaDebitPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdSepaDebitPaymentMethodDetailsCopyWith( - _$_IdSepaDebitPaymentMethodDetails value, - $Res Function(_$_IdSepaDebitPaymentMethodDetails) then) = - __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdSepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdSepaDebitPaymentMethodDetailsImplCopyWith( + _$IdSepaDebitPaymentMethodDetailsImpl value, + $Res Function(_$IdSepaDebitPaymentMethodDetailsImpl) then) = + __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdSepaDebitPaymentMethodDetails> - implements _$$_IdSepaDebitPaymentMethodDetailsCopyWith<$Res> { - __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl( - _$_IdSepaDebitPaymentMethodDetails _value, - $Res Function(_$_IdSepaDebitPaymentMethodDetails) _then) + _$IdSepaDebitPaymentMethodDetailsImpl> + implements _$$IdSepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl( + _$IdSepaDebitPaymentMethodDetailsImpl _value, + $Res Function(_$IdSepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -383,7 +385,7 @@ class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_IdSepaDebitPaymentMethodDetails( + return _then(_$IdSepaDebitPaymentMethodDetailsImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -394,14 +396,14 @@ class __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdSepaDebitPaymentMethodDetails +class _$IdSepaDebitPaymentMethodDetailsImpl implements _IdSepaDebitPaymentMethodDetails { - const _$_IdSepaDebitPaymentMethodDetails(this.id, {final String? $type}) + const _$IdSepaDebitPaymentMethodDetailsImpl(this.id, {final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_IdSepaDebitPaymentMethodDetails.fromJson( + factory _$IdSepaDebitPaymentMethodDetailsImpl.fromJson( Map json) => - _$$_IdSepaDebitPaymentMethodDetailsFromJson(json); + _$$IdSepaDebitPaymentMethodDetailsImplFromJson(json); @override final String id; @@ -418,7 +420,7 @@ class _$_IdSepaDebitPaymentMethodDetails bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdSepaDebitPaymentMethodDetails && + other is _$IdSepaDebitPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } @@ -429,10 +431,10 @@ class _$_IdSepaDebitPaymentMethodDetails @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdSepaDebitPaymentMethodDetailsCopyWith< - _$_IdSepaDebitPaymentMethodDetails> - get copyWith => __$$_IdSepaDebitPaymentMethodDetailsCopyWithImpl< - _$_IdSepaDebitPaymentMethodDetails>(this, _$identity); + _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< + _$IdSepaDebitPaymentMethodDetailsImpl> + get copyWith => __$$IdSepaDebitPaymentMethodDetailsImplCopyWithImpl< + _$IdSepaDebitPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -529,7 +531,7 @@ class _$_IdSepaDebitPaymentMethodDetails @override Map toJson() { - return _$$_IdSepaDebitPaymentMethodDetailsToJson( + return _$$IdSepaDebitPaymentMethodDetailsImplToJson( this, ); } @@ -538,24 +540,24 @@ class _$_IdSepaDebitPaymentMethodDetails abstract class _IdSepaDebitPaymentMethodDetails implements SepaDebitPaymentMethodDetails, IdPaymentMethodDetails { const factory _IdSepaDebitPaymentMethodDetails(final String id) = - _$_IdSepaDebitPaymentMethodDetails; + _$IdSepaDebitPaymentMethodDetailsImpl; factory _IdSepaDebitPaymentMethodDetails.fromJson(Map json) = - _$_IdSepaDebitPaymentMethodDetails.fromJson; + _$IdSepaDebitPaymentMethodDetailsImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_IdSepaDebitPaymentMethodDetailsCopyWith< - _$_IdSepaDebitPaymentMethodDetails> + _$$IdSepaDebitPaymentMethodDetailsImplCopyWith< + _$IdSepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { - factory _$$_SepaDebitPaymentMethodDetailsCopyWith( - _$_SepaDebitPaymentMethodDetails value, - $Res Function(_$_SepaDebitPaymentMethodDetails) then) = - __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$SepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$SepaDebitPaymentMethodDetailsImplCopyWith( + _$SepaDebitPaymentMethodDetailsImpl value, + $Res Function(_$SepaDebitPaymentMethodDetailsImpl) then) = + __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call( {@JsonKey(name: "sepa_debit") @ElementConverter() Element sepaDebit, @@ -565,13 +567,13 @@ abstract class _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> +class __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_SepaDebitPaymentMethodDetails> - implements _$$_SepaDebitPaymentMethodDetailsCopyWith<$Res> { - __$$_SepaDebitPaymentMethodDetailsCopyWithImpl( - _$_SepaDebitPaymentMethodDetails _value, - $Res Function(_$_SepaDebitPaymentMethodDetails) _then) + _$SepaDebitPaymentMethodDetailsImpl> + implements _$$SepaDebitPaymentMethodDetailsImplCopyWith<$Res> { + __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl( + _$SepaDebitPaymentMethodDetailsImpl _value, + $Res Function(_$SepaDebitPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -580,7 +582,7 @@ class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> Object? sepaDebit = null, Object? billingDetails = freezed, }) { - return _then(_$_SepaDebitPaymentMethodDetails( + return _then(_$SepaDebitPaymentMethodDetailsImpl( sepaDebit: null == sepaDebit ? _value.sepaDebit : sepaDebit // ignore: cast_nullable_to_non_nullable @@ -607,17 +609,17 @@ class __$$_SepaDebitPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitPaymentMethodDetails +class _$SepaDebitPaymentMethodDetailsImpl implements _SepaDebitPaymentMethodDetails { - const _$_SepaDebitPaymentMethodDetails( + const _$SepaDebitPaymentMethodDetailsImpl( {@JsonKey(name: "sepa_debit") @ElementConverter() required this.sepaDebit, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_SepaDebitPaymentMethodDetails.fromJson( + factory _$SepaDebitPaymentMethodDetailsImpl.fromJson( Map json) => - _$$_SepaDebitPaymentMethodDetailsFromJson(json); + _$$SepaDebitPaymentMethodDetailsImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -642,7 +644,7 @@ class _$_SepaDebitPaymentMethodDetails bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitPaymentMethodDetails && + other is _$SepaDebitPaymentMethodDetailsImpl && (identical(other.sepaDebit, sepaDebit) || other.sepaDebit == sepaDebit) && (identical(other.billingDetails, billingDetails) || @@ -656,9 +658,10 @@ class _$_SepaDebitPaymentMethodDetails @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitPaymentMethodDetailsCopyWith<_$_SepaDebitPaymentMethodDetails> - get copyWith => __$$_SepaDebitPaymentMethodDetailsCopyWithImpl< - _$_SepaDebitPaymentMethodDetails>(this, _$identity); + _$$SepaDebitPaymentMethodDetailsImplCopyWith< + _$SepaDebitPaymentMethodDetailsImpl> + get copyWith => __$$SepaDebitPaymentMethodDetailsImplCopyWithImpl< + _$SepaDebitPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -755,7 +758,7 @@ class _$_SepaDebitPaymentMethodDetails @override Map toJson() { - return _$$_SepaDebitPaymentMethodDetailsToJson( + return _$$SepaDebitPaymentMethodDetailsImplToJson( this, ); } @@ -769,10 +772,10 @@ abstract class _SepaDebitPaymentMethodDetails required final Element sepaDebit, @JsonKey(name: "billing_details") final SepaBillingDetails? billingDetails}) = - _$_SepaDebitPaymentMethodDetails; + _$SepaDebitPaymentMethodDetailsImpl; factory _SepaDebitPaymentMethodDetails.fromJson(Map json) = - _$_SepaDebitPaymentMethodDetails.fromJson; + _$SepaDebitPaymentMethodDetailsImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @JsonKey(name: "sepa_debit") @@ -783,16 +786,17 @@ abstract class _SepaDebitPaymentMethodDetails @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_SepaDebitPaymentMethodDetailsCopyWith<_$_SepaDebitPaymentMethodDetails> + _$$SepaDebitPaymentMethodDetailsImplCopyWith< + _$SepaDebitPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { - factory _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith( - _$_SepaDebitPaymentMethodDetailsWithIban value, - $Res Function(_$_SepaDebitPaymentMethodDetailsWithIban) then) = - __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res>; +abstract class _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith<$Res> { + factory _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith( + _$SepaDebitPaymentMethodDetailsWithIbanImpl value, + $Res Function(_$SepaDebitPaymentMethodDetailsWithIbanImpl) then) = + __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res>; @useResult $Res call( {@JsonKey(name: "sepa_debit") SepaDebitIbanData sepaDebit, @@ -803,13 +807,13 @@ abstract class _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> +class __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl<$Res> extends _$SepaDebitPaymentMethodDetailsCopyWithImpl<$Res, - _$_SepaDebitPaymentMethodDetailsWithIban> - implements _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith<$Res> { - __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl( - _$_SepaDebitPaymentMethodDetailsWithIban _value, - $Res Function(_$_SepaDebitPaymentMethodDetailsWithIban) _then) + _$SepaDebitPaymentMethodDetailsWithIbanImpl> + implements _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith<$Res> { + __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl( + _$SepaDebitPaymentMethodDetailsWithIbanImpl _value, + $Res Function(_$SepaDebitPaymentMethodDetailsWithIbanImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -818,7 +822,7 @@ class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> Object? sepaDebit = null, Object? billingDetails = freezed, }) { - return _then(_$_SepaDebitPaymentMethodDetailsWithIban( + return _then(_$SepaDebitPaymentMethodDetailsWithIbanImpl( sepaDebit: null == sepaDebit ? _value.sepaDebit : sepaDebit // ignore: cast_nullable_to_non_nullable @@ -853,17 +857,17 @@ class __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitPaymentMethodDetailsWithIban +class _$SepaDebitPaymentMethodDetailsWithIbanImpl implements _SepaDebitPaymentMethodDetailsWithIban { - const _$_SepaDebitPaymentMethodDetailsWithIban( + const _$SepaDebitPaymentMethodDetailsWithIbanImpl( {@JsonKey(name: "sepa_debit") required this.sepaDebit, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'sepa_debit'; - factory _$_SepaDebitPaymentMethodDetailsWithIban.fromJson( + factory _$SepaDebitPaymentMethodDetailsWithIbanImpl.fromJson( Map json) => - _$$_SepaDebitPaymentMethodDetailsWithIbanFromJson(json); + _$$SepaDebitPaymentMethodDetailsWithIbanImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -887,7 +891,7 @@ class _$_SepaDebitPaymentMethodDetailsWithIban bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitPaymentMethodDetailsWithIban && + other is _$SepaDebitPaymentMethodDetailsWithIbanImpl && (identical(other.sepaDebit, sepaDebit) || other.sepaDebit == sepaDebit) && (identical(other.billingDetails, billingDetails) || @@ -901,10 +905,10 @@ class _$_SepaDebitPaymentMethodDetailsWithIban @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith< - _$_SepaDebitPaymentMethodDetailsWithIban> - get copyWith => __$$_SepaDebitPaymentMethodDetailsWithIbanCopyWithImpl< - _$_SepaDebitPaymentMethodDetailsWithIban>(this, _$identity); + _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< + _$SepaDebitPaymentMethodDetailsWithIbanImpl> + get copyWith => __$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWithImpl< + _$SepaDebitPaymentMethodDetailsWithIbanImpl>(this, _$identity); @override @optionalTypeArgs @@ -1001,7 +1005,7 @@ class _$_SepaDebitPaymentMethodDetailsWithIban @override Map toJson() { - return _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( + return _$$SepaDebitPaymentMethodDetailsWithIbanImplToJson( this, ); } @@ -1013,11 +1017,11 @@ abstract class _SepaDebitPaymentMethodDetailsWithIban {@JsonKey(name: "sepa_debit") required final SepaDebitIbanData sepaDebit, @JsonKey(name: "billing_details") final SepaBillingDetails? - billingDetails}) = _$_SepaDebitPaymentMethodDetailsWithIban; + billingDetails}) = _$SepaDebitPaymentMethodDetailsWithIbanImpl; factory _SepaDebitPaymentMethodDetailsWithIban.fromJson( Map json) = - _$_SepaDebitPaymentMethodDetailsWithIban.fromJson; + _$SepaDebitPaymentMethodDetailsWithIbanImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @JsonKey(name: "sepa_debit") @@ -1027,8 +1031,8 @@ abstract class _SepaDebitPaymentMethodDetailsWithIban @JsonKey(name: "billing_details") SepaBillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_SepaDebitPaymentMethodDetailsWithIbanCopyWith< - _$_SepaDebitPaymentMethodDetailsWithIban> + _$$SepaDebitPaymentMethodDetailsWithIbanImplCopyWith< + _$SepaDebitPaymentMethodDetailsWithIbanImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1081,22 +1085,22 @@ class _$SepaDebitIbanDataCopyWithImpl<$Res, $Val extends SepaDebitIbanData> } /// @nodoc -abstract class _$$_SepaDebitIbanDataCopyWith<$Res> +abstract class _$$SepaDebitIbanDataImplCopyWith<$Res> implements $SepaDebitIbanDataCopyWith<$Res> { - factory _$$_SepaDebitIbanDataCopyWith(_$_SepaDebitIbanData value, - $Res Function(_$_SepaDebitIbanData) then) = - __$$_SepaDebitIbanDataCopyWithImpl<$Res>; + factory _$$SepaDebitIbanDataImplCopyWith(_$SepaDebitIbanDataImpl value, + $Res Function(_$SepaDebitIbanDataImpl) then) = + __$$SepaDebitIbanDataImplCopyWithImpl<$Res>; @override @useResult $Res call({String iban}); } /// @nodoc -class __$$_SepaDebitIbanDataCopyWithImpl<$Res> - extends _$SepaDebitIbanDataCopyWithImpl<$Res, _$_SepaDebitIbanData> - implements _$$_SepaDebitIbanDataCopyWith<$Res> { - __$$_SepaDebitIbanDataCopyWithImpl( - _$_SepaDebitIbanData _value, $Res Function(_$_SepaDebitIbanData) _then) +class __$$SepaDebitIbanDataImplCopyWithImpl<$Res> + extends _$SepaDebitIbanDataCopyWithImpl<$Res, _$SepaDebitIbanDataImpl> + implements _$$SepaDebitIbanDataImplCopyWith<$Res> { + __$$SepaDebitIbanDataImplCopyWithImpl(_$SepaDebitIbanDataImpl _value, + $Res Function(_$SepaDebitIbanDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1104,7 +1108,7 @@ class __$$_SepaDebitIbanDataCopyWithImpl<$Res> $Res call({ Object? iban = null, }) { - return _then(_$_SepaDebitIbanData( + return _then(_$SepaDebitIbanDataImpl( iban: null == iban ? _value.iban : iban // ignore: cast_nullable_to_non_nullable @@ -1115,11 +1119,11 @@ class __$$_SepaDebitIbanDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaDebitIbanData implements _SepaDebitIbanData { - const _$_SepaDebitIbanData({required this.iban}); +class _$SepaDebitIbanDataImpl implements _SepaDebitIbanData { + const _$SepaDebitIbanDataImpl({required this.iban}); - factory _$_SepaDebitIbanData.fromJson(Map json) => - _$$_SepaDebitIbanDataFromJson(json); + factory _$SepaDebitIbanDataImpl.fromJson(Map json) => + _$$SepaDebitIbanDataImplFromJson(json); /// An IBAN account number. @override @@ -1134,7 +1138,7 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebitIbanData && + other is _$SepaDebitIbanDataImpl && (identical(other.iban, iban) || other.iban == iban)); } @@ -1145,13 +1149,13 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitIbanDataCopyWith<_$_SepaDebitIbanData> get copyWith => - __$$_SepaDebitIbanDataCopyWithImpl<_$_SepaDebitIbanData>( + _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => + __$$SepaDebitIbanDataImplCopyWithImpl<_$SepaDebitIbanDataImpl>( this, _$identity); @override Map toJson() { - return _$$_SepaDebitIbanDataToJson( + return _$$SepaDebitIbanDataImplToJson( this, ); } @@ -1159,10 +1163,10 @@ class _$_SepaDebitIbanData implements _SepaDebitIbanData { abstract class _SepaDebitIbanData implements SepaDebitIbanData { const factory _SepaDebitIbanData({required final String iban}) = - _$_SepaDebitIbanData; + _$SepaDebitIbanDataImpl; factory _SepaDebitIbanData.fromJson(Map json) = - _$_SepaDebitIbanData.fromJson; + _$SepaDebitIbanDataImpl.fromJson; @override @@ -1170,7 +1174,7 @@ abstract class _SepaDebitIbanData implements SepaDebitIbanData { String get iban; @override @JsonKey(ignore: true) - _$$_SepaDebitIbanDataCopyWith<_$_SepaDebitIbanData> get copyWith => + _$$SepaDebitIbanDataImplCopyWith<_$SepaDebitIbanDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1262,11 +1266,11 @@ class _$SepaBillingDetailsCopyWithImpl<$Res, $Val extends SepaBillingDetails> } /// @nodoc -abstract class _$$_SepaBillingDetailsCopyWith<$Res> +abstract class _$$SepaBillingDetailsImplCopyWith<$Res> implements $SepaBillingDetailsCopyWith<$Res> { - factory _$$_SepaBillingDetailsCopyWith(_$_SepaBillingDetails value, - $Res Function(_$_SepaBillingDetails) then) = - __$$_SepaBillingDetailsCopyWithImpl<$Res>; + factory _$$SepaBillingDetailsImplCopyWith(_$SepaBillingDetailsImpl value, + $Res Function(_$SepaBillingDetailsImpl) then) = + __$$SepaBillingDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1277,11 +1281,11 @@ abstract class _$$_SepaBillingDetailsCopyWith<$Res> } /// @nodoc -class __$$_SepaBillingDetailsCopyWithImpl<$Res> - extends _$SepaBillingDetailsCopyWithImpl<$Res, _$_SepaBillingDetails> - implements _$$_SepaBillingDetailsCopyWith<$Res> { - __$$_SepaBillingDetailsCopyWithImpl( - _$_SepaBillingDetails _value, $Res Function(_$_SepaBillingDetails) _then) +class __$$SepaBillingDetailsImplCopyWithImpl<$Res> + extends _$SepaBillingDetailsCopyWithImpl<$Res, _$SepaBillingDetailsImpl> + implements _$$SepaBillingDetailsImplCopyWith<$Res> { + __$$SepaBillingDetailsImplCopyWithImpl(_$SepaBillingDetailsImpl _value, + $Res Function(_$SepaBillingDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1292,7 +1296,7 @@ class __$$_SepaBillingDetailsCopyWithImpl<$Res> Object? phone = freezed, Object? name = null, }) { - return _then(_$_SepaBillingDetails( + return _then(_$SepaBillingDetailsImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -1315,12 +1319,12 @@ class __$$_SepaBillingDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SepaBillingDetails implements _SepaBillingDetails { - const _$_SepaBillingDetails( +class _$SepaBillingDetailsImpl implements _SepaBillingDetails { + const _$SepaBillingDetailsImpl( {required this.email, this.address, this.phone, required this.name}); - factory _$_SepaBillingDetails.fromJson(Map json) => - _$$_SepaBillingDetailsFromJson(json); + factory _$SepaBillingDetailsImpl.fromJson(Map json) => + _$$SepaBillingDetailsImplFromJson(json); /// Email address. @override @@ -1347,7 +1351,7 @@ class _$_SepaBillingDetails implements _SepaBillingDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaBillingDetails && + other is _$SepaBillingDetailsImpl && (identical(other.email, email) || other.email == email) && (identical(other.address, address) || other.address == address) && (identical(other.phone, phone) || other.phone == phone) && @@ -1361,13 +1365,13 @@ class _$_SepaBillingDetails implements _SepaBillingDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaBillingDetailsCopyWith<_$_SepaBillingDetails> get copyWith => - __$$_SepaBillingDetailsCopyWithImpl<_$_SepaBillingDetails>( + _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => + __$$SepaBillingDetailsImplCopyWithImpl<_$SepaBillingDetailsImpl>( this, _$identity); @override Map toJson() { - return _$$_SepaBillingDetailsToJson( + return _$$SepaBillingDetailsImplToJson( this, ); } @@ -1378,10 +1382,10 @@ abstract class _SepaBillingDetails implements SepaBillingDetails { {required final String email, final BillingAddress? address, final String? phone, - required final String name}) = _$_SepaBillingDetails; + required final String name}) = _$SepaBillingDetailsImpl; factory _SepaBillingDetails.fromJson(Map json) = - _$_SepaBillingDetails.fromJson; + _$SepaBillingDetailsImpl.fromJson; @override @@ -1401,6 +1405,6 @@ abstract class _SepaBillingDetails implements SepaBillingDetails { String get name; @override @JsonKey(ignore: true) - _$$_SepaBillingDetailsCopyWith<_$_SepaBillingDetails> get copyWith => + _$$SepaBillingDetailsImplCopyWith<_$SepaBillingDetailsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart index 1a5e6b59d..ee2309d2f 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/confirm_sepa_debit_payment_data.g.dart @@ -6,9 +6,9 @@ part of 'confirm_sepa_debit_payment_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmSepaDebitPaymentData _$$_ConfirmSepaDebitPaymentDataFromJson( +_$ConfirmSepaDebitPaymentDataImpl _$$ConfirmSepaDebitPaymentDataImplFromJson( Map json) => - _$_ConfirmSepaDebitPaymentData( + _$ConfirmSepaDebitPaymentDataImpl( paymentMethod: json['payment_method'] == null ? null : SepaDebitPaymentMethodDetails.fromJson( @@ -17,8 +17,8 @@ _$_ConfirmSepaDebitPaymentData _$$_ConfirmSepaDebitPaymentDataFromJson( _$PaymentIntentSetupFutureUsageEnumMap, json['setup_future_usage']), ); -Map _$$_ConfirmSepaDebitPaymentDataToJson( - _$_ConfirmSepaDebitPaymentData instance) { +Map _$$ConfirmSepaDebitPaymentDataImplToJson( + _$ConfirmSepaDebitPaymentDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -39,33 +39,33 @@ const _$PaymentIntentSetupFutureUsageEnumMap = { PaymentIntentSetupFutureUsage.offSession: 'off_session', }; -_$_IdSepaDebitPaymentMethodDetails _$$_IdSepaDebitPaymentMethodDetailsFromJson( - Map json) => - _$_IdSepaDebitPaymentMethodDetails( - json['id'] as String, - $type: json['type'] as String?, - ); +_$IdSepaDebitPaymentMethodDetailsImpl + _$$IdSepaDebitPaymentMethodDetailsImplFromJson(Map json) => + _$IdSepaDebitPaymentMethodDetailsImpl( + json['id'] as String, + $type: json['type'] as String?, + ); -Map _$$_IdSepaDebitPaymentMethodDetailsToJson( - _$_IdSepaDebitPaymentMethodDetails instance) => +Map _$$IdSepaDebitPaymentMethodDetailsImplToJson( + _$IdSepaDebitPaymentMethodDetailsImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_SepaDebitPaymentMethodDetails _$$_SepaDebitPaymentMethodDetailsFromJson( - Map json) => - _$_SepaDebitPaymentMethodDetails( - sepaDebit: const ElementConverter().fromJson(json['sepa_debit']), - billingDetails: json['billing_details'] == null - ? null - : SepaBillingDetails.fromJson( - Map.from(json['billing_details'] as Map)), - $type: json['type'] as String?, - ); +_$SepaDebitPaymentMethodDetailsImpl + _$$SepaDebitPaymentMethodDetailsImplFromJson(Map json) => + _$SepaDebitPaymentMethodDetailsImpl( + sepaDebit: const ElementConverter().fromJson(json['sepa_debit']), + billingDetails: json['billing_details'] == null + ? null + : SepaBillingDetails.fromJson( + Map.from(json['billing_details'] as Map)), + $type: json['type'] as String?, + ); -Map _$$_SepaDebitPaymentMethodDetailsToJson( - _$_SepaDebitPaymentMethodDetails instance) { +Map _$$SepaDebitPaymentMethodDetailsImplToJson( + _$SepaDebitPaymentMethodDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -81,9 +81,9 @@ Map _$$_SepaDebitPaymentMethodDetailsToJson( return val; } -_$_SepaDebitPaymentMethodDetailsWithIban - _$$_SepaDebitPaymentMethodDetailsWithIbanFromJson(Map json) => - _$_SepaDebitPaymentMethodDetailsWithIban( +_$SepaDebitPaymentMethodDetailsWithIbanImpl + _$$SepaDebitPaymentMethodDetailsWithIbanImplFromJson(Map json) => + _$SepaDebitPaymentMethodDetailsWithIbanImpl( sepaDebit: SepaDebitIbanData.fromJson( Map.from(json['sepa_debit'] as Map)), billingDetails: json['billing_details'] == null @@ -93,8 +93,8 @@ _$_SepaDebitPaymentMethodDetailsWithIban $type: json['type'] as String?, ); -Map _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( - _$_SepaDebitPaymentMethodDetailsWithIban instance) { +Map _$$SepaDebitPaymentMethodDetailsWithIbanImplToJson( + _$SepaDebitPaymentMethodDetailsWithIbanImpl instance) { final val = { 'sepa_debit': instance.sepaDebit.toJson(), }; @@ -110,19 +110,19 @@ Map _$$_SepaDebitPaymentMethodDetailsWithIbanToJson( return val; } -_$_SepaDebitIbanData _$$_SepaDebitIbanDataFromJson(Map json) => - _$_SepaDebitIbanData( +_$SepaDebitIbanDataImpl _$$SepaDebitIbanDataImplFromJson(Map json) => + _$SepaDebitIbanDataImpl( iban: json['iban'] as String, ); -Map _$$_SepaDebitIbanDataToJson( - _$_SepaDebitIbanData instance) => +Map _$$SepaDebitIbanDataImplToJson( + _$SepaDebitIbanDataImpl instance) => { 'iban': instance.iban, }; -_$_SepaBillingDetails _$$_SepaBillingDetailsFromJson(Map json) => - _$_SepaBillingDetails( +_$SepaBillingDetailsImpl _$$SepaBillingDetailsImplFromJson(Map json) => + _$SepaBillingDetailsImpl( email: json['email'] as String, address: json['address'] == null ? null @@ -132,8 +132,8 @@ _$_SepaBillingDetails _$$_SepaBillingDetailsFromJson(Map json) => name: json['name'] as String, ); -Map _$$_SepaBillingDetailsToJson( - _$_SepaBillingDetails instance) { +Map _$$SepaBillingDetailsImplToJson( + _$SepaBillingDetailsImpl instance) { final val = { 'email': instance.email, }; diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.dart index eedef7784..626b0dfc1 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.dart @@ -1,6 +1,5 @@ -import 'package:stripe_js/stripe_api.dart'; - import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:stripe_js/stripe_api.dart'; part 'payment_intent.freezed.dart'; part 'payment_intent.g.dart'; @@ -26,6 +25,12 @@ enum PaymentIntentCaptureMethod { /// customer authorizes the payment. automatic, + /// Asynchronously capture funds when the customer authorizes the payment. + /// Note: Recommended over [automatic] due to improved latency, but may require additional integration changes. + /// Seealso: https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async + @JsonValue('automatic_async') + automaticAsync, + /// Place a hold on the funds when the customer authorizes the payment, /// but don’t capture the funds until later. /// (Not all payment methods support this.) @@ -210,7 +215,10 @@ class PaymentIntent with _$PaymentIntent { /// The list of payment method types (e.g. card) that this PaymentIntent /// is allowed to use. - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", + unknownEnumValue: PaymentMethodType.unknown, + ) @Default([]) List paymentMethodTypes, diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart index 1e9eeecd2..0b4e33118 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.freezed.dart @@ -171,7 +171,8 @@ mixin _$PaymentIntent { /// The list of payment method types (e.g. card) that this PaymentIntent /// is allowed to use. - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", unknownEnumValue: PaymentMethodType.unknown) List get paymentMethodTypes => throw _privateConstructorUsedError; @@ -280,7 +281,9 @@ abstract class $PaymentIntentCopyWith<$Res> { @JsonKey(name: "payment_method") String? paymentMethod, @JsonKey(name: "payment_method_options") Map paymentMethodOptions, - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", + unknownEnumValue: PaymentMethodType.unknown) List paymentMethodTypes, dynamic processing, @JsonKey(name: "receipt_email") String? receiptEmail, @@ -563,11 +566,11 @@ class _$PaymentIntentCopyWithImpl<$Res, $Val extends PaymentIntent> } /// @nodoc -abstract class _$$_PaymentIntentCopyWith<$Res> +abstract class _$$PaymentIntentImplCopyWith<$Res> implements $PaymentIntentCopyWith<$Res> { - factory _$$_PaymentIntentCopyWith( - _$_PaymentIntent value, $Res Function(_$_PaymentIntent) then) = - __$$_PaymentIntentCopyWithImpl<$Res>; + factory _$$PaymentIntentImplCopyWith( + _$PaymentIntentImpl value, $Res Function(_$PaymentIntentImpl) then) = + __$$PaymentIntentImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -603,7 +606,9 @@ abstract class _$$_PaymentIntentCopyWith<$Res> @JsonKey(name: "payment_method") String? paymentMethod, @JsonKey(name: "payment_method_options") Map paymentMethodOptions, - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", + unknownEnumValue: PaymentMethodType.unknown) List paymentMethodTypes, dynamic processing, @JsonKey(name: "receipt_email") String? receiptEmail, @@ -630,11 +635,11 @@ abstract class _$$_PaymentIntentCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentCopyWithImpl<$Res> - extends _$PaymentIntentCopyWithImpl<$Res, _$_PaymentIntent> - implements _$$_PaymentIntentCopyWith<$Res> { - __$$_PaymentIntentCopyWithImpl( - _$_PaymentIntent _value, $Res Function(_$_PaymentIntent) _then) +class __$$PaymentIntentImplCopyWithImpl<$Res> + extends _$PaymentIntentCopyWithImpl<$Res, _$PaymentIntentImpl> + implements _$$PaymentIntentImplCopyWith<$Res> { + __$$PaymentIntentImplCopyWithImpl( + _$PaymentIntentImpl _value, $Res Function(_$PaymentIntentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -679,7 +684,7 @@ class __$$_PaymentIntentCopyWithImpl<$Res> Object? transferData = freezed, Object? transferGroup = freezed, }) { - return _then(_$_PaymentIntent( + return _then(_$PaymentIntentImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -838,8 +843,8 @@ class __$$_PaymentIntentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntent implements _PaymentIntent { - const _$_PaymentIntent( +class _$PaymentIntentImpl implements _PaymentIntent { + const _$PaymentIntentImpl( {required this.id, this.object = "payment_intent", required this.amount, @@ -871,7 +876,9 @@ class _$_PaymentIntent implements _PaymentIntent { @JsonKey(name: "payment_method") this.paymentMethod, @JsonKey(name: "payment_method_options") final Map paymentMethodOptions = const {}, - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", + unknownEnumValue: PaymentMethodType.unknown) final List paymentMethodTypes = const [], this.processing, @JsonKey(name: "receipt_email") this.receiptEmail, @@ -888,8 +895,8 @@ class _$_PaymentIntent implements _PaymentIntent { _paymentMethodOptions = paymentMethodOptions, _paymentMethodTypes = paymentMethodTypes; - factory _$_PaymentIntent.fromJson(Map json) => - _$$_PaymentIntentFromJson(json); + factory _$PaymentIntentImpl.fromJson(Map json) => + _$$PaymentIntentImplFromJson(json); /// Unique identifier for the object. @override @@ -1087,7 +1094,8 @@ class _$_PaymentIntent implements _PaymentIntent { /// The list of payment method types (e.g. card) that this PaymentIntent /// is allowed to use. @override - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", unknownEnumValue: PaymentMethodType.unknown) List get paymentMethodTypes { if (_paymentMethodTypes is EqualUnmodifiableListView) return _paymentMethodTypes; @@ -1173,7 +1181,7 @@ class _$_PaymentIntent implements _PaymentIntent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntent && + other is _$PaymentIntentImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.amount, amount) || other.amount == amount) && @@ -1292,12 +1300,12 @@ class _$_PaymentIntent implements _PaymentIntent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentCopyWith<_$_PaymentIntent> get copyWith => - __$$_PaymentIntentCopyWithImpl<_$_PaymentIntent>(this, _$identity); + _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => + __$$PaymentIntentImplCopyWithImpl<_$PaymentIntentImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentToJson( + return _$$PaymentIntentImplToJson( this, ); } @@ -1338,7 +1346,9 @@ abstract class _PaymentIntent implements PaymentIntent { @JsonKey(name: "payment_method") final String? paymentMethod, @JsonKey(name: "payment_method_options") final Map paymentMethodOptions, - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", + unknownEnumValue: PaymentMethodType.unknown) final List paymentMethodTypes, final dynamic processing, @JsonKey(name: "receipt_email") final String? receiptEmail, @@ -1352,10 +1362,10 @@ abstract class _PaymentIntent implements PaymentIntent { required final PaymentIntentsStatus status, @JsonKey(name: "transfer_data") final dynamic transferData, @JsonKey(name: "transfer_group") - final dynamic transferGroup}) = _$_PaymentIntent; + final dynamic transferGroup}) = _$PaymentIntentImpl; factory _PaymentIntent.fromJson(Map json) = - _$_PaymentIntent.fromJson; + _$PaymentIntentImpl.fromJson; @override @@ -1531,7 +1541,8 @@ abstract class _PaymentIntent implements PaymentIntent { /// The list of payment method types (e.g. card) that this PaymentIntent /// is allowed to use. - @JsonKey(name: "payment_method_types") + @JsonKey( + name: "payment_method_types", unknownEnumValue: PaymentMethodType.unknown) List get paymentMethodTypes; @override @@ -1603,7 +1614,7 @@ abstract class _PaymentIntent implements PaymentIntent { dynamic get transferGroup; @override @JsonKey(ignore: true) - _$$_PaymentIntentCopyWith<_$_PaymentIntent> get copyWith => + _$$PaymentIntentImplCopyWith<_$PaymentIntentImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1673,12 +1684,12 @@ class _$PaymentIntentAmountDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentAmountDetailsCopyWith<$Res> +abstract class _$$PaymentIntentAmountDetailsImplCopyWith<$Res> implements $PaymentIntentAmountDetailsCopyWith<$Res> { - factory _$$_PaymentIntentAmountDetailsCopyWith( - _$_PaymentIntentAmountDetails value, - $Res Function(_$_PaymentIntentAmountDetails) then) = - __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res>; + factory _$$PaymentIntentAmountDetailsImplCopyWith( + _$PaymentIntentAmountDetailsImpl value, + $Res Function(_$PaymentIntentAmountDetailsImpl) then) = + __$$PaymentIntentAmountDetailsImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentIntentTip? tip}); @@ -1688,13 +1699,13 @@ abstract class _$$_PaymentIntentAmountDetailsCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> +class __$$PaymentIntentAmountDetailsImplCopyWithImpl<$Res> extends _$PaymentIntentAmountDetailsCopyWithImpl<$Res, - _$_PaymentIntentAmountDetails> - implements _$$_PaymentIntentAmountDetailsCopyWith<$Res> { - __$$_PaymentIntentAmountDetailsCopyWithImpl( - _$_PaymentIntentAmountDetails _value, - $Res Function(_$_PaymentIntentAmountDetails) _then) + _$PaymentIntentAmountDetailsImpl> + implements _$$PaymentIntentAmountDetailsImplCopyWith<$Res> { + __$$PaymentIntentAmountDetailsImplCopyWithImpl( + _$PaymentIntentAmountDetailsImpl _value, + $Res Function(_$PaymentIntentAmountDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1702,7 +1713,7 @@ class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> $Res call({ Object? tip = freezed, }) { - return _then(_$_PaymentIntentAmountDetails( + return _then(_$PaymentIntentAmountDetailsImpl( tip: freezed == tip ? _value.tip : tip // ignore: cast_nullable_to_non_nullable @@ -1713,11 +1724,12 @@ class __$$_PaymentIntentAmountDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { - const _$_PaymentIntentAmountDetails({this.tip = const PaymentIntentTip()}); +class _$PaymentIntentAmountDetailsImpl implements _PaymentIntentAmountDetails { + const _$PaymentIntentAmountDetailsImpl({this.tip = const PaymentIntentTip()}); - factory _$_PaymentIntentAmountDetails.fromJson(Map json) => - _$$_PaymentIntentAmountDetailsFromJson(json); + factory _$PaymentIntentAmountDetailsImpl.fromJson( + Map json) => + _$$PaymentIntentAmountDetailsImplFromJson(json); /// Details about items included in the amount @override @@ -1733,7 +1745,7 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentAmountDetails && + other is _$PaymentIntentAmountDetailsImpl && (identical(other.tip, tip) || other.tip == tip)); } @@ -1744,13 +1756,13 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentAmountDetailsCopyWith<_$_PaymentIntentAmountDetails> - get copyWith => __$$_PaymentIntentAmountDetailsCopyWithImpl< - _$_PaymentIntentAmountDetails>(this, _$identity); + _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> + get copyWith => __$$PaymentIntentAmountDetailsImplCopyWithImpl< + _$PaymentIntentAmountDetailsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentAmountDetailsToJson( + return _$$PaymentIntentAmountDetailsImplToJson( this, ); } @@ -1759,10 +1771,10 @@ class _$_PaymentIntentAmountDetails implements _PaymentIntentAmountDetails { abstract class _PaymentIntentAmountDetails implements PaymentIntentAmountDetails { const factory _PaymentIntentAmountDetails({final PaymentIntentTip? tip}) = - _$_PaymentIntentAmountDetails; + _$PaymentIntentAmountDetailsImpl; factory _PaymentIntentAmountDetails.fromJson(Map json) = - _$_PaymentIntentAmountDetails.fromJson; + _$PaymentIntentAmountDetailsImpl.fromJson; @override @@ -1770,7 +1782,7 @@ abstract class _PaymentIntentAmountDetails PaymentIntentTip? get tip; @override @JsonKey(ignore: true) - _$$_PaymentIntentAmountDetailsCopyWith<_$_PaymentIntentAmountDetails> + _$$PaymentIntentAmountDetailsImplCopyWith<_$PaymentIntentAmountDetailsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1823,22 +1835,22 @@ class _$PaymentIntentTipCopyWithImpl<$Res, $Val extends PaymentIntentTip> } /// @nodoc -abstract class _$$_PaymentIntentTipCopyWith<$Res> +abstract class _$$PaymentIntentTipImplCopyWith<$Res> implements $PaymentIntentTipCopyWith<$Res> { - factory _$$_PaymentIntentTipCopyWith( - _$_PaymentIntentTip value, $Res Function(_$_PaymentIntentTip) then) = - __$$_PaymentIntentTipCopyWithImpl<$Res>; + factory _$$PaymentIntentTipImplCopyWith(_$PaymentIntentTipImpl value, + $Res Function(_$PaymentIntentTipImpl) then) = + __$$PaymentIntentTipImplCopyWithImpl<$Res>; @override @useResult $Res call({int? amount}); } /// @nodoc -class __$$_PaymentIntentTipCopyWithImpl<$Res> - extends _$PaymentIntentTipCopyWithImpl<$Res, _$_PaymentIntentTip> - implements _$$_PaymentIntentTipCopyWith<$Res> { - __$$_PaymentIntentTipCopyWithImpl( - _$_PaymentIntentTip _value, $Res Function(_$_PaymentIntentTip) _then) +class __$$PaymentIntentTipImplCopyWithImpl<$Res> + extends _$PaymentIntentTipCopyWithImpl<$Res, _$PaymentIntentTipImpl> + implements _$$PaymentIntentTipImplCopyWith<$Res> { + __$$PaymentIntentTipImplCopyWithImpl(_$PaymentIntentTipImpl _value, + $Res Function(_$PaymentIntentTipImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1846,7 +1858,7 @@ class __$$_PaymentIntentTipCopyWithImpl<$Res> $Res call({ Object? amount = freezed, }) { - return _then(_$_PaymentIntentTip( + return _then(_$PaymentIntentTipImpl( amount: freezed == amount ? _value.amount : amount // ignore: cast_nullable_to_non_nullable @@ -1857,11 +1869,11 @@ class __$$_PaymentIntentTipCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentTip implements _PaymentIntentTip { - const _$_PaymentIntentTip({this.amount}); +class _$PaymentIntentTipImpl implements _PaymentIntentTip { + const _$PaymentIntentTipImpl({this.amount}); - factory _$_PaymentIntentTip.fromJson(Map json) => - _$$_PaymentIntentTipFromJson(json); + factory _$PaymentIntentTipImpl.fromJson(Map json) => + _$$PaymentIntentTipImplFromJson(json); /// Portion of the amount that corresponds to a tip. @override @@ -1876,7 +1888,7 @@ class _$_PaymentIntentTip implements _PaymentIntentTip { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentTip && + other is _$PaymentIntentTipImpl && (identical(other.amount, amount) || other.amount == amount)); } @@ -1887,22 +1899,23 @@ class _$_PaymentIntentTip implements _PaymentIntentTip { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentTipCopyWith<_$_PaymentIntentTip> get copyWith => - __$$_PaymentIntentTipCopyWithImpl<_$_PaymentIntentTip>(this, _$identity); + _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => + __$$PaymentIntentTipImplCopyWithImpl<_$PaymentIntentTipImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentIntentTipToJson( + return _$$PaymentIntentTipImplToJson( this, ); } } abstract class _PaymentIntentTip implements PaymentIntentTip { - const factory _PaymentIntentTip({final int? amount}) = _$_PaymentIntentTip; + const factory _PaymentIntentTip({final int? amount}) = _$PaymentIntentTipImpl; factory _PaymentIntentTip.fromJson(Map json) = - _$_PaymentIntentTip.fromJson; + _$PaymentIntentTipImpl.fromJson; @override @@ -1910,7 +1923,7 @@ abstract class _PaymentIntentTip implements PaymentIntentTip { int? get amount; @override @JsonKey(ignore: true) - _$$_PaymentIntentTipCopyWith<_$_PaymentIntentTip> get copyWith => + _$$PaymentIntentTipImplCopyWith<_$PaymentIntentTipImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1968,25 +1981,25 @@ class _$PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> +abstract class _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith<$Res> implements $PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> { - factory _$$_PaymentIntentAutomaticPaymentMethodsCopyWith( - _$_PaymentIntentAutomaticPaymentMethods value, - $Res Function(_$_PaymentIntentAutomaticPaymentMethods) then) = - __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res>; + factory _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith( + _$PaymentIntentAutomaticPaymentMethodsImpl value, + $Res Function(_$PaymentIntentAutomaticPaymentMethodsImpl) then) = + __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? enabled}); } /// @nodoc -class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> +class __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl<$Res> extends _$PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res, - _$_PaymentIntentAutomaticPaymentMethods> - implements _$$_PaymentIntentAutomaticPaymentMethodsCopyWith<$Res> { - __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl( - _$_PaymentIntentAutomaticPaymentMethods _value, - $Res Function(_$_PaymentIntentAutomaticPaymentMethods) _then) + _$PaymentIntentAutomaticPaymentMethodsImpl> + implements _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith<$Res> { + __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl( + _$PaymentIntentAutomaticPaymentMethodsImpl _value, + $Res Function(_$PaymentIntentAutomaticPaymentMethodsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1994,7 +2007,7 @@ class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> $Res call({ Object? enabled = freezed, }) { - return _then(_$_PaymentIntentAutomaticPaymentMethods( + return _then(_$PaymentIntentAutomaticPaymentMethodsImpl( enabled: freezed == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -2005,13 +2018,13 @@ class __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentAutomaticPaymentMethods +class _$PaymentIntentAutomaticPaymentMethodsImpl implements _PaymentIntentAutomaticPaymentMethods { - const _$_PaymentIntentAutomaticPaymentMethods({required this.enabled}); + const _$PaymentIntentAutomaticPaymentMethodsImpl({required this.enabled}); - factory _$_PaymentIntentAutomaticPaymentMethods.fromJson( + factory _$PaymentIntentAutomaticPaymentMethodsImpl.fromJson( Map json) => - _$$_PaymentIntentAutomaticPaymentMethodsFromJson(json); + _$$PaymentIntentAutomaticPaymentMethodsImplFromJson(json); /// Automatically calculates compatible payment methods @override @@ -2026,7 +2039,7 @@ class _$_PaymentIntentAutomaticPaymentMethods bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentAutomaticPaymentMethods && + other is _$PaymentIntentAutomaticPaymentMethodsImpl && (identical(other.enabled, enabled) || other.enabled == enabled)); } @@ -2037,14 +2050,14 @@ class _$_PaymentIntentAutomaticPaymentMethods @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentAutomaticPaymentMethodsCopyWith< - _$_PaymentIntentAutomaticPaymentMethods> - get copyWith => __$$_PaymentIntentAutomaticPaymentMethodsCopyWithImpl< - _$_PaymentIntentAutomaticPaymentMethods>(this, _$identity); + _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< + _$PaymentIntentAutomaticPaymentMethodsImpl> + get copyWith => __$$PaymentIntentAutomaticPaymentMethodsImplCopyWithImpl< + _$PaymentIntentAutomaticPaymentMethodsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentAutomaticPaymentMethodsToJson( + return _$$PaymentIntentAutomaticPaymentMethodsImplToJson( this, ); } @@ -2053,11 +2066,12 @@ class _$_PaymentIntentAutomaticPaymentMethods abstract class _PaymentIntentAutomaticPaymentMethods implements PaymentIntentAutomaticPaymentMethods { const factory _PaymentIntentAutomaticPaymentMethods( - {required final bool? enabled}) = _$_PaymentIntentAutomaticPaymentMethods; + {required final bool? enabled}) = + _$PaymentIntentAutomaticPaymentMethodsImpl; factory _PaymentIntentAutomaticPaymentMethods.fromJson( Map json) = - _$_PaymentIntentAutomaticPaymentMethods.fromJson; + _$PaymentIntentAutomaticPaymentMethodsImpl.fromJson; @override @@ -2065,7 +2079,7 @@ abstract class _PaymentIntentAutomaticPaymentMethods bool? get enabled; @override @JsonKey(ignore: true) - _$$_PaymentIntentAutomaticPaymentMethodsCopyWith< - _$_PaymentIntentAutomaticPaymentMethods> + _$$PaymentIntentAutomaticPaymentMethodsImplCopyWith< + _$PaymentIntentAutomaticPaymentMethodsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart index 0046b1613..2c53088bc 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent.g.dart @@ -6,7 +6,8 @@ part of 'payment_intent.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => _$_PaymentIntent( +_$PaymentIntentImpl _$$PaymentIntentImplFromJson(Map json) => + _$PaymentIntentImpl( id: json['id'] as String, object: json['object'] as String? ?? "payment_intent", amount: json['amount'] as int, @@ -55,7 +56,8 @@ _$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => _$_PaymentIntent( paymentMethod: json['payment_method'] as String?, paymentMethodOptions: json['payment_method_options'] as Map? ?? const {}, paymentMethodTypes: (json['payment_method_types'] as List?) - ?.map((e) => $enumDecode(_$PaymentMethodTypeEnumMap, e)) + ?.map((e) => $enumDecode(_$PaymentMethodTypeEnumMap, e, + unknownValue: PaymentMethodType.unknown)) .toList() ?? const [], processing: json['processing'], @@ -74,7 +76,7 @@ _$_PaymentIntent _$$_PaymentIntentFromJson(Map json) => _$_PaymentIntent( transferGroup: json['transfer_group'], ); -Map _$$_PaymentIntentToJson(_$_PaymentIntent instance) { +Map _$$PaymentIntentImplToJson(_$PaymentIntentImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -145,6 +147,7 @@ const _$PaymentIntentCancellationReasonEnumMap = { const _$PaymentIntentCaptureMethodEnumMap = { PaymentIntentCaptureMethod.automatic: 'automatic', + PaymentIntentCaptureMethod.automaticAsync: 'automatic_async', PaymentIntentCaptureMethod.manual: 'manual', }; @@ -154,24 +157,25 @@ const _$PaymentIntentConfirmationMethodEnumMap = { }; const _$PaymentMethodTypeEnumMap = { - PaymentMethodType.acssDebit: 'acssDebit', + PaymentMethodType.acssDebit: 'acss_debit', PaymentMethodType.affirm: 'affirm', - PaymentMethodType.afterpayClearpay: 'afterpayClearpay', + PaymentMethodType.afterpayClearpay: 'afterpay_clearpay', PaymentMethodType.alipay: 'alipay', - PaymentMethodType.auBecsDebit: 'auBecsDebit', - PaymentMethodType.bacsDebit: 'bacsDebit', + PaymentMethodType.auBecsDebit: 'au_becs_debit', + PaymentMethodType.bacsDebit: 'bacs_debit', PaymentMethodType.bancontact: 'bancontact', PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', - PaymentMethodType.cardPresent: 'cardPresent', - PaymentMethodType.customerBalance: 'customerBalance', + PaymentMethodType.cashapp: 'cashapp', + PaymentMethodType.cardPresent: 'bacs_debit', + PaymentMethodType.customerBalance: 'customer_balance', PaymentMethodType.eps: 'eps', PaymentMethodType.fpx: 'fpx', PaymentMethodType.giropay: 'giropay', PaymentMethodType.grabpay: 'grabpay', PaymentMethodType.ideal: 'ideal', - PaymentMethodType.interacPresent: 'interacPresent', + PaymentMethodType.interacPresent: 'interac_present', PaymentMethodType.klarna: 'klarna', PaymentMethodType.konbini: 'konbini', PaymentMethodType.link: 'link', @@ -180,10 +184,11 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.paynow: 'paynow', PaymentMethodType.pix: 'pix', PaymentMethodType.promptpay: 'promptpay', - PaymentMethodType.sepaDebit: 'sepaDebit', + PaymentMethodType.sepaDebit: 'sepa_debit', PaymentMethodType.sofort: 'sofort', - PaymentMethodType.usBankAccount: 'usBankAccount', - PaymentMethodType.wechatPay: 'wechatPay', + PaymentMethodType.usBankAccount: 'us_bank_account', + PaymentMethodType.wechatPay: 'wechat_pay', + PaymentMethodType.unknown: 'unknown', }; const _$PaymentIntentSetupFutureUsageEnumMap = { @@ -201,17 +206,17 @@ const _$PaymentIntentsStatusEnumMap = { PaymentIntentsStatus.canceled: 'canceled', }; -_$_PaymentIntentAmountDetails _$$_PaymentIntentAmountDetailsFromJson( +_$PaymentIntentAmountDetailsImpl _$$PaymentIntentAmountDetailsImplFromJson( Map json) => - _$_PaymentIntentAmountDetails( + _$PaymentIntentAmountDetailsImpl( tip: json['tip'] == null ? const PaymentIntentTip() : PaymentIntentTip.fromJson( Map.from(json['tip'] as Map)), ); -Map _$$_PaymentIntentAmountDetailsToJson( - _$_PaymentIntentAmountDetails instance) { +Map _$$PaymentIntentAmountDetailsImplToJson( + _$PaymentIntentAmountDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -224,12 +229,13 @@ Map _$$_PaymentIntentAmountDetailsToJson( return val; } -_$_PaymentIntentTip _$$_PaymentIntentTipFromJson(Map json) => - _$_PaymentIntentTip( +_$PaymentIntentTipImpl _$$PaymentIntentTipImplFromJson(Map json) => + _$PaymentIntentTipImpl( amount: json['amount'] as int?, ); -Map _$$_PaymentIntentTipToJson(_$_PaymentIntentTip instance) { +Map _$$PaymentIntentTipImplToJson( + _$PaymentIntentTipImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -242,14 +248,14 @@ Map _$$_PaymentIntentTipToJson(_$_PaymentIntentTip instance) { return val; } -_$_PaymentIntentAutomaticPaymentMethods - _$$_PaymentIntentAutomaticPaymentMethodsFromJson(Map json) => - _$_PaymentIntentAutomaticPaymentMethods( +_$PaymentIntentAutomaticPaymentMethodsImpl + _$$PaymentIntentAutomaticPaymentMethodsImplFromJson(Map json) => + _$PaymentIntentAutomaticPaymentMethodsImpl( enabled: json['enabled'] as bool?, ); -Map _$$_PaymentIntentAutomaticPaymentMethodsToJson( - _$_PaymentIntentAutomaticPaymentMethods instance) { +Map _$$PaymentIntentAutomaticPaymentMethodsImplToJson( + _$PaymentIntentAutomaticPaymentMethodsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart index 46d1d2d45..fede51fbd 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.freezed.dart @@ -100,11 +100,12 @@ class _$PaymentIntentResponseCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentIntentResponseCopyWith<$Res> +abstract class _$$PaymentIntentResponseImplCopyWith<$Res> implements $PaymentIntentResponseCopyWith<$Res> { - factory _$$_PaymentIntentResponseCopyWith(_$_PaymentIntentResponse value, - $Res Function(_$_PaymentIntentResponse) then) = - __$$_PaymentIntentResponseCopyWithImpl<$Res>; + factory _$$PaymentIntentResponseImplCopyWith( + _$PaymentIntentResponseImpl value, + $Res Function(_$PaymentIntentResponseImpl) then) = + __$$PaymentIntentResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentIntent? paymentIntent, StripeError? error}); @@ -116,11 +117,12 @@ abstract class _$$_PaymentIntentResponseCopyWith<$Res> } /// @nodoc -class __$$_PaymentIntentResponseCopyWithImpl<$Res> - extends _$PaymentIntentResponseCopyWithImpl<$Res, _$_PaymentIntentResponse> - implements _$$_PaymentIntentResponseCopyWith<$Res> { - __$$_PaymentIntentResponseCopyWithImpl(_$_PaymentIntentResponse _value, - $Res Function(_$_PaymentIntentResponse) _then) +class __$$PaymentIntentResponseImplCopyWithImpl<$Res> + extends _$PaymentIntentResponseCopyWithImpl<$Res, + _$PaymentIntentResponseImpl> + implements _$$PaymentIntentResponseImplCopyWith<$Res> { + __$$PaymentIntentResponseImplCopyWithImpl(_$PaymentIntentResponseImpl _value, + $Res Function(_$PaymentIntentResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -129,7 +131,7 @@ class __$$_PaymentIntentResponseCopyWithImpl<$Res> Object? paymentIntent = freezed, Object? error = freezed, }) { - return _then(_$_PaymentIntentResponse( + return _then(_$PaymentIntentResponseImpl( paymentIntent: freezed == paymentIntent ? _value.paymentIntent : paymentIntent // ignore: cast_nullable_to_non_nullable @@ -144,11 +146,11 @@ class __$$_PaymentIntentResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentIntentResponse implements _PaymentIntentResponse { - const _$_PaymentIntentResponse({this.paymentIntent, this.error}); +class _$PaymentIntentResponseImpl implements _PaymentIntentResponse { + const _$PaymentIntentResponseImpl({this.paymentIntent, this.error}); - factory _$_PaymentIntentResponse.fromJson(Map json) => - _$$_PaymentIntentResponseFromJson(json); + factory _$PaymentIntentResponseImpl.fromJson(Map json) => + _$$PaymentIntentResponseImplFromJson(json); /// If not null, a PaymentIntent was retrieved successfully @override @@ -167,7 +169,7 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentIntentResponse && + other is _$PaymentIntentResponseImpl && (identical(other.paymentIntent, paymentIntent) || other.paymentIntent == paymentIntent) && (identical(other.error, error) || other.error == error)); @@ -180,13 +182,13 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentIntentResponseCopyWith<_$_PaymentIntentResponse> get copyWith => - __$$_PaymentIntentResponseCopyWithImpl<_$_PaymentIntentResponse>( - this, _$identity); + _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> + get copyWith => __$$PaymentIntentResponseImplCopyWithImpl< + _$PaymentIntentResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentIntentResponseToJson( + return _$$PaymentIntentResponseImplToJson( this, ); } @@ -195,10 +197,10 @@ class _$_PaymentIntentResponse implements _PaymentIntentResponse { abstract class _PaymentIntentResponse implements PaymentIntentResponse { const factory _PaymentIntentResponse( {final PaymentIntent? paymentIntent, - final StripeError? error}) = _$_PaymentIntentResponse; + final StripeError? error}) = _$PaymentIntentResponseImpl; factory _PaymentIntentResponse.fromJson(Map json) = - _$_PaymentIntentResponse.fromJson; + _$PaymentIntentResponseImpl.fromJson; @override @@ -210,6 +212,6 @@ abstract class _PaymentIntentResponse implements PaymentIntentResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_PaymentIntentResponseCopyWith<_$_PaymentIntentResponse> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentIntentResponseImplCopyWith<_$PaymentIntentResponseImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart index 3cf3a3881..0ebfcc890 100644 --- a/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart +++ b/packages/stripe_js/lib/src/api/payment_intents/payment_intent_response.g.dart @@ -6,8 +6,8 @@ part of 'payment_intent_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentIntentResponse _$$_PaymentIntentResponseFromJson(Map json) => - _$_PaymentIntentResponse( +_$PaymentIntentResponseImpl _$$PaymentIntentResponseImplFromJson(Map json) => + _$PaymentIntentResponseImpl( paymentIntent: json['paymentIntent'] == null ? null : PaymentIntent.fromJson( @@ -18,8 +18,8 @@ _$_PaymentIntentResponse _$$_PaymentIntentResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_PaymentIntentResponseToJson( - _$_PaymentIntentResponse instance) { +Map _$$PaymentIntentResponseImplToJson( + _$PaymentIntentResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart index 82d0ab810..4da139562 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.freezed.dart @@ -192,11 +192,12 @@ class _$CreatePaymentMethodDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CreatePaymentMethodDataCopyWith<$Res> +abstract class _$$CreatePaymentMethodDataImplCopyWith<$Res> implements $CreatePaymentMethodDataCopyWith<$Res> { - factory _$$_CreatePaymentMethodDataCopyWith(_$_CreatePaymentMethodData value, - $Res Function(_$_CreatePaymentMethodData) then) = - __$$_CreatePaymentMethodDataCopyWithImpl<$Res>; + factory _$$CreatePaymentMethodDataImplCopyWith( + _$CreatePaymentMethodDataImpl value, + $Res Function(_$CreatePaymentMethodDataImpl) then) = + __$$CreatePaymentMethodDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -218,12 +219,13 @@ abstract class _$$_CreatePaymentMethodDataCopyWith<$Res> } /// @nodoc -class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> +class __$$CreatePaymentMethodDataImplCopyWithImpl<$Res> extends _$CreatePaymentMethodDataCopyWithImpl<$Res, - _$_CreatePaymentMethodData> - implements _$$_CreatePaymentMethodDataCopyWith<$Res> { - __$$_CreatePaymentMethodDataCopyWithImpl(_$_CreatePaymentMethodData _value, - $Res Function(_$_CreatePaymentMethodData) _then) + _$CreatePaymentMethodDataImpl> + implements _$$CreatePaymentMethodDataImplCopyWith<$Res> { + __$$CreatePaymentMethodDataImplCopyWithImpl( + _$CreatePaymentMethodDataImpl _value, + $Res Function(_$CreatePaymentMethodDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -242,7 +244,7 @@ class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> Object? upiVpa = freezed, Object? billingDetails = freezed, }) { - return _then(_$_CreatePaymentMethodData( + return _then(_$CreatePaymentMethodDataImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -297,8 +299,8 @@ class __$$_CreatePaymentMethodDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { - const _$_CreatePaymentMethodData( +class _$CreatePaymentMethodDataImpl implements _CreatePaymentMethodData { + const _$CreatePaymentMethodDataImpl( {required this.type, @ElementConverter() this.card, @JsonKey(name: "au_becs_debit") @ElementConverter() this.auBecsDebit, @@ -312,8 +314,8 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { @JsonKey(name: "upi[vpa]") this.upiVpa, @JsonKey(name: "billing_details") this.billingDetails}); - factory _$_CreatePaymentMethodData.fromJson(Map json) => - _$$_CreatePaymentMethodDataFromJson(json); + factory _$CreatePaymentMethodDataImpl.fromJson(Map json) => + _$$CreatePaymentMethodDataImplFromJson(json); /// Unique identifier for the object. @override @@ -385,7 +387,7 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreatePaymentMethodData && + other is _$CreatePaymentMethodDataImpl && (identical(other.type, type) || other.type == type) && (identical(other.card, card) || other.card == card) && (identical(other.auBecsDebit, auBecsDebit) || @@ -426,14 +428,13 @@ class _$_CreatePaymentMethodData implements _CreatePaymentMethodData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreatePaymentMethodDataCopyWith<_$_CreatePaymentMethodData> - get copyWith => - __$$_CreatePaymentMethodDataCopyWithImpl<_$_CreatePaymentMethodData>( - this, _$identity); + _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> + get copyWith => __$$CreatePaymentMethodDataImplCopyWithImpl< + _$CreatePaymentMethodDataImpl>(this, _$identity); @override Map toJson() { - return _$$_CreatePaymentMethodDataToJson( + return _$$CreatePaymentMethodDataImplToJson( this, ); } @@ -455,10 +456,10 @@ abstract class _CreatePaymentMethodData implements CreatePaymentMethodData { @JsonKey(name: "sepa_debit[iban]") final String? sepaDebitIban, @JsonKey(name: "upi[vpa]") final String? upiVpa, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CreatePaymentMethodData; + final BillingDetails? billingDetails}) = _$CreatePaymentMethodDataImpl; factory _CreatePaymentMethodData.fromJson(Map json) = - _$_CreatePaymentMethodData.fromJson; + _$CreatePaymentMethodDataImpl.fromJson; @override @@ -523,6 +524,6 @@ abstract class _CreatePaymentMethodData implements CreatePaymentMethodData { BillingDetails? get billingDetails; @override @JsonKey(ignore: true) - _$$_CreatePaymentMethodDataCopyWith<_$_CreatePaymentMethodData> + _$$CreatePaymentMethodDataImplCopyWith<_$CreatePaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart index b9534acc4..1d6304ca1 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/create_payment_method_data.g.dart @@ -6,8 +6,9 @@ part of 'create_payment_method_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreatePaymentMethodData _$$_CreatePaymentMethodDataFromJson(Map json) => - _$_CreatePaymentMethodData( +_$CreatePaymentMethodDataImpl _$$CreatePaymentMethodDataImplFromJson( + Map json) => + _$CreatePaymentMethodDataImpl( type: json['type'] as String, card: const ElementConverter().fromJson(json['card']), auBecsDebit: const ElementConverter().fromJson(json['au_becs_debit']), @@ -25,8 +26,8 @@ _$_CreatePaymentMethodData _$$_CreatePaymentMethodDataFromJson(Map json) => Map.from(json['billing_details'] as Map)), ); -Map _$$_CreatePaymentMethodDataToJson( - _$_CreatePaymentMethodData instance) { +Map _$$CreatePaymentMethodDataImplToJson( + _$CreatePaymentMethodDataImpl instance) { final val = { 'type': instance.type, }; diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart index 2e672d838..e56d101bd 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method.freezed.dart @@ -348,11 +348,11 @@ class _$PaymentMethodCopyWithImpl<$Res, $Val extends PaymentMethod> } /// @nodoc -abstract class _$$_PaymentMethodCopyWith<$Res> +abstract class _$$PaymentMethodImplCopyWith<$Res> implements $PaymentMethodCopyWith<$Res> { - factory _$$_PaymentMethodCopyWith( - _$_PaymentMethod value, $Res Function(_$_PaymentMethod) then) = - __$$_PaymentMethodCopyWithImpl<$Res>; + factory _$$PaymentMethodImplCopyWith( + _$PaymentMethodImpl value, $Res Function(_$PaymentMethodImpl) then) = + __$$PaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -397,11 +397,11 @@ abstract class _$$_PaymentMethodCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodCopyWithImpl<$Res> - extends _$PaymentMethodCopyWithImpl<$Res, _$_PaymentMethod> - implements _$$_PaymentMethodCopyWith<$Res> { - __$$_PaymentMethodCopyWithImpl( - _$_PaymentMethod _value, $Res Function(_$_PaymentMethod) _then) +class __$$PaymentMethodImplCopyWithImpl<$Res> + extends _$PaymentMethodCopyWithImpl<$Res, _$PaymentMethodImpl> + implements _$$PaymentMethodImplCopyWith<$Res> { + __$$PaymentMethodImplCopyWithImpl( + _$PaymentMethodImpl _value, $Res Function(_$PaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -425,7 +425,7 @@ class __$$_PaymentMethodCopyWithImpl<$Res> Object? usBankAccount = freezed, Object? type = null, }) { - return _then(_$_PaymentMethod( + return _then(_$PaymentMethodImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -501,8 +501,8 @@ class __$$_PaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethod implements _PaymentMethod { - const _$_PaymentMethod( +class _$PaymentMethodImpl implements _PaymentMethod { + const _$PaymentMethodImpl( {required this.id, this.object = "payment_method", this.billingDetails, @@ -522,8 +522,8 @@ class _$_PaymentMethod implements _PaymentMethod { required this.type}) : _metadata = metadata; - factory _$_PaymentMethod.fromJson(Map json) => - _$$_PaymentMethodFromJson(json); + factory _$PaymentMethodImpl.fromJson(Map json) => + _$$PaymentMethodImplFromJson(json); /// Unique identifier for the object. @override @@ -623,7 +623,7 @@ class _$_PaymentMethod implements _PaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethod && + other is _$PaymentMethodImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.billingDetails, billingDetails) || @@ -675,12 +675,12 @@ class _$_PaymentMethod implements _PaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodCopyWith<_$_PaymentMethod> get copyWith => - __$$_PaymentMethodCopyWithImpl<_$_PaymentMethod>(this, _$identity); + _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => + __$$PaymentMethodImplCopyWithImpl<_$PaymentMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodToJson( + return _$$PaymentMethodImplToJson( this, ); } @@ -704,10 +704,10 @@ abstract class _PaymentMethod implements PaymentMethod { final Fpx? fpx, final Upi? upi, final UsBankAccount? usBankAccount, - required final PaymentMethodType type}) = _$_PaymentMethod; + required final PaymentMethodType type}) = _$PaymentMethodImpl; factory _PaymentMethod.fromJson(Map json) = - _$_PaymentMethod.fromJson; + _$PaymentMethodImpl.fromJson; @override @@ -788,7 +788,7 @@ abstract class _PaymentMethod implements PaymentMethod { PaymentMethodType get type; @override @JsonKey(ignore: true) - _$$_PaymentMethodCopyWith<_$_PaymentMethod> get copyWith => + _$$PaymentMethodImplCopyWith<_$PaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -857,22 +857,22 @@ class _$AuBecsDebitCopyWithImpl<$Res, $Val extends AuBecsDebit> } /// @nodoc -abstract class _$$_AuBecsDebitCopyWith<$Res> +abstract class _$$AuBecsDebitImplCopyWith<$Res> implements $AuBecsDebitCopyWith<$Res> { - factory _$$_AuBecsDebitCopyWith( - _$_AuBecsDebit value, $Res Function(_$_AuBecsDebit) then) = - __$$_AuBecsDebitCopyWithImpl<$Res>; + factory _$$AuBecsDebitImplCopyWith( + _$AuBecsDebitImpl value, $Res Function(_$AuBecsDebitImpl) then) = + __$$AuBecsDebitImplCopyWithImpl<$Res>; @override @useResult $Res call({String? fingerprint, String? last4, String? bsbNumber}); } /// @nodoc -class __$$_AuBecsDebitCopyWithImpl<$Res> - extends _$AuBecsDebitCopyWithImpl<$Res, _$_AuBecsDebit> - implements _$$_AuBecsDebitCopyWith<$Res> { - __$$_AuBecsDebitCopyWithImpl( - _$_AuBecsDebit _value, $Res Function(_$_AuBecsDebit) _then) +class __$$AuBecsDebitImplCopyWithImpl<$Res> + extends _$AuBecsDebitCopyWithImpl<$Res, _$AuBecsDebitImpl> + implements _$$AuBecsDebitImplCopyWith<$Res> { + __$$AuBecsDebitImplCopyWithImpl( + _$AuBecsDebitImpl _value, $Res Function(_$AuBecsDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -882,7 +882,7 @@ class __$$_AuBecsDebitCopyWithImpl<$Res> Object? last4 = freezed, Object? bsbNumber = freezed, }) { - return _then(_$_AuBecsDebit( + return _then(_$AuBecsDebitImpl( fingerprint: freezed == fingerprint ? _value.fingerprint : fingerprint // ignore: cast_nullable_to_non_nullable @@ -902,11 +902,11 @@ class __$$_AuBecsDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_AuBecsDebit implements _AuBecsDebit { - const _$_AuBecsDebit({this.fingerprint, this.last4, this.bsbNumber}); +class _$AuBecsDebitImpl implements _AuBecsDebit { + const _$AuBecsDebitImpl({this.fingerprint, this.last4, this.bsbNumber}); - factory _$_AuBecsDebit.fromJson(Map json) => - _$$_AuBecsDebitFromJson(json); + factory _$AuBecsDebitImpl.fromJson(Map json) => + _$$AuBecsDebitImplFromJson(json); /// Unique identifier for the bankaccount. @override @@ -929,7 +929,7 @@ class _$_AuBecsDebit implements _AuBecsDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AuBecsDebit && + other is _$AuBecsDebitImpl && (identical(other.fingerprint, fingerprint) || other.fingerprint == fingerprint) && (identical(other.last4, last4) || other.last4 == last4) && @@ -944,12 +944,12 @@ class _$_AuBecsDebit implements _AuBecsDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AuBecsDebitCopyWith<_$_AuBecsDebit> get copyWith => - __$$_AuBecsDebitCopyWithImpl<_$_AuBecsDebit>(this, _$identity); + _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => + __$$AuBecsDebitImplCopyWithImpl<_$AuBecsDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_AuBecsDebitToJson( + return _$$AuBecsDebitImplToJson( this, ); } @@ -959,10 +959,10 @@ abstract class _AuBecsDebit implements AuBecsDebit { const factory _AuBecsDebit( {final String? fingerprint, final String? last4, - final String? bsbNumber}) = _$_AuBecsDebit; + final String? bsbNumber}) = _$AuBecsDebitImpl; factory _AuBecsDebit.fromJson(Map json) = - _$_AuBecsDebit.fromJson; + _$AuBecsDebitImpl.fromJson; @override @@ -978,7 +978,7 @@ abstract class _AuBecsDebit implements AuBecsDebit { String? get bsbNumber; @override @JsonKey(ignore: true) - _$$_AuBecsDebitCopyWith<_$_AuBecsDebit> get copyWith => + _$$AuBecsDebitImplCopyWith<_$AuBecsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1046,21 +1046,22 @@ class _$BacsDebitCopyWithImpl<$Res, $Val extends BacsDebit> } /// @nodoc -abstract class _$$_BacsDebitCopyWith<$Res> implements $BacsDebitCopyWith<$Res> { - factory _$$_BacsDebitCopyWith( - _$_BacsDebit value, $Res Function(_$_BacsDebit) then) = - __$$_BacsDebitCopyWithImpl<$Res>; +abstract class _$$BacsDebitImplCopyWith<$Res> + implements $BacsDebitCopyWith<$Res> { + factory _$$BacsDebitImplCopyWith( + _$BacsDebitImpl value, $Res Function(_$BacsDebitImpl) then) = + __$$BacsDebitImplCopyWithImpl<$Res>; @override @useResult $Res call({String? sortCode, String? fingerprint, String? last4}); } /// @nodoc -class __$$_BacsDebitCopyWithImpl<$Res> - extends _$BacsDebitCopyWithImpl<$Res, _$_BacsDebit> - implements _$$_BacsDebitCopyWith<$Res> { - __$$_BacsDebitCopyWithImpl( - _$_BacsDebit _value, $Res Function(_$_BacsDebit) _then) +class __$$BacsDebitImplCopyWithImpl<$Res> + extends _$BacsDebitCopyWithImpl<$Res, _$BacsDebitImpl> + implements _$$BacsDebitImplCopyWith<$Res> { + __$$BacsDebitImplCopyWithImpl( + _$BacsDebitImpl _value, $Res Function(_$BacsDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1070,7 +1071,7 @@ class __$$_BacsDebitCopyWithImpl<$Res> Object? fingerprint = freezed, Object? last4 = freezed, }) { - return _then(_$_BacsDebit( + return _then(_$BacsDebitImpl( sortCode: freezed == sortCode ? _value.sortCode : sortCode // ignore: cast_nullable_to_non_nullable @@ -1090,11 +1091,11 @@ class __$$_BacsDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_BacsDebit implements _BacsDebit { - const _$_BacsDebit({this.sortCode, this.fingerprint, this.last4}); +class _$BacsDebitImpl implements _BacsDebit { + const _$BacsDebitImpl({this.sortCode, this.fingerprint, this.last4}); - factory _$_BacsDebit.fromJson(Map json) => - _$$_BacsDebitFromJson(json); + factory _$BacsDebitImpl.fromJson(Map json) => + _$$BacsDebitImplFromJson(json); /// Sort code of the bankaccount. @override @@ -1117,7 +1118,7 @@ class _$_BacsDebit implements _BacsDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BacsDebit && + other is _$BacsDebitImpl && (identical(other.sortCode, sortCode) || other.sortCode == sortCode) && (identical(other.fingerprint, fingerprint) || @@ -1132,12 +1133,12 @@ class _$_BacsDebit implements _BacsDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BacsDebitCopyWith<_$_BacsDebit> get copyWith => - __$$_BacsDebitCopyWithImpl<_$_BacsDebit>(this, _$identity); + _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => + __$$BacsDebitImplCopyWithImpl<_$BacsDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_BacsDebitToJson( + return _$$BacsDebitImplToJson( this, ); } @@ -1147,10 +1148,10 @@ abstract class _BacsDebit implements BacsDebit { const factory _BacsDebit( {final String? sortCode, final String? fingerprint, - final String? last4}) = _$_BacsDebit; + final String? last4}) = _$BacsDebitImpl; factory _BacsDebit.fromJson(Map json) = - _$_BacsDebit.fromJson; + _$BacsDebitImpl.fromJson; @override @@ -1166,7 +1167,7 @@ abstract class _BacsDebit implements BacsDebit { String? get last4; @override @JsonKey(ignore: true) - _$$_BacsDebitCopyWith<_$_BacsDebit> get copyWith => + _$$BacsDebitImplCopyWith<_$BacsDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1283,11 +1284,11 @@ class _$CardPaymentMethodCopyWithImpl<$Res, $Val extends CardPaymentMethod> } /// @nodoc -abstract class _$$_CardPaymentMethodCopyWith<$Res> +abstract class _$$CardPaymentMethodImplCopyWith<$Res> implements $CardPaymentMethodCopyWith<$Res> { - factory _$$_CardPaymentMethodCopyWith(_$_CardPaymentMethod value, - $Res Function(_$_CardPaymentMethod) then) = - __$$_CardPaymentMethodCopyWithImpl<$Res>; + factory _$$CardPaymentMethodImplCopyWith(_$CardPaymentMethodImpl value, + $Res Function(_$CardPaymentMethodImpl) then) = + __$$CardPaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1302,11 +1303,11 @@ abstract class _$$_CardPaymentMethodCopyWith<$Res> } /// @nodoc -class __$$_CardPaymentMethodCopyWithImpl<$Res> - extends _$CardPaymentMethodCopyWithImpl<$Res, _$_CardPaymentMethod> - implements _$$_CardPaymentMethodCopyWith<$Res> { - __$$_CardPaymentMethodCopyWithImpl( - _$_CardPaymentMethod _value, $Res Function(_$_CardPaymentMethod) _then) +class __$$CardPaymentMethodImplCopyWithImpl<$Res> + extends _$CardPaymentMethodCopyWithImpl<$Res, _$CardPaymentMethodImpl> + implements _$$CardPaymentMethodImplCopyWith<$Res> { + __$$CardPaymentMethodImplCopyWithImpl(_$CardPaymentMethodImpl _value, + $Res Function(_$CardPaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1321,7 +1322,7 @@ class __$$_CardPaymentMethodCopyWithImpl<$Res> Object? preferredNetwork = freezed, Object? availableNetworks = freezed, }) { - return _then(_$_CardPaymentMethod( + return _then(_$CardPaymentMethodImpl( brand: freezed == brand ? _value.brand : brand // ignore: cast_nullable_to_non_nullable @@ -1361,8 +1362,8 @@ class __$$_CardPaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_CardPaymentMethod implements _CardPaymentMethod { - const _$_CardPaymentMethod( +class _$CardPaymentMethodImpl implements _CardPaymentMethod { + const _$CardPaymentMethodImpl( {this.brand, this.country, this.expYear, @@ -1373,8 +1374,8 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { final List? availableNetworks}) : _availableNetworks = availableNetworks; - factory _$_CardPaymentMethod.fromJson(Map json) => - _$$_CardPaymentMethodFromJson(json); + factory _$CardPaymentMethodImpl.fromJson(Map json) => + _$$CardPaymentMethodImplFromJson(json); /// The brand associated to the card e.g. (visa, amex). @override @@ -1427,7 +1428,7 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethod && + other is _$CardPaymentMethodImpl && (identical(other.brand, brand) || other.brand == brand) && (identical(other.country, country) || other.country == country) && (identical(other.expYear, expYear) || other.expYear == expYear) && @@ -1457,13 +1458,13 @@ class _$_CardPaymentMethod implements _CardPaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodCopyWith<_$_CardPaymentMethod> get copyWith => - __$$_CardPaymentMethodCopyWithImpl<_$_CardPaymentMethod>( + _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => + __$$CardPaymentMethodImplCopyWithImpl<_$CardPaymentMethodImpl>( this, _$identity); @override Map toJson() { - return _$$_CardPaymentMethodToJson( + return _$$CardPaymentMethodImplToJson( this, ); } @@ -1478,10 +1479,10 @@ abstract class _CardPaymentMethod implements CardPaymentMethod { final String? funding, final String? last4, final String? preferredNetwork, - final List? availableNetworks}) = _$_CardPaymentMethod; + final List? availableNetworks}) = _$CardPaymentMethodImpl; factory _CardPaymentMethod.fromJson(Map json) = - _$_CardPaymentMethod.fromJson; + _$CardPaymentMethodImpl.fromJson; @override @@ -1517,7 +1518,7 @@ abstract class _CardPaymentMethod implements CardPaymentMethod { List? get availableNetworks; @override @JsonKey(ignore: true) - _$$_CardPaymentMethodCopyWith<_$_CardPaymentMethod> get copyWith => + _$$CardPaymentMethodImplCopyWith<_$CardPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1575,18 +1576,18 @@ class _$FpxCopyWithImpl<$Res, $Val extends Fpx> implements $FpxCopyWith<$Res> { } /// @nodoc -abstract class _$$_FpxCopyWith<$Res> implements $FpxCopyWith<$Res> { - factory _$$_FpxCopyWith(_$_Fpx value, $Res Function(_$_Fpx) then) = - __$$_FpxCopyWithImpl<$Res>; +abstract class _$$FpxImplCopyWith<$Res> implements $FpxCopyWith<$Res> { + factory _$$FpxImplCopyWith(_$FpxImpl value, $Res Function(_$FpxImpl) then) = + __$$FpxImplCopyWithImpl<$Res>; @override @useResult $Res call({String? bank, String? accountHolderType}); } /// @nodoc -class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> - implements _$$_FpxCopyWith<$Res> { - __$$_FpxCopyWithImpl(_$_Fpx _value, $Res Function(_$_Fpx) _then) +class __$$FpxImplCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$FpxImpl> + implements _$$FpxImplCopyWith<$Res> { + __$$FpxImplCopyWithImpl(_$FpxImpl _value, $Res Function(_$FpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1595,7 +1596,7 @@ class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> Object? bank = freezed, Object? accountHolderType = freezed, }) { - return _then(_$_Fpx( + return _then(_$FpxImpl( bank: freezed == bank ? _value.bank : bank // ignore: cast_nullable_to_non_nullable @@ -1611,10 +1612,11 @@ class __$$_FpxCopyWithImpl<$Res> extends _$FpxCopyWithImpl<$Res, _$_Fpx> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Fpx implements _Fpx { - const _$_Fpx({this.bank, this.accountHolderType}); +class _$FpxImpl implements _Fpx { + const _$FpxImpl({this.bank, this.accountHolderType}); - factory _$_Fpx.fromJson(Map json) => _$$_FpxFromJson(json); + factory _$FpxImpl.fromJson(Map json) => + _$$FpxImplFromJson(json); /// the customer bank @override @@ -1633,7 +1635,7 @@ class _$_Fpx implements _Fpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Fpx && + other is _$FpxImpl && (identical(other.bank, bank) || other.bank == bank) && (identical(other.accountHolderType, accountHolderType) || other.accountHolderType == accountHolderType)); @@ -1646,12 +1648,12 @@ class _$_Fpx implements _Fpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FpxCopyWith<_$_Fpx> get copyWith => - __$$_FpxCopyWithImpl<_$_Fpx>(this, _$identity); + _$$FpxImplCopyWith<_$FpxImpl> get copyWith => + __$$FpxImplCopyWithImpl<_$FpxImpl>(this, _$identity); @override Map toJson() { - return _$$_FpxToJson( + return _$$FpxImplToJson( this, ); } @@ -1659,9 +1661,9 @@ class _$_Fpx implements _Fpx { abstract class _Fpx implements Fpx { const factory _Fpx({final String? bank, final String? accountHolderType}) = - _$_Fpx; + _$FpxImpl; - factory _Fpx.fromJson(Map json) = _$_Fpx.fromJson; + factory _Fpx.fromJson(Map json) = _$FpxImpl.fromJson; @override @@ -1673,7 +1675,8 @@ abstract class _Fpx implements Fpx { String? get accountHolderType; @override @JsonKey(ignore: true) - _$$_FpxCopyWith<_$_Fpx> get copyWith => throw _privateConstructorUsedError; + _$$FpxImplCopyWith<_$FpxImpl> get copyWith => + throw _privateConstructorUsedError; } Ideal _$IdealFromJson(Map json) { @@ -1731,18 +1734,21 @@ class _$IdealCopyWithImpl<$Res, $Val extends Ideal> } /// @nodoc -abstract class _$$_IdealCopyWith<$Res> implements $IdealCopyWith<$Res> { - factory _$$_IdealCopyWith(_$_Ideal value, $Res Function(_$_Ideal) then) = - __$$_IdealCopyWithImpl<$Res>; +abstract class _$$IdealImplCopyWith<$Res> implements $IdealCopyWith<$Res> { + factory _$$IdealImplCopyWith( + _$IdealImpl value, $Res Function(_$IdealImpl) then) = + __$$IdealImplCopyWithImpl<$Res>; @override @useResult $Res call({String? bankIdentifierCode, String? bank}); } /// @nodoc -class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> - implements _$$_IdealCopyWith<$Res> { - __$$_IdealCopyWithImpl(_$_Ideal _value, $Res Function(_$_Ideal) _then) +class __$$IdealImplCopyWithImpl<$Res> + extends _$IdealCopyWithImpl<$Res, _$IdealImpl> + implements _$$IdealImplCopyWith<$Res> { + __$$IdealImplCopyWithImpl( + _$IdealImpl _value, $Res Function(_$IdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1751,7 +1757,7 @@ class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> Object? bankIdentifierCode = freezed, Object? bank = freezed, }) { - return _then(_$_Ideal( + return _then(_$IdealImpl( bankIdentifierCode: freezed == bankIdentifierCode ? _value.bankIdentifierCode : bankIdentifierCode // ignore: cast_nullable_to_non_nullable @@ -1767,11 +1773,11 @@ class __$$_IdealCopyWithImpl<$Res> extends _$IdealCopyWithImpl<$Res, _$_Ideal> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Ideal implements _Ideal { - const _$_Ideal({this.bankIdentifierCode, this.bank}); +class _$IdealImpl implements _Ideal { + const _$IdealImpl({this.bankIdentifierCode, this.bank}); - factory _$_Ideal.fromJson(Map json) => - _$$_IdealFromJson(json); + factory _$IdealImpl.fromJson(Map json) => + _$$IdealImplFromJson(json); /// The BIC code of the bank @override @@ -1790,7 +1796,7 @@ class _$_Ideal implements _Ideal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Ideal && + other is _$IdealImpl && (identical(other.bankIdentifierCode, bankIdentifierCode) || other.bankIdentifierCode == bankIdentifierCode) && (identical(other.bank, bank) || other.bank == bank)); @@ -1803,12 +1809,12 @@ class _$_Ideal implements _Ideal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealCopyWith<_$_Ideal> get copyWith => - __$$_IdealCopyWithImpl<_$_Ideal>(this, _$identity); + _$$IdealImplCopyWith<_$IdealImpl> get copyWith => + __$$IdealImplCopyWithImpl<_$IdealImpl>(this, _$identity); @override Map toJson() { - return _$$_IdealToJson( + return _$$IdealImplToJson( this, ); } @@ -1816,9 +1822,9 @@ class _$_Ideal implements _Ideal { abstract class _Ideal implements Ideal { const factory _Ideal({final String? bankIdentifierCode, final String? bank}) = - _$_Ideal; + _$IdealImpl; - factory _Ideal.fromJson(Map json) = _$_Ideal.fromJson; + factory _Ideal.fromJson(Map json) = _$IdealImpl.fromJson; @override @@ -1830,7 +1836,7 @@ abstract class _Ideal implements Ideal { String? get bank; @override @JsonKey(ignore: true) - _$$_IdealCopyWith<_$_Ideal> get copyWith => + _$$IdealImplCopyWith<_$IdealImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1907,10 +1913,11 @@ class _$SepaDebitCopyWithImpl<$Res, $Val extends SepaDebit> } /// @nodoc -abstract class _$$_SepaDebitCopyWith<$Res> implements $SepaDebitCopyWith<$Res> { - factory _$$_SepaDebitCopyWith( - _$_SepaDebit value, $Res Function(_$_SepaDebit) then) = - __$$_SepaDebitCopyWithImpl<$Res>; +abstract class _$$SepaDebitImplCopyWith<$Res> + implements $SepaDebitCopyWith<$Res> { + factory _$$SepaDebitImplCopyWith( + _$SepaDebitImpl value, $Res Function(_$SepaDebitImpl) then) = + __$$SepaDebitImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1918,11 +1925,11 @@ abstract class _$$_SepaDebitCopyWith<$Res> implements $SepaDebitCopyWith<$Res> { } /// @nodoc -class __$$_SepaDebitCopyWithImpl<$Res> - extends _$SepaDebitCopyWithImpl<$Res, _$_SepaDebit> - implements _$$_SepaDebitCopyWith<$Res> { - __$$_SepaDebitCopyWithImpl( - _$_SepaDebit _value, $Res Function(_$_SepaDebit) _then) +class __$$SepaDebitImplCopyWithImpl<$Res> + extends _$SepaDebitCopyWithImpl<$Res, _$SepaDebitImpl> + implements _$$SepaDebitImplCopyWith<$Res> { + __$$SepaDebitImplCopyWithImpl( + _$SepaDebitImpl _value, $Res Function(_$SepaDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1933,7 +1940,7 @@ class __$$_SepaDebitCopyWithImpl<$Res> Object? fingerprint = freezed, Object? last4 = freezed, }) { - return _then(_$_SepaDebit( + return _then(_$SepaDebitImpl( country: freezed == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -1957,12 +1964,12 @@ class __$$_SepaDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_SepaDebit implements _SepaDebit { - const _$_SepaDebit( +class _$SepaDebitImpl implements _SepaDebit { + const _$SepaDebitImpl( {this.country, this.bankCode, this.fingerprint, this.last4}); - factory _$_SepaDebit.fromJson(Map json) => - _$$_SepaDebitFromJson(json); + factory _$SepaDebitImpl.fromJson(Map json) => + _$$SepaDebitImplFromJson(json); /// Two letter ISO code representing the country of the bank account. @override @@ -1989,7 +1996,7 @@ class _$_SepaDebit implements _SepaDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SepaDebit && + other is _$SepaDebitImpl && (identical(other.country, country) || other.country == country) && (identical(other.bankCode, bankCode) || other.bankCode == bankCode) && @@ -2006,12 +2013,12 @@ class _$_SepaDebit implements _SepaDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SepaDebitCopyWith<_$_SepaDebit> get copyWith => - __$$_SepaDebitCopyWithImpl<_$_SepaDebit>(this, _$identity); + _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => + __$$SepaDebitImplCopyWithImpl<_$SepaDebitImpl>(this, _$identity); @override Map toJson() { - return _$$_SepaDebitToJson( + return _$$SepaDebitImplToJson( this, ); } @@ -2022,10 +2029,10 @@ abstract class _SepaDebit implements SepaDebit { {final String? country, final String? bankCode, final String? fingerprint, - final String? last4}) = _$_SepaDebit; + final String? last4}) = _$SepaDebitImpl; factory _SepaDebit.fromJson(Map json) = - _$_SepaDebit.fromJson; + _$SepaDebitImpl.fromJson; @override @@ -2045,7 +2052,7 @@ abstract class _SepaDebit implements SepaDebit { String? get last4; @override @JsonKey(ignore: true) - _$$_SepaDebitCopyWith<_$_SepaDebit> get copyWith => + _$$SepaDebitImplCopyWith<_$SepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2096,19 +2103,21 @@ class _$SofortCopyWithImpl<$Res, $Val extends Sofort> } /// @nodoc -abstract class _$$_SofortCopyWith<$Res> implements $SofortCopyWith<$Res> { - factory _$$_SofortCopyWith(_$_Sofort value, $Res Function(_$_Sofort) then) = - __$$_SofortCopyWithImpl<$Res>; +abstract class _$$SofortImplCopyWith<$Res> implements $SofortCopyWith<$Res> { + factory _$$SofortImplCopyWith( + _$SofortImpl value, $Res Function(_$SofortImpl) then) = + __$$SofortImplCopyWithImpl<$Res>; @override @useResult $Res call({String? country}); } /// @nodoc -class __$$_SofortCopyWithImpl<$Res> - extends _$SofortCopyWithImpl<$Res, _$_Sofort> - implements _$$_SofortCopyWith<$Res> { - __$$_SofortCopyWithImpl(_$_Sofort _value, $Res Function(_$_Sofort) _then) +class __$$SofortImplCopyWithImpl<$Res> + extends _$SofortCopyWithImpl<$Res, _$SofortImpl> + implements _$$SofortImplCopyWith<$Res> { + __$$SofortImplCopyWithImpl( + _$SofortImpl _value, $Res Function(_$SofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2116,7 +2125,7 @@ class __$$_SofortCopyWithImpl<$Res> $Res call({ Object? country = freezed, }) { - return _then(_$_Sofort( + return _then(_$SofortImpl( country: freezed == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -2128,11 +2137,11 @@ class __$$_SofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Sofort implements _Sofort { - const _$_Sofort({this.country}); +class _$SofortImpl implements _Sofort { + const _$SofortImpl({this.country}); - factory _$_Sofort.fromJson(Map json) => - _$$_SofortFromJson(json); + factory _$SofortImpl.fromJson(Map json) => + _$$SofortImplFromJson(json); /// Two letter ISO code representing the country of the bank account. @override @@ -2147,7 +2156,7 @@ class _$_Sofort implements _Sofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Sofort && + other is _$SofortImpl && (identical(other.country, country) || other.country == country)); } @@ -2158,21 +2167,21 @@ class _$_Sofort implements _Sofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SofortCopyWith<_$_Sofort> get copyWith => - __$$_SofortCopyWithImpl<_$_Sofort>(this, _$identity); + _$$SofortImplCopyWith<_$SofortImpl> get copyWith => + __$$SofortImplCopyWithImpl<_$SofortImpl>(this, _$identity); @override Map toJson() { - return _$$_SofortToJson( + return _$$SofortImplToJson( this, ); } } abstract class _Sofort implements Sofort { - const factory _Sofort({final String? country}) = _$_Sofort; + const factory _Sofort({final String? country}) = _$SofortImpl; - factory _Sofort.fromJson(Map json) = _$_Sofort.fromJson; + factory _Sofort.fromJson(Map json) = _$SofortImpl.fromJson; @override @@ -2180,7 +2189,7 @@ abstract class _Sofort implements Sofort { String? get country; @override @JsonKey(ignore: true) - _$$_SofortCopyWith<_$_Sofort> get copyWith => + _$$SofortImplCopyWith<_$SofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2230,18 +2239,18 @@ class _$UpiCopyWithImpl<$Res, $Val extends Upi> implements $UpiCopyWith<$Res> { } /// @nodoc -abstract class _$$_UpiCopyWith<$Res> implements $UpiCopyWith<$Res> { - factory _$$_UpiCopyWith(_$_Upi value, $Res Function(_$_Upi) then) = - __$$_UpiCopyWithImpl<$Res>; +abstract class _$$UpiImplCopyWith<$Res> implements $UpiCopyWith<$Res> { + factory _$$UpiImplCopyWith(_$UpiImpl value, $Res Function(_$UpiImpl) then) = + __$$UpiImplCopyWithImpl<$Res>; @override @useResult $Res call({String? vpa}); } /// @nodoc -class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> - implements _$$_UpiCopyWith<$Res> { - __$$_UpiCopyWithImpl(_$_Upi _value, $Res Function(_$_Upi) _then) +class __$$UpiImplCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$UpiImpl> + implements _$$UpiImplCopyWith<$Res> { + __$$UpiImplCopyWithImpl(_$UpiImpl _value, $Res Function(_$UpiImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2249,7 +2258,7 @@ class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> $Res call({ Object? vpa = freezed, }) { - return _then(_$_Upi( + return _then(_$UpiImpl( vpa: freezed == vpa ? _value.vpa : vpa // ignore: cast_nullable_to_non_nullable @@ -2261,10 +2270,11 @@ class __$$_UpiCopyWithImpl<$Res> extends _$UpiCopyWithImpl<$Res, _$_Upi> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_Upi implements _Upi { - const _$_Upi({this.vpa}); +class _$UpiImpl implements _Upi { + const _$UpiImpl({this.vpa}); - factory _$_Upi.fromJson(Map json) => _$$_UpiFromJson(json); + factory _$UpiImpl.fromJson(Map json) => + _$$UpiImplFromJson(json); /// The customer's vpa. @override @@ -2279,7 +2289,7 @@ class _$_Upi implements _Upi { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Upi && + other is _$UpiImpl && (identical(other.vpa, vpa) || other.vpa == vpa)); } @@ -2290,21 +2300,21 @@ class _$_Upi implements _Upi { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UpiCopyWith<_$_Upi> get copyWith => - __$$_UpiCopyWithImpl<_$_Upi>(this, _$identity); + _$$UpiImplCopyWith<_$UpiImpl> get copyWith => + __$$UpiImplCopyWithImpl<_$UpiImpl>(this, _$identity); @override Map toJson() { - return _$$_UpiToJson( + return _$$UpiImplToJson( this, ); } } abstract class _Upi implements Upi { - const factory _Upi({final String? vpa}) = _$_Upi; + const factory _Upi({final String? vpa}) = _$UpiImpl; - factory _Upi.fromJson(Map json) = _$_Upi.fromJson; + factory _Upi.fromJson(Map json) = _$UpiImpl.fromJson; @override @@ -2312,7 +2322,8 @@ abstract class _Upi implements Upi { String? get vpa; @override @JsonKey(ignore: true) - _$$_UpiCopyWith<_$_Upi> get copyWith => throw _privateConstructorUsedError; + _$$UpiImplCopyWith<_$UpiImpl> get copyWith => + throw _privateConstructorUsedError; } UsBankAccount _$UsBankAccountFromJson(Map json) { @@ -2438,11 +2449,11 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> } /// @nodoc -abstract class _$$_UsBankAccountCopyWith<$Res> +abstract class _$$UsBankAccountImplCopyWith<$Res> implements $UsBankAccountCopyWith<$Res> { - factory _$$_UsBankAccountCopyWith( - _$_UsBankAccount value, $Res Function(_$_UsBankAccount) then) = - __$$_UsBankAccountCopyWithImpl<$Res>; + factory _$$UsBankAccountImplCopyWith( + _$UsBankAccountImpl value, $Res Function(_$UsBankAccountImpl) then) = + __$$UsBankAccountImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2458,11 +2469,11 @@ abstract class _$$_UsBankAccountCopyWith<$Res> } /// @nodoc -class __$$_UsBankAccountCopyWithImpl<$Res> - extends _$UsBankAccountCopyWithImpl<$Res, _$_UsBankAccount> - implements _$$_UsBankAccountCopyWith<$Res> { - __$$_UsBankAccountCopyWithImpl( - _$_UsBankAccount _value, $Res Function(_$_UsBankAccount) _then) +class __$$UsBankAccountImplCopyWithImpl<$Res> + extends _$UsBankAccountCopyWithImpl<$Res, _$UsBankAccountImpl> + implements _$$UsBankAccountImplCopyWith<$Res> { + __$$UsBankAccountImplCopyWithImpl( + _$UsBankAccountImpl _value, $Res Function(_$UsBankAccountImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2478,7 +2489,7 @@ class __$$_UsBankAccountCopyWithImpl<$Res> Object? preferredNetworks = freezed, Object? supportedNetworks = freezed, }) { - return _then(_$_UsBankAccount( + return _then(_$UsBankAccountImpl( routingNumber: freezed == routingNumber ? _value.routingNumber : routingNumber // ignore: cast_nullable_to_non_nullable @@ -2522,8 +2533,8 @@ class __$$_UsBankAccountCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_UsBankAccount implements _UsBankAccount { - const _$_UsBankAccount( +class _$UsBankAccountImpl implements _UsBankAccount { + const _$UsBankAccountImpl( {this.routingNumber, this.last4, required this.accountHolderType, @@ -2536,8 +2547,8 @@ class _$_UsBankAccount implements _UsBankAccount { : _preferredNetworks = preferredNetworks, _supportedNetworks = supportedNetworks; - factory _$_UsBankAccount.fromJson(Map json) => - _$$_UsBankAccountFromJson(json); + factory _$UsBankAccountImpl.fromJson(Map json) => + _$$UsBankAccountImplFromJson(json); /// Routing number of the bank account @override @@ -2604,7 +2615,7 @@ class _$_UsBankAccount implements _UsBankAccount { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_UsBankAccount && + other is _$UsBankAccountImpl && (identical(other.routingNumber, routingNumber) || other.routingNumber == routingNumber) && (identical(other.last4, last4) || other.last4 == last4) && @@ -2641,12 +2652,12 @@ class _$_UsBankAccount implements _UsBankAccount { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UsBankAccountCopyWith<_$_UsBankAccount> get copyWith => - __$$_UsBankAccountCopyWithImpl<_$_UsBankAccount>(this, _$identity); + _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => + __$$UsBankAccountImplCopyWithImpl<_$UsBankAccountImpl>(this, _$identity); @override Map toJson() { - return _$$_UsBankAccountToJson( + return _$$UsBankAccountImplToJson( this, ); } @@ -2662,10 +2673,10 @@ abstract class _UsBankAccount implements UsBankAccount { final String? fingerprint, final String? linkedAccount, final List? preferredNetworks, - final List? supportedNetworks}) = _$_UsBankAccount; + final List? supportedNetworks}) = _$UsBankAccountImpl; factory _UsBankAccount.fromJson(Map json) = - _$_UsBankAccount.fromJson; + _$UsBankAccountImpl.fromJson; @override @@ -2705,6 +2716,6 @@ abstract class _UsBankAccount implements UsBankAccount { List? get supportedNetworks; @override @JsonKey(ignore: true) - _$$_UsBankAccountCopyWith<_$_UsBankAccount> get copyWith => + _$$UsBankAccountImplCopyWith<_$UsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart index 05e9fd452..29a49eaa9 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method.g.dart @@ -6,7 +6,8 @@ part of 'payment_method.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethod _$$_PaymentMethodFromJson(Map json) => _$_PaymentMethod( +_$PaymentMethodImpl _$$PaymentMethodImplFromJson(Map json) => + _$PaymentMethodImpl( id: json['id'] as String, object: json['object'] as String? ?? "payment_method", billingDetails: json['billingDetails'] == null @@ -55,7 +56,7 @@ _$_PaymentMethod _$$_PaymentMethodFromJson(Map json) => _$_PaymentMethod( type: $enumDecode(_$PaymentMethodTypeEnumMap, json['type']), ); -Map _$$_PaymentMethodToJson(_$_PaymentMethod instance) { +Map _$$PaymentMethodImplToJson(_$PaymentMethodImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -86,24 +87,25 @@ Map _$$_PaymentMethodToJson(_$_PaymentMethod instance) { } const _$PaymentMethodTypeEnumMap = { - PaymentMethodType.acssDebit: 'acssDebit', + PaymentMethodType.acssDebit: 'acss_debit', PaymentMethodType.affirm: 'affirm', - PaymentMethodType.afterpayClearpay: 'afterpayClearpay', + PaymentMethodType.afterpayClearpay: 'afterpay_clearpay', PaymentMethodType.alipay: 'alipay', - PaymentMethodType.auBecsDebit: 'auBecsDebit', - PaymentMethodType.bacsDebit: 'bacsDebit', + PaymentMethodType.auBecsDebit: 'au_becs_debit', + PaymentMethodType.bacsDebit: 'bacs_debit', PaymentMethodType.bancontact: 'bancontact', PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', - PaymentMethodType.cardPresent: 'cardPresent', - PaymentMethodType.customerBalance: 'customerBalance', + PaymentMethodType.cashapp: 'cashapp', + PaymentMethodType.cardPresent: 'bacs_debit', + PaymentMethodType.customerBalance: 'customer_balance', PaymentMethodType.eps: 'eps', PaymentMethodType.fpx: 'fpx', PaymentMethodType.giropay: 'giropay', PaymentMethodType.grabpay: 'grabpay', PaymentMethodType.ideal: 'ideal', - PaymentMethodType.interacPresent: 'interacPresent', + PaymentMethodType.interacPresent: 'interac_present', PaymentMethodType.klarna: 'klarna', PaymentMethodType.konbini: 'konbini', PaymentMethodType.link: 'link', @@ -112,19 +114,20 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.paynow: 'paynow', PaymentMethodType.pix: 'pix', PaymentMethodType.promptpay: 'promptpay', - PaymentMethodType.sepaDebit: 'sepaDebit', + PaymentMethodType.sepaDebit: 'sepa_debit', PaymentMethodType.sofort: 'sofort', - PaymentMethodType.usBankAccount: 'usBankAccount', - PaymentMethodType.wechatPay: 'wechatPay', + PaymentMethodType.usBankAccount: 'us_bank_account', + PaymentMethodType.wechatPay: 'wechat_pay', + PaymentMethodType.unknown: 'unknown', }; -_$_AuBecsDebit _$$_AuBecsDebitFromJson(Map json) => _$_AuBecsDebit( +_$AuBecsDebitImpl _$$AuBecsDebitImplFromJson(Map json) => _$AuBecsDebitImpl( fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, bsbNumber: json['bsbNumber'] as String?, ); -Map _$$_AuBecsDebitToJson(_$_AuBecsDebit instance) { +Map _$$AuBecsDebitImplToJson(_$AuBecsDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -139,13 +142,13 @@ Map _$$_AuBecsDebitToJson(_$_AuBecsDebit instance) { return val; } -_$_BacsDebit _$$_BacsDebitFromJson(Map json) => _$_BacsDebit( +_$BacsDebitImpl _$$BacsDebitImplFromJson(Map json) => _$BacsDebitImpl( sortCode: json['sortCode'] as String?, fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, ); -Map _$$_BacsDebitToJson(_$_BacsDebit instance) { +Map _$$BacsDebitImplToJson(_$BacsDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -160,8 +163,8 @@ Map _$$_BacsDebitToJson(_$_BacsDebit instance) { return val; } -_$_CardPaymentMethod _$$_CardPaymentMethodFromJson(Map json) => - _$_CardPaymentMethod( +_$CardPaymentMethodImpl _$$CardPaymentMethodImplFromJson(Map json) => + _$CardPaymentMethodImpl( brand: json['brand'] as String?, country: json['country'] as String?, expYear: json['expYear'] as int?, @@ -174,8 +177,8 @@ _$_CardPaymentMethod _$$_CardPaymentMethodFromJson(Map json) => .toList(), ); -Map _$$_CardPaymentMethodToJson( - _$_CardPaymentMethod instance) { +Map _$$CardPaymentMethodImplToJson( + _$CardPaymentMethodImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -195,12 +198,12 @@ Map _$$_CardPaymentMethodToJson( return val; } -_$_Fpx _$$_FpxFromJson(Map json) => _$_Fpx( +_$FpxImpl _$$FpxImplFromJson(Map json) => _$FpxImpl( bank: json['bank'] as String?, accountHolderType: json['accountHolderType'] as String?, ); -Map _$$_FpxToJson(_$_Fpx instance) { +Map _$$FpxImplToJson(_$FpxImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -214,12 +217,12 @@ Map _$$_FpxToJson(_$_Fpx instance) { return val; } -_$_Ideal _$$_IdealFromJson(Map json) => _$_Ideal( +_$IdealImpl _$$IdealImplFromJson(Map json) => _$IdealImpl( bankIdentifierCode: json['bankIdentifierCode'] as String?, bank: json['bank'] as String?, ); -Map _$$_IdealToJson(_$_Ideal instance) { +Map _$$IdealImplToJson(_$IdealImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -233,14 +236,14 @@ Map _$$_IdealToJson(_$_Ideal instance) { return val; } -_$_SepaDebit _$$_SepaDebitFromJson(Map json) => _$_SepaDebit( +_$SepaDebitImpl _$$SepaDebitImplFromJson(Map json) => _$SepaDebitImpl( country: json['country'] as String?, bankCode: json['bankCode'] as String?, fingerprint: json['fingerprint'] as String?, last4: json['last4'] as String?, ); -Map _$$_SepaDebitToJson(_$_SepaDebit instance) { +Map _$$SepaDebitImplToJson(_$SepaDebitImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -256,11 +259,11 @@ Map _$$_SepaDebitToJson(_$_SepaDebit instance) { return val; } -_$_Sofort _$$_SofortFromJson(Map json) => _$_Sofort( +_$SofortImpl _$$SofortImplFromJson(Map json) => _$SofortImpl( country: json['country'] as String?, ); -Map _$$_SofortToJson(_$_Sofort instance) { +Map _$$SofortImplToJson(_$SofortImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -273,11 +276,11 @@ Map _$$_SofortToJson(_$_Sofort instance) { return val; } -_$_Upi _$$_UpiFromJson(Map json) => _$_Upi( +_$UpiImpl _$$UpiImplFromJson(Map json) => _$UpiImpl( vpa: json['vpa'] as String?, ); -Map _$$_UpiToJson(_$_Upi instance) { +Map _$$UpiImplToJson(_$UpiImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -290,7 +293,8 @@ Map _$$_UpiToJson(_$_Upi instance) { return val; } -_$_UsBankAccount _$$_UsBankAccountFromJson(Map json) => _$_UsBankAccount( +_$UsBankAccountImpl _$$UsBankAccountImplFromJson(Map json) => + _$UsBankAccountImpl( routingNumber: json['routingNumber'] as String?, last4: json['last4'] as String?, accountHolderType: $enumDecode( @@ -307,7 +311,7 @@ _$_UsBankAccount _$$_UsBankAccountFromJson(Map json) => _$_UsBankAccount( .toList(), ); -Map _$$_UsBankAccountToJson(_$_UsBankAccount instance) { +Map _$$UsBankAccountImplToJson(_$UsBankAccountImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart index 554bdfd37..48b286d24 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.freezed.dart @@ -111,21 +111,21 @@ class _$CardPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardPaymentMethodRefCopyWith<$Res> { - factory _$$_CardPaymentMethodRefCopyWith(_$_CardPaymentMethodRef value, - $Res Function(_$_CardPaymentMethodRef) then) = - __$$_CardPaymentMethodRefCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodRefImplCopyWith<$Res> { + factory _$$CardPaymentMethodRefImplCopyWith(_$CardPaymentMethodRefImpl value, + $Res Function(_$CardPaymentMethodRefImpl) then) = + __$$CardPaymentMethodRefImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_CardPaymentMethodRefCopyWithImpl<$Res> +class __$$CardPaymentMethodRefImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodRef> - implements _$$_CardPaymentMethodRefCopyWith<$Res> { - __$$_CardPaymentMethodRefCopyWithImpl(_$_CardPaymentMethodRef _value, - $Res Function(_$_CardPaymentMethodRef) _then) + _$CardPaymentMethodRefImpl> + implements _$$CardPaymentMethodRefImplCopyWith<$Res> { + __$$CardPaymentMethodRefImplCopyWithImpl(_$CardPaymentMethodRefImpl _value, + $Res Function(_$CardPaymentMethodRefImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -133,7 +133,7 @@ class __$$_CardPaymentMethodRefCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_CardPaymentMethodRef( + return _then(_$CardPaymentMethodRefImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -144,12 +144,12 @@ class __$$_CardPaymentMethodRefCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { - const _$_CardPaymentMethodRef(this.id, {final String? $type}) +class _$CardPaymentMethodRefImpl implements _CardPaymentMethodRef { + const _$CardPaymentMethodRefImpl(this.id, {final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodRef.fromJson(Map json) => - _$$_CardPaymentMethodRefFromJson(json); + factory _$CardPaymentMethodRefImpl.fromJson(Map json) => + _$$CardPaymentMethodRefImplFromJson(json); @override final String id; @@ -166,7 +166,7 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodRef && + other is _$CardPaymentMethodRefImpl && (identical(other.id, id) || other.id == id)); } @@ -177,9 +177,10 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodRefCopyWith<_$_CardPaymentMethodRef> get copyWith => - __$$_CardPaymentMethodRefCopyWithImpl<_$_CardPaymentMethodRef>( - this, _$identity); + _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> + get copyWith => + __$$CardPaymentMethodRefImplCopyWithImpl<_$CardPaymentMethodRefImpl>( + this, _$identity); @override @optionalTypeArgs @@ -263,7 +264,7 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { @override Map toJson() { - return _$$_CardPaymentMethodRefToJson( + return _$$CardPaymentMethodRefImplToJson( this, ); } @@ -272,23 +273,23 @@ class _$_CardPaymentMethodRef implements _CardPaymentMethodRef { abstract class _CardPaymentMethodRef implements CardPaymentMethodDetails, IdPaymentMethodDetails { const factory _CardPaymentMethodRef(final String id) = - _$_CardPaymentMethodRef; + _$CardPaymentMethodRefImpl; factory _CardPaymentMethodRef.fromJson(Map json) = - _$_CardPaymentMethodRef.fromJson; + _$CardPaymentMethodRefImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_CardPaymentMethodRefCopyWith<_$_CardPaymentMethodRef> get copyWith => - throw _privateConstructorUsedError; + _$$CardPaymentMethodRefImplCopyWith<_$CardPaymentMethodRefImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_CardPaymentMethodDefaultCopyWith<$Res> { - factory _$$_CardPaymentMethodDefaultCopyWith( - _$_CardPaymentMethodDefault value, - $Res Function(_$_CardPaymentMethodDefault) then) = - __$$_CardPaymentMethodDefaultCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodDefaultImplCopyWith<$Res> { + factory _$$CardPaymentMethodDefaultImplCopyWith( + _$CardPaymentMethodDefaultImpl value, + $Res Function(_$CardPaymentMethodDefaultImpl) then) = + __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res>; @useResult $Res call( {@ElementConverter() Element card, @@ -298,12 +299,13 @@ abstract class _$$_CardPaymentMethodDefaultCopyWith<$Res> { } /// @nodoc -class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> +class __$$CardPaymentMethodDefaultImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodDefault> - implements _$$_CardPaymentMethodDefaultCopyWith<$Res> { - __$$_CardPaymentMethodDefaultCopyWithImpl(_$_CardPaymentMethodDefault _value, - $Res Function(_$_CardPaymentMethodDefault) _then) + _$CardPaymentMethodDefaultImpl> + implements _$$CardPaymentMethodDefaultImplCopyWith<$Res> { + __$$CardPaymentMethodDefaultImplCopyWithImpl( + _$CardPaymentMethodDefaultImpl _value, + $Res Function(_$CardPaymentMethodDefaultImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -312,7 +314,7 @@ class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> Object? card = null, Object? billingDetails = freezed, }) { - return _then(_$_CardPaymentMethodDefault( + return _then(_$CardPaymentMethodDefaultImpl( card: null == card ? _value.card : card // ignore: cast_nullable_to_non_nullable @@ -339,15 +341,15 @@ class __$$_CardPaymentMethodDefaultCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { - const _$_CardPaymentMethodDefault( +class _$CardPaymentMethodDefaultImpl implements _CardPaymentMethodDefault { + const _$CardPaymentMethodDefaultImpl( {@ElementConverter() required this.card, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodDefault.fromJson(Map json) => - _$$_CardPaymentMethodDefaultFromJson(json); + factory _$CardPaymentMethodDefaultImpl.fromJson(Map json) => + _$$CardPaymentMethodDefaultImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -371,7 +373,7 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodDefault && + other is _$CardPaymentMethodDefaultImpl && (identical(other.card, card) || other.card == card) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -384,9 +386,9 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodDefaultCopyWith<_$_CardPaymentMethodDefault> - get copyWith => __$$_CardPaymentMethodDefaultCopyWithImpl< - _$_CardPaymentMethodDefault>(this, _$identity); + _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> + get copyWith => __$$CardPaymentMethodDefaultImplCopyWithImpl< + _$CardPaymentMethodDefaultImpl>(this, _$identity); @override @optionalTypeArgs @@ -470,7 +472,7 @@ class _$_CardPaymentMethodDefault implements _CardPaymentMethodDefault { @override Map toJson() { - return _$$_CardPaymentMethodDefaultToJson( + return _$$CardPaymentMethodDefaultImplToJson( this, ); } @@ -480,10 +482,10 @@ abstract class _CardPaymentMethodDefault implements CardPaymentMethodDetails { const factory _CardPaymentMethodDefault( {@ElementConverter() required final Element card, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CardPaymentMethodDefault; + final BillingDetails? billingDetails}) = _$CardPaymentMethodDefaultImpl; factory _CardPaymentMethodDefault.fromJson(Map json) = - _$_CardPaymentMethodDefault.fromJson; + _$CardPaymentMethodDefaultImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @ElementConverter() @@ -493,16 +495,16 @@ abstract class _CardPaymentMethodDefault implements CardPaymentMethodDetails { @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_CardPaymentMethodDefaultCopyWith<_$_CardPaymentMethodDefault> + _$$CardPaymentMethodDefaultImplCopyWith<_$CardPaymentMethodDefaultImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { - factory _$$_CardPaymentMethodDetailsTokenCopyWith( - _$_CardPaymentMethodDetailsToken value, - $Res Function(_$_CardPaymentMethodDetailsToken) then) = - __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res>; +abstract class _$$CardPaymentMethodDetailsTokenImplCopyWith<$Res> { + factory _$$CardPaymentMethodDetailsTokenImplCopyWith( + _$CardPaymentMethodDetailsTokenImpl value, + $Res Function(_$CardPaymentMethodDetailsTokenImpl) then) = + __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res>; @useResult $Res call( {CardTokenPaymentMethod card, @@ -513,13 +515,13 @@ abstract class _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { } /// @nodoc -class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> +class __$$CardPaymentMethodDetailsTokenImplCopyWithImpl<$Res> extends _$CardPaymentMethodDetailsCopyWithImpl<$Res, - _$_CardPaymentMethodDetailsToken> - implements _$$_CardPaymentMethodDetailsTokenCopyWith<$Res> { - __$$_CardPaymentMethodDetailsTokenCopyWithImpl( - _$_CardPaymentMethodDetailsToken _value, - $Res Function(_$_CardPaymentMethodDetailsToken) _then) + _$CardPaymentMethodDetailsTokenImpl> + implements _$$CardPaymentMethodDetailsTokenImplCopyWith<$Res> { + __$$CardPaymentMethodDetailsTokenImplCopyWithImpl( + _$CardPaymentMethodDetailsTokenImpl _value, + $Res Function(_$CardPaymentMethodDetailsTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -528,7 +530,7 @@ class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> Object? card = null, Object? billingDetails = freezed, }) { - return _then(_$_CardPaymentMethodDetailsToken( + return _then(_$CardPaymentMethodDetailsTokenImpl( card: null == card ? _value.card : card // ignore: cast_nullable_to_non_nullable @@ -563,17 +565,17 @@ class __$$_CardPaymentMethodDetailsTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardPaymentMethodDetailsToken +class _$CardPaymentMethodDetailsTokenImpl implements _CardPaymentMethodDetailsToken { - const _$_CardPaymentMethodDetailsToken( + const _$CardPaymentMethodDetailsTokenImpl( {required this.card, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'card'; - factory _$_CardPaymentMethodDetailsToken.fromJson( + factory _$CardPaymentMethodDetailsTokenImpl.fromJson( Map json) => - _$$_CardPaymentMethodDetailsTokenFromJson(json); + _$$CardPaymentMethodDetailsTokenImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -596,7 +598,7 @@ class _$_CardPaymentMethodDetailsToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardPaymentMethodDetailsToken && + other is _$CardPaymentMethodDetailsTokenImpl && (identical(other.card, card) || other.card == card) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -609,9 +611,10 @@ class _$_CardPaymentMethodDetailsToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardPaymentMethodDetailsTokenCopyWith<_$_CardPaymentMethodDetailsToken> - get copyWith => __$$_CardPaymentMethodDetailsTokenCopyWithImpl< - _$_CardPaymentMethodDetailsToken>(this, _$identity); + _$$CardPaymentMethodDetailsTokenImplCopyWith< + _$CardPaymentMethodDetailsTokenImpl> + get copyWith => __$$CardPaymentMethodDetailsTokenImplCopyWithImpl< + _$CardPaymentMethodDetailsTokenImpl>(this, _$identity); @override @optionalTypeArgs @@ -695,7 +698,7 @@ class _$_CardPaymentMethodDetailsToken @override Map toJson() { - return _$$_CardPaymentMethodDetailsTokenToJson( + return _$$CardPaymentMethodDetailsTokenImplToJson( this, ); } @@ -704,12 +707,13 @@ class _$_CardPaymentMethodDetailsToken abstract class _CardPaymentMethodDetailsToken implements CardPaymentMethodDetails { const factory _CardPaymentMethodDetailsToken( - {required final CardTokenPaymentMethod card, - @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_CardPaymentMethodDetailsToken; + {required final CardTokenPaymentMethod card, + @JsonKey(name: "billing_details") + final BillingDetails? billingDetails}) = + _$CardPaymentMethodDetailsTokenImpl; factory _CardPaymentMethodDetailsToken.fromJson(Map json) = - _$_CardPaymentMethodDetailsToken.fromJson; + _$CardPaymentMethodDetailsTokenImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. CardTokenPaymentMethod get card; @@ -718,7 +722,8 @@ abstract class _CardPaymentMethodDetailsToken @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_CardPaymentMethodDetailsTokenCopyWith<_$_CardPaymentMethodDetailsToken> + _$$CardPaymentMethodDetailsTokenImplCopyWith< + _$CardPaymentMethodDetailsTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -820,23 +825,23 @@ class _$IdealPaymentMethodDetailsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_IdIdealPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdIdealPaymentMethodDetailsCopyWith( - _$_IdIdealPaymentMethodDetails value, - $Res Function(_$_IdIdealPaymentMethodDetails) then) = - __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdIdealPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdIdealPaymentMethodDetailsImplCopyWith( + _$IdIdealPaymentMethodDetailsImpl value, + $Res Function(_$IdIdealPaymentMethodDetailsImpl) then) = + __$$IdIdealPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call({String id}); } /// @nodoc -class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdIdealPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdIdealPaymentMethodDetails> - implements _$$_IdIdealPaymentMethodDetailsCopyWith<$Res> { - __$$_IdIdealPaymentMethodDetailsCopyWithImpl( - _$_IdIdealPaymentMethodDetails _value, - $Res Function(_$_IdIdealPaymentMethodDetails) _then) + _$IdIdealPaymentMethodDetailsImpl> + implements _$$IdIdealPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdIdealPaymentMethodDetailsImplCopyWithImpl( + _$IdIdealPaymentMethodDetailsImpl _value, + $Res Function(_$IdIdealPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -844,7 +849,7 @@ class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> $Res call({ Object? id = null, }) { - return _then(_$_IdIdealPaymentMethodDetails( + return _then(_$IdIdealPaymentMethodDetailsImpl( null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -855,12 +860,14 @@ class __$$_IdIdealPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { - const _$_IdIdealPaymentMethodDetails(this.id, {final String? $type}) +class _$IdIdealPaymentMethodDetailsImpl + implements _IdIdealPaymentMethodDetails { + const _$IdIdealPaymentMethodDetailsImpl(this.id, {final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdIdealPaymentMethodDetails.fromJson(Map json) => - _$$_IdIdealPaymentMethodDetailsFromJson(json); + factory _$IdIdealPaymentMethodDetailsImpl.fromJson( + Map json) => + _$$IdIdealPaymentMethodDetailsImplFromJson(json); @override final String id; @@ -877,7 +884,7 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdIdealPaymentMethodDetails && + other is _$IdIdealPaymentMethodDetailsImpl && (identical(other.id, id) || other.id == id)); } @@ -888,9 +895,9 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdIdealPaymentMethodDetailsCopyWith<_$_IdIdealPaymentMethodDetails> - get copyWith => __$$_IdIdealPaymentMethodDetailsCopyWithImpl< - _$_IdIdealPaymentMethodDetails>(this, _$identity); + _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> + get copyWith => __$$IdIdealPaymentMethodDetailsImplCopyWithImpl< + _$IdIdealPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -975,7 +982,7 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { @override Map toJson() { - return _$$_IdIdealPaymentMethodDetailsToJson( + return _$$IdIdealPaymentMethodDetailsImplToJson( this, ); } @@ -984,23 +991,23 @@ class _$_IdIdealPaymentMethodDetails implements _IdIdealPaymentMethodDetails { abstract class _IdIdealPaymentMethodDetails implements IdealPaymentMethodDetails, IdPaymentMethodDetails { const factory _IdIdealPaymentMethodDetails(final String id) = - _$_IdIdealPaymentMethodDetails; + _$IdIdealPaymentMethodDetailsImpl; factory _IdIdealPaymentMethodDetails.fromJson(Map json) = - _$_IdIdealPaymentMethodDetails.fromJson; + _$IdIdealPaymentMethodDetailsImpl.fromJson; String get id; @JsonKey(ignore: true) - _$$_IdIdealPaymentMethodDetailsCopyWith<_$_IdIdealPaymentMethodDetails> + _$$IdIdealPaymentMethodDetailsImplCopyWith<_$IdIdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_IdealPaymentMethodDetailsCopyWith<$Res> { - factory _$$_IdealPaymentMethodDetailsCopyWith( - _$_IdealPaymentMethodDetails value, - $Res Function(_$_IdealPaymentMethodDetails) then) = - __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res>; +abstract class _$$IdealPaymentMethodDetailsImplCopyWith<$Res> { + factory _$$IdealPaymentMethodDetailsImplCopyWith( + _$IdealPaymentMethodDetailsImpl value, + $Res Function(_$IdealPaymentMethodDetailsImpl) then) = + __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res>; @useResult $Res call( {@ElementConverter() Element ideal, @@ -1010,13 +1017,13 @@ abstract class _$$_IdealPaymentMethodDetailsCopyWith<$Res> { } /// @nodoc -class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> +class __$$IdealPaymentMethodDetailsImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdealPaymentMethodDetails> - implements _$$_IdealPaymentMethodDetailsCopyWith<$Res> { - __$$_IdealPaymentMethodDetailsCopyWithImpl( - _$_IdealPaymentMethodDetails _value, - $Res Function(_$_IdealPaymentMethodDetails) _then) + _$IdealPaymentMethodDetailsImpl> + implements _$$IdealPaymentMethodDetailsImplCopyWith<$Res> { + __$$IdealPaymentMethodDetailsImplCopyWithImpl( + _$IdealPaymentMethodDetailsImpl _value, + $Res Function(_$IdealPaymentMethodDetailsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1025,7 +1032,7 @@ class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> Object? ideal = null, Object? billingDetails = freezed, }) { - return _then(_$_IdealPaymentMethodDetails( + return _then(_$IdealPaymentMethodDetailsImpl( ideal: null == ideal ? _value.ideal : ideal // ignore: cast_nullable_to_non_nullable @@ -1052,15 +1059,15 @@ class __$$_IdealPaymentMethodDetailsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { - const _$_IdealPaymentMethodDetails( +class _$IdealPaymentMethodDetailsImpl implements _IdealPaymentMethodDetails { + const _$IdealPaymentMethodDetailsImpl( {@ElementConverter() required this.ideal, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdealPaymentMethodDetails.fromJson(Map json) => - _$$_IdealPaymentMethodDetailsFromJson(json); + factory _$IdealPaymentMethodDetailsImpl.fromJson(Map json) => + _$$IdealPaymentMethodDetailsImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -1084,7 +1091,7 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealPaymentMethodDetails && + other is _$IdealPaymentMethodDetailsImpl && (identical(other.ideal, ideal) || other.ideal == ideal) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -1097,9 +1104,9 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealPaymentMethodDetailsCopyWith<_$_IdealPaymentMethodDetails> - get copyWith => __$$_IdealPaymentMethodDetailsCopyWithImpl< - _$_IdealPaymentMethodDetails>(this, _$identity); + _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> + get copyWith => __$$IdealPaymentMethodDetailsImplCopyWithImpl< + _$IdealPaymentMethodDetailsImpl>(this, _$identity); @override @optionalTypeArgs @@ -1184,7 +1191,7 @@ class _$_IdealPaymentMethodDetails implements _IdealPaymentMethodDetails { @override Map toJson() { - return _$$_IdealPaymentMethodDetailsToJson( + return _$$IdealPaymentMethodDetailsImplToJson( this, ); } @@ -1194,10 +1201,10 @@ abstract class _IdealPaymentMethodDetails implements IdealPaymentMethodDetails { const factory _IdealPaymentMethodDetails( {@ElementConverter() required final Element ideal, @JsonKey(name: "billing_details") - final BillingDetails? billingDetails}) = _$_IdealPaymentMethodDetails; + final BillingDetails? billingDetails}) = _$IdealPaymentMethodDetailsImpl; factory _IdealPaymentMethodDetails.fromJson(Map json) = - _$_IdealPaymentMethodDetails.fromJson; + _$IdealPaymentMethodDetailsImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. @ElementConverter() @@ -1207,16 +1214,16 @@ abstract class _IdealPaymentMethodDetails implements IdealPaymentMethodDetails { @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_IdealPaymentMethodDetailsCopyWith<_$_IdealPaymentMethodDetails> + _$$IdealPaymentMethodDetailsImplCopyWith<_$IdealPaymentMethodDetailsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { - factory _$$_IdealPaymentMethodDetailsSelfCollectCopyWith( - _$_IdealPaymentMethodDetailsSelfCollect value, - $Res Function(_$_IdealPaymentMethodDetailsSelfCollect) then) = - __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res>; +abstract class _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith<$Res> { + factory _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith( + _$IdealPaymentMethodDetailsSelfCollectImpl value, + $Res Function(_$IdealPaymentMethodDetailsSelfCollectImpl) then) = + __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res>; @useResult $Res call( {IdealBankData ideal, @@ -1227,13 +1234,13 @@ abstract class _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { } /// @nodoc -class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> +class __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl<$Res> extends _$IdealPaymentMethodDetailsCopyWithImpl<$Res, - _$_IdealPaymentMethodDetailsSelfCollect> - implements _$$_IdealPaymentMethodDetailsSelfCollectCopyWith<$Res> { - __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl( - _$_IdealPaymentMethodDetailsSelfCollect _value, - $Res Function(_$_IdealPaymentMethodDetailsSelfCollect) _then) + _$IdealPaymentMethodDetailsSelfCollectImpl> + implements _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith<$Res> { + __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl( + _$IdealPaymentMethodDetailsSelfCollectImpl _value, + $Res Function(_$IdealPaymentMethodDetailsSelfCollectImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1242,7 +1249,7 @@ class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> Object? ideal = null, Object? billingDetails = freezed, }) { - return _then(_$_IdealPaymentMethodDetailsSelfCollect( + return _then(_$IdealPaymentMethodDetailsSelfCollectImpl( ideal: null == ideal ? _value.ideal : ideal // ignore: cast_nullable_to_non_nullable @@ -1277,17 +1284,17 @@ class __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealPaymentMethodDetailsSelfCollect +class _$IdealPaymentMethodDetailsSelfCollectImpl implements _IdealPaymentMethodDetailsSelfCollect { - const _$_IdealPaymentMethodDetailsSelfCollect( + const _$IdealPaymentMethodDetailsSelfCollectImpl( {required this.ideal, @JsonKey(name: "billing_details") this.billingDetails, final String? $type}) : $type = $type ?? 'ideal'; - factory _$_IdealPaymentMethodDetailsSelfCollect.fromJson( + factory _$IdealPaymentMethodDetailsSelfCollectImpl.fromJson( Map json) => - _$$_IdealPaymentMethodDetailsSelfCollectFromJson(json); + _$$IdealPaymentMethodDetailsSelfCollectImplFromJson(json); /// Uses the provided card or cardNumber Element for confirmation. @override @@ -1310,7 +1317,7 @@ class _$_IdealPaymentMethodDetailsSelfCollect bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealPaymentMethodDetailsSelfCollect && + other is _$IdealPaymentMethodDetailsSelfCollectImpl && (identical(other.ideal, ideal) || other.ideal == ideal) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails)); @@ -1323,10 +1330,10 @@ class _$_IdealPaymentMethodDetailsSelfCollect @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealPaymentMethodDetailsSelfCollectCopyWith< - _$_IdealPaymentMethodDetailsSelfCollect> - get copyWith => __$$_IdealPaymentMethodDetailsSelfCollectCopyWithImpl< - _$_IdealPaymentMethodDetailsSelfCollect>(this, _$identity); + _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< + _$IdealPaymentMethodDetailsSelfCollectImpl> + get copyWith => __$$IdealPaymentMethodDetailsSelfCollectImplCopyWithImpl< + _$IdealPaymentMethodDetailsSelfCollectImpl>(this, _$identity); @override @optionalTypeArgs @@ -1411,7 +1418,7 @@ class _$_IdealPaymentMethodDetailsSelfCollect @override Map toJson() { - return _$$_IdealPaymentMethodDetailsSelfCollectToJson( + return _$$IdealPaymentMethodDetailsSelfCollectImplToJson( this, ); } @@ -1423,11 +1430,11 @@ abstract class _IdealPaymentMethodDetailsSelfCollect {required final IdealBankData ideal, @JsonKey(name: "billing_details") final BillingDetails? billingDetails}) = - _$_IdealPaymentMethodDetailsSelfCollect; + _$IdealPaymentMethodDetailsSelfCollectImpl; factory _IdealPaymentMethodDetailsSelfCollect.fromJson( Map json) = - _$_IdealPaymentMethodDetailsSelfCollect.fromJson; + _$IdealPaymentMethodDetailsSelfCollectImpl.fromJson; /// Uses the provided card or cardNumber Element for confirmation. IdealBankData get ideal; @@ -1436,8 +1443,8 @@ abstract class _IdealPaymentMethodDetailsSelfCollect @JsonKey(name: "billing_details") BillingDetails? get billingDetails; @JsonKey(ignore: true) - _$$_IdealPaymentMethodDetailsSelfCollectCopyWith< - _$_IdealPaymentMethodDetailsSelfCollect> + _$$IdealPaymentMethodDetailsSelfCollectImplCopyWith< + _$IdealPaymentMethodDetailsSelfCollectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1490,22 +1497,22 @@ class _$IdealBankDataCopyWithImpl<$Res, $Val extends IdealBankData> } /// @nodoc -abstract class _$$_IdealBankDataCopyWith<$Res> +abstract class _$$IdealBankDataImplCopyWith<$Res> implements $IdealBankDataCopyWith<$Res> { - factory _$$_IdealBankDataCopyWith( - _$_IdealBankData value, $Res Function(_$_IdealBankData) then) = - __$$_IdealBankDataCopyWithImpl<$Res>; + factory _$$IdealBankDataImplCopyWith( + _$IdealBankDataImpl value, $Res Function(_$IdealBankDataImpl) then) = + __$$IdealBankDataImplCopyWithImpl<$Res>; @override @useResult $Res call({String bank}); } /// @nodoc -class __$$_IdealBankDataCopyWithImpl<$Res> - extends _$IdealBankDataCopyWithImpl<$Res, _$_IdealBankData> - implements _$$_IdealBankDataCopyWith<$Res> { - __$$_IdealBankDataCopyWithImpl( - _$_IdealBankData _value, $Res Function(_$_IdealBankData) _then) +class __$$IdealBankDataImplCopyWithImpl<$Res> + extends _$IdealBankDataCopyWithImpl<$Res, _$IdealBankDataImpl> + implements _$$IdealBankDataImplCopyWith<$Res> { + __$$IdealBankDataImplCopyWithImpl( + _$IdealBankDataImpl _value, $Res Function(_$IdealBankDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1513,7 +1520,7 @@ class __$$_IdealBankDataCopyWithImpl<$Res> $Res call({ Object? bank = null, }) { - return _then(_$_IdealBankData( + return _then(_$IdealBankDataImpl( bank: null == bank ? _value.bank : bank // ignore: cast_nullable_to_non_nullable @@ -1524,11 +1531,11 @@ class __$$_IdealBankDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_IdealBankData implements _IdealBankData { - const _$_IdealBankData({required this.bank}); +class _$IdealBankDataImpl implements _IdealBankData { + const _$IdealBankDataImpl({required this.bank}); - factory _$_IdealBankData.fromJson(Map json) => - _$$_IdealBankDataFromJson(json); + factory _$IdealBankDataImpl.fromJson(Map json) => + _$$IdealBankDataImplFromJson(json); /// The customer's bank. @override @@ -1543,7 +1550,7 @@ class _$_IdealBankData implements _IdealBankData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_IdealBankData && + other is _$IdealBankDataImpl && (identical(other.bank, bank) || other.bank == bank)); } @@ -1554,22 +1561,23 @@ class _$_IdealBankData implements _IdealBankData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_IdealBankDataCopyWith<_$_IdealBankData> get copyWith => - __$$_IdealBankDataCopyWithImpl<_$_IdealBankData>(this, _$identity); + _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => + __$$IdealBankDataImplCopyWithImpl<_$IdealBankDataImpl>(this, _$identity); @override Map toJson() { - return _$$_IdealBankDataToJson( + return _$$IdealBankDataImplToJson( this, ); } } abstract class _IdealBankData implements IdealBankData { - const factory _IdealBankData({required final String bank}) = _$_IdealBankData; + const factory _IdealBankData({required final String bank}) = + _$IdealBankDataImpl; factory _IdealBankData.fromJson(Map json) = - _$_IdealBankData.fromJson; + _$IdealBankDataImpl.fromJson; @override @@ -1577,7 +1585,7 @@ abstract class _IdealBankData implements IdealBankData { String get bank; @override @JsonKey(ignore: true) - _$$_IdealBankDataCopyWith<_$_IdealBankData> get copyWith => + _$$IdealBankDataImplCopyWith<_$IdealBankDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1631,23 +1639,25 @@ class _$CardTokenPaymentMethodCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CardTokenPaymentMethodCopyWith<$Res> +abstract class _$$CardTokenPaymentMethodImplCopyWith<$Res> implements $CardTokenPaymentMethodCopyWith<$Res> { - factory _$$_CardTokenPaymentMethodCopyWith(_$_CardTokenPaymentMethod value, - $Res Function(_$_CardTokenPaymentMethod) then) = - __$$_CardTokenPaymentMethodCopyWithImpl<$Res>; + factory _$$CardTokenPaymentMethodImplCopyWith( + _$CardTokenPaymentMethodImpl value, + $Res Function(_$CardTokenPaymentMethodImpl) then) = + __$$CardTokenPaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call({String token}); } /// @nodoc -class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> +class __$$CardTokenPaymentMethodImplCopyWithImpl<$Res> extends _$CardTokenPaymentMethodCopyWithImpl<$Res, - _$_CardTokenPaymentMethod> - implements _$$_CardTokenPaymentMethodCopyWith<$Res> { - __$$_CardTokenPaymentMethodCopyWithImpl(_$_CardTokenPaymentMethod _value, - $Res Function(_$_CardTokenPaymentMethod) _then) + _$CardTokenPaymentMethodImpl> + implements _$$CardTokenPaymentMethodImplCopyWith<$Res> { + __$$CardTokenPaymentMethodImplCopyWithImpl( + _$CardTokenPaymentMethodImpl _value, + $Res Function(_$CardTokenPaymentMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1655,7 +1665,7 @@ class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> $Res call({ Object? token = null, }) { - return _then(_$_CardTokenPaymentMethod( + return _then(_$CardTokenPaymentMethodImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -1666,11 +1676,11 @@ class __$$_CardTokenPaymentMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { - const _$_CardTokenPaymentMethod({required this.token}); +class _$CardTokenPaymentMethodImpl implements _CardTokenPaymentMethod { + const _$CardTokenPaymentMethodImpl({required this.token}); - factory _$_CardTokenPaymentMethod.fromJson(Map json) => - _$$_CardTokenPaymentMethodFromJson(json); + factory _$CardTokenPaymentMethodImpl.fromJson(Map json) => + _$$CardTokenPaymentMethodImplFromJson(json); @override final String token; @@ -1684,7 +1694,7 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardTokenPaymentMethod && + other is _$CardTokenPaymentMethodImpl && (identical(other.token, token) || other.token == token)); } @@ -1695,13 +1705,13 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardTokenPaymentMethodCopyWith<_$_CardTokenPaymentMethod> get copyWith => - __$$_CardTokenPaymentMethodCopyWithImpl<_$_CardTokenPaymentMethod>( - this, _$identity); + _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> + get copyWith => __$$CardTokenPaymentMethodImplCopyWithImpl< + _$CardTokenPaymentMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_CardTokenPaymentMethodToJson( + return _$$CardTokenPaymentMethodImplToJson( this, ); } @@ -1709,15 +1719,15 @@ class _$_CardTokenPaymentMethod implements _CardTokenPaymentMethod { abstract class _CardTokenPaymentMethod implements CardTokenPaymentMethod { const factory _CardTokenPaymentMethod({required final String token}) = - _$_CardTokenPaymentMethod; + _$CardTokenPaymentMethodImpl; factory _CardTokenPaymentMethod.fromJson(Map json) = - _$_CardTokenPaymentMethod.fromJson; + _$CardTokenPaymentMethodImpl.fromJson; @override String get token; @override @JsonKey(ignore: true) - _$$_CardTokenPaymentMethodCopyWith<_$_CardTokenPaymentMethod> get copyWith => - throw _privateConstructorUsedError; + _$$CardTokenPaymentMethodImplCopyWith<_$CardTokenPaymentMethodImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart index c9724d878..feaa34103 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_details.g.dart @@ -6,21 +6,22 @@ part of 'payment_method_details.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CardPaymentMethodRef _$$_CardPaymentMethodRefFromJson(Map json) => - _$_CardPaymentMethodRef( +_$CardPaymentMethodRefImpl _$$CardPaymentMethodRefImplFromJson(Map json) => + _$CardPaymentMethodRefImpl( json['id'] as String, $type: json['type'] as String?, ); -Map _$$_CardPaymentMethodRefToJson( - _$_CardPaymentMethodRef instance) => +Map _$$CardPaymentMethodRefImplToJson( + _$CardPaymentMethodRefImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_CardPaymentMethodDefault _$$_CardPaymentMethodDefaultFromJson(Map json) => - _$_CardPaymentMethodDefault( +_$CardPaymentMethodDefaultImpl _$$CardPaymentMethodDefaultImplFromJson( + Map json) => + _$CardPaymentMethodDefaultImpl( card: const ElementConverter().fromJson(json['card']), billingDetails: json['billing_details'] == null ? null @@ -29,8 +30,8 @@ _$_CardPaymentMethodDefault _$$_CardPaymentMethodDefaultFromJson(Map json) => $type: json['type'] as String?, ); -Map _$$_CardPaymentMethodDefaultToJson( - _$_CardPaymentMethodDefault instance) { +Map _$$CardPaymentMethodDefaultImplToJson( + _$CardPaymentMethodDefaultImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -45,20 +46,20 @@ Map _$$_CardPaymentMethodDefaultToJson( return val; } -_$_CardPaymentMethodDetailsToken _$$_CardPaymentMethodDetailsTokenFromJson( - Map json) => - _$_CardPaymentMethodDetailsToken( - card: CardTokenPaymentMethod.fromJson( - Map.from(json['card'] as Map)), - billingDetails: json['billing_details'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billing_details'] as Map)), - $type: json['type'] as String?, - ); +_$CardPaymentMethodDetailsTokenImpl + _$$CardPaymentMethodDetailsTokenImplFromJson(Map json) => + _$CardPaymentMethodDetailsTokenImpl( + card: CardTokenPaymentMethod.fromJson( + Map.from(json['card'] as Map)), + billingDetails: json['billing_details'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billing_details'] as Map)), + $type: json['type'] as String?, + ); -Map _$$_CardPaymentMethodDetailsTokenToJson( - _$_CardPaymentMethodDetailsToken instance) { +Map _$$CardPaymentMethodDetailsTokenImplToJson( + _$CardPaymentMethodDetailsTokenImpl instance) { final val = { 'card': instance.card.toJson(), }; @@ -74,22 +75,23 @@ Map _$$_CardPaymentMethodDetailsTokenToJson( return val; } -_$_IdIdealPaymentMethodDetails _$$_IdIdealPaymentMethodDetailsFromJson( +_$IdIdealPaymentMethodDetailsImpl _$$IdIdealPaymentMethodDetailsImplFromJson( Map json) => - _$_IdIdealPaymentMethodDetails( + _$IdIdealPaymentMethodDetailsImpl( json['id'] as String, $type: json['type'] as String?, ); -Map _$$_IdIdealPaymentMethodDetailsToJson( - _$_IdIdealPaymentMethodDetails instance) => +Map _$$IdIdealPaymentMethodDetailsImplToJson( + _$IdIdealPaymentMethodDetailsImpl instance) => { 'id': instance.id, 'type': instance.$type, }; -_$_IdealPaymentMethodDetails _$$_IdealPaymentMethodDetailsFromJson(Map json) => - _$_IdealPaymentMethodDetails( +_$IdealPaymentMethodDetailsImpl _$$IdealPaymentMethodDetailsImplFromJson( + Map json) => + _$IdealPaymentMethodDetailsImpl( ideal: const ElementConverter().fromJson(json['ideal']), billingDetails: json['billing_details'] == null ? null @@ -98,8 +100,8 @@ _$_IdealPaymentMethodDetails _$$_IdealPaymentMethodDetailsFromJson(Map json) => $type: json['type'] as String?, ); -Map _$$_IdealPaymentMethodDetailsToJson( - _$_IdealPaymentMethodDetails instance) { +Map _$$IdealPaymentMethodDetailsImplToJson( + _$IdealPaymentMethodDetailsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -114,9 +116,9 @@ Map _$$_IdealPaymentMethodDetailsToJson( return val; } -_$_IdealPaymentMethodDetailsSelfCollect - _$$_IdealPaymentMethodDetailsSelfCollectFromJson(Map json) => - _$_IdealPaymentMethodDetailsSelfCollect( +_$IdealPaymentMethodDetailsSelfCollectImpl + _$$IdealPaymentMethodDetailsSelfCollectImplFromJson(Map json) => + _$IdealPaymentMethodDetailsSelfCollectImpl( ideal: IdealBankData.fromJson( Map.from(json['ideal'] as Map)), billingDetails: json['billing_details'] == null @@ -126,8 +128,8 @@ _$_IdealPaymentMethodDetailsSelfCollect $type: json['type'] as String?, ); -Map _$$_IdealPaymentMethodDetailsSelfCollectToJson( - _$_IdealPaymentMethodDetailsSelfCollect instance) { +Map _$$IdealPaymentMethodDetailsSelfCollectImplToJson( + _$IdealPaymentMethodDetailsSelfCollectImpl instance) { final val = { 'ideal': instance.ideal.toJson(), }; @@ -143,22 +145,23 @@ Map _$$_IdealPaymentMethodDetailsSelfCollectToJson( return val; } -_$_IdealBankData _$$_IdealBankDataFromJson(Map json) => _$_IdealBankData( +_$IdealBankDataImpl _$$IdealBankDataImplFromJson(Map json) => + _$IdealBankDataImpl( bank: json['bank'] as String, ); -Map _$$_IdealBankDataToJson(_$_IdealBankData instance) => +Map _$$IdealBankDataImplToJson(_$IdealBankDataImpl instance) => { 'bank': instance.bank, }; -_$_CardTokenPaymentMethod _$$_CardTokenPaymentMethodFromJson(Map json) => - _$_CardTokenPaymentMethod( +_$CardTokenPaymentMethodImpl _$$CardTokenPaymentMethodImplFromJson(Map json) => + _$CardTokenPaymentMethodImpl( token: json['token'] as String, ); -Map _$$_CardTokenPaymentMethodToJson( - _$_CardTokenPaymentMethod instance) => +Map _$$CardTokenPaymentMethodImplToJson( + _$CardTokenPaymentMethodImpl instance) => { 'token': instance.token, }; diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart index c8a2b7485..353507f6e 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.freezed.dart @@ -257,10 +257,11 @@ class _$PaymentMethodParamsCopyWithImpl<$Res, $Val extends PaymentMethodParams> } /// @nodoc -abstract class _$$_PaymentMethodParamsCardCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardCopyWith(_$_PaymentMethodParamsCard value, - $Res Function(_$_PaymentMethodParamsCard) then) = - __$$_PaymentMethodParamsCardCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardImplCopyWith( + _$PaymentMethodParamsCardImpl value, + $Res Function(_$PaymentMethodParamsCardImpl) then) = + __$$PaymentMethodParamsCardImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -268,11 +269,13 @@ abstract class _$$_PaymentMethodParamsCardCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsCard> - implements _$$_PaymentMethodParamsCardCopyWith<$Res> { - __$$_PaymentMethodParamsCardCopyWithImpl(_$_PaymentMethodParamsCard _value, - $Res Function(_$_PaymentMethodParamsCard) _then) +class __$$PaymentMethodParamsCardImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsCardImpl> + implements _$$PaymentMethodParamsCardImplCopyWith<$Res> { + __$$PaymentMethodParamsCardImplCopyWithImpl( + _$PaymentMethodParamsCardImpl _value, + $Res Function(_$PaymentMethodParamsCardImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -280,7 +283,7 @@ class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCard( + return _then(_$PaymentMethodParamsCardImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -300,13 +303,13 @@ class __$$_PaymentMethodParamsCardCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { - const _$_PaymentMethodParamsCard( +class _$PaymentMethodParamsCardImpl implements _PaymentMethodParamsCard { + const _$PaymentMethodParamsCardImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCard.fromJson(Map json) => - _$$_PaymentMethodParamsCardFromJson(json); + factory _$PaymentMethodParamsCardImpl.fromJson(Map json) => + _$$PaymentMethodParamsCardImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -324,7 +327,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCard && + other is _$PaymentMethodParamsCardImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -336,10 +339,9 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardCopyWith<_$_PaymentMethodParamsCard> - get copyWith => - __$$_PaymentMethodParamsCardCopyWithImpl<_$_PaymentMethodParamsCard>( - this, _$identity); + _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> + get copyWith => __$$PaymentMethodParamsCardImplCopyWithImpl< + _$PaymentMethodParamsCardImpl>(this, _$identity); @override @optionalTypeArgs @@ -532,7 +534,7 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { @override Map toJson() { - return _$$_PaymentMethodParamsCardToJson( + return _$$PaymentMethodParamsCardImplToJson( this, ); } @@ -541,26 +543,26 @@ class _$_PaymentMethodParamsCard implements _PaymentMethodParamsCard { abstract class _PaymentMethodParamsCard implements PaymentMethodParams { const factory _PaymentMethodParamsCard( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsCard; + _$PaymentMethodParamsCardImpl; factory _PaymentMethodParamsCard.fromJson(Map json) = - _$_PaymentMethodParamsCard.fromJson; + _$PaymentMethodParamsCardImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardCopyWith<_$_PaymentMethodParamsCard> + _$$PaymentMethodParamsCardImplCopyWith<_$PaymentMethodParamsCardImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardWithTokenCopyWith( - _$_PaymentMethodParamsCardWithToken value, - $Res Function(_$_PaymentMethodParamsCardWithToken) then) = - __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardWithTokenImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardWithTokenImplCopyWith( + _$PaymentMethodParamsCardWithTokenImpl value, + $Res Function(_$PaymentMethodParamsCardWithTokenImpl) then) = + __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataCardFromToken paymentMethodData}); @@ -568,13 +570,13 @@ abstract class _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> +class __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsCardWithToken> - implements _$$_PaymentMethodParamsCardWithTokenCopyWith<$Res> { - __$$_PaymentMethodParamsCardWithTokenCopyWithImpl( - _$_PaymentMethodParamsCardWithToken _value, - $Res Function(_$_PaymentMethodParamsCardWithToken) _then) + _$PaymentMethodParamsCardWithTokenImpl> + implements _$$PaymentMethodParamsCardWithTokenImplCopyWith<$Res> { + __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl( + _$PaymentMethodParamsCardWithTokenImpl _value, + $Res Function(_$PaymentMethodParamsCardWithTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -582,7 +584,7 @@ class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCardWithToken( + return _then(_$PaymentMethodParamsCardWithTokenImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -603,15 +605,15 @@ class __$$_PaymentMethodParamsCardWithTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCardWithToken +class _$PaymentMethodParamsCardWithTokenImpl implements _PaymentMethodParamsCardWithToken { - const _$_PaymentMethodParamsCardWithToken( + const _$PaymentMethodParamsCardWithTokenImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCardWithToken.fromJson( + factory _$PaymentMethodParamsCardWithTokenImpl.fromJson( Map json) => - _$$_PaymentMethodParamsCardWithTokenFromJson(json); + _$$PaymentMethodParamsCardWithTokenImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -629,7 +631,7 @@ class _$_PaymentMethodParamsCardWithToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCardWithToken && + other is _$PaymentMethodParamsCardWithTokenImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -641,10 +643,10 @@ class _$_PaymentMethodParamsCardWithToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardWithTokenCopyWith< - _$_PaymentMethodParamsCardWithToken> - get copyWith => __$$_PaymentMethodParamsCardWithTokenCopyWithImpl< - _$_PaymentMethodParamsCardWithToken>(this, _$identity); + _$$PaymentMethodParamsCardWithTokenImplCopyWith< + _$PaymentMethodParamsCardWithTokenImpl> + get copyWith => __$$PaymentMethodParamsCardWithTokenImplCopyWithImpl< + _$PaymentMethodParamsCardWithTokenImpl>(this, _$identity); @override @optionalTypeArgs @@ -837,7 +839,7 @@ class _$_PaymentMethodParamsCardWithToken @override Map toJson() { - return _$$_PaymentMethodParamsCardWithTokenToJson( + return _$$PaymentMethodParamsCardWithTokenImplToJson( this, ); } @@ -847,27 +849,28 @@ abstract class _PaymentMethodParamsCardWithToken implements PaymentMethodParams { const factory _PaymentMethodParamsCardWithToken( {required final PaymentMethodDataCardFromToken paymentMethodData}) = - _$_PaymentMethodParamsCardWithToken; + _$PaymentMethodParamsCardWithTokenImpl; factory _PaymentMethodParamsCardWithToken.fromJson( - Map json) = _$_PaymentMethodParamsCardWithToken.fromJson; + Map json) = + _$PaymentMethodParamsCardWithTokenImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataCardFromToken get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardWithTokenCopyWith< - _$_PaymentMethodParamsCardWithToken> + _$$PaymentMethodParamsCardWithTokenImplCopyWith< + _$PaymentMethodParamsCardWithTokenImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { - factory _$$_PaymentMethodParamsCardWithMethodIdCopyWith( - _$_PaymentMethodParamsCardWithMethodId value, - $Res Function(_$_PaymentMethodParamsCardWithMethodId) then) = - __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsCardWithMethodIdImplCopyWith<$Res> { + factory _$$PaymentMethodParamsCardWithMethodIdImplCopyWith( + _$PaymentMethodParamsCardWithMethodIdImpl value, + $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) then) = + __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataCardFromMethod paymentMethodData}); @@ -875,13 +878,13 @@ abstract class _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> +class __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsCardWithMethodId> - implements _$$_PaymentMethodParamsCardWithMethodIdCopyWith<$Res> { - __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl( - _$_PaymentMethodParamsCardWithMethodId _value, - $Res Function(_$_PaymentMethodParamsCardWithMethodId) _then) + _$PaymentMethodParamsCardWithMethodIdImpl> + implements _$$PaymentMethodParamsCardWithMethodIdImplCopyWith<$Res> { + __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl( + _$PaymentMethodParamsCardWithMethodIdImpl _value, + $Res Function(_$PaymentMethodParamsCardWithMethodIdImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -889,7 +892,7 @@ class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsCardWithMethodId( + return _then(_$PaymentMethodParamsCardWithMethodIdImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -910,15 +913,15 @@ class __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsCardWithMethodId +class _$PaymentMethodParamsCardWithMethodIdImpl implements _PaymentMethodParamsCardWithMethodId { - const _$_PaymentMethodParamsCardWithMethodId( + const _$PaymentMethodParamsCardWithMethodIdImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Card'; - factory _$_PaymentMethodParamsCardWithMethodId.fromJson( + factory _$PaymentMethodParamsCardWithMethodIdImpl.fromJson( Map json) => - _$$_PaymentMethodParamsCardWithMethodIdFromJson(json); + _$$PaymentMethodParamsCardWithMethodIdImplFromJson(json); /// Payment method data object for card from payment method. @override @@ -936,7 +939,7 @@ class _$_PaymentMethodParamsCardWithMethodId bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsCardWithMethodId && + other is _$PaymentMethodParamsCardWithMethodIdImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -948,10 +951,10 @@ class _$_PaymentMethodParamsCardWithMethodId @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsCardWithMethodIdCopyWith< - _$_PaymentMethodParamsCardWithMethodId> - get copyWith => __$$_PaymentMethodParamsCardWithMethodIdCopyWithImpl< - _$_PaymentMethodParamsCardWithMethodId>(this, _$identity); + _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< + _$PaymentMethodParamsCardWithMethodIdImpl> + get copyWith => __$$PaymentMethodParamsCardWithMethodIdImplCopyWithImpl< + _$PaymentMethodParamsCardWithMethodIdImpl>(this, _$identity); @override @optionalTypeArgs @@ -1144,7 +1147,7 @@ class _$_PaymentMethodParamsCardWithMethodId @override Map toJson() { - return _$$_PaymentMethodParamsCardWithMethodIdToJson( + return _$$PaymentMethodParamsCardWithMethodIdImplToJson( this, ); } @@ -1154,28 +1157,28 @@ abstract class _PaymentMethodParamsCardWithMethodId implements PaymentMethodParams { const factory _PaymentMethodParamsCardWithMethodId( {required final PaymentMethodDataCardFromMethod paymentMethodData}) = - _$_PaymentMethodParamsCardWithMethodId; + _$PaymentMethodParamsCardWithMethodIdImpl; factory _PaymentMethodParamsCardWithMethodId.fromJson( Map json) = - _$_PaymentMethodParamsCardWithMethodId.fromJson; + _$PaymentMethodParamsCardWithMethodIdImpl.fromJson; @override /// Payment method data object for card from payment method. PaymentMethodDataCardFromMethod get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsCardWithMethodIdCopyWith< - _$_PaymentMethodParamsCardWithMethodId> + _$$PaymentMethodParamsCardWithMethodIdImplCopyWith< + _$PaymentMethodParamsCardWithMethodIdImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAlipayCopyWith<$Res> { - factory _$$_PaymentMethodParamsAlipayCopyWith( - _$_PaymentMethodParamsAlipay value, - $Res Function(_$_PaymentMethodParamsAlipay) then) = - __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAlipayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAlipayImplCopyWith( + _$PaymentMethodParamsAlipayImpl value, + $Res Function(_$PaymentMethodParamsAlipayImpl) then) = + __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -1183,13 +1186,13 @@ abstract class _$$_PaymentMethodParamsAlipayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> +class __$$PaymentMethodParamsAlipayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAlipay> - implements _$$_PaymentMethodParamsAlipayCopyWith<$Res> { - __$$_PaymentMethodParamsAlipayCopyWithImpl( - _$_PaymentMethodParamsAlipay _value, - $Res Function(_$_PaymentMethodParamsAlipay) _then) + _$PaymentMethodParamsAlipayImpl> + implements _$$PaymentMethodParamsAlipayImplCopyWith<$Res> { + __$$PaymentMethodParamsAlipayImplCopyWithImpl( + _$PaymentMethodParamsAlipayImpl _value, + $Res Function(_$PaymentMethodParamsAlipayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1197,7 +1200,7 @@ class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAlipay( + return _then(_$PaymentMethodParamsAlipayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1217,13 +1220,13 @@ class __$$_PaymentMethodParamsAlipayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { - const _$_PaymentMethodParamsAlipay( +class _$PaymentMethodParamsAlipayImpl implements _PaymentMethodParamsAlipay { + const _$PaymentMethodParamsAlipayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Alipay'; - factory _$_PaymentMethodParamsAlipay.fromJson(Map json) => - _$$_PaymentMethodParamsAlipayFromJson(json); + factory _$PaymentMethodParamsAlipayImpl.fromJson(Map json) => + _$$PaymentMethodParamsAlipayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1241,7 +1244,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAlipay && + other is _$PaymentMethodParamsAlipayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1253,9 +1256,9 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAlipayCopyWith<_$_PaymentMethodParamsAlipay> - get copyWith => __$$_PaymentMethodParamsAlipayCopyWithImpl< - _$_PaymentMethodParamsAlipay>(this, _$identity); + _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> + get copyWith => __$$PaymentMethodParamsAlipayImplCopyWithImpl< + _$PaymentMethodParamsAlipayImpl>(this, _$identity); @override @optionalTypeArgs @@ -1448,7 +1451,7 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { @override Map toJson() { - return _$$_PaymentMethodParamsAlipayToJson( + return _$$PaymentMethodParamsAlipayImplToJson( this, ); } @@ -1457,26 +1460,26 @@ class _$_PaymentMethodParamsAlipay implements _PaymentMethodParamsAlipay { abstract class _PaymentMethodParamsAlipay implements PaymentMethodParams { const factory _PaymentMethodParamsAlipay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsAlipay; + _$PaymentMethodParamsAlipayImpl; factory _PaymentMethodParamsAlipay.fromJson(Map json) = - _$_PaymentMethodParamsAlipay.fromJson; + _$PaymentMethodParamsAlipayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAlipayCopyWith<_$_PaymentMethodParamsAlipay> + _$$PaymentMethodParamsAlipayImplCopyWith<_$PaymentMethodParamsAlipayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { - factory _$$_PaymentMethodParamsIdealCopyWith( - _$_PaymentMethodParamsIdeal value, - $Res Function(_$_PaymentMethodParamsIdeal) then) = - __$$_PaymentMethodParamsIdealCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsIdealImplCopyWith<$Res> { + factory _$$PaymentMethodParamsIdealImplCopyWith( + _$PaymentMethodParamsIdealImpl value, + $Res Function(_$PaymentMethodParamsIdealImpl) then) = + __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataIdeal paymentMethodData}); @@ -1484,11 +1487,13 @@ abstract class _$$_PaymentMethodParamsIdealCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsIdeal> - implements _$$_PaymentMethodParamsIdealCopyWith<$Res> { - __$$_PaymentMethodParamsIdealCopyWithImpl(_$_PaymentMethodParamsIdeal _value, - $Res Function(_$_PaymentMethodParamsIdeal) _then) +class __$$PaymentMethodParamsIdealImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsIdealImpl> + implements _$$PaymentMethodParamsIdealImplCopyWith<$Res> { + __$$PaymentMethodParamsIdealImplCopyWithImpl( + _$PaymentMethodParamsIdealImpl _value, + $Res Function(_$PaymentMethodParamsIdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1496,7 +1501,7 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsIdeal( + return _then(_$PaymentMethodParamsIdealImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1517,13 +1522,13 @@ class __$$_PaymentMethodParamsIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { - const _$_PaymentMethodParamsIdeal( +class _$PaymentMethodParamsIdealImpl implements _PaymentMethodParamsIdeal { + const _$PaymentMethodParamsIdealImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Ideal'; - factory _$_PaymentMethodParamsIdeal.fromJson(Map json) => - _$$_PaymentMethodParamsIdealFromJson(json); + factory _$PaymentMethodParamsIdealImpl.fromJson(Map json) => + _$$PaymentMethodParamsIdealImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1541,7 +1546,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsIdeal && + other is _$PaymentMethodParamsIdealImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1553,9 +1558,9 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> - get copyWith => __$$_PaymentMethodParamsIdealCopyWithImpl< - _$_PaymentMethodParamsIdeal>(this, _$identity); + _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> + get copyWith => __$$PaymentMethodParamsIdealImplCopyWithImpl< + _$PaymentMethodParamsIdealImpl>(this, _$identity); @override @optionalTypeArgs @@ -1748,7 +1753,7 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { @override Map toJson() { - return _$$_PaymentMethodParamsIdealToJson( + return _$$PaymentMethodParamsIdealImplToJson( this, ); } @@ -1757,26 +1762,26 @@ class _$_PaymentMethodParamsIdeal implements _PaymentMethodParamsIdeal { abstract class _PaymentMethodParamsIdeal implements PaymentMethodParams { const factory _PaymentMethodParamsIdeal( {required final PaymentMethodDataIdeal paymentMethodData}) = - _$_PaymentMethodParamsIdeal; + _$PaymentMethodParamsIdealImpl; factory _PaymentMethodParamsIdeal.fromJson(Map json) = - _$_PaymentMethodParamsIdeal.fromJson; + _$PaymentMethodParamsIdealImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataIdeal get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsIdealCopyWith<_$_PaymentMethodParamsIdeal> + _$$PaymentMethodParamsIdealImplCopyWith<_$PaymentMethodParamsIdealImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - factory _$$_PaymentMethodParamsAubecsCopyWith( - _$_PaymentMethodParamsAubecs value, - $Res Function(_$_PaymentMethodParamsAubecs) then) = - __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAubecsImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAubecsImplCopyWith( + _$PaymentMethodParamsAubecsImpl value, + $Res Function(_$PaymentMethodParamsAubecsImpl) then) = + __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataAubecs paymentMethodData}); @@ -1784,13 +1789,13 @@ abstract class _$$_PaymentMethodParamsAubecsCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> +class __$$PaymentMethodParamsAubecsImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAubecs> - implements _$$_PaymentMethodParamsAubecsCopyWith<$Res> { - __$$_PaymentMethodParamsAubecsCopyWithImpl( - _$_PaymentMethodParamsAubecs _value, - $Res Function(_$_PaymentMethodParamsAubecs) _then) + _$PaymentMethodParamsAubecsImpl> + implements _$$PaymentMethodParamsAubecsImplCopyWith<$Res> { + __$$PaymentMethodParamsAubecsImplCopyWithImpl( + _$PaymentMethodParamsAubecsImpl _value, + $Res Function(_$PaymentMethodParamsAubecsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1798,7 +1803,7 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAubecs( + return _then(_$PaymentMethodParamsAubecsImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -1819,13 +1824,13 @@ class __$$_PaymentMethodParamsAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { - const _$_PaymentMethodParamsAubecs( +class _$PaymentMethodParamsAubecsImpl implements _PaymentMethodParamsAubecs { + const _$PaymentMethodParamsAubecsImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'AuBecsDebit'; - factory _$_PaymentMethodParamsAubecs.fromJson(Map json) => - _$$_PaymentMethodParamsAubecsFromJson(json); + factory _$PaymentMethodParamsAubecsImpl.fromJson(Map json) => + _$$PaymentMethodParamsAubecsImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -1843,7 +1848,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAubecs && + other is _$PaymentMethodParamsAubecsImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -1855,9 +1860,9 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> - get copyWith => __$$_PaymentMethodParamsAubecsCopyWithImpl< - _$_PaymentMethodParamsAubecs>(this, _$identity); + _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> + get copyWith => __$$PaymentMethodParamsAubecsImplCopyWithImpl< + _$PaymentMethodParamsAubecsImpl>(this, _$identity); @override @optionalTypeArgs @@ -2050,7 +2055,7 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { @override Map toJson() { - return _$$_PaymentMethodParamsAubecsToJson( + return _$$PaymentMethodParamsAubecsImplToJson( this, ); } @@ -2059,26 +2064,26 @@ class _$_PaymentMethodParamsAubecs implements _PaymentMethodParamsAubecs { abstract class _PaymentMethodParamsAubecs implements PaymentMethodParams { const factory _PaymentMethodParamsAubecs( {required final PaymentMethodDataAubecs paymentMethodData}) = - _$_PaymentMethodParamsAubecs; + _$PaymentMethodParamsAubecsImpl; factory _PaymentMethodParamsAubecs.fromJson(Map json) = - _$_PaymentMethodParamsAubecs.fromJson; + _$PaymentMethodParamsAubecsImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataAubecs get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAubecsCopyWith<_$_PaymentMethodParamsAubecs> + _$$PaymentMethodParamsAubecsImplCopyWith<_$PaymentMethodParamsAubecsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - factory _$$_PaymentMethodParamsBankContactCopyWith( - _$_PaymentMethodParamsBankContact value, - $Res Function(_$_PaymentMethodParamsBankContact) then) = - __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsBankContactImplCopyWith<$Res> { + factory _$$PaymentMethodParamsBankContactImplCopyWith( + _$PaymentMethodParamsBankContactImpl value, + $Res Function(_$PaymentMethodParamsBankContactImpl) then) = + __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2086,13 +2091,13 @@ abstract class _$$_PaymentMethodParamsBankContactCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> +class __$$PaymentMethodParamsBankContactImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsBankContact> - implements _$$_PaymentMethodParamsBankContactCopyWith<$Res> { - __$$_PaymentMethodParamsBankContactCopyWithImpl( - _$_PaymentMethodParamsBankContact _value, - $Res Function(_$_PaymentMethodParamsBankContact) _then) + _$PaymentMethodParamsBankContactImpl> + implements _$$PaymentMethodParamsBankContactImplCopyWith<$Res> { + __$$PaymentMethodParamsBankContactImplCopyWithImpl( + _$PaymentMethodParamsBankContactImpl _value, + $Res Function(_$PaymentMethodParamsBankContactImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2100,7 +2105,7 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsBankContact( + return _then(_$PaymentMethodParamsBankContactImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2120,15 +2125,15 @@ class __$$_PaymentMethodParamsBankContactCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsBankContact +class _$PaymentMethodParamsBankContactImpl implements _PaymentMethodParamsBankContact { - const _$_PaymentMethodParamsBankContact( + const _$PaymentMethodParamsBankContactImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Bancontact'; - factory _$_PaymentMethodParamsBankContact.fromJson( + factory _$PaymentMethodParamsBankContactImpl.fromJson( Map json) => - _$$_PaymentMethodParamsBankContactFromJson(json); + _$$PaymentMethodParamsBankContactImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2146,7 +2151,7 @@ class _$_PaymentMethodParamsBankContact bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsBankContact && + other is _$PaymentMethodParamsBankContactImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2158,9 +2163,10 @@ class _$_PaymentMethodParamsBankContact @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> - get copyWith => __$$_PaymentMethodParamsBankContactCopyWithImpl< - _$_PaymentMethodParamsBankContact>(this, _$identity); + _$$PaymentMethodParamsBankContactImplCopyWith< + _$PaymentMethodParamsBankContactImpl> + get copyWith => __$$PaymentMethodParamsBankContactImplCopyWithImpl< + _$PaymentMethodParamsBankContactImpl>(this, _$identity); @override @optionalTypeArgs @@ -2353,7 +2359,7 @@ class _$_PaymentMethodParamsBankContact @override Map toJson() { - return _$$_PaymentMethodParamsBankContactToJson( + return _$$PaymentMethodParamsBankContactImplToJson( this, ); } @@ -2362,26 +2368,27 @@ class _$_PaymentMethodParamsBankContact abstract class _PaymentMethodParamsBankContact implements PaymentMethodParams { const factory _PaymentMethodParamsBankContact( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsBankContact; + _$PaymentMethodParamsBankContactImpl; factory _PaymentMethodParamsBankContact.fromJson(Map json) = - _$_PaymentMethodParamsBankContact.fromJson; + _$PaymentMethodParamsBankContactImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsBankContactCopyWith<_$_PaymentMethodParamsBankContact> + _$$PaymentMethodParamsBankContactImplCopyWith< + _$PaymentMethodParamsBankContactImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsGiroPayCopyWith( - _$_PaymentMethodParamsGiroPay value, - $Res Function(_$_PaymentMethodParamsGiroPay) then) = - __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsGiroPayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsGiroPayImplCopyWith( + _$PaymentMethodParamsGiroPayImpl value, + $Res Function(_$PaymentMethodParamsGiroPayImpl) then) = + __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2389,13 +2396,13 @@ abstract class _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> +class __$$PaymentMethodParamsGiroPayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsGiroPay> - implements _$$_PaymentMethodParamsGiroPayCopyWith<$Res> { - __$$_PaymentMethodParamsGiroPayCopyWithImpl( - _$_PaymentMethodParamsGiroPay _value, - $Res Function(_$_PaymentMethodParamsGiroPay) _then) + _$PaymentMethodParamsGiroPayImpl> + implements _$$PaymentMethodParamsGiroPayImplCopyWith<$Res> { + __$$PaymentMethodParamsGiroPayImplCopyWithImpl( + _$PaymentMethodParamsGiroPayImpl _value, + $Res Function(_$PaymentMethodParamsGiroPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2403,7 +2410,7 @@ class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsGiroPay( + return _then(_$PaymentMethodParamsGiroPayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2423,13 +2430,14 @@ class __$$_PaymentMethodParamsGiroPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { - const _$_PaymentMethodParamsGiroPay( +class _$PaymentMethodParamsGiroPayImpl implements _PaymentMethodParamsGiroPay { + const _$PaymentMethodParamsGiroPayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Giropay'; - factory _$_PaymentMethodParamsGiroPay.fromJson(Map json) => - _$$_PaymentMethodParamsGiroPayFromJson(json); + factory _$PaymentMethodParamsGiroPayImpl.fromJson( + Map json) => + _$$PaymentMethodParamsGiroPayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2447,7 +2455,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsGiroPay && + other is _$PaymentMethodParamsGiroPayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2459,9 +2467,9 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> - get copyWith => __$$_PaymentMethodParamsGiroPayCopyWithImpl< - _$_PaymentMethodParamsGiroPay>(this, _$identity); + _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> + get copyWith => __$$PaymentMethodParamsGiroPayImplCopyWithImpl< + _$PaymentMethodParamsGiroPayImpl>(this, _$identity); @override @optionalTypeArgs @@ -2654,7 +2662,7 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { @override Map toJson() { - return _$$_PaymentMethodParamsGiroPayToJson( + return _$$PaymentMethodParamsGiroPayImplToJson( this, ); } @@ -2663,25 +2671,26 @@ class _$_PaymentMethodParamsGiroPay implements _PaymentMethodParamsGiroPay { abstract class _PaymentMethodParamsGiroPay implements PaymentMethodParams { const factory _PaymentMethodParamsGiroPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsGiroPay; + _$PaymentMethodParamsGiroPayImpl; factory _PaymentMethodParamsGiroPay.fromJson(Map json) = - _$_PaymentMethodParamsGiroPay.fromJson; + _$PaymentMethodParamsGiroPayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsGiroPayCopyWith<_$_PaymentMethodParamsGiroPay> + _$$PaymentMethodParamsGiroPayImplCopyWith<_$PaymentMethodParamsGiroPayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { - factory _$$_PaymentMethodParamsEpsCopyWith(_$_PaymentMethodParamsEps value, - $Res Function(_$_PaymentMethodParamsEps) then) = - __$$_PaymentMethodParamsEpsCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsEpsImplCopyWith<$Res> { + factory _$$PaymentMethodParamsEpsImplCopyWith( + _$PaymentMethodParamsEpsImpl value, + $Res Function(_$PaymentMethodParamsEpsImpl) then) = + __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2689,11 +2698,13 @@ abstract class _$$_PaymentMethodParamsEpsCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsEps> - implements _$$_PaymentMethodParamsEpsCopyWith<$Res> { - __$$_PaymentMethodParamsEpsCopyWithImpl(_$_PaymentMethodParamsEps _value, - $Res Function(_$_PaymentMethodParamsEps) _then) +class __$$PaymentMethodParamsEpsImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsEpsImpl> + implements _$$PaymentMethodParamsEpsImplCopyWith<$Res> { + __$$PaymentMethodParamsEpsImplCopyWithImpl( + _$PaymentMethodParamsEpsImpl _value, + $Res Function(_$PaymentMethodParamsEpsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2701,7 +2712,7 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsEps( + return _then(_$PaymentMethodParamsEpsImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -2721,13 +2732,13 @@ class __$$_PaymentMethodParamsEpsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { - const _$_PaymentMethodParamsEps( +class _$PaymentMethodParamsEpsImpl implements _PaymentMethodParamsEps { + const _$PaymentMethodParamsEpsImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Eps'; - factory _$_PaymentMethodParamsEps.fromJson(Map json) => - _$$_PaymentMethodParamsEpsFromJson(json); + factory _$PaymentMethodParamsEpsImpl.fromJson(Map json) => + _$$PaymentMethodParamsEpsImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -2745,7 +2756,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsEps && + other is _$PaymentMethodParamsEpsImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -2757,9 +2768,9 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - __$$_PaymentMethodParamsEpsCopyWithImpl<_$_PaymentMethodParamsEps>( - this, _$identity); + _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> + get copyWith => __$$PaymentMethodParamsEpsImplCopyWithImpl< + _$PaymentMethodParamsEpsImpl>(this, _$identity); @override @optionalTypeArgs @@ -2952,7 +2963,7 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { @override Map toJson() { - return _$$_PaymentMethodParamsEpsToJson( + return _$$PaymentMethodParamsEpsImplToJson( this, ); } @@ -2961,26 +2972,26 @@ class _$_PaymentMethodParamsEps implements _PaymentMethodParamsEps { abstract class _PaymentMethodParamsEps implements PaymentMethodParams { const factory _PaymentMethodParamsEps( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsEps; + _$PaymentMethodParamsEpsImpl; factory _PaymentMethodParamsEps.fromJson(Map json) = - _$_PaymentMethodParamsEps.fromJson; + _$PaymentMethodParamsEpsImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsEpsCopyWith<_$_PaymentMethodParamsEps> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsEpsImplCopyWith<_$PaymentMethodParamsEpsImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - factory _$$_PaymentMethodParamsAffirmCopyWith( - _$_PaymentMethodParamsAffirm value, - $Res Function(_$_PaymentMethodParamsAffirm) then) = - __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAffirmImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAffirmImplCopyWith( + _$PaymentMethodParamsAffirmImpl value, + $Res Function(_$PaymentMethodParamsAffirmImpl) then) = + __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -2988,13 +2999,13 @@ abstract class _$$_PaymentMethodParamsAffirmCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> +class __$$PaymentMethodParamsAffirmImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAffirm> - implements _$$_PaymentMethodParamsAffirmCopyWith<$Res> { - __$$_PaymentMethodParamsAffirmCopyWithImpl( - _$_PaymentMethodParamsAffirm _value, - $Res Function(_$_PaymentMethodParamsAffirm) _then) + _$PaymentMethodParamsAffirmImpl> + implements _$$PaymentMethodParamsAffirmImplCopyWith<$Res> { + __$$PaymentMethodParamsAffirmImplCopyWithImpl( + _$PaymentMethodParamsAffirmImpl _value, + $Res Function(_$PaymentMethodParamsAffirmImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3002,7 +3013,7 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAffirm( + return _then(_$PaymentMethodParamsAffirmImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3022,13 +3033,13 @@ class __$$_PaymentMethodParamsAffirmCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { - const _$_PaymentMethodParamsAffirm( +class _$PaymentMethodParamsAffirmImpl implements _PaymentMethodParamsAffirm { + const _$PaymentMethodParamsAffirmImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Affirm'; - factory _$_PaymentMethodParamsAffirm.fromJson(Map json) => - _$$_PaymentMethodParamsAffirmFromJson(json); + factory _$PaymentMethodParamsAffirmImpl.fromJson(Map json) => + _$$PaymentMethodParamsAffirmImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3046,7 +3057,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAffirm && + other is _$PaymentMethodParamsAffirmImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3058,9 +3069,9 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> - get copyWith => __$$_PaymentMethodParamsAffirmCopyWithImpl< - _$_PaymentMethodParamsAffirm>(this, _$identity); + _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> + get copyWith => __$$PaymentMethodParamsAffirmImplCopyWithImpl< + _$PaymentMethodParamsAffirmImpl>(this, _$identity); @override @optionalTypeArgs @@ -3253,7 +3264,7 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { @override Map toJson() { - return _$$_PaymentMethodParamsAffirmToJson( + return _$$PaymentMethodParamsAffirmImplToJson( this, ); } @@ -3262,25 +3273,26 @@ class _$_PaymentMethodParamsAffirm implements _PaymentMethodParamsAffirm { abstract class _PaymentMethodParamsAffirm implements PaymentMethodParams { const factory _PaymentMethodParamsAffirm( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsAffirm; + _$PaymentMethodParamsAffirmImpl; factory _PaymentMethodParamsAffirm.fromJson(Map json) = - _$_PaymentMethodParamsAffirm.fromJson; + _$PaymentMethodParamsAffirmImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAffirmCopyWith<_$_PaymentMethodParamsAffirm> + _$$PaymentMethodParamsAffirmImplCopyWith<_$PaymentMethodParamsAffirmImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayCopyWith(_$_PaymentMethodParamsPay value, - $Res Function(_$_PaymentMethodParamsPay) then) = - __$$_PaymentMethodParamsPayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsPayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsPayImplCopyWith( + _$PaymentMethodParamsPayImpl value, + $Res Function(_$PaymentMethodParamsPayImpl) then) = + __$$PaymentMethodParamsPayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -3288,11 +3300,13 @@ abstract class _$$_PaymentMethodParamsPayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsPay> - implements _$$_PaymentMethodParamsPayCopyWith<$Res> { - __$$_PaymentMethodParamsPayCopyWithImpl(_$_PaymentMethodParamsPay _value, - $Res Function(_$_PaymentMethodParamsPay) _then) +class __$$PaymentMethodParamsPayImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsPayImpl> + implements _$$PaymentMethodParamsPayImplCopyWith<$Res> { + __$$PaymentMethodParamsPayImplCopyWithImpl( + _$PaymentMethodParamsPayImpl _value, + $Res Function(_$PaymentMethodParamsPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3300,7 +3314,7 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPay( + return _then(_$PaymentMethodParamsPayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3320,13 +3334,13 @@ class __$$_PaymentMethodParamsPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { - const _$_PaymentMethodParamsPay( +class _$PaymentMethodParamsPayImpl implements _PaymentMethodParamsPay { + const _$PaymentMethodParamsPayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'GrabPay'; - factory _$_PaymentMethodParamsPay.fromJson(Map json) => - _$$_PaymentMethodParamsPayFromJson(json); + factory _$PaymentMethodParamsPayImpl.fromJson(Map json) => + _$$PaymentMethodParamsPayImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3344,7 +3358,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPay && + other is _$PaymentMethodParamsPayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3356,9 +3370,9 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - __$$_PaymentMethodParamsPayCopyWithImpl<_$_PaymentMethodParamsPay>( - this, _$identity); + _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> + get copyWith => __$$PaymentMethodParamsPayImplCopyWithImpl< + _$PaymentMethodParamsPayImpl>(this, _$identity); @override @optionalTypeArgs @@ -3551,7 +3565,7 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { @override Map toJson() { - return _$$_PaymentMethodParamsPayToJson( + return _$$PaymentMethodParamsPayImplToJson( this, ); } @@ -3560,25 +3574,26 @@ class _$_PaymentMethodParamsPay implements _PaymentMethodParamsPay { abstract class _PaymentMethodParamsPay implements PaymentMethodParams { const factory _PaymentMethodParamsPay( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPay; + _$PaymentMethodParamsPayImpl; factory _PaymentMethodParamsPay.fromJson(Map json) = - _$_PaymentMethodParamsPay.fromJson; + _$PaymentMethodParamsPayImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayCopyWith<_$_PaymentMethodParamsPay> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsPayImplCopyWith<_$PaymentMethodParamsPayImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { - factory _$$_PaymentMethodParamsP24CopyWith(_$_PaymentMethodParamsP24 value, - $Res Function(_$_PaymentMethodParamsP24) then) = - __$$_PaymentMethodParamsP24CopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsP24ImplCopyWith<$Res> { + factory _$$PaymentMethodParamsP24ImplCopyWith( + _$PaymentMethodParamsP24Impl value, + $Res Function(_$PaymentMethodParamsP24Impl) then) = + __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -3586,11 +3601,13 @@ abstract class _$$_PaymentMethodParamsP24CopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsP24> - implements _$$_PaymentMethodParamsP24CopyWith<$Res> { - __$$_PaymentMethodParamsP24CopyWithImpl(_$_PaymentMethodParamsP24 _value, - $Res Function(_$_PaymentMethodParamsP24) _then) +class __$$PaymentMethodParamsP24ImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsP24Impl> + implements _$$PaymentMethodParamsP24ImplCopyWith<$Res> { + __$$PaymentMethodParamsP24ImplCopyWithImpl( + _$PaymentMethodParamsP24Impl _value, + $Res Function(_$PaymentMethodParamsP24Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3598,7 +3615,7 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsP24( + return _then(_$PaymentMethodParamsP24Impl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3618,13 +3635,13 @@ class __$$_PaymentMethodParamsP24CopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { - const _$_PaymentMethodParamsP24( +class _$PaymentMethodParamsP24Impl implements _PaymentMethodParamsP24 { + const _$PaymentMethodParamsP24Impl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'P24'; - factory _$_PaymentMethodParamsP24.fromJson(Map json) => - _$$_PaymentMethodParamsP24FromJson(json); + factory _$PaymentMethodParamsP24Impl.fromJson(Map json) => + _$$PaymentMethodParamsP24ImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3642,7 +3659,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsP24 && + other is _$PaymentMethodParamsP24Impl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3654,9 +3671,9 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => - __$$_PaymentMethodParamsP24CopyWithImpl<_$_PaymentMethodParamsP24>( - this, _$identity); + _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> + get copyWith => __$$PaymentMethodParamsP24ImplCopyWithImpl< + _$PaymentMethodParamsP24Impl>(this, _$identity); @override @optionalTypeArgs @@ -3849,7 +3866,7 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { @override Map toJson() { - return _$$_PaymentMethodParamsP24ToJson( + return _$$PaymentMethodParamsP24ImplToJson( this, ); } @@ -3858,25 +3875,26 @@ class _$_PaymentMethodParamsP24 implements _PaymentMethodParamsP24 { abstract class _PaymentMethodParamsP24 implements PaymentMethodParams { const factory _PaymentMethodParamsP24( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsP24; + _$PaymentMethodParamsP24Impl; factory _PaymentMethodParamsP24.fromJson(Map json) = - _$_PaymentMethodParamsP24.fromJson; + _$PaymentMethodParamsP24Impl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsP24CopyWith<_$_PaymentMethodParamsP24> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsP24ImplCopyWith<_$PaymentMethodParamsP24Impl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { - factory _$$_PaymentMethodParamsFpxCopyWith(_$_PaymentMethodParamsFpx value, - $Res Function(_$_PaymentMethodParamsFpx) then) = - __$$_PaymentMethodParamsFpxCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsFpxImplCopyWith<$Res> { + factory _$$PaymentMethodParamsFpxImplCopyWith( + _$PaymentMethodParamsFpxImpl value, + $Res Function(_$PaymentMethodParamsFpxImpl) then) = + __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataFpx paymentMethodData}); @@ -3884,11 +3902,13 @@ abstract class _$$_PaymentMethodParamsFpxCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsFpx> - implements _$$_PaymentMethodParamsFpxCopyWith<$Res> { - __$$_PaymentMethodParamsFpxCopyWithImpl(_$_PaymentMethodParamsFpx _value, - $Res Function(_$_PaymentMethodParamsFpx) _then) +class __$$PaymentMethodParamsFpxImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsFpxImpl> + implements _$$PaymentMethodParamsFpxImplCopyWith<$Res> { + __$$PaymentMethodParamsFpxImplCopyWithImpl( + _$PaymentMethodParamsFpxImpl _value, + $Res Function(_$PaymentMethodParamsFpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3896,7 +3916,7 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsFpx( + return _then(_$PaymentMethodParamsFpxImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -3917,13 +3937,13 @@ class __$$_PaymentMethodParamsFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { - const _$_PaymentMethodParamsFpx( +class _$PaymentMethodParamsFpxImpl implements _PaymentMethodParamsFpx { + const _$PaymentMethodParamsFpxImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Fpx'; - factory _$_PaymentMethodParamsFpx.fromJson(Map json) => - _$$_PaymentMethodParamsFpxFromJson(json); + factory _$PaymentMethodParamsFpxImpl.fromJson(Map json) => + _$$PaymentMethodParamsFpxImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -3941,7 +3961,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsFpx && + other is _$PaymentMethodParamsFpxImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -3953,9 +3973,9 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => - __$$_PaymentMethodParamsFpxCopyWithImpl<_$_PaymentMethodParamsFpx>( - this, _$identity); + _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> + get copyWith => __$$PaymentMethodParamsFpxImplCopyWithImpl< + _$PaymentMethodParamsFpxImpl>(this, _$identity); @override @optionalTypeArgs @@ -4148,7 +4168,7 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { @override Map toJson() { - return _$$_PaymentMethodParamsFpxToJson( + return _$$PaymentMethodParamsFpxImplToJson( this, ); } @@ -4157,26 +4177,26 @@ class _$_PaymentMethodParamsFpx implements _PaymentMethodParamsFpx { abstract class _PaymentMethodParamsFpx implements PaymentMethodParams { const factory _PaymentMethodParamsFpx( {required final PaymentMethodDataFpx paymentMethodData}) = - _$_PaymentMethodParamsFpx; + _$PaymentMethodParamsFpxImpl; factory _PaymentMethodParamsFpx.fromJson(Map json) = - _$_PaymentMethodParamsFpx.fromJson; + _$PaymentMethodParamsFpxImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataFpx get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsFpxCopyWith<_$_PaymentMethodParamsFpx> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodParamsFpxImplCopyWith<_$PaymentMethodParamsFpxImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - factory _$$_PaymentMethodParamsSepaDebitCopyWith( - _$_PaymentMethodParamsSepaDebit value, - $Res Function(_$_PaymentMethodParamsSepaDebit) then) = - __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsSepaDebitImplCopyWith<$Res> { + factory _$$PaymentMethodParamsSepaDebitImplCopyWith( + _$PaymentMethodParamsSepaDebitImpl value, + $Res Function(_$PaymentMethodParamsSepaDebitImpl) then) = + __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataSepa paymentMethodData}); @@ -4184,13 +4204,13 @@ abstract class _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> +class __$$PaymentMethodParamsSepaDebitImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSepaDebit> - implements _$$_PaymentMethodParamsSepaDebitCopyWith<$Res> { - __$$_PaymentMethodParamsSepaDebitCopyWithImpl( - _$_PaymentMethodParamsSepaDebit _value, - $Res Function(_$_PaymentMethodParamsSepaDebit) _then) + _$PaymentMethodParamsSepaDebitImpl> + implements _$$PaymentMethodParamsSepaDebitImplCopyWith<$Res> { + __$$PaymentMethodParamsSepaDebitImplCopyWithImpl( + _$PaymentMethodParamsSepaDebitImpl _value, + $Res Function(_$PaymentMethodParamsSepaDebitImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4198,7 +4218,7 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSepaDebit( + return _then(_$PaymentMethodParamsSepaDebitImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4219,13 +4239,15 @@ class __$$_PaymentMethodParamsSepaDebitCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { - const _$_PaymentMethodParamsSepaDebit( +class _$PaymentMethodParamsSepaDebitImpl + implements _PaymentMethodParamsSepaDebit { + const _$PaymentMethodParamsSepaDebitImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'SepaDebit'; - factory _$_PaymentMethodParamsSepaDebit.fromJson(Map json) => - _$$_PaymentMethodParamsSepaDebitFromJson(json); + factory _$PaymentMethodParamsSepaDebitImpl.fromJson( + Map json) => + _$$PaymentMethodParamsSepaDebitImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -4243,7 +4265,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSepaDebit && + other is _$PaymentMethodParamsSepaDebitImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4255,9 +4277,10 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> - get copyWith => __$$_PaymentMethodParamsSepaDebitCopyWithImpl< - _$_PaymentMethodParamsSepaDebit>(this, _$identity); + _$$PaymentMethodParamsSepaDebitImplCopyWith< + _$PaymentMethodParamsSepaDebitImpl> + get copyWith => __$$PaymentMethodParamsSepaDebitImplCopyWithImpl< + _$PaymentMethodParamsSepaDebitImpl>(this, _$identity); @override @optionalTypeArgs @@ -4450,7 +4473,7 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { @override Map toJson() { - return _$$_PaymentMethodParamsSepaDebitToJson( + return _$$PaymentMethodParamsSepaDebitImplToJson( this, ); } @@ -4459,26 +4482,27 @@ class _$_PaymentMethodParamsSepaDebit implements _PaymentMethodParamsSepaDebit { abstract class _PaymentMethodParamsSepaDebit implements PaymentMethodParams { const factory _PaymentMethodParamsSepaDebit( {required final PaymentMethodDataSepa paymentMethodData}) = - _$_PaymentMethodParamsSepaDebit; + _$PaymentMethodParamsSepaDebitImpl; factory _PaymentMethodParamsSepaDebit.fromJson(Map json) = - _$_PaymentMethodParamsSepaDebit.fromJson; + _$PaymentMethodParamsSepaDebitImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataSepa get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSepaDebitCopyWith<_$_PaymentMethodParamsSepaDebit> + _$$PaymentMethodParamsSepaDebitImplCopyWith< + _$PaymentMethodParamsSepaDebitImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { - factory _$$_PaymentMethodParamsSofortCopyWith( - _$_PaymentMethodParamsSofort value, - $Res Function(_$_PaymentMethodParamsSofort) then) = - __$$_PaymentMethodParamsSofortCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsSofortImplCopyWith<$Res> { + factory _$$PaymentMethodParamsSofortImplCopyWith( + _$PaymentMethodParamsSofortImpl value, + $Res Function(_$PaymentMethodParamsSofortImpl) then) = + __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataSofort paymentMethodData}); @@ -4486,13 +4510,13 @@ abstract class _$$_PaymentMethodParamsSofortCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> +class __$$PaymentMethodParamsSofortImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsSofort> - implements _$$_PaymentMethodParamsSofortCopyWith<$Res> { - __$$_PaymentMethodParamsSofortCopyWithImpl( - _$_PaymentMethodParamsSofort _value, - $Res Function(_$_PaymentMethodParamsSofort) _then) + _$PaymentMethodParamsSofortImpl> + implements _$$PaymentMethodParamsSofortImplCopyWith<$Res> { + __$$PaymentMethodParamsSofortImplCopyWithImpl( + _$PaymentMethodParamsSofortImpl _value, + $Res Function(_$PaymentMethodParamsSofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4500,7 +4524,7 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsSofort( + return _then(_$PaymentMethodParamsSofortImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4521,13 +4545,13 @@ class __$$_PaymentMethodParamsSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { - const _$_PaymentMethodParamsSofort( +class _$PaymentMethodParamsSofortImpl implements _PaymentMethodParamsSofort { + const _$PaymentMethodParamsSofortImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Sofort'; - factory _$_PaymentMethodParamsSofort.fromJson(Map json) => - _$$_PaymentMethodParamsSofortFromJson(json); + factory _$PaymentMethodParamsSofortImpl.fromJson(Map json) => + _$$PaymentMethodParamsSofortImplFromJson(json); @override final PaymentMethodDataSofort paymentMethodData; @@ -4544,7 +4568,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsSofort && + other is _$PaymentMethodParamsSofortImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4556,9 +4580,9 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> - get copyWith => __$$_PaymentMethodParamsSofortCopyWithImpl< - _$_PaymentMethodParamsSofort>(this, _$identity); + _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> + get copyWith => __$$PaymentMethodParamsSofortImplCopyWithImpl< + _$PaymentMethodParamsSofortImpl>(this, _$identity); @override @optionalTypeArgs @@ -4751,7 +4775,7 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { @override Map toJson() { - return _$$_PaymentMethodParamsSofortToJson( + return _$$PaymentMethodParamsSofortImplToJson( this, ); } @@ -4760,24 +4784,24 @@ class _$_PaymentMethodParamsSofort implements _PaymentMethodParamsSofort { abstract class _PaymentMethodParamsSofort implements PaymentMethodParams { const factory _PaymentMethodParamsSofort( {required final PaymentMethodDataSofort paymentMethodData}) = - _$_PaymentMethodParamsSofort; + _$PaymentMethodParamsSofortImpl; factory _PaymentMethodParamsSofort.fromJson(Map json) = - _$_PaymentMethodParamsSofort.fromJson; + _$PaymentMethodParamsSofortImpl.fromJson; @override PaymentMethodDataSofort get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsSofortCopyWith<_$_PaymentMethodParamsSofort> + _$$PaymentMethodParamsSofortImplCopyWith<_$PaymentMethodParamsSofortImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - factory _$$_PaymentMethodParamsAfterpayClearpayCopyWith( - _$_PaymentMethodParamsAfterpayClearpay value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) then) = - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsAfterpayClearpayImplCopyWith<$Res> { + factory _$$PaymentMethodParamsAfterpayClearpayImplCopyWith( + _$PaymentMethodParamsAfterpayClearpayImpl value, + $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) then) = + __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataAfterPay paymentMethodData}); @@ -4785,13 +4809,13 @@ abstract class _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> +class __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsAfterpayClearpay> - implements _$$_PaymentMethodParamsAfterpayClearpayCopyWith<$Res> { - __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl( - _$_PaymentMethodParamsAfterpayClearpay _value, - $Res Function(_$_PaymentMethodParamsAfterpayClearpay) _then) + _$PaymentMethodParamsAfterpayClearpayImpl> + implements _$$PaymentMethodParamsAfterpayClearpayImplCopyWith<$Res> { + __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl( + _$PaymentMethodParamsAfterpayClearpayImpl _value, + $Res Function(_$PaymentMethodParamsAfterpayClearpayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4799,7 +4823,7 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsAfterpayClearpay( + return _then(_$PaymentMethodParamsAfterpayClearpayImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -4820,15 +4844,15 @@ class __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsAfterpayClearpay +class _$PaymentMethodParamsAfterpayClearpayImpl implements _PaymentMethodParamsAfterpayClearpay { - const _$_PaymentMethodParamsAfterpayClearpay( + const _$PaymentMethodParamsAfterpayClearpayImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'AfterpayClearpay'; - factory _$_PaymentMethodParamsAfterpayClearpay.fromJson( + factory _$PaymentMethodParamsAfterpayClearpayImpl.fromJson( Map json) => - _$$_PaymentMethodParamsAfterpayClearpayFromJson(json); + _$$PaymentMethodParamsAfterpayClearpayImplFromJson(json); @override final PaymentMethodDataAfterPay paymentMethodData; @@ -4845,7 +4869,7 @@ class _$_PaymentMethodParamsAfterpayClearpay bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsAfterpayClearpay && + other is _$PaymentMethodParamsAfterpayClearpayImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -4857,10 +4881,10 @@ class _$_PaymentMethodParamsAfterpayClearpay @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> - get copyWith => __$$_PaymentMethodParamsAfterpayClearpayCopyWithImpl< - _$_PaymentMethodParamsAfterpayClearpay>(this, _$identity); + _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< + _$PaymentMethodParamsAfterpayClearpayImpl> + get copyWith => __$$PaymentMethodParamsAfterpayClearpayImplCopyWithImpl< + _$PaymentMethodParamsAfterpayClearpayImpl>(this, _$identity); @override @optionalTypeArgs @@ -5053,7 +5077,7 @@ class _$_PaymentMethodParamsAfterpayClearpay @override Map toJson() { - return _$$_PaymentMethodParamsAfterpayClearpayToJson( + return _$$PaymentMethodParamsAfterpayClearpayImplToJson( this, ); } @@ -5063,25 +5087,26 @@ abstract class _PaymentMethodParamsAfterpayClearpay implements PaymentMethodParams { const factory _PaymentMethodParamsAfterpayClearpay( {required final PaymentMethodDataAfterPay paymentMethodData}) = - _$_PaymentMethodParamsAfterpayClearpay; + _$PaymentMethodParamsAfterpayClearpayImpl; factory _PaymentMethodParamsAfterpayClearpay.fromJson( Map json) = - _$_PaymentMethodParamsAfterpayClearpay.fromJson; + _$PaymentMethodParamsAfterpayClearpayImpl.fromJson; @override PaymentMethodDataAfterPay get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsAfterpayClearpayCopyWith< - _$_PaymentMethodParamsAfterpayClearpay> + _$$PaymentMethodParamsAfterpayClearpayImplCopyWith< + _$PaymentMethodParamsAfterpayClearpayImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - factory _$$_PaymentMethodParamsOxxoCopyWith(_$_PaymentMethodParamsOxxo value, - $Res Function(_$_PaymentMethodParamsOxxo) then) = - __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsOxxoImplCopyWith<$Res> { + factory _$$PaymentMethodParamsOxxoImplCopyWith( + _$PaymentMethodParamsOxxoImpl value, + $Res Function(_$PaymentMethodParamsOxxoImpl) then) = + __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5089,11 +5114,13 @@ abstract class _$$_PaymentMethodParamsOxxoCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> - extends _$PaymentMethodParamsCopyWithImpl<$Res, _$_PaymentMethodParamsOxxo> - implements _$$_PaymentMethodParamsOxxoCopyWith<$Res> { - __$$_PaymentMethodParamsOxxoCopyWithImpl(_$_PaymentMethodParamsOxxo _value, - $Res Function(_$_PaymentMethodParamsOxxo) _then) +class __$$PaymentMethodParamsOxxoImplCopyWithImpl<$Res> + extends _$PaymentMethodParamsCopyWithImpl<$Res, + _$PaymentMethodParamsOxxoImpl> + implements _$$PaymentMethodParamsOxxoImplCopyWith<$Res> { + __$$PaymentMethodParamsOxxoImplCopyWithImpl( + _$PaymentMethodParamsOxxoImpl _value, + $Res Function(_$PaymentMethodParamsOxxoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5101,7 +5128,7 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsOxxo( + return _then(_$PaymentMethodParamsOxxoImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5121,13 +5148,13 @@ class __$$_PaymentMethodParamsOxxoCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { - const _$_PaymentMethodParamsOxxo( +class _$PaymentMethodParamsOxxoImpl implements _PaymentMethodParamsOxxo { + const _$PaymentMethodParamsOxxoImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Oxxo'; - factory _$_PaymentMethodParamsOxxo.fromJson(Map json) => - _$$_PaymentMethodParamsOxxoFromJson(json); + factory _$PaymentMethodParamsOxxoImpl.fromJson(Map json) => + _$$PaymentMethodParamsOxxoImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -5145,7 +5172,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsOxxo && + other is _$PaymentMethodParamsOxxoImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5157,10 +5184,9 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> - get copyWith => - __$$_PaymentMethodParamsOxxoCopyWithImpl<_$_PaymentMethodParamsOxxo>( - this, _$identity); + _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> + get copyWith => __$$PaymentMethodParamsOxxoImplCopyWithImpl< + _$PaymentMethodParamsOxxoImpl>(this, _$identity); @override @optionalTypeArgs @@ -5353,7 +5379,7 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { @override Map toJson() { - return _$$_PaymentMethodParamsOxxoToJson( + return _$$PaymentMethodParamsOxxoImplToJson( this, ); } @@ -5362,26 +5388,26 @@ class _$_PaymentMethodParamsOxxo implements _PaymentMethodParamsOxxo { abstract class _PaymentMethodParamsOxxo implements PaymentMethodParams { const factory _PaymentMethodParamsOxxo( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsOxxo; + _$PaymentMethodParamsOxxoImpl; factory _PaymentMethodParamsOxxo.fromJson(Map json) = - _$_PaymentMethodParamsOxxo.fromJson; + _$PaymentMethodParamsOxxoImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsOxxoCopyWith<_$_PaymentMethodParamsOxxo> + _$$PaymentMethodParamsOxxoImplCopyWith<_$PaymentMethodParamsOxxoImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - factory _$$_PaymentMethodParamsKlarnaCopyWith( - _$_PaymentMethodParamsKlarna value, - $Res Function(_$_PaymentMethodParamsKlarna) then) = - __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsKlarnaImplCopyWith<$Res> { + factory _$$PaymentMethodParamsKlarnaImplCopyWith( + _$PaymentMethodParamsKlarnaImpl value, + $Res Function(_$PaymentMethodParamsKlarnaImpl) then) = + __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5389,13 +5415,13 @@ abstract class _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> +class __$$PaymentMethodParamsKlarnaImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsKlarna> - implements _$$_PaymentMethodParamsKlarnaCopyWith<$Res> { - __$$_PaymentMethodParamsKlarnaCopyWithImpl( - _$_PaymentMethodParamsKlarna _value, - $Res Function(_$_PaymentMethodParamsKlarna) _then) + _$PaymentMethodParamsKlarnaImpl> + implements _$$PaymentMethodParamsKlarnaImplCopyWith<$Res> { + __$$PaymentMethodParamsKlarnaImplCopyWithImpl( + _$PaymentMethodParamsKlarnaImpl _value, + $Res Function(_$PaymentMethodParamsKlarnaImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5403,7 +5429,7 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsKlarna( + return _then(_$PaymentMethodParamsKlarnaImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5423,13 +5449,13 @@ class __$$_PaymentMethodParamsKlarnaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { - const _$_PaymentMethodParamsKlarna( +class _$PaymentMethodParamsKlarnaImpl implements _PaymentMethodParamsKlarna { + const _$PaymentMethodParamsKlarnaImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'Klarna'; - factory _$_PaymentMethodParamsKlarna.fromJson(Map json) => - _$$_PaymentMethodParamsKlarnaFromJson(json); + factory _$PaymentMethodParamsKlarnaImpl.fromJson(Map json) => + _$$PaymentMethodParamsKlarnaImplFromJson(json); /// Paymentmethod data for this paymentmethod. /// @@ -5450,7 +5476,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsKlarna && + other is _$PaymentMethodParamsKlarnaImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5462,9 +5488,9 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> - get copyWith => __$$_PaymentMethodParamsKlarnaCopyWithImpl< - _$_PaymentMethodParamsKlarna>(this, _$identity); + _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> + get copyWith => __$$PaymentMethodParamsKlarnaImplCopyWithImpl< + _$PaymentMethodParamsKlarnaImpl>(this, _$identity); @override @optionalTypeArgs @@ -5657,7 +5683,7 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { @override Map toJson() { - return _$$_PaymentMethodParamsKlarnaToJson( + return _$$PaymentMethodParamsKlarnaImplToJson( this, ); } @@ -5666,10 +5692,10 @@ class _$_PaymentMethodParamsKlarna implements _PaymentMethodParamsKlarna { abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { const factory _PaymentMethodParamsKlarna( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsKlarna; + _$PaymentMethodParamsKlarnaImpl; factory _PaymentMethodParamsKlarna.fromJson(Map json) = - _$_PaymentMethodParamsKlarna.fromJson; + _$PaymentMethodParamsKlarnaImpl.fromJson; @override @@ -5679,16 +5705,16 @@ abstract class _PaymentMethodParamsKlarna implements PaymentMethodParams { /// billingdetails which is required for using Klarna. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsKlarnaCopyWith<_$_PaymentMethodParamsKlarna> + _$$PaymentMethodParamsKlarnaImplCopyWith<_$PaymentMethodParamsKlarnaImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - factory _$$_PaymentMethodParamsPayPalCopyWith( - _$_PaymentMethodParamsPayPal value, - $Res Function(_$_PaymentMethodParamsPayPal) then) = - __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsPayPalImplCopyWith<$Res> { + factory _$$PaymentMethodParamsPayPalImplCopyWith( + _$PaymentMethodParamsPayPalImpl value, + $Res Function(_$PaymentMethodParamsPayPalImpl) then) = + __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodData paymentMethodData}); @@ -5696,13 +5722,13 @@ abstract class _$$_PaymentMethodParamsPayPalCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> +class __$$PaymentMethodParamsPayPalImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsPayPal> - implements _$$_PaymentMethodParamsPayPalCopyWith<$Res> { - __$$_PaymentMethodParamsPayPalCopyWithImpl( - _$_PaymentMethodParamsPayPal _value, - $Res Function(_$_PaymentMethodParamsPayPal) _then) + _$PaymentMethodParamsPayPalImpl> + implements _$$PaymentMethodParamsPayPalImplCopyWith<$Res> { + __$$PaymentMethodParamsPayPalImplCopyWithImpl( + _$PaymentMethodParamsPayPalImpl _value, + $Res Function(_$PaymentMethodParamsPayPalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5710,7 +5736,7 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsPayPal( + return _then(_$PaymentMethodParamsPayPalImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -5730,13 +5756,13 @@ class __$$_PaymentMethodParamsPayPalCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { - const _$_PaymentMethodParamsPayPal( +class _$PaymentMethodParamsPayPalImpl implements _PaymentMethodParamsPayPal { + const _$PaymentMethodParamsPayPalImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'PayPal'; - factory _$_PaymentMethodParamsPayPal.fromJson(Map json) => - _$$_PaymentMethodParamsPayPalFromJson(json); + factory _$PaymentMethodParamsPayPalImpl.fromJson(Map json) => + _$$PaymentMethodParamsPayPalImplFromJson(json); /// Paymentmethod data for this paymentmethod. /// @@ -5757,7 +5783,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsPayPal && + other is _$PaymentMethodParamsPayPalImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -5769,9 +5795,9 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> - get copyWith => __$$_PaymentMethodParamsPayPalCopyWithImpl< - _$_PaymentMethodParamsPayPal>(this, _$identity); + _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> + get copyWith => __$$PaymentMethodParamsPayPalImplCopyWithImpl< + _$PaymentMethodParamsPayPalImpl>(this, _$identity); @override @optionalTypeArgs @@ -5964,7 +5990,7 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { @override Map toJson() { - return _$$_PaymentMethodParamsPayPalToJson( + return _$$PaymentMethodParamsPayPalImplToJson( this, ); } @@ -5973,10 +5999,10 @@ class _$_PaymentMethodParamsPayPal implements _PaymentMethodParamsPayPal { abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { const factory _PaymentMethodParamsPayPal( {required final PaymentMethodData paymentMethodData}) = - _$_PaymentMethodParamsPayPal; + _$PaymentMethodParamsPayPalImpl; factory _PaymentMethodParamsPayPal.fromJson(Map json) = - _$_PaymentMethodParamsPayPal.fromJson; + _$PaymentMethodParamsPayPalImpl.fromJson; @override @@ -5986,16 +6012,16 @@ abstract class _PaymentMethodParamsPayPal implements PaymentMethodParams { /// billingdetails which is required for using Klarna. PaymentMethodData get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsPayPalCopyWith<_$_PaymentMethodParamsPayPal> + _$$PaymentMethodParamsPayPalImplCopyWith<_$PaymentMethodParamsPayPalImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - factory _$$_PaymentMethodParamsUsBankAccountCopyWith( - _$_PaymentMethodParamsUsBankAccount value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) then) = - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res>; +abstract class _$$PaymentMethodParamsUsBankAccountImplCopyWith<$Res> { + factory _$$PaymentMethodParamsUsBankAccountImplCopyWith( + _$PaymentMethodParamsUsBankAccountImpl value, + $Res Function(_$PaymentMethodParamsUsBankAccountImpl) then) = + __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res>; @useResult $Res call({PaymentMethodDataUsBank paymentMethodData}); @@ -6003,13 +6029,13 @@ abstract class _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { } /// @nodoc -class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> +class __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl<$Res> extends _$PaymentMethodParamsCopyWithImpl<$Res, - _$_PaymentMethodParamsUsBankAccount> - implements _$$_PaymentMethodParamsUsBankAccountCopyWith<$Res> { - __$$_PaymentMethodParamsUsBankAccountCopyWithImpl( - _$_PaymentMethodParamsUsBankAccount _value, - $Res Function(_$_PaymentMethodParamsUsBankAccount) _then) + _$PaymentMethodParamsUsBankAccountImpl> + implements _$$PaymentMethodParamsUsBankAccountImplCopyWith<$Res> { + __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl( + _$PaymentMethodParamsUsBankAccountImpl _value, + $Res Function(_$PaymentMethodParamsUsBankAccountImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6017,7 +6043,7 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> $Res call({ Object? paymentMethodData = null, }) { - return _then(_$_PaymentMethodParamsUsBankAccount( + return _then(_$PaymentMethodParamsUsBankAccountImpl( paymentMethodData: null == paymentMethodData ? _value.paymentMethodData : paymentMethodData // ignore: cast_nullable_to_non_nullable @@ -6038,15 +6064,15 @@ class __$$_PaymentMethodParamsUsBankAccountCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodParamsUsBankAccount +class _$PaymentMethodParamsUsBankAccountImpl implements _PaymentMethodParamsUsBankAccount { - const _$_PaymentMethodParamsUsBankAccount( + const _$PaymentMethodParamsUsBankAccountImpl( {required this.paymentMethodData, final String? $type}) : $type = $type ?? 'USBankAccount'; - factory _$_PaymentMethodParamsUsBankAccount.fromJson( + factory _$PaymentMethodParamsUsBankAccountImpl.fromJson( Map json) => - _$$_PaymentMethodParamsUsBankAccountFromJson(json); + _$$PaymentMethodParamsUsBankAccountImplFromJson(json); /// Paymentmethod data for this paymentmethod. @override @@ -6064,7 +6090,7 @@ class _$_PaymentMethodParamsUsBankAccount bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodParamsUsBankAccount && + other is _$PaymentMethodParamsUsBankAccountImpl && (identical(other.paymentMethodData, paymentMethodData) || other.paymentMethodData == paymentMethodData)); } @@ -6076,10 +6102,10 @@ class _$_PaymentMethodParamsUsBankAccount @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> - get copyWith => __$$_PaymentMethodParamsUsBankAccountCopyWithImpl< - _$_PaymentMethodParamsUsBankAccount>(this, _$identity); + _$$PaymentMethodParamsUsBankAccountImplCopyWith< + _$PaymentMethodParamsUsBankAccountImpl> + get copyWith => __$$PaymentMethodParamsUsBankAccountImplCopyWithImpl< + _$PaymentMethodParamsUsBankAccountImpl>(this, _$identity); @override @optionalTypeArgs @@ -6272,7 +6298,7 @@ class _$_PaymentMethodParamsUsBankAccount @override Map toJson() { - return _$$_PaymentMethodParamsUsBankAccountToJson( + return _$$PaymentMethodParamsUsBankAccountImplToJson( this, ); } @@ -6282,18 +6308,19 @@ abstract class _PaymentMethodParamsUsBankAccount implements PaymentMethodParams { const factory _PaymentMethodParamsUsBankAccount( {required final PaymentMethodDataUsBank paymentMethodData}) = - _$_PaymentMethodParamsUsBankAccount; + _$PaymentMethodParamsUsBankAccountImpl; factory _PaymentMethodParamsUsBankAccount.fromJson( - Map json) = _$_PaymentMethodParamsUsBankAccount.fromJson; + Map json) = + _$PaymentMethodParamsUsBankAccountImpl.fromJson; @override /// Paymentmethod data for this paymentmethod. PaymentMethodDataUsBank get paymentMethodData; @JsonKey(ignore: true) - _$$_PaymentMethodParamsUsBankAccountCopyWith< - _$_PaymentMethodParamsUsBankAccount> + _$$PaymentMethodParamsUsBankAccountImplCopyWith< + _$PaymentMethodParamsUsBankAccountImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6381,11 +6408,11 @@ class _$PaymentMethodDataCopyWithImpl<$Res, $Val extends PaymentMethodData> } /// @nodoc -abstract class _$$_PaymentMethodDataCopyWith<$Res> +abstract class _$$PaymentMethodDataImplCopyWith<$Res> implements $PaymentMethodDataCopyWith<$Res> { - factory _$$_PaymentMethodDataCopyWith(_$_PaymentMethodData value, - $Res Function(_$_PaymentMethodData) then) = - __$$_PaymentMethodDataCopyWithImpl<$Res>; + factory _$$PaymentMethodDataImplCopyWith(_$PaymentMethodDataImpl value, + $Res Function(_$PaymentMethodDataImpl) then) = + __$$PaymentMethodDataImplCopyWithImpl<$Res>; @override @useResult $Res call({BillingDetails? billingDetails, ShippingDetails? shippingDetails}); @@ -6397,11 +6424,11 @@ abstract class _$$_PaymentMethodDataCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCopyWithImpl<$Res> - extends _$PaymentMethodDataCopyWithImpl<$Res, _$_PaymentMethodData> - implements _$$_PaymentMethodDataCopyWith<$Res> { - __$$_PaymentMethodDataCopyWithImpl( - _$_PaymentMethodData _value, $Res Function(_$_PaymentMethodData) _then) +class __$$PaymentMethodDataImplCopyWithImpl<$Res> + extends _$PaymentMethodDataCopyWithImpl<$Res, _$PaymentMethodDataImpl> + implements _$$PaymentMethodDataImplCopyWith<$Res> { + __$$PaymentMethodDataImplCopyWithImpl(_$PaymentMethodDataImpl _value, + $Res Function(_$PaymentMethodDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6410,7 +6437,7 @@ class __$$_PaymentMethodDataCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodData( + return _then(_$PaymentMethodDataImpl( billingDetails: freezed == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -6426,11 +6453,11 @@ class __$$_PaymentMethodDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodData implements _PaymentMethodData { - const _$_PaymentMethodData({this.billingDetails, this.shippingDetails}); +class _$PaymentMethodDataImpl implements _PaymentMethodData { + const _$PaymentMethodDataImpl({this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodData.fromJson(Map json) => - _$$_PaymentMethodDataFromJson(json); + factory _$PaymentMethodDataImpl.fromJson(Map json) => + _$$PaymentMethodDataImplFromJson(json); /// Billing information. @override @@ -6449,7 +6476,7 @@ class _$_PaymentMethodData implements _PaymentMethodData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodData && + other is _$PaymentMethodDataImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || @@ -6463,13 +6490,13 @@ class _$_PaymentMethodData implements _PaymentMethodData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => - __$$_PaymentMethodDataCopyWithImpl<_$_PaymentMethodData>( + _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => + __$$PaymentMethodDataImplCopyWithImpl<_$PaymentMethodDataImpl>( this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataToJson( + return _$$PaymentMethodDataImplToJson( this, ); } @@ -6478,10 +6505,10 @@ class _$_PaymentMethodData implements _PaymentMethodData { abstract class _PaymentMethodData implements PaymentMethodData { const factory _PaymentMethodData( {final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodData; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataImpl; factory _PaymentMethodData.fromJson(Map json) = - _$_PaymentMethodData.fromJson; + _$PaymentMethodDataImpl.fromJson; @override @@ -6493,7 +6520,7 @@ abstract class _PaymentMethodData implements PaymentMethodData { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCopyWith<_$_PaymentMethodData> get copyWith => + _$$PaymentMethodDataImplCopyWith<_$PaymentMethodDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6596,12 +6623,12 @@ class _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> +abstract class _$$PaymentMethodDataCardFromTokenImplCopyWith<$Res> implements $PaymentMethodDataCardFromTokenCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromTokenCopyWith( - _$_PaymentMethodDataCardFromToken value, - $Res Function(_$_PaymentMethodDataCardFromToken) then) = - __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res>; + factory _$$PaymentMethodDataCardFromTokenImplCopyWith( + _$PaymentMethodDataCardFromTokenImpl value, + $Res Function(_$PaymentMethodDataCardFromTokenImpl) then) = + __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6616,13 +6643,13 @@ abstract class _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> +class __$$PaymentMethodDataCardFromTokenImplCopyWithImpl<$Res> extends _$PaymentMethodDataCardFromTokenCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromToken> - implements _$$_PaymentMethodDataCardFromTokenCopyWith<$Res> { - __$$_PaymentMethodDataCardFromTokenCopyWithImpl( - _$_PaymentMethodDataCardFromToken _value, - $Res Function(_$_PaymentMethodDataCardFromToken) _then) + _$PaymentMethodDataCardFromTokenImpl> + implements _$$PaymentMethodDataCardFromTokenImplCopyWith<$Res> { + __$$PaymentMethodDataCardFromTokenImplCopyWithImpl( + _$PaymentMethodDataCardFromTokenImpl _value, + $Res Function(_$PaymentMethodDataCardFromTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6632,7 +6659,7 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataCardFromToken( + return _then(_$PaymentMethodDataCardFromTokenImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -6652,14 +6679,14 @@ class __$$_PaymentMethodDataCardFromTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromToken +class _$PaymentMethodDataCardFromTokenImpl implements _PaymentMethodDataCardFromToken { - const _$_PaymentMethodDataCardFromToken( + const _$PaymentMethodDataCardFromTokenImpl( {required this.token, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataCardFromToken.fromJson( + factory _$PaymentMethodDataCardFromTokenImpl.fromJson( Map json) => - _$$_PaymentMethodDataCardFromTokenFromJson(json); + _$$PaymentMethodDataCardFromTokenImplFromJson(json); /// Token. @override @@ -6682,7 +6709,7 @@ class _$_PaymentMethodDataCardFromToken bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromToken && + other is _$PaymentMethodDataCardFromTokenImpl && (identical(other.token, token) || other.token == token) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -6698,13 +6725,14 @@ class _$_PaymentMethodDataCardFromToken @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> - get copyWith => __$$_PaymentMethodDataCardFromTokenCopyWithImpl< - _$_PaymentMethodDataCardFromToken>(this, _$identity); + _$$PaymentMethodDataCardFromTokenImplCopyWith< + _$PaymentMethodDataCardFromTokenImpl> + get copyWith => __$$PaymentMethodDataCardFromTokenImplCopyWithImpl< + _$PaymentMethodDataCardFromTokenImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromTokenToJson( + return _$$PaymentMethodDataCardFromTokenImplToJson( this, ); } @@ -6716,10 +6744,10 @@ abstract class _PaymentMethodDataCardFromToken {required final String token, final BillingDetails? billingDetails, final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromToken; + _$PaymentMethodDataCardFromTokenImpl; factory _PaymentMethodDataCardFromToken.fromJson(Map json) = - _$_PaymentMethodDataCardFromToken.fromJson; + _$PaymentMethodDataCardFromTokenImpl.fromJson; @override @@ -6735,7 +6763,8 @@ abstract class _PaymentMethodDataCardFromToken ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromTokenCopyWith<_$_PaymentMethodDataCardFromToken> + _$$PaymentMethodDataCardFromTokenImplCopyWith< + _$PaymentMethodDataCardFromTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6847,12 +6876,12 @@ class _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> +abstract class _$$PaymentMethodDataCardFromMethodImplCopyWith<$Res> implements $PaymentMethodDataCardFromMethodCopyWith<$Res> { - factory _$$_PaymentMethodDataCardFromMethodCopyWith( - _$_PaymentMethodDataCardFromMethod value, - $Res Function(_$_PaymentMethodDataCardFromMethod) then) = - __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res>; + factory _$$PaymentMethodDataCardFromMethodImplCopyWith( + _$PaymentMethodDataCardFromMethodImpl value, + $Res Function(_$PaymentMethodDataCardFromMethodImpl) then) = + __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6868,13 +6897,13 @@ abstract class _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> +class __$$PaymentMethodDataCardFromMethodImplCopyWithImpl<$Res> extends _$PaymentMethodDataCardFromMethodCopyWithImpl<$Res, - _$_PaymentMethodDataCardFromMethod> - implements _$$_PaymentMethodDataCardFromMethodCopyWith<$Res> { - __$$_PaymentMethodDataCardFromMethodCopyWithImpl( - _$_PaymentMethodDataCardFromMethod _value, - $Res Function(_$_PaymentMethodDataCardFromMethod) _then) + _$PaymentMethodDataCardFromMethodImpl> + implements _$$PaymentMethodDataCardFromMethodImplCopyWith<$Res> { + __$$PaymentMethodDataCardFromMethodImplCopyWithImpl( + _$PaymentMethodDataCardFromMethodImpl _value, + $Res Function(_$PaymentMethodDataCardFromMethodImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6885,7 +6914,7 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataCardFromMethod( + return _then(_$PaymentMethodDataCardFromMethodImpl( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable @@ -6909,17 +6938,17 @@ class __$$_PaymentMethodDataCardFromMethodCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataCardFromMethod +class _$PaymentMethodDataCardFromMethodImpl implements _PaymentMethodDataCardFromMethod { - const _$_PaymentMethodDataCardFromMethod( + const _$PaymentMethodDataCardFromMethodImpl( {required this.paymentMethodId, this.cvc, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataCardFromMethod.fromJson( + factory _$PaymentMethodDataCardFromMethodImpl.fromJson( Map json) => - _$$_PaymentMethodDataCardFromMethodFromJson(json); + _$$PaymentMethodDataCardFromMethodImplFromJson(json); /// Payment method id. @override @@ -6946,7 +6975,7 @@ class _$_PaymentMethodDataCardFromMethod bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataCardFromMethod && + other is _$PaymentMethodDataCardFromMethodImpl && (identical(other.paymentMethodId, paymentMethodId) || other.paymentMethodId == paymentMethodId) && (identical(other.cvc, cvc) || other.cvc == cvc) && @@ -6964,14 +6993,14 @@ class _$_PaymentMethodDataCardFromMethod @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> - get copyWith => __$$_PaymentMethodDataCardFromMethodCopyWithImpl< - _$_PaymentMethodDataCardFromMethod>(this, _$identity); + _$$PaymentMethodDataCardFromMethodImplCopyWith< + _$PaymentMethodDataCardFromMethodImpl> + get copyWith => __$$PaymentMethodDataCardFromMethodImplCopyWithImpl< + _$PaymentMethodDataCardFromMethodImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataCardFromMethodToJson( + return _$$PaymentMethodDataCardFromMethodImplToJson( this, ); } @@ -6984,10 +7013,10 @@ abstract class _PaymentMethodDataCardFromMethod final String? cvc, final BillingDetails? billingDetails, final ShippingDetails? shippingDetails}) = - _$_PaymentMethodDataCardFromMethod; + _$PaymentMethodDataCardFromMethodImpl; factory _PaymentMethodDataCardFromMethod.fromJson(Map json) = - _$_PaymentMethodDataCardFromMethod.fromJson; + _$PaymentMethodDataCardFromMethodImpl.fromJson; @override @@ -7007,8 +7036,8 @@ abstract class _PaymentMethodDataCardFromMethod ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataCardFromMethodCopyWith< - _$_PaymentMethodDataCardFromMethod> + _$$PaymentMethodDataCardFromMethodImplCopyWith< + _$PaymentMethodDataCardFromMethodImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7109,11 +7138,12 @@ class _$PaymentMethodDataIdealCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> +abstract class _$$PaymentMethodDataIdealImplCopyWith<$Res> implements $PaymentMethodDataIdealCopyWith<$Res> { - factory _$$_PaymentMethodDataIdealCopyWith(_$_PaymentMethodDataIdeal value, - $Res Function(_$_PaymentMethodDataIdeal) then) = - __$$_PaymentMethodDataIdealCopyWithImpl<$Res>; + factory _$$PaymentMethodDataIdealImplCopyWith( + _$PaymentMethodDataIdealImpl value, + $Res Function(_$PaymentMethodDataIdealImpl) then) = + __$$PaymentMethodDataIdealImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7128,12 +7158,13 @@ abstract class _$$_PaymentMethodDataIdealCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> +class __$$PaymentMethodDataIdealImplCopyWithImpl<$Res> extends _$PaymentMethodDataIdealCopyWithImpl<$Res, - _$_PaymentMethodDataIdeal> - implements _$$_PaymentMethodDataIdealCopyWith<$Res> { - __$$_PaymentMethodDataIdealCopyWithImpl(_$_PaymentMethodDataIdeal _value, - $Res Function(_$_PaymentMethodDataIdeal) _then) + _$PaymentMethodDataIdealImpl> + implements _$$PaymentMethodDataIdealImplCopyWith<$Res> { + __$$PaymentMethodDataIdealImplCopyWithImpl( + _$PaymentMethodDataIdealImpl _value, + $Res Function(_$PaymentMethodDataIdealImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7143,7 +7174,7 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataIdeal( + return _then(_$PaymentMethodDataIdealImpl( bankName: freezed == bankName ? _value.bankName : bankName // ignore: cast_nullable_to_non_nullable @@ -7163,12 +7194,12 @@ class __$$_PaymentMethodDataIdealCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { - const _$_PaymentMethodDataIdeal( +class _$PaymentMethodDataIdealImpl implements _PaymentMethodDataIdeal { + const _$PaymentMethodDataIdealImpl( {this.bankName, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataIdeal.fromJson(Map json) => - _$$_PaymentMethodDataIdealFromJson(json); + factory _$PaymentMethodDataIdealImpl.fromJson(Map json) => + _$$PaymentMethodDataIdealImplFromJson(json); /// The name of bank. @override @@ -7191,7 +7222,7 @@ class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataIdeal && + other is _$PaymentMethodDataIdealImpl && (identical(other.bankName, bankName) || other.bankName == bankName) && (identical(other.billingDetails, billingDetails) || @@ -7208,13 +7239,13 @@ class _$_PaymentMethodDataIdeal implements _PaymentMethodDataIdeal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - __$$_PaymentMethodDataIdealCopyWithImpl<_$_PaymentMethodDataIdeal>( - this, _$identity); + _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> + get copyWith => __$$PaymentMethodDataIdealImplCopyWithImpl< + _$PaymentMethodDataIdealImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataIdealToJson( + return _$$PaymentMethodDataIdealImplToJson( this, ); } @@ -7224,10 +7255,10 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { const factory _PaymentMethodDataIdeal( {final String? bankName, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataIdeal; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataIdealImpl; factory _PaymentMethodDataIdeal.fromJson(Map json) = - _$_PaymentMethodDataIdeal.fromJson; + _$PaymentMethodDataIdealImpl.fromJson; @override @@ -7243,8 +7274,8 @@ abstract class _PaymentMethodDataIdeal implements PaymentMethodDataIdeal { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataIdealCopyWith<_$_PaymentMethodDataIdeal> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataIdealImplCopyWith<_$PaymentMethodDataIdealImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataAubecs _$PaymentMethodDataAubecsFromJson( @@ -7344,11 +7375,12 @@ class _$PaymentMethodDataAubecsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> +abstract class _$$PaymentMethodDataAubecsImplCopyWith<$Res> implements $PaymentMethodDataAubecsCopyWith<$Res> { - factory _$$_PaymentMethodDataAubecsCopyWith(_$_PaymentMethodDataAubecs value, - $Res Function(_$_PaymentMethodDataAubecs) then) = - __$$_PaymentMethodDataAubecsCopyWithImpl<$Res>; + factory _$$PaymentMethodDataAubecsImplCopyWith( + _$PaymentMethodDataAubecsImpl value, + $Res Function(_$PaymentMethodDataAubecsImpl) then) = + __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7363,12 +7395,13 @@ abstract class _$$_PaymentMethodDataAubecsCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> +class __$$PaymentMethodDataAubecsImplCopyWithImpl<$Res> extends _$PaymentMethodDataAubecsCopyWithImpl<$Res, - _$_PaymentMethodDataAubecs> - implements _$$_PaymentMethodDataAubecsCopyWith<$Res> { - __$$_PaymentMethodDataAubecsCopyWithImpl(_$_PaymentMethodDataAubecs _value, - $Res Function(_$_PaymentMethodDataAubecs) _then) + _$PaymentMethodDataAubecsImpl> + implements _$$PaymentMethodDataAubecsImplCopyWith<$Res> { + __$$PaymentMethodDataAubecsImplCopyWithImpl( + _$PaymentMethodDataAubecsImpl _value, + $Res Function(_$PaymentMethodDataAubecsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7378,7 +7411,7 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataAubecs( + return _then(_$PaymentMethodDataAubecsImpl( formDetails: freezed == formDetails ? _value.formDetails : formDetails // ignore: cast_nullable_to_non_nullable @@ -7398,12 +7431,12 @@ class __$$_PaymentMethodDataAubecsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { - const _$_PaymentMethodDataAubecs( +class _$PaymentMethodDataAubecsImpl implements _PaymentMethodDataAubecs { + const _$PaymentMethodDataAubecsImpl( {required this.formDetails, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataAubecs.fromJson(Map json) => - _$$_PaymentMethodDataAubecsFromJson(json); + factory _$PaymentMethodDataAubecsImpl.fromJson(Map json) => + _$$PaymentMethodDataAubecsImplFromJson(json); /// form input details @override @@ -7426,7 +7459,7 @@ class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAubecs && + other is _$PaymentMethodDataAubecsImpl && const DeepCollectionEquality() .equals(other.formDetails, formDetails) && (identical(other.billingDetails, billingDetails) || @@ -7446,14 +7479,13 @@ class _$_PaymentMethodDataAubecs implements _PaymentMethodDataAubecs { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> - get copyWith => - __$$_PaymentMethodDataAubecsCopyWithImpl<_$_PaymentMethodDataAubecs>( - this, _$identity); + _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> + get copyWith => __$$PaymentMethodDataAubecsImplCopyWithImpl< + _$PaymentMethodDataAubecsImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAubecsToJson( + return _$$PaymentMethodDataAubecsImplToJson( this, ); } @@ -7463,10 +7495,10 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { const factory _PaymentMethodDataAubecs( {required final dynamic formDetails, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAubecs; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataAubecsImpl; factory _PaymentMethodDataAubecs.fromJson(Map json) = - _$_PaymentMethodDataAubecs.fromJson; + _$PaymentMethodDataAubecsImpl.fromJson; @override @@ -7482,7 +7514,7 @@ abstract class _PaymentMethodDataAubecs implements PaymentMethodDataAubecs { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAubecsCopyWith<_$_PaymentMethodDataAubecs> + _$$PaymentMethodDataAubecsImplCopyWith<_$PaymentMethodDataAubecsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -7582,11 +7614,11 @@ class _$PaymentMethodDataFpxCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> +abstract class _$$PaymentMethodDataFpxImplCopyWith<$Res> implements $PaymentMethodDataFpxCopyWith<$Res> { - factory _$$_PaymentMethodDataFpxCopyWith(_$_PaymentMethodDataFpx value, - $Res Function(_$_PaymentMethodDataFpx) then) = - __$$_PaymentMethodDataFpxCopyWithImpl<$Res>; + factory _$$PaymentMethodDataFpxImplCopyWith(_$PaymentMethodDataFpxImpl value, + $Res Function(_$PaymentMethodDataFpxImpl) then) = + __$$PaymentMethodDataFpxImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7601,11 +7633,11 @@ abstract class _$$_PaymentMethodDataFpxCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> - extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$_PaymentMethodDataFpx> - implements _$$_PaymentMethodDataFpxCopyWith<$Res> { - __$$_PaymentMethodDataFpxCopyWithImpl(_$_PaymentMethodDataFpx _value, - $Res Function(_$_PaymentMethodDataFpx) _then) +class __$$PaymentMethodDataFpxImplCopyWithImpl<$Res> + extends _$PaymentMethodDataFpxCopyWithImpl<$Res, _$PaymentMethodDataFpxImpl> + implements _$$PaymentMethodDataFpxImplCopyWith<$Res> { + __$$PaymentMethodDataFpxImplCopyWithImpl(_$PaymentMethodDataFpxImpl _value, + $Res Function(_$PaymentMethodDataFpxImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7615,7 +7647,7 @@ class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataFpx( + return _then(_$PaymentMethodDataFpxImpl( testOfflineBank: null == testOfflineBank ? _value.testOfflineBank : testOfflineBank // ignore: cast_nullable_to_non_nullable @@ -7635,14 +7667,14 @@ class __$$_PaymentMethodDataFpxCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { - const _$_PaymentMethodDataFpx( +class _$PaymentMethodDataFpxImpl implements _PaymentMethodDataFpx { + const _$PaymentMethodDataFpxImpl( {this.testOfflineBank = false, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataFpx.fromJson(Map json) => - _$$_PaymentMethodDataFpxFromJson(json); + factory _$PaymentMethodDataFpxImpl.fromJson(Map json) => + _$$PaymentMethodDataFpxImplFromJson(json); /// When set to true you can test offline payment. @override @@ -7666,7 +7698,7 @@ class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataFpx && + other is _$PaymentMethodDataFpxImpl && (identical(other.testOfflineBank, testOfflineBank) || other.testOfflineBank == testOfflineBank) && (identical(other.billingDetails, billingDetails) || @@ -7683,13 +7715,14 @@ class _$_PaymentMethodDataFpx implements _PaymentMethodDataFpx { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - __$$_PaymentMethodDataFpxCopyWithImpl<_$_PaymentMethodDataFpx>( - this, _$identity); + _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> + get copyWith => + __$$PaymentMethodDataFpxImplCopyWithImpl<_$PaymentMethodDataFpxImpl>( + this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataFpxToJson( + return _$$PaymentMethodDataFpxImplToJson( this, ); } @@ -7699,10 +7732,10 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { const factory _PaymentMethodDataFpx( {final bool testOfflineBank, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataFpx; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataFpxImpl; factory _PaymentMethodDataFpx.fromJson(Map json) = - _$_PaymentMethodDataFpx.fromJson; + _$PaymentMethodDataFpxImpl.fromJson; @override @@ -7718,8 +7751,8 @@ abstract class _PaymentMethodDataFpx implements PaymentMethodDataFpx { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataFpxCopyWith<_$_PaymentMethodDataFpx> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataFpxImplCopyWith<_$PaymentMethodDataFpxImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataSofort _$PaymentMethodDataSofortFromJson( @@ -7819,11 +7852,12 @@ class _$PaymentMethodDataSofortCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> +abstract class _$$PaymentMethodDataSofortImplCopyWith<$Res> implements $PaymentMethodDataSofortCopyWith<$Res> { - factory _$$_PaymentMethodDataSofortCopyWith(_$_PaymentMethodDataSofort value, - $Res Function(_$_PaymentMethodDataSofort) then) = - __$$_PaymentMethodDataSofortCopyWithImpl<$Res>; + factory _$$PaymentMethodDataSofortImplCopyWith( + _$PaymentMethodDataSofortImpl value, + $Res Function(_$PaymentMethodDataSofortImpl) then) = + __$$PaymentMethodDataSofortImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -7838,12 +7872,13 @@ abstract class _$$_PaymentMethodDataSofortCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> +class __$$PaymentMethodDataSofortImplCopyWithImpl<$Res> extends _$PaymentMethodDataSofortCopyWithImpl<$Res, - _$_PaymentMethodDataSofort> - implements _$$_PaymentMethodDataSofortCopyWith<$Res> { - __$$_PaymentMethodDataSofortCopyWithImpl(_$_PaymentMethodDataSofort _value, - $Res Function(_$_PaymentMethodDataSofort) _then) + _$PaymentMethodDataSofortImpl> + implements _$$PaymentMethodDataSofortImplCopyWith<$Res> { + __$$PaymentMethodDataSofortImplCopyWithImpl( + _$PaymentMethodDataSofortImpl _value, + $Res Function(_$PaymentMethodDataSofortImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -7853,7 +7888,7 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataSofort( + return _then(_$PaymentMethodDataSofortImpl( country: null == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -7873,12 +7908,12 @@ class __$$_PaymentMethodDataSofortCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { - const _$_PaymentMethodDataSofort( +class _$PaymentMethodDataSofortImpl implements _PaymentMethodDataSofort { + const _$PaymentMethodDataSofortImpl( {required this.country, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataSofort.fromJson(Map json) => - _$$_PaymentMethodDataSofortFromJson(json); + factory _$PaymentMethodDataSofortImpl.fromJson(Map json) => + _$$PaymentMethodDataSofortImplFromJson(json); /// Country of the accountholder @override @@ -7901,7 +7936,7 @@ class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSofort && + other is _$PaymentMethodDataSofortImpl && (identical(other.country, country) || other.country == country) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -7917,14 +7952,13 @@ class _$_PaymentMethodDataSofort implements _PaymentMethodDataSofort { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> - get copyWith => - __$$_PaymentMethodDataSofortCopyWithImpl<_$_PaymentMethodDataSofort>( - this, _$identity); + _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> + get copyWith => __$$PaymentMethodDataSofortImplCopyWithImpl< + _$PaymentMethodDataSofortImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSofortToJson( + return _$$PaymentMethodDataSofortImplToJson( this, ); } @@ -7934,10 +7968,10 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { const factory _PaymentMethodDataSofort( {required final String country, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSofort; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataSofortImpl; factory _PaymentMethodDataSofort.fromJson(Map json) = - _$_PaymentMethodDataSofort.fromJson; + _$PaymentMethodDataSofortImpl.fromJson; @override @@ -7953,7 +7987,7 @@ abstract class _PaymentMethodDataSofort implements PaymentMethodDataSofort { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSofortCopyWith<_$_PaymentMethodDataSofort> + _$$PaymentMethodDataSofortImplCopyWith<_$PaymentMethodDataSofortImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8054,11 +8088,12 @@ class _$PaymentMethodDataSepaCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> +abstract class _$$PaymentMethodDataSepaImplCopyWith<$Res> implements $PaymentMethodDataSepaCopyWith<$Res> { - factory _$$_PaymentMethodDataSepaCopyWith(_$_PaymentMethodDataSepa value, - $Res Function(_$_PaymentMethodDataSepa) then) = - __$$_PaymentMethodDataSepaCopyWithImpl<$Res>; + factory _$$PaymentMethodDataSepaImplCopyWith( + _$PaymentMethodDataSepaImpl value, + $Res Function(_$PaymentMethodDataSepaImpl) then) = + __$$PaymentMethodDataSepaImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -8073,11 +8108,12 @@ abstract class _$$_PaymentMethodDataSepaCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> - extends _$PaymentMethodDataSepaCopyWithImpl<$Res, _$_PaymentMethodDataSepa> - implements _$$_PaymentMethodDataSepaCopyWith<$Res> { - __$$_PaymentMethodDataSepaCopyWithImpl(_$_PaymentMethodDataSepa _value, - $Res Function(_$_PaymentMethodDataSepa) _then) +class __$$PaymentMethodDataSepaImplCopyWithImpl<$Res> + extends _$PaymentMethodDataSepaCopyWithImpl<$Res, + _$PaymentMethodDataSepaImpl> + implements _$$PaymentMethodDataSepaImplCopyWith<$Res> { + __$$PaymentMethodDataSepaImplCopyWithImpl(_$PaymentMethodDataSepaImpl _value, + $Res Function(_$PaymentMethodDataSepaImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8087,7 +8123,7 @@ class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataSepa( + return _then(_$PaymentMethodDataSepaImpl( iban: null == iban ? _value.iban : iban // ignore: cast_nullable_to_non_nullable @@ -8107,12 +8143,12 @@ class __$$_PaymentMethodDataSepaCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { - const _$_PaymentMethodDataSepa( +class _$PaymentMethodDataSepaImpl implements _PaymentMethodDataSepa { + const _$PaymentMethodDataSepaImpl( {required this.iban, this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataSepa.fromJson(Map json) => - _$$_PaymentMethodDataSepaFromJson(json); + factory _$PaymentMethodDataSepaImpl.fromJson(Map json) => + _$$PaymentMethodDataSepaImplFromJson(json); /// Iban number of the accountholder @override @@ -8135,7 +8171,7 @@ class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataSepa && + other is _$PaymentMethodDataSepaImpl && (identical(other.iban, iban) || other.iban == iban) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && @@ -8151,13 +8187,13 @@ class _$_PaymentMethodDataSepa implements _PaymentMethodDataSepa { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => - __$$_PaymentMethodDataSepaCopyWithImpl<_$_PaymentMethodDataSepa>( - this, _$identity); + _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> + get copyWith => __$$PaymentMethodDataSepaImplCopyWithImpl< + _$PaymentMethodDataSepaImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataSepaToJson( + return _$$PaymentMethodDataSepaImplToJson( this, ); } @@ -8167,10 +8203,10 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { const factory _PaymentMethodDataSepa( {required final String iban, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataSepa; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataSepaImpl; factory _PaymentMethodDataSepa.fromJson(Map json) = - _$_PaymentMethodDataSepa.fromJson; + _$PaymentMethodDataSepaImpl.fromJson; @override @@ -8186,8 +8222,8 @@ abstract class _PaymentMethodDataSepa implements PaymentMethodDataSepa { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataSepaCopyWith<_$_PaymentMethodDataSepa> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodDataSepaImplCopyWith<_$PaymentMethodDataSepaImpl> + get copyWith => throw _privateConstructorUsedError; } PaymentMethodDataAfterPay _$PaymentMethodDataAfterPayFromJson( @@ -8272,12 +8308,12 @@ class _$PaymentMethodDataAfterPayCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> +abstract class _$$PaymentMethodDataAfterPayImplCopyWith<$Res> implements $PaymentMethodDataAfterPayCopyWith<$Res> { - factory _$$_PaymentMethodDataAfterPayCopyWith( - _$_PaymentMethodDataAfterPay value, - $Res Function(_$_PaymentMethodDataAfterPay) then) = - __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res>; + factory _$$PaymentMethodDataAfterPayImplCopyWith( + _$PaymentMethodDataAfterPayImpl value, + $Res Function(_$PaymentMethodDataAfterPayImpl) then) = + __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res>; @override @useResult $Res call({BillingDetails billingDetails, ShippingDetails? shippingDetails}); @@ -8289,13 +8325,13 @@ abstract class _$$_PaymentMethodDataAfterPayCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> +class __$$PaymentMethodDataAfterPayImplCopyWithImpl<$Res> extends _$PaymentMethodDataAfterPayCopyWithImpl<$Res, - _$_PaymentMethodDataAfterPay> - implements _$$_PaymentMethodDataAfterPayCopyWith<$Res> { - __$$_PaymentMethodDataAfterPayCopyWithImpl( - _$_PaymentMethodDataAfterPay _value, - $Res Function(_$_PaymentMethodDataAfterPay) _then) + _$PaymentMethodDataAfterPayImpl> + implements _$$PaymentMethodDataAfterPayImplCopyWith<$Res> { + __$$PaymentMethodDataAfterPayImplCopyWithImpl( + _$PaymentMethodDataAfterPayImpl _value, + $Res Function(_$PaymentMethodDataAfterPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8304,7 +8340,7 @@ class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> Object? billingDetails = null, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataAfterPay( + return _then(_$PaymentMethodDataAfterPayImpl( billingDetails: null == billingDetails ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable @@ -8320,12 +8356,12 @@ class __$$_PaymentMethodDataAfterPayCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { - const _$_PaymentMethodDataAfterPay( +class _$PaymentMethodDataAfterPayImpl implements _PaymentMethodDataAfterPay { + const _$PaymentMethodDataAfterPayImpl( {required this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataAfterPay.fromJson(Map json) => - _$$_PaymentMethodDataAfterPayFromJson(json); + factory _$PaymentMethodDataAfterPayImpl.fromJson(Map json) => + _$$PaymentMethodDataAfterPayImplFromJson(json); /// Billing information. @override @@ -8344,7 +8380,7 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataAfterPay && + other is _$PaymentMethodDataAfterPayImpl && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && (identical(other.shippingDetails, shippingDetails) || @@ -8358,13 +8394,13 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> - get copyWith => __$$_PaymentMethodDataAfterPayCopyWithImpl< - _$_PaymentMethodDataAfterPay>(this, _$identity); + _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> + get copyWith => __$$PaymentMethodDataAfterPayImplCopyWithImpl< + _$PaymentMethodDataAfterPayImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataAfterPayToJson( + return _$$PaymentMethodDataAfterPayImplToJson( this, ); } @@ -8372,11 +8408,12 @@ class _$_PaymentMethodDataAfterPay implements _PaymentMethodDataAfterPay { abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { const factory _PaymentMethodDataAfterPay( - {required final BillingDetails billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataAfterPay; + {required final BillingDetails billingDetails, + final ShippingDetails? shippingDetails}) = + _$PaymentMethodDataAfterPayImpl; factory _PaymentMethodDataAfterPay.fromJson(Map json) = - _$_PaymentMethodDataAfterPay.fromJson; + _$PaymentMethodDataAfterPayImpl.fromJson; @override @@ -8388,7 +8425,7 @@ abstract class _PaymentMethodDataAfterPay implements PaymentMethodDataAfterPay { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataAfterPayCopyWith<_$_PaymentMethodDataAfterPay> + _$$PaymentMethodDataAfterPayImplCopyWith<_$PaymentMethodDataAfterPayImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8518,11 +8555,12 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> +abstract class _$$PaymentMethodDataUsBankImplCopyWith<$Res> implements $PaymentMethodDataUsBankCopyWith<$Res> { - factory _$$_PaymentMethodDataUsBankCopyWith(_$_PaymentMethodDataUsBank value, - $Res Function(_$_PaymentMethodDataUsBank) then) = - __$$_PaymentMethodDataUsBankCopyWithImpl<$Res>; + factory _$$PaymentMethodDataUsBankImplCopyWith( + _$PaymentMethodDataUsBankImpl value, + $Res Function(_$PaymentMethodDataUsBankImpl) then) = + __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -8540,12 +8578,13 @@ abstract class _$$_PaymentMethodDataUsBankCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> +class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> extends _$PaymentMethodDataUsBankCopyWithImpl<$Res, - _$_PaymentMethodDataUsBank> - implements _$$_PaymentMethodDataUsBankCopyWith<$Res> { - __$$_PaymentMethodDataUsBankCopyWithImpl(_$_PaymentMethodDataUsBank _value, - $Res Function(_$_PaymentMethodDataUsBank) _then) + _$PaymentMethodDataUsBankImpl> + implements _$$PaymentMethodDataUsBankImplCopyWith<$Res> { + __$$PaymentMethodDataUsBankImplCopyWithImpl( + _$PaymentMethodDataUsBankImpl _value, + $Res Function(_$PaymentMethodDataUsBankImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -8558,7 +8597,7 @@ class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> Object? billingDetails = freezed, Object? shippingDetails = freezed, }) { - return _then(_$_PaymentMethodDataUsBank( + return _then(_$PaymentMethodDataUsBankImpl( accountNumber: freezed == accountNumber ? _value.accountNumber : accountNumber // ignore: cast_nullable_to_non_nullable @@ -8590,8 +8629,8 @@ class __$$_PaymentMethodDataUsBankCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { - const _$_PaymentMethodDataUsBank( +class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { + const _$PaymentMethodDataUsBankImpl( {this.accountNumber, this.routingNumber, this.accountHolderType, @@ -8599,8 +8638,8 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { this.billingDetails, this.shippingDetails}); - factory _$_PaymentMethodDataUsBank.fromJson(Map json) => - _$$_PaymentMethodDataUsBankFromJson(json); + factory _$PaymentMethodDataUsBankImpl.fromJson(Map json) => + _$$PaymentMethodDataUsBankImplFromJson(json); /// The account number of the bank account. @override @@ -8636,7 +8675,7 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodDataUsBank && + other is _$PaymentMethodDataUsBankImpl && (identical(other.accountNumber, accountNumber) || other.accountNumber == accountNumber) && (identical(other.routingNumber, routingNumber) || @@ -8659,14 +8698,13 @@ class _$_PaymentMethodDataUsBank implements _PaymentMethodDataUsBank { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> - get copyWith => - __$$_PaymentMethodDataUsBankCopyWithImpl<_$_PaymentMethodDataUsBank>( - this, _$identity); + _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> + get copyWith => __$$PaymentMethodDataUsBankImplCopyWithImpl< + _$PaymentMethodDataUsBankImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodDataUsBankToJson( + return _$$PaymentMethodDataUsBankImplToJson( this, ); } @@ -8679,10 +8717,10 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { final UsBankAccountHolderType? accountHolderType, final UsBankAccountType? accountType, final BillingDetails? billingDetails, - final ShippingDetails? shippingDetails}) = _$_PaymentMethodDataUsBank; + final ShippingDetails? shippingDetails}) = _$PaymentMethodDataUsBankImpl; factory _PaymentMethodDataUsBank.fromJson(Map json) = - _$_PaymentMethodDataUsBank.fromJson; + _$PaymentMethodDataUsBankImpl.fromJson; @override @@ -8711,6 +8749,6 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { ShippingDetails? get shippingDetails; @override @JsonKey(ignore: true) - _$$_PaymentMethodDataUsBankCopyWith<_$_PaymentMethodDataUsBank> + _$$PaymentMethodDataUsBankImplCopyWith<_$PaymentMethodDataUsBankImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart index 8ce132228..d918c2f5e 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_params.g.dart @@ -6,295 +6,304 @@ part of 'payment_method_params.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethodParamsCard _$$_PaymentMethodParamsCardFromJson(Map json) => - _$_PaymentMethodParamsCard( +_$PaymentMethodParamsCardImpl _$$PaymentMethodParamsCardImplFromJson( + Map json) => + _$PaymentMethodParamsCardImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardToJson( - _$_PaymentMethodParamsCard instance) => +Map _$$PaymentMethodParamsCardImplToJson( + _$PaymentMethodParamsCardImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsCardWithToken - _$$_PaymentMethodParamsCardWithTokenFromJson(Map json) => - _$_PaymentMethodParamsCardWithToken( +_$PaymentMethodParamsCardWithTokenImpl + _$$PaymentMethodParamsCardWithTokenImplFromJson(Map json) => + _$PaymentMethodParamsCardWithTokenImpl( paymentMethodData: PaymentMethodDataCardFromToken.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardWithTokenToJson( - _$_PaymentMethodParamsCardWithToken instance) => +Map _$$PaymentMethodParamsCardWithTokenImplToJson( + _$PaymentMethodParamsCardWithTokenImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsCardWithMethodId - _$$_PaymentMethodParamsCardWithMethodIdFromJson(Map json) => - _$_PaymentMethodParamsCardWithMethodId( +_$PaymentMethodParamsCardWithMethodIdImpl + _$$PaymentMethodParamsCardWithMethodIdImplFromJson(Map json) => + _$PaymentMethodParamsCardWithMethodIdImpl( paymentMethodData: PaymentMethodDataCardFromMethod.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsCardWithMethodIdToJson( - _$_PaymentMethodParamsCardWithMethodId instance) => +Map _$$PaymentMethodParamsCardWithMethodIdImplToJson( + _$PaymentMethodParamsCardWithMethodIdImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAlipay _$$_PaymentMethodParamsAlipayFromJson(Map json) => - _$_PaymentMethodParamsAlipay( +_$PaymentMethodParamsAlipayImpl _$$PaymentMethodParamsAlipayImplFromJson( + Map json) => + _$PaymentMethodParamsAlipayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAlipayToJson( - _$_PaymentMethodParamsAlipay instance) => +Map _$$PaymentMethodParamsAlipayImplToJson( + _$PaymentMethodParamsAlipayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsIdeal _$$_PaymentMethodParamsIdealFromJson(Map json) => - _$_PaymentMethodParamsIdeal( +_$PaymentMethodParamsIdealImpl _$$PaymentMethodParamsIdealImplFromJson( + Map json) => + _$PaymentMethodParamsIdealImpl( paymentMethodData: PaymentMethodDataIdeal.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsIdealToJson( - _$_PaymentMethodParamsIdeal instance) => +Map _$$PaymentMethodParamsIdealImplToJson( + _$PaymentMethodParamsIdealImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAubecs _$$_PaymentMethodParamsAubecsFromJson(Map json) => - _$_PaymentMethodParamsAubecs( +_$PaymentMethodParamsAubecsImpl _$$PaymentMethodParamsAubecsImplFromJson( + Map json) => + _$PaymentMethodParamsAubecsImpl( paymentMethodData: PaymentMethodDataAubecs.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAubecsToJson( - _$_PaymentMethodParamsAubecs instance) => +Map _$$PaymentMethodParamsAubecsImplToJson( + _$PaymentMethodParamsAubecsImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsBankContact _$$_PaymentMethodParamsBankContactFromJson( - Map json) => - _$_PaymentMethodParamsBankContact( - paymentMethodData: PaymentMethodData.fromJson( - Map.from(json['paymentMethodData'] as Map)), - $type: json['paymentMethodType'] as String?, - ); +_$PaymentMethodParamsBankContactImpl + _$$PaymentMethodParamsBankContactImplFromJson(Map json) => + _$PaymentMethodParamsBankContactImpl( + paymentMethodData: PaymentMethodData.fromJson( + Map.from(json['paymentMethodData'] as Map)), + $type: json['paymentMethodType'] as String?, + ); -Map _$$_PaymentMethodParamsBankContactToJson( - _$_PaymentMethodParamsBankContact instance) => +Map _$$PaymentMethodParamsBankContactImplToJson( + _$PaymentMethodParamsBankContactImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsGiroPay _$$_PaymentMethodParamsGiroPayFromJson( +_$PaymentMethodParamsGiroPayImpl _$$PaymentMethodParamsGiroPayImplFromJson( Map json) => - _$_PaymentMethodParamsGiroPay( + _$PaymentMethodParamsGiroPayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsGiroPayToJson( - _$_PaymentMethodParamsGiroPay instance) => +Map _$$PaymentMethodParamsGiroPayImplToJson( + _$PaymentMethodParamsGiroPayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsEps _$$_PaymentMethodParamsEpsFromJson(Map json) => - _$_PaymentMethodParamsEps( +_$PaymentMethodParamsEpsImpl _$$PaymentMethodParamsEpsImplFromJson(Map json) => + _$PaymentMethodParamsEpsImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsEpsToJson( - _$_PaymentMethodParamsEps instance) => +Map _$$PaymentMethodParamsEpsImplToJson( + _$PaymentMethodParamsEpsImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAffirm _$$_PaymentMethodParamsAffirmFromJson(Map json) => - _$_PaymentMethodParamsAffirm( +_$PaymentMethodParamsAffirmImpl _$$PaymentMethodParamsAffirmImplFromJson( + Map json) => + _$PaymentMethodParamsAffirmImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAffirmToJson( - _$_PaymentMethodParamsAffirm instance) => +Map _$$PaymentMethodParamsAffirmImplToJson( + _$PaymentMethodParamsAffirmImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsPay _$$_PaymentMethodParamsPayFromJson(Map json) => - _$_PaymentMethodParamsPay( +_$PaymentMethodParamsPayImpl _$$PaymentMethodParamsPayImplFromJson(Map json) => + _$PaymentMethodParamsPayImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsPayToJson( - _$_PaymentMethodParamsPay instance) => +Map _$$PaymentMethodParamsPayImplToJson( + _$PaymentMethodParamsPayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsP24 _$$_PaymentMethodParamsP24FromJson(Map json) => - _$_PaymentMethodParamsP24( +_$PaymentMethodParamsP24Impl _$$PaymentMethodParamsP24ImplFromJson(Map json) => + _$PaymentMethodParamsP24Impl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsP24ToJson( - _$_PaymentMethodParamsP24 instance) => +Map _$$PaymentMethodParamsP24ImplToJson( + _$PaymentMethodParamsP24Impl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsFpx _$$_PaymentMethodParamsFpxFromJson(Map json) => - _$_PaymentMethodParamsFpx( +_$PaymentMethodParamsFpxImpl _$$PaymentMethodParamsFpxImplFromJson(Map json) => + _$PaymentMethodParamsFpxImpl( paymentMethodData: PaymentMethodDataFpx.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsFpxToJson( - _$_PaymentMethodParamsFpx instance) => +Map _$$PaymentMethodParamsFpxImplToJson( + _$PaymentMethodParamsFpxImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsSepaDebit _$$_PaymentMethodParamsSepaDebitFromJson( +_$PaymentMethodParamsSepaDebitImpl _$$PaymentMethodParamsSepaDebitImplFromJson( Map json) => - _$_PaymentMethodParamsSepaDebit( + _$PaymentMethodParamsSepaDebitImpl( paymentMethodData: PaymentMethodDataSepa.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsSepaDebitToJson( - _$_PaymentMethodParamsSepaDebit instance) => +Map _$$PaymentMethodParamsSepaDebitImplToJson( + _$PaymentMethodParamsSepaDebitImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsSofort _$$_PaymentMethodParamsSofortFromJson(Map json) => - _$_PaymentMethodParamsSofort( +_$PaymentMethodParamsSofortImpl _$$PaymentMethodParamsSofortImplFromJson( + Map json) => + _$PaymentMethodParamsSofortImpl( paymentMethodData: PaymentMethodDataSofort.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsSofortToJson( - _$_PaymentMethodParamsSofort instance) => +Map _$$PaymentMethodParamsSofortImplToJson( + _$PaymentMethodParamsSofortImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsAfterpayClearpay - _$$_PaymentMethodParamsAfterpayClearpayFromJson(Map json) => - _$_PaymentMethodParamsAfterpayClearpay( +_$PaymentMethodParamsAfterpayClearpayImpl + _$$PaymentMethodParamsAfterpayClearpayImplFromJson(Map json) => + _$PaymentMethodParamsAfterpayClearpayImpl( paymentMethodData: PaymentMethodDataAfterPay.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsAfterpayClearpayToJson( - _$_PaymentMethodParamsAfterpayClearpay instance) => +Map _$$PaymentMethodParamsAfterpayClearpayImplToJson( + _$PaymentMethodParamsAfterpayClearpayImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsOxxo _$$_PaymentMethodParamsOxxoFromJson(Map json) => - _$_PaymentMethodParamsOxxo( +_$PaymentMethodParamsOxxoImpl _$$PaymentMethodParamsOxxoImplFromJson( + Map json) => + _$PaymentMethodParamsOxxoImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsOxxoToJson( - _$_PaymentMethodParamsOxxo instance) => +Map _$$PaymentMethodParamsOxxoImplToJson( + _$PaymentMethodParamsOxxoImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsKlarna _$$_PaymentMethodParamsKlarnaFromJson(Map json) => - _$_PaymentMethodParamsKlarna( +_$PaymentMethodParamsKlarnaImpl _$$PaymentMethodParamsKlarnaImplFromJson( + Map json) => + _$PaymentMethodParamsKlarnaImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsKlarnaToJson( - _$_PaymentMethodParamsKlarna instance) => +Map _$$PaymentMethodParamsKlarnaImplToJson( + _$PaymentMethodParamsKlarnaImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsPayPal _$$_PaymentMethodParamsPayPalFromJson(Map json) => - _$_PaymentMethodParamsPayPal( +_$PaymentMethodParamsPayPalImpl _$$PaymentMethodParamsPayPalImplFromJson( + Map json) => + _$PaymentMethodParamsPayPalImpl( paymentMethodData: PaymentMethodData.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsPayPalToJson( - _$_PaymentMethodParamsPayPal instance) => +Map _$$PaymentMethodParamsPayPalImplToJson( + _$PaymentMethodParamsPayPalImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodParamsUsBankAccount - _$$_PaymentMethodParamsUsBankAccountFromJson(Map json) => - _$_PaymentMethodParamsUsBankAccount( +_$PaymentMethodParamsUsBankAccountImpl + _$$PaymentMethodParamsUsBankAccountImplFromJson(Map json) => + _$PaymentMethodParamsUsBankAccountImpl( paymentMethodData: PaymentMethodDataUsBank.fromJson( Map.from(json['paymentMethodData'] as Map)), $type: json['paymentMethodType'] as String?, ); -Map _$$_PaymentMethodParamsUsBankAccountToJson( - _$_PaymentMethodParamsUsBankAccount instance) => +Map _$$PaymentMethodParamsUsBankAccountImplToJson( + _$PaymentMethodParamsUsBankAccountImpl instance) => { 'paymentMethodData': instance.paymentMethodData.toJson(), 'paymentMethodType': instance.$type, }; -_$_PaymentMethodData _$$_PaymentMethodDataFromJson(Map json) => - _$_PaymentMethodData( +_$PaymentMethodDataImpl _$$PaymentMethodDataImplFromJson(Map json) => + _$PaymentMethodDataImpl( billingDetails: json['billingDetails'] == null ? null : BillingDetails.fromJson( @@ -305,8 +314,8 @@ _$_PaymentMethodData _$$_PaymentMethodDataFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataToJson( - _$_PaymentMethodData instance) { +Map _$$PaymentMethodDataImplToJson( + _$PaymentMethodDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -320,22 +329,22 @@ Map _$$_PaymentMethodDataToJson( return val; } -_$_PaymentMethodDataCardFromToken _$$_PaymentMethodDataCardFromTokenFromJson( - Map json) => - _$_PaymentMethodDataCardFromToken( - token: json['token'] as String, - billingDetails: json['billingDetails'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billingDetails'] as Map)), - shippingDetails: json['shippingDetails'] == null - ? null - : ShippingDetails.fromJson( - Map.from(json['shippingDetails'] as Map)), - ); +_$PaymentMethodDataCardFromTokenImpl + _$$PaymentMethodDataCardFromTokenImplFromJson(Map json) => + _$PaymentMethodDataCardFromTokenImpl( + token: json['token'] as String, + billingDetails: json['billingDetails'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billingDetails'] as Map)), + shippingDetails: json['shippingDetails'] == null + ? null + : ShippingDetails.fromJson( + Map.from(json['shippingDetails'] as Map)), + ); -Map _$$_PaymentMethodDataCardFromTokenToJson( - _$_PaymentMethodDataCardFromToken instance) { +Map _$$PaymentMethodDataCardFromTokenImplToJson( + _$PaymentMethodDataCardFromTokenImpl instance) { final val = { 'token': instance.token, }; @@ -351,23 +360,23 @@ Map _$$_PaymentMethodDataCardFromTokenToJson( return val; } -_$_PaymentMethodDataCardFromMethod _$$_PaymentMethodDataCardFromMethodFromJson( - Map json) => - _$_PaymentMethodDataCardFromMethod( - paymentMethodId: json['paymentMethodId'] as String, - cvc: json['cvc'] as String?, - billingDetails: json['billingDetails'] == null - ? null - : BillingDetails.fromJson( - Map.from(json['billingDetails'] as Map)), - shippingDetails: json['shippingDetails'] == null - ? null - : ShippingDetails.fromJson( - Map.from(json['shippingDetails'] as Map)), - ); +_$PaymentMethodDataCardFromMethodImpl + _$$PaymentMethodDataCardFromMethodImplFromJson(Map json) => + _$PaymentMethodDataCardFromMethodImpl( + paymentMethodId: json['paymentMethodId'] as String, + cvc: json['cvc'] as String?, + billingDetails: json['billingDetails'] == null + ? null + : BillingDetails.fromJson( + Map.from(json['billingDetails'] as Map)), + shippingDetails: json['shippingDetails'] == null + ? null + : ShippingDetails.fromJson( + Map.from(json['shippingDetails'] as Map)), + ); -Map _$$_PaymentMethodDataCardFromMethodToJson( - _$_PaymentMethodDataCardFromMethod instance) { +Map _$$PaymentMethodDataCardFromMethodImplToJson( + _$PaymentMethodDataCardFromMethodImpl instance) { final val = { 'paymentMethodId': instance.paymentMethodId, }; @@ -384,8 +393,8 @@ Map _$$_PaymentMethodDataCardFromMethodToJson( return val; } -_$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson(Map json) => - _$_PaymentMethodDataIdeal( +_$PaymentMethodDataIdealImpl _$$PaymentMethodDataIdealImplFromJson(Map json) => + _$PaymentMethodDataIdealImpl( bankName: json['bankName'] as String?, billingDetails: json['billingDetails'] == null ? null @@ -397,8 +406,8 @@ _$_PaymentMethodDataIdeal _$$_PaymentMethodDataIdealFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataIdealToJson( - _$_PaymentMethodDataIdeal instance) { +Map _$$PaymentMethodDataIdealImplToJson( + _$PaymentMethodDataIdealImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -413,8 +422,9 @@ Map _$$_PaymentMethodDataIdealToJson( return val; } -_$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson(Map json) => - _$_PaymentMethodDataAubecs( +_$PaymentMethodDataAubecsImpl _$$PaymentMethodDataAubecsImplFromJson( + Map json) => + _$PaymentMethodDataAubecsImpl( formDetails: json['formDetails'], billingDetails: json['billingDetails'] == null ? null @@ -426,8 +436,8 @@ _$_PaymentMethodDataAubecs _$$_PaymentMethodDataAubecsFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataAubecsToJson( - _$_PaymentMethodDataAubecs instance) { +Map _$$PaymentMethodDataAubecsImplToJson( + _$PaymentMethodDataAubecsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -442,8 +452,8 @@ Map _$$_PaymentMethodDataAubecsToJson( return val; } -_$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson(Map json) => - _$_PaymentMethodDataFpx( +_$PaymentMethodDataFpxImpl _$$PaymentMethodDataFpxImplFromJson(Map json) => + _$PaymentMethodDataFpxImpl( testOfflineBank: json['testOfflineBank'] as bool? ?? false, billingDetails: json['billingDetails'] == null ? null @@ -455,8 +465,8 @@ _$_PaymentMethodDataFpx _$$_PaymentMethodDataFpxFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataFpxToJson( - _$_PaymentMethodDataFpx instance) { +Map _$$PaymentMethodDataFpxImplToJson( + _$PaymentMethodDataFpxImpl instance) { final val = { 'testOfflineBank': instance.testOfflineBank, }; @@ -472,8 +482,9 @@ Map _$$_PaymentMethodDataFpxToJson( return val; } -_$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson(Map json) => - _$_PaymentMethodDataSofort( +_$PaymentMethodDataSofortImpl _$$PaymentMethodDataSofortImplFromJson( + Map json) => + _$PaymentMethodDataSofortImpl( country: json['country'] as String, billingDetails: json['billingDetails'] == null ? null @@ -485,8 +496,8 @@ _$_PaymentMethodDataSofort _$$_PaymentMethodDataSofortFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataSofortToJson( - _$_PaymentMethodDataSofort instance) { +Map _$$PaymentMethodDataSofortImplToJson( + _$PaymentMethodDataSofortImpl instance) { final val = { 'country': instance.country, }; @@ -502,8 +513,8 @@ Map _$$_PaymentMethodDataSofortToJson( return val; } -_$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson(Map json) => - _$_PaymentMethodDataSepa( +_$PaymentMethodDataSepaImpl _$$PaymentMethodDataSepaImplFromJson(Map json) => + _$PaymentMethodDataSepaImpl( iban: json['iban'] as String, billingDetails: json['billingDetails'] == null ? null @@ -515,8 +526,8 @@ _$_PaymentMethodDataSepa _$$_PaymentMethodDataSepaFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataSepaToJson( - _$_PaymentMethodDataSepa instance) { +Map _$$PaymentMethodDataSepaImplToJson( + _$PaymentMethodDataSepaImpl instance) { final val = { 'iban': instance.iban, }; @@ -532,8 +543,9 @@ Map _$$_PaymentMethodDataSepaToJson( return val; } -_$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson(Map json) => - _$_PaymentMethodDataAfterPay( +_$PaymentMethodDataAfterPayImpl _$$PaymentMethodDataAfterPayImplFromJson( + Map json) => + _$PaymentMethodDataAfterPayImpl( billingDetails: BillingDetails.fromJson( Map.from(json['billingDetails'] as Map)), shippingDetails: json['shippingDetails'] == null @@ -542,8 +554,8 @@ _$_PaymentMethodDataAfterPay _$$_PaymentMethodDataAfterPayFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataAfterPayToJson( - _$_PaymentMethodDataAfterPay instance) { +Map _$$PaymentMethodDataAfterPayImplToJson( + _$PaymentMethodDataAfterPayImpl instance) { final val = { 'billingDetails': instance.billingDetails.toJson(), }; @@ -558,8 +570,9 @@ Map _$$_PaymentMethodDataAfterPayToJson( return val; } -_$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson(Map json) => - _$_PaymentMethodDataUsBank( +_$PaymentMethodDataUsBankImpl _$$PaymentMethodDataUsBankImplFromJson( + Map json) => + _$PaymentMethodDataUsBankImpl( accountNumber: json['accountNumber'] as String?, routingNumber: json['routingNumber'] as String?, accountHolderType: $enumDecodeNullable( @@ -576,8 +589,8 @@ _$_PaymentMethodDataUsBank _$$_PaymentMethodDataUsBankFromJson(Map json) => Map.from(json['shippingDetails'] as Map)), ); -Map _$$_PaymentMethodDataUsBankToJson( - _$_PaymentMethodDataUsBank instance) { +Map _$$PaymentMethodDataUsBankImplToJson( + _$PaymentMethodDataUsBankImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart index 9b05db6c3..25940ffb5 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.freezed.dart @@ -100,11 +100,12 @@ class _$PaymentMethodResponseCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PaymentMethodResponseCopyWith<$Res> +abstract class _$$PaymentMethodResponseImplCopyWith<$Res> implements $PaymentMethodResponseCopyWith<$Res> { - factory _$$_PaymentMethodResponseCopyWith(_$_PaymentMethodResponse value, - $Res Function(_$_PaymentMethodResponse) then) = - __$$_PaymentMethodResponseCopyWithImpl<$Res>; + factory _$$PaymentMethodResponseImplCopyWith( + _$PaymentMethodResponseImpl value, + $Res Function(_$PaymentMethodResponseImpl) then) = + __$$PaymentMethodResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({PaymentMethod? paymentMethod, StripeError? error}); @@ -116,11 +117,12 @@ abstract class _$$_PaymentMethodResponseCopyWith<$Res> } /// @nodoc -class __$$_PaymentMethodResponseCopyWithImpl<$Res> - extends _$PaymentMethodResponseCopyWithImpl<$Res, _$_PaymentMethodResponse> - implements _$$_PaymentMethodResponseCopyWith<$Res> { - __$$_PaymentMethodResponseCopyWithImpl(_$_PaymentMethodResponse _value, - $Res Function(_$_PaymentMethodResponse) _then) +class __$$PaymentMethodResponseImplCopyWithImpl<$Res> + extends _$PaymentMethodResponseCopyWithImpl<$Res, + _$PaymentMethodResponseImpl> + implements _$$PaymentMethodResponseImplCopyWith<$Res> { + __$$PaymentMethodResponseImplCopyWithImpl(_$PaymentMethodResponseImpl _value, + $Res Function(_$PaymentMethodResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -129,7 +131,7 @@ class __$$_PaymentMethodResponseCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? error = freezed, }) { - return _then(_$_PaymentMethodResponse( + return _then(_$PaymentMethodResponseImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -144,11 +146,11 @@ class __$$_PaymentMethodResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PaymentMethodResponse implements _PaymentMethodResponse { - const _$_PaymentMethodResponse({this.paymentMethod, this.error}); +class _$PaymentMethodResponseImpl implements _PaymentMethodResponse { + const _$PaymentMethodResponseImpl({this.paymentMethod, this.error}); - factory _$_PaymentMethodResponse.fromJson(Map json) => - _$$_PaymentMethodResponseFromJson(json); + factory _$PaymentMethodResponseImpl.fromJson(Map json) => + _$$PaymentMethodResponseImplFromJson(json); /// If not null, a PaymentMethod was created successfully @override @@ -167,7 +169,7 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PaymentMethodResponse && + other is _$PaymentMethodResponseImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.error, error) || other.error == error)); @@ -180,13 +182,13 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaymentMethodResponseCopyWith<_$_PaymentMethodResponse> get copyWith => - __$$_PaymentMethodResponseCopyWithImpl<_$_PaymentMethodResponse>( - this, _$identity); + _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> + get copyWith => __$$PaymentMethodResponseImplCopyWithImpl< + _$PaymentMethodResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_PaymentMethodResponseToJson( + return _$$PaymentMethodResponseImplToJson( this, ); } @@ -195,10 +197,10 @@ class _$_PaymentMethodResponse implements _PaymentMethodResponse { abstract class _PaymentMethodResponse implements PaymentMethodResponse { const factory _PaymentMethodResponse( {final PaymentMethod? paymentMethod, - final StripeError? error}) = _$_PaymentMethodResponse; + final StripeError? error}) = _$PaymentMethodResponseImpl; factory _PaymentMethodResponse.fromJson(Map json) = - _$_PaymentMethodResponse.fromJson; + _$PaymentMethodResponseImpl.fromJson; @override @@ -210,6 +212,6 @@ abstract class _PaymentMethodResponse implements PaymentMethodResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_PaymentMethodResponseCopyWith<_$_PaymentMethodResponse> get copyWith => - throw _privateConstructorUsedError; + _$$PaymentMethodResponseImplCopyWith<_$PaymentMethodResponseImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart index 327e4d9ef..adf761f52 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_method_response.g.dart @@ -6,8 +6,8 @@ part of 'payment_method_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PaymentMethodResponse _$$_PaymentMethodResponseFromJson(Map json) => - _$_PaymentMethodResponse( +_$PaymentMethodResponseImpl _$$PaymentMethodResponseImplFromJson(Map json) => + _$PaymentMethodResponseImpl( paymentMethod: json['paymentMethod'] == null ? null : PaymentMethod.fromJson( @@ -18,8 +18,8 @@ _$_PaymentMethodResponse _$$_PaymentMethodResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_PaymentMethodResponseToJson( - _$_PaymentMethodResponse instance) { +Map _$$PaymentMethodResponseImplToJson( + _$PaymentMethodResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart b/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart index 9e4fe6026..bca99ec48 100644 --- a/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart +++ b/packages/stripe_js/lib/src/api/payment_methods/payment_type.dart @@ -6,25 +6,25 @@ import 'package:freezed_annotation/freezed_annotation.dart'; /// type. enum PaymentMethodType { /// Pre-authorized debit payments are used to debit Canadian bank accounts through the Automated Clearing Settlement System (ACSS). - @JsonKey(name: "acss_debit") + @JsonValue("acss_debit") acssDebit, /// Affirm is a buy now, pay later payment method in the US. affirm, /// Afterpay / Clearpay is a buy now, pay later payment method used in Australia, Canada, France, New Zealand, Spain, the UK, and the US. - @JsonKey(name: "afterpay_clearpay") + @JsonValue("afterpay_clearpay") afterpayClearpay, /// Alipay is a digital wallet payment method used in China. alipay, /// BECS Direct Debit is used to debit Australian bank accounts through the Bulk Electronic Clearing System (BECS). - @JsonKey(name: "au_becs_debit") + @JsonValue("au_becs_debit") auBecsDebit, /// Bacs Direct Debit is used to debit UK bank accounts. - @JsonKey(name: "bacs_debit") + @JsonValue("bacs_debit") bacsDebit, /// Bancontact is a bank redirect payment method used in Belgium. @@ -39,12 +39,15 @@ enum PaymentMethodType { /// Card payments are supported through many networks and card brands. card, + /// cash app payment + cashapp, + /// Stripe Terminal is used to collect in-person card payments. - @JsonKey(name: "bacs_debit") + @JsonValue("bacs_debit") cardPresent, /// Uses a customer’s cash balance for the payment. - @JsonKey(name: "customer_balance") + @JsonValue("customer_balance") customerBalance, /// EPS is an Austria-based bank redirect payment method. @@ -63,7 +66,7 @@ enum PaymentMethodType { ideal, /// Stripe Terminal accepts Interac debit cards for in-person payments in Canada. - @JsonKey(name: "interac_present") + @JsonValue("interac_present") interacPresent, /// Klarna is a global buy now, pay later payment method. @@ -91,17 +94,19 @@ enum PaymentMethodType { promptpay, /// SEPA Direct Debit is used to debit bank accounts within the Single Euro Payments Area (SEPA) region. - @JsonKey(name: "sepa_debit") + @JsonValue("sepa_debit") sepaDebit, /// Sofort is a bank redirect payment method used in Europe. sofort, /// ACH Direct Debit is used to debit US bank accounts through the Automated Clearing House (ACH) payments system. - @JsonKey(name: "us_bank_account") + @JsonValue("us_bank_account") usBankAccount, /// WeChat Pay is a digital wallet payment method based in China. - @JsonKey(name: "wechat_pay") - wechatPay + @JsonValue("wechat_pay") + wechatPay, + + unknown } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart index 5564cb4ec..4d171462c 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.freezed.dart @@ -96,11 +96,11 @@ class _$ConfirmCardSetupDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> +abstract class _$$ConfirmCardSetupDataImplCopyWith<$Res> implements $ConfirmCardSetupDataCopyWith<$Res> { - factory _$$_ConfirmCardSetupDataCopyWith(_$_ConfirmCardSetupData value, - $Res Function(_$_ConfirmCardSetupData) then) = - __$$_ConfirmCardSetupDataCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupDataImplCopyWith(_$ConfirmCardSetupDataImpl value, + $Res Function(_$ConfirmCardSetupDataImpl) then) = + __$$ConfirmCardSetupDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -112,11 +112,11 @@ abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> } /// @nodoc -class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> - extends _$ConfirmCardSetupDataCopyWithImpl<$Res, _$_ConfirmCardSetupData> - implements _$$_ConfirmCardSetupDataCopyWith<$Res> { - __$$_ConfirmCardSetupDataCopyWithImpl(_$_ConfirmCardSetupData _value, - $Res Function(_$_ConfirmCardSetupData) _then) +class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> + extends _$ConfirmCardSetupDataCopyWithImpl<$Res, _$ConfirmCardSetupDataImpl> + implements _$$ConfirmCardSetupDataImplCopyWith<$Res> { + __$$ConfirmCardSetupDataImplCopyWithImpl(_$ConfirmCardSetupDataImpl _value, + $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -125,7 +125,7 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> Object? paymentMethod = freezed, Object? returnUrl = freezed, }) { - return _then(_$_ConfirmCardSetupData( + return _then(_$ConfirmCardSetupDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -140,13 +140,13 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { - const _$_ConfirmCardSetupData( +class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { + const _$ConfirmCardSetupDataImpl( {@paymentMethodDetailJsonKey this.paymentMethod, @JsonKey(name: "return_url") this.returnUrl}); - factory _$_ConfirmCardSetupData.fromJson(Map json) => - _$$_ConfirmCardSetupDataFromJson(json); + factory _$ConfirmCardSetupDataImpl.fromJson(Map json) => + _$$ConfirmCardSetupDataImplFromJson(json); /// Either the id of an existing PaymentMethod, or an object containing /// data to create a PaymentMethod with. @@ -171,7 +171,7 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupData && + other is _$ConfirmCardSetupDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.returnUrl, returnUrl) || @@ -185,13 +185,14 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - __$$_ConfirmCardSetupDataCopyWithImpl<_$_ConfirmCardSetupData>( - this, _$identity); + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => + __$$ConfirmCardSetupDataImplCopyWithImpl<_$ConfirmCardSetupDataImpl>( + this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupDataToJson( + return _$$ConfirmCardSetupDataImplToJson( this, ); } @@ -202,10 +203,10 @@ abstract class _ConfirmCardSetupData implements ConfirmCardSetupData { {@paymentMethodDetailJsonKey final CardPaymentMethodDetails? paymentMethod, @JsonKey(name: "return_url") final String? returnUrl}) = - _$_ConfirmCardSetupData; + _$ConfirmCardSetupDataImpl; factory _ConfirmCardSetupData.fromJson(Map json) = - _$_ConfirmCardSetupData.fromJson; + _$ConfirmCardSetupDataImpl.fromJson; @override @@ -223,6 +224,6 @@ abstract class _ConfirmCardSetupData implements ConfirmCardSetupData { String? get returnUrl; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart index 675f007d0..61f46b107 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_data.g.dart @@ -6,8 +6,8 @@ part of 'confirm_card_setup_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => - _$_ConfirmCardSetupData( +_$ConfirmCardSetupDataImpl _$$ConfirmCardSetupDataImplFromJson(Map json) => + _$ConfirmCardSetupDataImpl( paymentMethod: json['payment_method'] == null ? null : CardPaymentMethodDetails.fromJson( @@ -15,8 +15,8 @@ _$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => returnUrl: json['return_url'] as String?, ); -Map _$$_ConfirmCardSetupDataToJson( - _$_ConfirmCardSetupData instance) { +Map _$$ConfirmCardSetupDataImplToJson( + _$ConfirmCardSetupDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart index 2e3736dd3..d67665be3 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.freezed.dart @@ -67,23 +67,25 @@ class _$ConfirmCardSetupOptionsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupOptionsCopyWith<$Res> +abstract class _$$ConfirmCardSetupOptionsImplCopyWith<$Res> implements $ConfirmCardSetupOptionsCopyWith<$Res> { - factory _$$_ConfirmCardSetupOptionsCopyWith(_$_ConfirmCardSetupOptions value, - $Res Function(_$_ConfirmCardSetupOptions) then) = - __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupOptionsImplCopyWith( + _$ConfirmCardSetupOptionsImpl value, + $Res Function(_$ConfirmCardSetupOptionsImpl) then) = + __$$ConfirmCardSetupOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({bool? handleActions}); } /// @nodoc -class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> +class __$$ConfirmCardSetupOptionsImplCopyWithImpl<$Res> extends _$ConfirmCardSetupOptionsCopyWithImpl<$Res, - _$_ConfirmCardSetupOptions> - implements _$$_ConfirmCardSetupOptionsCopyWith<$Res> { - __$$_ConfirmCardSetupOptionsCopyWithImpl(_$_ConfirmCardSetupOptions _value, - $Res Function(_$_ConfirmCardSetupOptions) _then) + _$ConfirmCardSetupOptionsImpl> + implements _$$ConfirmCardSetupOptionsImplCopyWith<$Res> { + __$$ConfirmCardSetupOptionsImplCopyWithImpl( + _$ConfirmCardSetupOptionsImpl _value, + $Res Function(_$ConfirmCardSetupOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -91,7 +93,7 @@ class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> $Res call({ Object? handleActions = freezed, }) { - return _then(_$_ConfirmCardSetupOptions( + return _then(_$ConfirmCardSetupOptionsImpl( handleActions: freezed == handleActions ? _value.handleActions : handleActions // ignore: cast_nullable_to_non_nullable @@ -102,11 +104,11 @@ class __$$_ConfirmCardSetupOptionsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { - const _$_ConfirmCardSetupOptions({this.handleActions = true}); +class _$ConfirmCardSetupOptionsImpl implements _ConfirmCardSetupOptions { + const _$ConfirmCardSetupOptionsImpl({this.handleActions = true}); - factory _$_ConfirmCardSetupOptions.fromJson(Map json) => - _$$_ConfirmCardSetupOptionsFromJson(json); + factory _$ConfirmCardSetupOptionsImpl.fromJson(Map json) => + _$$ConfirmCardSetupOptionsImplFromJson(json); /// Set this to false if you want to handle next actions yourself, /// or if you want to defer next action handling until later @@ -124,7 +126,7 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupOptions && + other is _$ConfirmCardSetupOptionsImpl && (identical(other.handleActions, handleActions) || other.handleActions == handleActions)); } @@ -136,14 +138,13 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupOptionsCopyWith<_$_ConfirmCardSetupOptions> - get copyWith => - __$$_ConfirmCardSetupOptionsCopyWithImpl<_$_ConfirmCardSetupOptions>( - this, _$identity); + _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> + get copyWith => __$$ConfirmCardSetupOptionsImplCopyWithImpl< + _$ConfirmCardSetupOptionsImpl>(this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupOptionsToJson( + return _$$ConfirmCardSetupOptionsImplToJson( this, ); } @@ -151,10 +152,10 @@ class _$_ConfirmCardSetupOptions implements _ConfirmCardSetupOptions { abstract class _ConfirmCardSetupOptions implements ConfirmCardSetupOptions { const factory _ConfirmCardSetupOptions({final bool? handleActions}) = - _$_ConfirmCardSetupOptions; + _$ConfirmCardSetupOptionsImpl; factory _ConfirmCardSetupOptions.fromJson(Map json) = - _$_ConfirmCardSetupOptions.fromJson; + _$ConfirmCardSetupOptionsImpl.fromJson; @override @@ -164,6 +165,6 @@ abstract class _ConfirmCardSetupOptions implements ConfirmCardSetupOptions { bool? get handleActions; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupOptionsCopyWith<_$_ConfirmCardSetupOptions> + _$$ConfirmCardSetupOptionsImplCopyWith<_$ConfirmCardSetupOptionsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart index e5ac5401d..4076fe8b9 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_card_setup_options.g.dart @@ -6,13 +6,14 @@ part of 'confirm_card_setup_options.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupOptions _$$_ConfirmCardSetupOptionsFromJson(Map json) => - _$_ConfirmCardSetupOptions( +_$ConfirmCardSetupOptionsImpl _$$ConfirmCardSetupOptionsImplFromJson( + Map json) => + _$ConfirmCardSetupOptionsImpl( handleActions: json['handleActions'] as bool? ?? true, ); -Map _$$_ConfirmCardSetupOptionsToJson( - _$_ConfirmCardSetupOptions instance) { +Map _$$ConfirmCardSetupOptionsImplToJson( + _$ConfirmCardSetupOptionsImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart index bed8269a6..baf91f391 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.freezed.dart @@ -66,23 +66,23 @@ class _$ConfirmSepaDebitSetupDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ConfirmCardSetupDataCopyWith<$Res> +abstract class _$$ConfirmCardSetupDataImplCopyWith<$Res> implements $ConfirmSepaDebitSetupDataCopyWith<$Res> { - factory _$$_ConfirmCardSetupDataCopyWith(_$_ConfirmCardSetupData value, - $Res Function(_$_ConfirmCardSetupData) then) = - __$$_ConfirmCardSetupDataCopyWithImpl<$Res>; + factory _$$ConfirmCardSetupDataImplCopyWith(_$ConfirmCardSetupDataImpl value, + $Res Function(_$ConfirmCardSetupDataImpl) then) = + __$$ConfirmCardSetupDataImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "payment_method") String? paymentMethod}); } /// @nodoc -class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> +class __$$ConfirmCardSetupDataImplCopyWithImpl<$Res> extends _$ConfirmSepaDebitSetupDataCopyWithImpl<$Res, - _$_ConfirmCardSetupData> - implements _$$_ConfirmCardSetupDataCopyWith<$Res> { - __$$_ConfirmCardSetupDataCopyWithImpl(_$_ConfirmCardSetupData _value, - $Res Function(_$_ConfirmCardSetupData) _then) + _$ConfirmCardSetupDataImpl> + implements _$$ConfirmCardSetupDataImplCopyWith<$Res> { + __$$ConfirmCardSetupDataImplCopyWithImpl(_$ConfirmCardSetupDataImpl _value, + $Res Function(_$ConfirmCardSetupDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -90,7 +90,7 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> $Res call({ Object? paymentMethod = freezed, }) { - return _then(_$_ConfirmCardSetupData( + return _then(_$ConfirmCardSetupDataImpl( paymentMethod: freezed == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable @@ -101,12 +101,12 @@ class __$$_ConfirmCardSetupDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { - const _$_ConfirmCardSetupData( +class _$ConfirmCardSetupDataImpl implements _ConfirmCardSetupData { + const _$ConfirmCardSetupDataImpl( {@JsonKey(name: "payment_method") this.paymentMethod}); - factory _$_ConfirmCardSetupData.fromJson(Map json) => - _$$_ConfirmCardSetupDataFromJson(json); + factory _$ConfirmCardSetupDataImpl.fromJson(Map json) => + _$$ConfirmCardSetupDataImplFromJson(json); /// The id of an existing PaymentMethod or an object of collected data. @override @@ -122,7 +122,7 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConfirmCardSetupData && + other is _$ConfirmCardSetupDataImpl && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod)); } @@ -134,13 +134,14 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - __$$_ConfirmCardSetupDataCopyWithImpl<_$_ConfirmCardSetupData>( - this, _$identity); + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => + __$$ConfirmCardSetupDataImplCopyWithImpl<_$ConfirmCardSetupDataImpl>( + this, _$identity); @override Map toJson() { - return _$$_ConfirmCardSetupDataToJson( + return _$$ConfirmCardSetupDataImplToJson( this, ); } @@ -149,10 +150,10 @@ class _$_ConfirmCardSetupData implements _ConfirmCardSetupData { abstract class _ConfirmCardSetupData implements ConfirmSepaDebitSetupData { const factory _ConfirmCardSetupData( {@JsonKey(name: "payment_method") final String? paymentMethod}) = - _$_ConfirmCardSetupData; + _$ConfirmCardSetupDataImpl; factory _ConfirmCardSetupData.fromJson(Map json) = - _$_ConfirmCardSetupData.fromJson; + _$ConfirmCardSetupDataImpl.fromJson; @override @@ -161,6 +162,6 @@ abstract class _ConfirmCardSetupData implements ConfirmSepaDebitSetupData { String? get paymentMethod; @override @JsonKey(ignore: true) - _$$_ConfirmCardSetupDataCopyWith<_$_ConfirmCardSetupData> get copyWith => - throw _privateConstructorUsedError; + _$$ConfirmCardSetupDataImplCopyWith<_$ConfirmCardSetupDataImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart index 982703ee9..686cae410 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/confirm_sepa_debit_setup_data.g.dart @@ -6,13 +6,13 @@ part of 'confirm_sepa_debit_setup_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ConfirmCardSetupData _$$_ConfirmCardSetupDataFromJson(Map json) => - _$_ConfirmCardSetupData( +_$ConfirmCardSetupDataImpl _$$ConfirmCardSetupDataImplFromJson(Map json) => + _$ConfirmCardSetupDataImpl( paymentMethod: json['payment_method'] as String?, ); -Map _$$_ConfirmCardSetupDataToJson( - _$_ConfirmCardSetupData instance) { +Map _$$ConfirmCardSetupDataImplToJson( + _$ConfirmCardSetupDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart index 834982582..e9aee4ea2 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.freezed.dart @@ -315,11 +315,11 @@ class _$SetupIntentCopyWithImpl<$Res, $Val extends SetupIntent> } /// @nodoc -abstract class _$$_SetupIntentCopyWith<$Res> +abstract class _$$SetupIntentImplCopyWith<$Res> implements $SetupIntentCopyWith<$Res> { - factory _$$_SetupIntentCopyWith( - _$_SetupIntent value, $Res Function(_$_SetupIntent) then) = - __$$_SetupIntentCopyWithImpl<$Res>; + factory _$$SetupIntentImplCopyWith( + _$SetupIntentImpl value, $Res Function(_$SetupIntentImpl) then) = + __$$SetupIntentImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -352,11 +352,11 @@ abstract class _$$_SetupIntentCopyWith<$Res> } /// @nodoc -class __$$_SetupIntentCopyWithImpl<$Res> - extends _$SetupIntentCopyWithImpl<$Res, _$_SetupIntent> - implements _$$_SetupIntentCopyWith<$Res> { - __$$_SetupIntentCopyWithImpl( - _$_SetupIntent _value, $Res Function(_$_SetupIntent) _then) +class __$$SetupIntentImplCopyWithImpl<$Res> + extends _$SetupIntentCopyWithImpl<$Res, _$SetupIntentImpl> + implements _$$SetupIntentImplCopyWith<$Res> { + __$$SetupIntentImplCopyWithImpl( + _$SetupIntentImpl _value, $Res Function(_$SetupIntentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -386,7 +386,7 @@ class __$$_SetupIntentCopyWithImpl<$Res> Object? status = null, Object? usage = null, }) { - return _then(_$_SetupIntent( + return _then(_$SetupIntentImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -485,8 +485,8 @@ class __$$_SetupIntentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SetupIntent implements _SetupIntent { - const _$_SetupIntent( +class _$SetupIntentImpl implements _SetupIntent { + const _$SetupIntentImpl( {required this.id, this.object = "setup_intent", this.application, @@ -516,8 +516,8 @@ class _$_SetupIntent implements _SetupIntent { _metadata = metadata, _paymentMethodTypes = paymentMethodTypes; - factory _$_SetupIntent.fromJson(Map json) => - _$$_SetupIntentFromJson(json); + factory _$SetupIntentImpl.fromJson(Map json) => + _$$SetupIntentImplFromJson(json); /// Unique identifier for the object. @override @@ -705,7 +705,7 @@ class _$_SetupIntent implements _SetupIntent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SetupIntent && + other is _$SetupIntentImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.application, application) || @@ -779,12 +779,12 @@ class _$_SetupIntent implements _SetupIntent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SetupIntentCopyWith<_$_SetupIntent> get copyWith => - __$$_SetupIntentCopyWithImpl<_$_SetupIntent>(this, _$identity); + _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => + __$$SetupIntentImplCopyWithImpl<_$SetupIntentImpl>(this, _$identity); @override Map toJson() { - return _$$_SetupIntentToJson( + return _$$SetupIntentImplToJson( this, ); } @@ -818,10 +818,10 @@ abstract class _SetupIntent implements SetupIntent { final List paymentMethodTypes, @JsonKey(name: "single_use_mandate") final String? singleUseMandate, required final SetupIntentsStatus status, - final SetupIntentUsage usage}) = _$_SetupIntent; + final SetupIntentUsage usage}) = _$SetupIntentImpl; factory _SetupIntent.fromJson(Map json) = - _$_SetupIntent.fromJson; + _$SetupIntentImpl.fromJson; @override @@ -964,6 +964,6 @@ abstract class _SetupIntent implements SetupIntent { SetupIntentUsage get usage; @override @JsonKey(ignore: true) - _$$_SetupIntentCopyWith<_$_SetupIntent> get copyWith => + _$$SetupIntentImplCopyWith<_$SetupIntentImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart index daead189c..297f94623 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent.g.dart @@ -6,7 +6,7 @@ part of 'setup_intent.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SetupIntent _$$_SetupIntentFromJson(Map json) => _$_SetupIntent( +_$SetupIntentImpl _$$SetupIntentImplFromJson(Map json) => _$SetupIntentImpl( id: json['id'] as String, object: json['object'] as String? ?? "setup_intent", application: json['application'] as String?, @@ -42,7 +42,7 @@ _$_SetupIntent _$$_SetupIntentFromJson(Map json) => _$_SetupIntent( SetupIntentUsage.offSession, ); -Map _$$_SetupIntentToJson(_$_SetupIntent instance) { +Map _$$SetupIntentImplToJson(_$SetupIntentImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -97,24 +97,25 @@ const _$SetupIntentFlowDirectionsEnumMap = { }; const _$PaymentMethodTypeEnumMap = { - PaymentMethodType.acssDebit: 'acssDebit', + PaymentMethodType.acssDebit: 'acss_debit', PaymentMethodType.affirm: 'affirm', - PaymentMethodType.afterpayClearpay: 'afterpayClearpay', + PaymentMethodType.afterpayClearpay: 'afterpay_clearpay', PaymentMethodType.alipay: 'alipay', - PaymentMethodType.auBecsDebit: 'auBecsDebit', - PaymentMethodType.bacsDebit: 'bacsDebit', + PaymentMethodType.auBecsDebit: 'au_becs_debit', + PaymentMethodType.bacsDebit: 'bacs_debit', PaymentMethodType.bancontact: 'bancontact', PaymentMethodType.blik: 'blik', PaymentMethodType.boleto: 'boleto', PaymentMethodType.card: 'card', - PaymentMethodType.cardPresent: 'cardPresent', - PaymentMethodType.customerBalance: 'customerBalance', + PaymentMethodType.cashapp: 'cashapp', + PaymentMethodType.cardPresent: 'bacs_debit', + PaymentMethodType.customerBalance: 'customer_balance', PaymentMethodType.eps: 'eps', PaymentMethodType.fpx: 'fpx', PaymentMethodType.giropay: 'giropay', PaymentMethodType.grabpay: 'grabpay', PaymentMethodType.ideal: 'ideal', - PaymentMethodType.interacPresent: 'interacPresent', + PaymentMethodType.interacPresent: 'interac_present', PaymentMethodType.klarna: 'klarna', PaymentMethodType.konbini: 'konbini', PaymentMethodType.link: 'link', @@ -123,10 +124,11 @@ const _$PaymentMethodTypeEnumMap = { PaymentMethodType.paynow: 'paynow', PaymentMethodType.pix: 'pix', PaymentMethodType.promptpay: 'promptpay', - PaymentMethodType.sepaDebit: 'sepaDebit', + PaymentMethodType.sepaDebit: 'sepa_debit', PaymentMethodType.sofort: 'sofort', - PaymentMethodType.usBankAccount: 'usBankAccount', - PaymentMethodType.wechatPay: 'wechatPay', + PaymentMethodType.usBankAccount: 'us_bank_account', + PaymentMethodType.wechatPay: 'wechat_pay', + PaymentMethodType.unknown: 'unknown', }; const _$SetupIntentsStatusEnumMap = { diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart index ddee27a69..18dcc9ca5 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.freezed.dart @@ -98,11 +98,11 @@ class _$SetupIntentResponseCopyWithImpl<$Res, $Val extends SetupIntentResponse> } /// @nodoc -abstract class _$$_SetupIntentResponseCopyWith<$Res> +abstract class _$$SetupIntentResponseImplCopyWith<$Res> implements $SetupIntentResponseCopyWith<$Res> { - factory _$$_SetupIntentResponseCopyWith(_$_SetupIntentResponse value, - $Res Function(_$_SetupIntentResponse) then) = - __$$_SetupIntentResponseCopyWithImpl<$Res>; + factory _$$SetupIntentResponseImplCopyWith(_$SetupIntentResponseImpl value, + $Res Function(_$SetupIntentResponseImpl) then) = + __$$SetupIntentResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({SetupIntent? setupIntent, StripeError? error}); @@ -114,11 +114,11 @@ abstract class _$$_SetupIntentResponseCopyWith<$Res> } /// @nodoc -class __$$_SetupIntentResponseCopyWithImpl<$Res> - extends _$SetupIntentResponseCopyWithImpl<$Res, _$_SetupIntentResponse> - implements _$$_SetupIntentResponseCopyWith<$Res> { - __$$_SetupIntentResponseCopyWithImpl(_$_SetupIntentResponse _value, - $Res Function(_$_SetupIntentResponse) _then) +class __$$SetupIntentResponseImplCopyWithImpl<$Res> + extends _$SetupIntentResponseCopyWithImpl<$Res, _$SetupIntentResponseImpl> + implements _$$SetupIntentResponseImplCopyWith<$Res> { + __$$SetupIntentResponseImplCopyWithImpl(_$SetupIntentResponseImpl _value, + $Res Function(_$SetupIntentResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -127,7 +127,7 @@ class __$$_SetupIntentResponseCopyWithImpl<$Res> Object? setupIntent = freezed, Object? error = freezed, }) { - return _then(_$_SetupIntentResponse( + return _then(_$SetupIntentResponseImpl( setupIntent: freezed == setupIntent ? _value.setupIntent : setupIntent // ignore: cast_nullable_to_non_nullable @@ -142,11 +142,11 @@ class __$$_SetupIntentResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SetupIntentResponse implements _SetupIntentResponse { - const _$_SetupIntentResponse({this.setupIntent, this.error}); +class _$SetupIntentResponseImpl implements _SetupIntentResponse { + const _$SetupIntentResponseImpl({this.setupIntent, this.error}); - factory _$_SetupIntentResponse.fromJson(Map json) => - _$$_SetupIntentResponseFromJson(json); + factory _$SetupIntentResponseImpl.fromJson(Map json) => + _$$SetupIntentResponseImplFromJson(json); /// If not null, a SetupIntent was retrieved successfully @override @@ -165,7 +165,7 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SetupIntentResponse && + other is _$SetupIntentResponseImpl && (identical(other.setupIntent, setupIntent) || other.setupIntent == setupIntent) && (identical(other.error, error) || other.error == error)); @@ -178,13 +178,13 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SetupIntentResponseCopyWith<_$_SetupIntentResponse> get copyWith => - __$$_SetupIntentResponseCopyWithImpl<_$_SetupIntentResponse>( + _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => + __$$SetupIntentResponseImplCopyWithImpl<_$SetupIntentResponseImpl>( this, _$identity); @override Map toJson() { - return _$$_SetupIntentResponseToJson( + return _$$SetupIntentResponseImplToJson( this, ); } @@ -193,10 +193,10 @@ class _$_SetupIntentResponse implements _SetupIntentResponse { abstract class _SetupIntentResponse implements SetupIntentResponse { const factory _SetupIntentResponse( {final SetupIntent? setupIntent, - final StripeError? error}) = _$_SetupIntentResponse; + final StripeError? error}) = _$SetupIntentResponseImpl; factory _SetupIntentResponse.fromJson(Map json) = - _$_SetupIntentResponse.fromJson; + _$SetupIntentResponseImpl.fromJson; @override @@ -208,6 +208,6 @@ abstract class _SetupIntentResponse implements SetupIntentResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_SetupIntentResponseCopyWith<_$_SetupIntentResponse> get copyWith => + _$$SetupIntentResponseImplCopyWith<_$SetupIntentResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart index d2f0f755b..9fcf6dc87 100644 --- a/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart +++ b/packages/stripe_js/lib/src/api/setup_intents/setup_intent_response.g.dart @@ -6,8 +6,8 @@ part of 'setup_intent_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SetupIntentResponse _$$_SetupIntentResponseFromJson(Map json) => - _$_SetupIntentResponse( +_$SetupIntentResponseImpl _$$SetupIntentResponseImplFromJson(Map json) => + _$SetupIntentResponseImpl( setupIntent: json['setupIntent'] == null ? null : SetupIntent.fromJson( @@ -18,8 +18,8 @@ _$_SetupIntentResponse _$$_SetupIntentResponseFromJson(Map json) => Map.from(json['error'] as Map)), ); -Map _$$_SetupIntentResponseToJson( - _$_SetupIntentResponse instance) { +Map _$$SetupIntentResponseImplToJson( + _$SetupIntentResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart index ecc693cab..140330703 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.freezed.dart @@ -117,12 +117,12 @@ class _$CreateTokenBankAccountDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_CreateTokenBankAccountDataCopyWith<$Res> +abstract class _$$CreateTokenBankAccountDataImplCopyWith<$Res> implements $CreateTokenBankAccountDataCopyWith<$Res> { - factory _$$_CreateTokenBankAccountDataCopyWith( - _$_CreateTokenBankAccountData value, - $Res Function(_$_CreateTokenBankAccountData) then) = - __$$_CreateTokenBankAccountDataCopyWithImpl<$Res>; + factory _$$CreateTokenBankAccountDataImplCopyWith( + _$CreateTokenBankAccountDataImpl value, + $Res Function(_$CreateTokenBankAccountDataImpl) then) = + __$$CreateTokenBankAccountDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -137,13 +137,13 @@ abstract class _$$_CreateTokenBankAccountDataCopyWith<$Res> } /// @nodoc -class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> +class __$$CreateTokenBankAccountDataImplCopyWithImpl<$Res> extends _$CreateTokenBankAccountDataCopyWithImpl<$Res, - _$_CreateTokenBankAccountData> - implements _$$_CreateTokenBankAccountDataCopyWith<$Res> { - __$$_CreateTokenBankAccountDataCopyWithImpl( - _$_CreateTokenBankAccountData _value, - $Res Function(_$_CreateTokenBankAccountData) _then) + _$CreateTokenBankAccountDataImpl> + implements _$$CreateTokenBankAccountDataImplCopyWith<$Res> { + __$$CreateTokenBankAccountDataImplCopyWithImpl( + _$CreateTokenBankAccountDataImpl _value, + $Res Function(_$CreateTokenBankAccountDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -157,7 +157,7 @@ class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> Object? accountHolderType = freezed, Object? accountType = freezed, }) { - return _then(_$_CreateTokenBankAccountData( + return _then(_$CreateTokenBankAccountDataImpl( country: null == country ? _value.country : country // ignore: cast_nullable_to_non_nullable @@ -192,8 +192,8 @@ class __$$_CreateTokenBankAccountDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { - const _$_CreateTokenBankAccountData( +class _$CreateTokenBankAccountDataImpl implements _CreateTokenBankAccountData { + const _$CreateTokenBankAccountDataImpl( {required this.country, required this.currency, @JsonKey(name: "routing_number") this.routingNumber, @@ -202,8 +202,9 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { @JsonKey(name: "account_holder_type") this.accountHolderType, @JsonKey(name: "account_type") this.accountType}); - factory _$_CreateTokenBankAccountData.fromJson(Map json) => - _$$_CreateTokenBankAccountDataFromJson(json); + factory _$CreateTokenBankAccountDataImpl.fromJson( + Map json) => + _$$CreateTokenBankAccountDataImplFromJson(json); @override final String country; @@ -236,7 +237,7 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenBankAccountData && + other is _$CreateTokenBankAccountDataImpl && (identical(other.country, country) || other.country == country) && (identical(other.currency, currency) || other.currency == currency) && @@ -260,13 +261,13 @@ class _$_CreateTokenBankAccountData implements _CreateTokenBankAccountData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenBankAccountDataCopyWith<_$_CreateTokenBankAccountData> - get copyWith => __$$_CreateTokenBankAccountDataCopyWithImpl< - _$_CreateTokenBankAccountData>(this, _$identity); + _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> + get copyWith => __$$CreateTokenBankAccountDataImplCopyWithImpl< + _$CreateTokenBankAccountDataImpl>(this, _$identity); @override Map toJson() { - return _$$_CreateTokenBankAccountDataToJson( + return _$$CreateTokenBankAccountDataImplToJson( this, ); } @@ -283,10 +284,10 @@ abstract class _CreateTokenBankAccountData @JsonKey(name: "account_holder_type") final BankAccountHolderType? accountHolderType, @JsonKey(name: "account_type") final String? accountType}) = - _$_CreateTokenBankAccountData; + _$CreateTokenBankAccountDataImpl; factory _CreateTokenBankAccountData.fromJson(Map json) = - _$_CreateTokenBankAccountData.fromJson; + _$CreateTokenBankAccountDataImpl.fromJson; @override String get country; @@ -311,6 +312,6 @@ abstract class _CreateTokenBankAccountData String? get accountType; @override @JsonKey(ignore: true) - _$$_CreateTokenBankAccountDataCopyWith<_$_CreateTokenBankAccountData> + _$$CreateTokenBankAccountDataImplCopyWith<_$CreateTokenBankAccountDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart index 59e55387b..0f7c1281a 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_bank_account_data.g.dart @@ -6,9 +6,9 @@ part of 'create_token_bank_account_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenBankAccountData _$$_CreateTokenBankAccountDataFromJson( +_$CreateTokenBankAccountDataImpl _$$CreateTokenBankAccountDataImplFromJson( Map json) => - _$_CreateTokenBankAccountData( + _$CreateTokenBankAccountDataImpl( country: json['country'] as String, currency: json['currency'] as String, routingNumber: json['routing_number'] as String?, @@ -19,8 +19,8 @@ _$_CreateTokenBankAccountData _$$_CreateTokenBankAccountDataFromJson( accountType: json['account_type'] as String?, ); -Map _$$_CreateTokenBankAccountDataToJson( - _$_CreateTokenBankAccountData instance) { +Map _$$CreateTokenBankAccountDataImplToJson( + _$CreateTokenBankAccountDataImpl instance) { final val = { 'country': instance.country, 'currency': instance.currency, diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart index f996db062..f984ec2b8 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.freezed.dart @@ -138,11 +138,11 @@ class _$CreateTokenCardDataCopyWithImpl<$Res, $Val extends CreateTokenCardData> } /// @nodoc -abstract class _$$_CreateTokenCardDataCopyWith<$Res> +abstract class _$$CreateTokenCardDataImplCopyWith<$Res> implements $CreateTokenCardDataCopyWith<$Res> { - factory _$$_CreateTokenCardDataCopyWith(_$_CreateTokenCardData value, - $Res Function(_$_CreateTokenCardData) then) = - __$$_CreateTokenCardDataCopyWithImpl<$Res>; + factory _$$CreateTokenCardDataImplCopyWith(_$CreateTokenCardDataImpl value, + $Res Function(_$CreateTokenCardDataImpl) then) = + __$$CreateTokenCardDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -157,11 +157,11 @@ abstract class _$$_CreateTokenCardDataCopyWith<$Res> } /// @nodoc -class __$$_CreateTokenCardDataCopyWithImpl<$Res> - extends _$CreateTokenCardDataCopyWithImpl<$Res, _$_CreateTokenCardData> - implements _$$_CreateTokenCardDataCopyWith<$Res> { - __$$_CreateTokenCardDataCopyWithImpl(_$_CreateTokenCardData _value, - $Res Function(_$_CreateTokenCardData) _then) +class __$$CreateTokenCardDataImplCopyWithImpl<$Res> + extends _$CreateTokenCardDataCopyWithImpl<$Res, _$CreateTokenCardDataImpl> + implements _$$CreateTokenCardDataImplCopyWith<$Res> { + __$$CreateTokenCardDataImplCopyWithImpl(_$CreateTokenCardDataImpl _value, + $Res Function(_$CreateTokenCardDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -176,7 +176,7 @@ class __$$_CreateTokenCardDataCopyWithImpl<$Res> Object? addressCountry = freezed, Object? currency = freezed, }) { - return _then(_$_CreateTokenCardData( + return _then(_$CreateTokenCardDataImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -215,8 +215,8 @@ class __$$_CreateTokenCardDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenCardData implements _CreateTokenCardData { - const _$_CreateTokenCardData( +class _$CreateTokenCardDataImpl implements _CreateTokenCardData { + const _$CreateTokenCardDataImpl( {this.name, @JsonKey(name: "address_line1") this.addressLine1, @JsonKey(name: "address_line2") this.addressLine2, @@ -226,8 +226,8 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { @JsonKey(name: "address_country") this.addressCountry, @JsonKey(name: "currency") this.currency}); - factory _$_CreateTokenCardData.fromJson(Map json) => - _$$_CreateTokenCardDataFromJson(json); + factory _$CreateTokenCardDataImpl.fromJson(Map json) => + _$$CreateTokenCardDataImplFromJson(json); /// RECOMMENDED /// Cardholder name. @@ -281,7 +281,7 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenCardData && + other is _$CreateTokenCardDataImpl && (identical(other.name, name) || other.name == name) && (identical(other.addressLine1, addressLine1) || other.addressLine1 == addressLine1) && @@ -307,13 +307,13 @@ class _$_CreateTokenCardData implements _CreateTokenCardData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenCardDataCopyWith<_$_CreateTokenCardData> get copyWith => - __$$_CreateTokenCardDataCopyWithImpl<_$_CreateTokenCardData>( + _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => + __$$CreateTokenCardDataImplCopyWithImpl<_$CreateTokenCardDataImpl>( this, _$identity); @override Map toJson() { - return _$$_CreateTokenCardDataToJson( + return _$$CreateTokenCardDataImplToJson( this, ); } @@ -329,10 +329,10 @@ abstract class _CreateTokenCardData implements CreateTokenCardData { @JsonKey(name: "address_zip") final String? addressZip, @JsonKey(name: "address_country") final String? addressCountry, @JsonKey(name: "currency") final String? currency}) = - _$_CreateTokenCardData; + _$CreateTokenCardDataImpl; factory _CreateTokenCardData.fromJson(Map json) = - _$_CreateTokenCardData.fromJson; + _$CreateTokenCardDataImpl.fromJson; @override @@ -379,6 +379,6 @@ abstract class _CreateTokenCardData implements CreateTokenCardData { String? get currency; @override @JsonKey(ignore: true) - _$$_CreateTokenCardDataCopyWith<_$_CreateTokenCardData> get copyWith => + _$$CreateTokenCardDataImplCopyWith<_$CreateTokenCardDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart index f3abcde6b..288b981f0 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_card_data.g.dart @@ -6,8 +6,8 @@ part of 'create_token_card_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenCardData _$$_CreateTokenCardDataFromJson(Map json) => - _$_CreateTokenCardData( +_$CreateTokenCardDataImpl _$$CreateTokenCardDataImplFromJson(Map json) => + _$CreateTokenCardDataImpl( name: json['name'] as String?, addressLine1: json['address_line1'] as String?, addressLine2: json['address_line2'] as String?, @@ -18,8 +18,8 @@ _$_CreateTokenCardData _$$_CreateTokenCardDataFromJson(Map json) => currency: json['currency'] as String?, ); -Map _$$_CreateTokenCardDataToJson( - _$_CreateTokenCardData instance) { +Map _$$CreateTokenCardDataImplToJson( + _$CreateTokenCardDataImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart index a05633be8..6e2165533 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.freezed.dart @@ -63,22 +63,22 @@ class _$CreateTokenPIIDataCopyWithImpl<$Res, $Val extends CreateTokenPIIData> } /// @nodoc -abstract class _$$_CreateTokenPIIDataCopyWith<$Res> +abstract class _$$CreateTokenPIIDataImplCopyWith<$Res> implements $CreateTokenPIIDataCopyWith<$Res> { - factory _$$_CreateTokenPIIDataCopyWith(_$_CreateTokenPIIData value, - $Res Function(_$_CreateTokenPIIData) then) = - __$$_CreateTokenPIIDataCopyWithImpl<$Res>; + factory _$$CreateTokenPIIDataImplCopyWith(_$CreateTokenPIIDataImpl value, + $Res Function(_$CreateTokenPIIDataImpl) then) = + __$$CreateTokenPIIDataImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "personal_id_number") String personalIdNumber}); } /// @nodoc -class __$$_CreateTokenPIIDataCopyWithImpl<$Res> - extends _$CreateTokenPIIDataCopyWithImpl<$Res, _$_CreateTokenPIIData> - implements _$$_CreateTokenPIIDataCopyWith<$Res> { - __$$_CreateTokenPIIDataCopyWithImpl( - _$_CreateTokenPIIData _value, $Res Function(_$_CreateTokenPIIData) _then) +class __$$CreateTokenPIIDataImplCopyWithImpl<$Res> + extends _$CreateTokenPIIDataCopyWithImpl<$Res, _$CreateTokenPIIDataImpl> + implements _$$CreateTokenPIIDataImplCopyWith<$Res> { + __$$CreateTokenPIIDataImplCopyWithImpl(_$CreateTokenPIIDataImpl _value, + $Res Function(_$CreateTokenPIIDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -86,7 +86,7 @@ class __$$_CreateTokenPIIDataCopyWithImpl<$Res> $Res call({ Object? personalIdNumber = null, }) { - return _then(_$_CreateTokenPIIData( + return _then(_$CreateTokenPIIDataImpl( personalIdNumber: null == personalIdNumber ? _value.personalIdNumber : personalIdNumber // ignore: cast_nullable_to_non_nullable @@ -97,12 +97,12 @@ class __$$_CreateTokenPIIDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CreateTokenPIIData implements _CreateTokenPIIData { - const _$_CreateTokenPIIData( +class _$CreateTokenPIIDataImpl implements _CreateTokenPIIData { + const _$CreateTokenPIIDataImpl( {@JsonKey(name: "personal_id_number") required this.personalIdNumber}); - factory _$_CreateTokenPIIData.fromJson(Map json) => - _$$_CreateTokenPIIDataFromJson(json); + factory _$CreateTokenPIIDataImpl.fromJson(Map json) => + _$$CreateTokenPIIDataImplFromJson(json); @override @JsonKey(name: "personal_id_number") @@ -117,7 +117,7 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CreateTokenPIIData && + other is _$CreateTokenPIIDataImpl && (identical(other.personalIdNumber, personalIdNumber) || other.personalIdNumber == personalIdNumber)); } @@ -129,13 +129,13 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CreateTokenPIIDataCopyWith<_$_CreateTokenPIIData> get copyWith => - __$$_CreateTokenPIIDataCopyWithImpl<_$_CreateTokenPIIData>( + _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => + __$$CreateTokenPIIDataImplCopyWithImpl<_$CreateTokenPIIDataImpl>( this, _$identity); @override Map toJson() { - return _$$_CreateTokenPIIDataToJson( + return _$$CreateTokenPIIDataImplToJson( this, ); } @@ -144,16 +144,16 @@ class _$_CreateTokenPIIData implements _CreateTokenPIIData { abstract class _CreateTokenPIIData implements CreateTokenPIIData { const factory _CreateTokenPIIData( {@JsonKey(name: "personal_id_number") - required final String personalIdNumber}) = _$_CreateTokenPIIData; + required final String personalIdNumber}) = _$CreateTokenPIIDataImpl; factory _CreateTokenPIIData.fromJson(Map json) = - _$_CreateTokenPIIData.fromJson; + _$CreateTokenPIIDataImpl.fromJson; @override @JsonKey(name: "personal_id_number") String get personalIdNumber; @override @JsonKey(ignore: true) - _$$_CreateTokenPIIDataCopyWith<_$_CreateTokenPIIData> get copyWith => + _$$CreateTokenPIIDataImplCopyWith<_$CreateTokenPIIDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart index 7c334593b..b8780bd5d 100644 --- a/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/create_token_pii_data.g.dart @@ -6,13 +6,13 @@ part of 'create_token_pii_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_CreateTokenPIIData _$$_CreateTokenPIIDataFromJson(Map json) => - _$_CreateTokenPIIData( +_$CreateTokenPIIDataImpl _$$CreateTokenPIIDataImplFromJson(Map json) => + _$CreateTokenPIIDataImpl( personalIdNumber: json['personal_id_number'] as String, ); -Map _$$_CreateTokenPIIDataToJson( - _$_CreateTokenPIIData instance) => +Map _$$CreateTokenPIIDataImplToJson( + _$CreateTokenPIIDataImpl instance) => { 'personal_id_number': instance.personalIdNumber, }; diff --git a/packages/stripe_js/lib/src/api/tokens/token.freezed.dart b/packages/stripe_js/lib/src/api/tokens/token.freezed.dart index befc6672b..50c635d7c 100644 --- a/packages/stripe_js/lib/src/api/tokens/token.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/token.freezed.dart @@ -167,9 +167,10 @@ class _$TokenCopyWithImpl<$Res, $Val extends Token> } /// @nodoc -abstract class _$$_TokenCopyWith<$Res> implements $TokenCopyWith<$Res> { - factory _$$_TokenCopyWith(_$_Token value, $Res Function(_$_Token) then) = - __$$_TokenCopyWithImpl<$Res>; +abstract class _$$TokenImplCopyWith<$Res> implements $TokenCopyWith<$Res> { + factory _$$TokenImplCopyWith( + _$TokenImpl value, $Res Function(_$TokenImpl) then) = + __$$TokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -190,9 +191,11 @@ abstract class _$$_TokenCopyWith<$Res> implements $TokenCopyWith<$Res> { } /// @nodoc -class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> - implements _$$_TokenCopyWith<$Res> { - __$$_TokenCopyWithImpl(_$_Token _value, $Res Function(_$_Token) _then) +class __$$TokenImplCopyWithImpl<$Res> + extends _$TokenCopyWithImpl<$Res, _$TokenImpl> + implements _$$TokenImplCopyWith<$Res> { + __$$TokenImplCopyWithImpl( + _$TokenImpl _value, $Res Function(_$TokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -208,7 +211,7 @@ class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> Object? type = null, Object? used = null, }) { - return _then(_$_Token( + return _then(_$TokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -251,8 +254,8 @@ class __$$_TokenCopyWithImpl<$Res> extends _$TokenCopyWithImpl<$Res, _$_Token> /// @nodoc @JsonSerializable() -class _$_Token implements _Token { - const _$_Token( +class _$TokenImpl implements _Token { + const _$TokenImpl( {required this.id, this.object = "token", @JsonKey(name: "bank_account") this.bankAccount, @@ -263,8 +266,8 @@ class _$_Token implements _Token { required this.type, this.used = false}); - factory _$_Token.fromJson(Map json) => - _$$_TokenFromJson(json); + factory _$TokenImpl.fromJson(Map json) => + _$$TokenImplFromJson(json); /// Unique identifier for the object. @override @@ -320,7 +323,7 @@ class _$_Token implements _Token { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Token && + other is _$TokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.bankAccount, bankAccount) || @@ -343,12 +346,12 @@ class _$_Token implements _Token { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TokenCopyWith<_$_Token> get copyWith => - __$$_TokenCopyWithImpl<_$_Token>(this, _$identity); + _$$TokenImplCopyWith<_$TokenImpl> get copyWith => + __$$TokenImplCopyWithImpl<_$TokenImpl>(this, _$identity); @override Map toJson() { - return _$$_TokenToJson( + return _$$TokenImplToJson( this, ); } @@ -364,9 +367,9 @@ abstract class _Token implements Token { final int? created, final bool livemode, required final TokenType type, - final bool used}) = _$_Token; + final bool used}) = _$TokenImpl; - factory _Token.fromJson(Map json) = _$_Token.fromJson; + factory _Token.fromJson(Map json) = _$TokenImpl.fromJson; @override @@ -412,7 +415,7 @@ abstract class _Token implements Token { bool get used; @override @JsonKey(ignore: true) - _$$_TokenCopyWith<_$_Token> get copyWith => + _$$TokenImplCopyWith<_$TokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -599,11 +602,11 @@ class _$BankAccountTokenCopyWithImpl<$Res, $Val extends BankAccountToken> } /// @nodoc -abstract class _$$_BankAccountTokenCopyWith<$Res> +abstract class _$$BankAccountTokenImplCopyWith<$Res> implements $BankAccountTokenCopyWith<$Res> { - factory _$$_BankAccountTokenCopyWith( - _$_BankAccountToken value, $Res Function(_$_BankAccountToken) then) = - __$$_BankAccountTokenCopyWithImpl<$Res>; + factory _$$BankAccountTokenImplCopyWith(_$BankAccountTokenImpl value, + $Res Function(_$BankAccountTokenImpl) then) = + __$$BankAccountTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -623,11 +626,11 @@ abstract class _$$_BankAccountTokenCopyWith<$Res> } /// @nodoc -class __$$_BankAccountTokenCopyWithImpl<$Res> - extends _$BankAccountTokenCopyWithImpl<$Res, _$_BankAccountToken> - implements _$$_BankAccountTokenCopyWith<$Res> { - __$$_BankAccountTokenCopyWithImpl( - _$_BankAccountToken _value, $Res Function(_$_BankAccountToken) _then) +class __$$BankAccountTokenImplCopyWithImpl<$Res> + extends _$BankAccountTokenCopyWithImpl<$Res, _$BankAccountTokenImpl> + implements _$$BankAccountTokenImplCopyWith<$Res> { + __$$BankAccountTokenImplCopyWithImpl(_$BankAccountTokenImpl _value, + $Res Function(_$BankAccountTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -646,7 +649,7 @@ class __$$_BankAccountTokenCopyWithImpl<$Res> Object? routingNumber = freezed, Object? status = freezed, }) { - return _then(_$_BankAccountToken( + return _then(_$BankAccountTokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -701,8 +704,8 @@ class __$$_BankAccountTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_BankAccountToken implements _BankAccountToken { - const _$_BankAccountToken( +class _$BankAccountTokenImpl implements _BankAccountToken { + const _$BankAccountTokenImpl( {required this.id, this.object = "bank_account", @JsonKey(name: "account_holder_name") this.accountHolderName, @@ -716,8 +719,8 @@ class _$_BankAccountToken implements _BankAccountToken { @JsonKey(name: "routing_number") this.routingNumber, this.status}); - factory _$_BankAccountToken.fromJson(Map json) => - _$$_BankAccountTokenFromJson(json); + factory _$BankAccountTokenImpl.fromJson(Map json) => + _$$BankAccountTokenImplFromJson(json); /// Unique identifier for the object. @override @@ -809,7 +812,7 @@ class _$_BankAccountToken implements _BankAccountToken { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BankAccountToken && + other is _$BankAccountTokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.accountHolderName, accountHolderName) || @@ -851,12 +854,13 @@ class _$_BankAccountToken implements _BankAccountToken { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BankAccountTokenCopyWith<_$_BankAccountToken> get copyWith => - __$$_BankAccountTokenCopyWithImpl<_$_BankAccountToken>(this, _$identity); + _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => + __$$BankAccountTokenImplCopyWithImpl<_$BankAccountTokenImpl>( + this, _$identity); @override Map toJson() { - return _$$_BankAccountTokenToJson( + return _$$BankAccountTokenImplToJson( this, ); } @@ -876,10 +880,10 @@ abstract class _BankAccountToken implements BankAccountToken { final String? fingerprint, final String? last4, @JsonKey(name: "routing_number") final String? routingNumber, - final BankAccountStatus? status}) = _$_BankAccountToken; + final BankAccountStatus? status}) = _$BankAccountTokenImpl; factory _BankAccountToken.fromJson(Map json) = - _$_BankAccountToken.fromJson; + _$BankAccountTokenImpl.fromJson; @override @@ -963,7 +967,7 @@ abstract class _BankAccountToken implements BankAccountToken { BankAccountStatus? get status; @override @JsonKey(ignore: true) - _$$_BankAccountTokenCopyWith<_$_BankAccountToken> get copyWith => + _$$BankAccountTokenImplCopyWith<_$BankAccountTokenImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1259,10 +1263,11 @@ class _$CardTokenCopyWithImpl<$Res, $Val extends CardToken> } /// @nodoc -abstract class _$$_CardTokenCopyWith<$Res> implements $CardTokenCopyWith<$Res> { - factory _$$_CardTokenCopyWith( - _$_CardToken value, $Res Function(_$_CardToken) then) = - __$$_CardTokenCopyWithImpl<$Res>; +abstract class _$$CardTokenImplCopyWith<$Res> + implements $CardTokenCopyWith<$Res> { + factory _$$CardTokenImplCopyWith( + _$CardTokenImpl value, $Res Function(_$CardTokenImpl) then) = + __$$CardTokenImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1294,11 +1299,11 @@ abstract class _$$_CardTokenCopyWith<$Res> implements $CardTokenCopyWith<$Res> { } /// @nodoc -class __$$_CardTokenCopyWithImpl<$Res> - extends _$CardTokenCopyWithImpl<$Res, _$_CardToken> - implements _$$_CardTokenCopyWith<$Res> { - __$$_CardTokenCopyWithImpl( - _$_CardToken _value, $Res Function(_$_CardToken) _then) +class __$$CardTokenImplCopyWithImpl<$Res> + extends _$CardTokenCopyWithImpl<$Res, _$CardTokenImpl> + implements _$$CardTokenImplCopyWith<$Res> { + __$$CardTokenImplCopyWithImpl( + _$CardTokenImpl _value, $Res Function(_$CardTokenImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1328,7 +1333,7 @@ class __$$_CardTokenCopyWithImpl<$Res> Object? name = freezed, Object? tokenizationMethod = freezed, }) { - return _then(_$_CardToken( + return _then(_$CardTokenImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -1427,8 +1432,8 @@ class __$$_CardTokenCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_CardToken implements _CardToken { - const _$_CardToken( +class _$CardTokenImpl implements _CardToken { + const _$CardTokenImpl( {required this.id, this.object = "card", @JsonKey(name: "address_city") this.addressCity, @@ -1454,8 +1459,8 @@ class _$_CardToken implements _CardToken { @JsonKey(name: "tokenization_method") this.tokenizationMethod}) : _metadata = metadata; - factory _$_CardToken.fromJson(Map json) => - _$$_CardTokenFromJson(json); + factory _$CardTokenImpl.fromJson(Map json) => + _$$CardTokenImplFromJson(json); /// Unique identifier for the object. @override @@ -1611,7 +1616,7 @@ class _$_CardToken implements _CardToken { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CardToken && + other is _$CardTokenImpl && (identical(other.id, id) || other.id == id) && (identical(other.object, object) || other.object == object) && (identical(other.addressCity, addressCity) || @@ -1683,12 +1688,12 @@ class _$_CardToken implements _CardToken { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CardTokenCopyWith<_$_CardToken> get copyWith => - __$$_CardTokenCopyWithImpl<_$_CardToken>(this, _$identity); + _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => + __$$CardTokenImplCopyWithImpl<_$CardTokenImpl>(this, _$identity); @override Map toJson() { - return _$$_CardTokenToJson( + return _$$CardTokenImplToJson( this, ); } @@ -1721,10 +1726,10 @@ abstract class _CardToken implements CardToken { final Map metadata, final String? name, @JsonKey(name: "tokenization_method") - final CardTokenizationMethod? tokenizationMethod}) = _$_CardToken; + final CardTokenizationMethod? tokenizationMethod}) = _$CardTokenImpl; factory _CardToken.fromJson(Map json) = - _$_CardToken.fromJson; + _$CardTokenImpl.fromJson; @override @@ -1861,6 +1866,6 @@ abstract class _CardToken implements CardToken { CardTokenizationMethod? get tokenizationMethod; @override @JsonKey(ignore: true) - _$$_CardTokenCopyWith<_$_CardToken> get copyWith => + _$$CardTokenImplCopyWith<_$CardTokenImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token.g.dart b/packages/stripe_js/lib/src/api/tokens/token.g.dart index f81c7e0d1..0b9d15656 100644 --- a/packages/stripe_js/lib/src/api/tokens/token.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/token.g.dart @@ -6,7 +6,7 @@ part of 'token.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Token _$$_TokenFromJson(Map json) => _$_Token( +_$TokenImpl _$$TokenImplFromJson(Map json) => _$TokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "token", bankAccount: json['bank_account'] == null @@ -23,7 +23,7 @@ _$_Token _$$_TokenFromJson(Map json) => _$_Token( used: json['used'] as bool? ?? false, ); -Map _$$_TokenToJson(_$_Token instance) { +Map _$$TokenImplToJson(_$TokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -52,8 +52,8 @@ const _$TokenTypeEnumMap = { TokenType.pii: 'pii', }; -_$_BankAccountToken _$$_BankAccountTokenFromJson(Map json) => - _$_BankAccountToken( +_$BankAccountTokenImpl _$$BankAccountTokenImplFromJson(Map json) => + _$BankAccountTokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "bank_account", accountHolderName: json['account_holder_name'] as String?, @@ -69,7 +69,8 @@ _$_BankAccountToken _$$_BankAccountTokenFromJson(Map json) => status: $enumDecodeNullable(_$BankAccountStatusEnumMap, json['status']), ); -Map _$$_BankAccountTokenToJson(_$_BankAccountToken instance) { +Map _$$BankAccountTokenImplToJson( + _$BankAccountTokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, @@ -108,7 +109,7 @@ const _$BankAccountStatusEnumMap = { BankAccountStatus.errored: 'errored', }; -_$_CardToken _$$_CardTokenFromJson(Map json) => _$_CardToken( +_$CardTokenImpl _$$CardTokenImplFromJson(Map json) => _$CardTokenImpl( id: json['id'] as String, object: json['object'] as String? ?? "card", addressCity: json['address_city'] as String?, @@ -142,7 +143,7 @@ _$_CardToken _$$_CardTokenFromJson(Map json) => _$_CardToken( _$CardTokenizationMethodEnumMap, json['tokenization_method']), ); -Map _$$_CardTokenToJson(_$_CardToken instance) { +Map _$$CardTokenImplToJson(_$CardTokenImpl instance) { final val = { 'id': instance.id, 'object': instance.object, diff --git a/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart b/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart index 18f8bf47b..c609f8738 100644 --- a/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart +++ b/packages/stripe_js/lib/src/api/tokens/token_response.freezed.dart @@ -99,11 +99,11 @@ class _$TokenResponseCopyWithImpl<$Res, $Val extends TokenResponse> } /// @nodoc -abstract class _$$_TokenResponseCopyWith<$Res> +abstract class _$$TokenResponseImplCopyWith<$Res> implements $TokenResponseCopyWith<$Res> { - factory _$$_TokenResponseCopyWith( - _$_TokenResponse value, $Res Function(_$_TokenResponse) then) = - __$$_TokenResponseCopyWithImpl<$Res>; + factory _$$TokenResponseImplCopyWith( + _$TokenResponseImpl value, $Res Function(_$TokenResponseImpl) then) = + __$$TokenResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({Token? token, StripeError? error}); @@ -115,11 +115,11 @@ abstract class _$$_TokenResponseCopyWith<$Res> } /// @nodoc -class __$$_TokenResponseCopyWithImpl<$Res> - extends _$TokenResponseCopyWithImpl<$Res, _$_TokenResponse> - implements _$$_TokenResponseCopyWith<$Res> { - __$$_TokenResponseCopyWithImpl( - _$_TokenResponse _value, $Res Function(_$_TokenResponse) _then) +class __$$TokenResponseImplCopyWithImpl<$Res> + extends _$TokenResponseCopyWithImpl<$Res, _$TokenResponseImpl> + implements _$$TokenResponseImplCopyWith<$Res> { + __$$TokenResponseImplCopyWithImpl( + _$TokenResponseImpl _value, $Res Function(_$TokenResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -128,7 +128,7 @@ class __$$_TokenResponseCopyWithImpl<$Res> Object? token = freezed, Object? error = freezed, }) { - return _then(_$_TokenResponse( + return _then(_$TokenResponseImpl( token: freezed == token ? _value.token : token // ignore: cast_nullable_to_non_nullable @@ -143,11 +143,11 @@ class __$$_TokenResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_TokenResponse implements _TokenResponse { - const _$_TokenResponse({this.token, this.error}); +class _$TokenResponseImpl implements _TokenResponse { + const _$TokenResponseImpl({this.token, this.error}); - factory _$_TokenResponse.fromJson(Map json) => - _$$_TokenResponseFromJson(json); + factory _$TokenResponseImpl.fromJson(Map json) => + _$$TokenResponseImplFromJson(json); /// If not null, a Token was created successfully. @override @@ -167,7 +167,7 @@ class _$_TokenResponse implements _TokenResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TokenResponse && + other is _$TokenResponseImpl && (identical(other.token, token) || other.token == token) && (identical(other.error, error) || other.error == error)); } @@ -179,12 +179,12 @@ class _$_TokenResponse implements _TokenResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TokenResponseCopyWith<_$_TokenResponse> get copyWith => - __$$_TokenResponseCopyWithImpl<_$_TokenResponse>(this, _$identity); + _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => + __$$TokenResponseImplCopyWithImpl<_$TokenResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_TokenResponseToJson( + return _$$TokenResponseImplToJson( this, ); } @@ -192,10 +192,10 @@ class _$_TokenResponse implements _TokenResponse { abstract class _TokenResponse implements TokenResponse { const factory _TokenResponse({final Token? token, final StripeError? error}) = - _$_TokenResponse; + _$TokenResponseImpl; factory _TokenResponse.fromJson(Map json) = - _$_TokenResponse.fromJson; + _$TokenResponseImpl.fromJson; @override @@ -208,6 +208,6 @@ abstract class _TokenResponse implements TokenResponse { StripeError? get error; @override @JsonKey(ignore: true) - _$$_TokenResponseCopyWith<_$_TokenResponse> get copyWith => + _$$TokenResponseImplCopyWith<_$TokenResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/stripe_js/lib/src/api/tokens/token_response.g.dart b/packages/stripe_js/lib/src/api/tokens/token_response.g.dart index 1ede69894..2fb8c2234 100644 --- a/packages/stripe_js/lib/src/api/tokens/token_response.g.dart +++ b/packages/stripe_js/lib/src/api/tokens/token_response.g.dart @@ -6,7 +6,8 @@ part of 'token_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_TokenResponse _$$_TokenResponseFromJson(Map json) => _$_TokenResponse( +_$TokenResponseImpl _$$TokenResponseImplFromJson(Map json) => + _$TokenResponseImpl( token: json['token'] == null ? null : Token.fromJson(Map.from(json['token'] as Map)), @@ -16,7 +17,7 @@ _$_TokenResponse _$$_TokenResponseFromJson(Map json) => _$_TokenResponse( Map.from(json['error'] as Map)), ); -Map _$$_TokenResponseToJson(_$_TokenResponse instance) { +Map _$$TokenResponseImplToJson(_$TokenResponseImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/packages/stripe_js/pubspec.yaml b/packages/stripe_js/pubspec.yaml index 9b9953716..3d9cd3462 100644 --- a/packages/stripe_js/pubspec.yaml +++ b/packages/stripe_js/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_js description: Stripe.js bindings for dart. This package is used by Stripe web so that the Stripe js sdk can be invoked directly. -version: 3.3.0 +version: 3.4.0 homepage: https://github.com/flutter-stripe/flutter_stripe environment: diff --git a/packages/stripe_platform_interface/CHANGELOG.md b/packages/stripe_platform_interface/CHANGELOG.md index c23432ef3..6dbf2ec72 100644 --- a/packages/stripe_platform_interface/CHANGELOG.md +++ b/packages/stripe_platform_interface/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** @@ -6,9 +33,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 (). +- #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: diff --git a/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart b/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart index 25185c777..5c316eb88 100644 --- a/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart +++ b/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart @@ -8,6 +8,7 @@ import 'package:stripe_platform_interface/src/models/financial_connections.dart' import 'package:stripe_platform_interface/src/models/google_pay.dart'; import 'package:stripe_platform_interface/src/models/intent_creation_callback_params.dart'; import 'package:stripe_platform_interface/src/models/platform_pay.dart'; +import 'package:stripe_platform_interface/src/models/push_provisioning.dart'; import 'package:stripe_platform_interface/src/models/wallet.dart'; import 'package:stripe_platform_interface/src/result_parser.dart'; @@ -631,6 +632,29 @@ class MethodChannelStripe extends StripePlatform { {'params': params.toJson()}, ); } + + @override + Future canAddCardToWallet( + CanAddCardToWalletParams params) async { + final result = await _methodChannel.invokeMethod('canAddCardToWallet', { + 'params': params.toJson(), + }); + + return ResultParser( + parseJson: (json) => CanAddCardToWalletResult.fromJson(json)) + .parse(result: result!, successResultKey: 'canAddCardToWalletResult'); + } + + @override + Future isCardInWallet(String cardLastFour) async { + final result = await _methodChannel.invokeMethod('canAddCardToWallet', { + 'params': {'cardLastFour': cardLastFour}, + }); + + return ResultParser( + parseJson: (json) => IsCardInWalletResult.fromJson(json)) + .parse(result: result!, successResultKey: 'canAddCardToWalletResult'); + } } class MethodChannelStripeFactory { diff --git a/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart b/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart index 14f327232..8cfbfc56b 100644 --- a/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/ach_params.g.dart @@ -27,7 +27,7 @@ Map _$$CollectBankAccountParamsImplToJson( const _$PaymentMethodTypeEnumMap = { PaymentMethodType.AfterpayClearpay: 'AfterpayClearpay', PaymentMethodType.Card: 'Card', - PaymentMethodType.CashAppPay: 'CashAppPay', + PaymentMethodType.CashApp: 'CashApp', PaymentMethodType.Alipay: 'Alipay', PaymentMethodType.Grabpay: 'Grabpay', PaymentMethodType.Ideal: 'Ideal', diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.dart index 3fcb4f0e7..ecfb4b093 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.dart @@ -138,8 +138,9 @@ class ApplePayCartSummaryItem with _$ApplePayCartSummaryItem { /// The unix timestamp of the start date. Measured in seconds. int? startDate, + ////The unix timestamp of the end date. Measured in seconds. */ - int? number, + int? endDate, }) = RecurringCartSummaryItem; factory ApplePayCartSummaryItem.fromJson(Map json) => diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart index a7ae99aab..f3d2b5216 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.freezed.dart @@ -387,7 +387,7 @@ mixin _$ApplePayCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number) + int? endDate) recurring, }) => throw _privateConstructorUsedError; @@ -401,7 +401,7 @@ mixin _$ApplePayCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, }) => throw _privateConstructorUsedError; @@ -415,7 +415,7 @@ mixin _$ApplePayCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, required TResult orElse(), }) => @@ -602,7 +602,7 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number) + int? endDate) recurring, }) { return immediate(label, amount, isPending); @@ -619,7 +619,7 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, }) { return immediate?.call(label, amount, isPending); @@ -636,7 +636,7 @@ class _$ImmediateCartSummaryItemImpl implements ImmediateCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, required TResult orElse(), }) { @@ -827,7 +827,7 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number) + int? endDate) recurring, }) { return deferred(label, amount, deferredDate); @@ -844,7 +844,7 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, }) { return deferred?.call(label, amount, deferredDate); @@ -861,7 +861,7 @@ class _$DeferredSummaryItemImpl implements DeferredSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, required TResult orElse(), }) { @@ -954,7 +954,7 @@ abstract class _$$RecurringCartSummaryItemImplCopyWith<$Res> ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number}); + int? endDate}); } /// @nodoc @@ -975,7 +975,7 @@ class __$$RecurringCartSummaryItemImplCopyWithImpl<$Res> Object? intervalUnit = null, Object? intervalCount = null, Object? startDate = freezed, - Object? number = freezed, + Object? endDate = freezed, }) { return _then(_$RecurringCartSummaryItemImpl( label: null == label @@ -998,9 +998,9 @@ class __$$RecurringCartSummaryItemImplCopyWithImpl<$Res> ? _value.startDate : startDate // ignore: cast_nullable_to_non_nullable as int?, - number: freezed == number - ? _value.number - : number // ignore: cast_nullable_to_non_nullable + endDate: freezed == endDate + ? _value.endDate + : endDate // ignore: cast_nullable_to_non_nullable as int?, )); } @@ -1016,7 +1016,7 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { required this.intervalUnit, required this.intervalCount, this.startDate, - this.number, + this.endDate, final String? $type}) : $type = $type ?? 'Recurring'; @@ -1044,14 +1044,14 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { final int? startDate; ////The unix timestamp of the end date. Measured in seconds. */ @override - final int? number; + final int? endDate; @JsonKey(name: 'paymentType') final String $type; @override String toString() { - return 'ApplePayCartSummaryItem.recurring(label: $label, amount: $amount, intervalUnit: $intervalUnit, intervalCount: $intervalCount, startDate: $startDate, number: $number)'; + return 'ApplePayCartSummaryItem.recurring(label: $label, amount: $amount, intervalUnit: $intervalUnit, intervalCount: $intervalCount, startDate: $startDate, endDate: $endDate)'; } @override @@ -1067,13 +1067,13 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { other.intervalCount == intervalCount) && (identical(other.startDate, startDate) || other.startDate == startDate) && - (identical(other.number, number) || other.number == number)); + (identical(other.endDate, endDate) || other.endDate == endDate)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, label, amount, intervalUnit, - intervalCount, startDate, number); + intervalCount, startDate, endDate); @JsonKey(ignore: true) @override @@ -1095,11 +1095,11 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number) + int? endDate) recurring, }) { return recurring( - label, amount, intervalUnit, intervalCount, startDate, number); + label, amount, intervalUnit, intervalCount, startDate, endDate); } @override @@ -1113,11 +1113,11 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, }) { return recurring?.call( - label, amount, intervalUnit, intervalCount, startDate, number); + label, amount, intervalUnit, intervalCount, startDate, endDate); } @override @@ -1131,13 +1131,13 @@ class _$RecurringCartSummaryItemImpl implements RecurringCartSummaryItem { ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, - int? number)? + int? endDate)? recurring, required TResult orElse(), }) { if (recurring != null) { return recurring( - label, amount, intervalUnit, intervalCount, startDate, number); + label, amount, intervalUnit, intervalCount, startDate, endDate); } return orElse(); } @@ -1191,7 +1191,7 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { required final ApplePayIntervalUnit intervalUnit, required final int intervalCount, final int? startDate, - final int? number}) = _$RecurringCartSummaryItemImpl; + final int? endDate}) = _$RecurringCartSummaryItemImpl; factory RecurringCartSummaryItem.fromJson(Map json) = _$RecurringCartSummaryItemImpl.fromJson; @@ -1214,7 +1214,7 @@ abstract class RecurringCartSummaryItem implements ApplePayCartSummaryItem { /// The unix timestamp of the start date. Measured in seconds. int? get startDate; ////The unix timestamp of the end date. Measured in seconds. */ - int? get number; + int? get endDate; @override @JsonKey(ignore: true) _$$RecurringCartSummaryItemImplCopyWith<_$RecurringCartSummaryItemImpl> diff --git a/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart b/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart index bbd148abc..41286d110 100644 --- a/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/apple_pay.g.dart @@ -75,7 +75,7 @@ _$RecurringCartSummaryItemImpl _$$RecurringCartSummaryItemImplFromJson( $enumDecode(_$ApplePayIntervalUnitEnumMap, json['intervalUnit']), intervalCount: json['intervalCount'] as int, startDate: json['startDate'] as int?, - number: json['number'] as int?, + endDate: json['endDate'] as int?, $type: json['paymentType'] as String?, ); @@ -87,7 +87,7 @@ Map _$$RecurringCartSummaryItemImplToJson( 'intervalUnit': _$ApplePayIntervalUnitEnumMap[instance.intervalUnit]!, 'intervalCount': instance.intervalCount, 'startDate': instance.startDate, - 'number': instance.number, + 'endDate': instance.endDate, 'paymentType': instance.$type, }; diff --git a/packages/stripe_platform_interface/lib/src/models/capture_method.dart b/packages/stripe_platform_interface/lib/src/models/capture_method.dart index 4f435aea7..a4780fe17 100644 --- a/packages/stripe_platform_interface/lib/src/models/capture_method.dart +++ b/packages/stripe_platform_interface/lib/src/models/capture_method.dart @@ -9,4 +9,7 @@ enum CaptureMethod { /// The payment was collected outside of Stripe. AutomaticAsync, + + /// Unknown capture method + Unknown, } diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.dart index c5869c9d4..ad0a2040c 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.dart @@ -32,6 +32,11 @@ class CustomerSheetInitParams with _$CustomerSheetInitParams { /// Your customer-facing business name. The default value is the name of your app. String? merchantDisplayName, + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? allowsRemovalOfLastSavedPaymentMethod, + /// Optional configuration for setting the header text of the Payment Method selection screen String? headerTextForSelectionScreen, diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart index 10cd88281..9f2779114 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.freezed.dart @@ -42,6 +42,12 @@ mixin _$CustomerSheetInitParams { /// Your customer-facing business name. The default value is the name of your app. String? get merchantDisplayName => throw _privateConstructorUsedError; + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? get allowsRemovalOfLastSavedPaymentMethod => + throw _privateConstructorUsedError; + /// Optional configuration for setting the header text of the Payment Method selection screen String? get headerTextForSelectionScreen => throw _privateConstructorUsedError; @@ -92,6 +98,7 @@ abstract class $CustomerSheetInitParamsCopyWith<$Res> { String customerId, String customerEphemeralKeySecret, String? merchantDisplayName, + bool? allowsRemovalOfLastSavedPaymentMethod, String? headerTextForSelectionScreen, BillingDetails? defaultBillingDetails, BillingDetailsCollectionConfiguration? @@ -129,6 +136,7 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, Object? customerId = null, Object? customerEphemeralKeySecret = null, Object? merchantDisplayName = freezed, + Object? allowsRemovalOfLastSavedPaymentMethod = freezed, Object? headerTextForSelectionScreen = freezed, Object? defaultBillingDetails = freezed, Object? billingDetailsCollectionConfiguration = freezed, @@ -163,6 +171,11 @@ class _$CustomerSheetInitParamsCopyWithImpl<$Res, ? _value.merchantDisplayName : merchantDisplayName // ignore: cast_nullable_to_non_nullable as String?, + allowsRemovalOfLastSavedPaymentMethod: freezed == + allowsRemovalOfLastSavedPaymentMethod + ? _value.allowsRemovalOfLastSavedPaymentMethod + : allowsRemovalOfLastSavedPaymentMethod // ignore: cast_nullable_to_non_nullable + as bool?, headerTextForSelectionScreen: freezed == headerTextForSelectionScreen ? _value.headerTextForSelectionScreen : headerTextForSelectionScreen // ignore: cast_nullable_to_non_nullable @@ -257,6 +270,7 @@ abstract class _$$CustomerSheetInitParamsImplCopyWith<$Res> String customerId, String customerEphemeralKeySecret, String? merchantDisplayName, + bool? allowsRemovalOfLastSavedPaymentMethod, String? headerTextForSelectionScreen, BillingDetails? defaultBillingDetails, BillingDetailsCollectionConfiguration? @@ -296,6 +310,7 @@ class __$$CustomerSheetInitParamsImplCopyWithImpl<$Res> Object? customerId = null, Object? customerEphemeralKeySecret = null, Object? merchantDisplayName = freezed, + Object? allowsRemovalOfLastSavedPaymentMethod = freezed, Object? headerTextForSelectionScreen = freezed, Object? defaultBillingDetails = freezed, Object? billingDetailsCollectionConfiguration = freezed, @@ -330,6 +345,11 @@ class __$$CustomerSheetInitParamsImplCopyWithImpl<$Res> ? _value.merchantDisplayName : merchantDisplayName // ignore: cast_nullable_to_non_nullable as String?, + allowsRemovalOfLastSavedPaymentMethod: freezed == + allowsRemovalOfLastSavedPaymentMethod + ? _value.allowsRemovalOfLastSavedPaymentMethod + : allowsRemovalOfLastSavedPaymentMethod // ignore: cast_nullable_to_non_nullable + as bool?, headerTextForSelectionScreen: freezed == headerTextForSelectionScreen ? _value.headerTextForSelectionScreen : headerTextForSelectionScreen // ignore: cast_nullable_to_non_nullable @@ -379,6 +399,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { required this.customerId, required this.customerEphemeralKeySecret, this.merchantDisplayName, + this.allowsRemovalOfLastSavedPaymentMethod, this.headerTextForSelectionScreen, this.defaultBillingDetails, this.billingDetailsCollectionConfiguration, @@ -420,6 +441,12 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { @override final String? merchantDisplayName; + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + @override + final bool? allowsRemovalOfLastSavedPaymentMethod; + /// Optional configuration for setting the header text of the Payment Method selection screen @override final String? headerTextForSelectionScreen; @@ -470,7 +497,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { @override String toString() { - return 'CustomerSheetInitParams(style: $style, appearance: $appearance, setupIntentClientSecret: $setupIntentClientSecret, customerId: $customerId, customerEphemeralKeySecret: $customerEphemeralKeySecret, merchantDisplayName: $merchantDisplayName, headerTextForSelectionScreen: $headerTextForSelectionScreen, defaultBillingDetails: $defaultBillingDetails, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, returnURL: $returnURL, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, applePayEnabled: $applePayEnabled, googlePayEnabled: $googlePayEnabled, preferredNetworks: $preferredNetworks)'; + return 'CustomerSheetInitParams(style: $style, appearance: $appearance, setupIntentClientSecret: $setupIntentClientSecret, customerId: $customerId, customerEphemeralKeySecret: $customerEphemeralKeySecret, merchantDisplayName: $merchantDisplayName, allowsRemovalOfLastSavedPaymentMethod: $allowsRemovalOfLastSavedPaymentMethod, headerTextForSelectionScreen: $headerTextForSelectionScreen, defaultBillingDetails: $defaultBillingDetails, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, returnURL: $returnURL, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, applePayEnabled: $applePayEnabled, googlePayEnabled: $googlePayEnabled, preferredNetworks: $preferredNetworks)'; } @override @@ -481,8 +508,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { (identical(other.style, style) || other.style == style) && (identical(other.appearance, appearance) || other.appearance == appearance) && - (identical( - other.setupIntentClientSecret, setupIntentClientSecret) || + (identical(other.setupIntentClientSecret, setupIntentClientSecret) || other.setupIntentClientSecret == setupIntentClientSecret) && (identical(other.customerId, customerId) || other.customerId == customerId) && @@ -491,6 +517,10 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { customerEphemeralKeySecret) && (identical(other.merchantDisplayName, merchantDisplayName) || other.merchantDisplayName == merchantDisplayName) && + (identical(other.allowsRemovalOfLastSavedPaymentMethod, + allowsRemovalOfLastSavedPaymentMethod) || + other.allowsRemovalOfLastSavedPaymentMethod == + allowsRemovalOfLastSavedPaymentMethod) && (identical(other.headerTextForSelectionScreen, headerTextForSelectionScreen) || other.headerTextForSelectionScreen == headerTextForSelectionScreen) && @@ -502,16 +532,14 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { billingDetailsCollectionConfiguration) && (identical(other.returnURL, returnURL) || other.returnURL == returnURL) && - (identical(other.removeSavedPaymentMethodMessage, - removeSavedPaymentMethodMessage) || + (identical(other.removeSavedPaymentMethodMessage, removeSavedPaymentMethodMessage) || other.removeSavedPaymentMethodMessage == removeSavedPaymentMethodMessage) && (identical(other.applePayEnabled, applePayEnabled) || other.applePayEnabled == applePayEnabled) && (identical(other.googlePayEnabled, googlePayEnabled) || other.googlePayEnabled == googlePayEnabled) && - const DeepCollectionEquality() - .equals(other._preferredNetworks, _preferredNetworks)); + const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } @JsonKey(ignore: true) @@ -524,6 +552,7 @@ class _$CustomerSheetInitParamsImpl implements _CustomerSheetInitParams { customerId, customerEphemeralKeySecret, merchantDisplayName, + allowsRemovalOfLastSavedPaymentMethod, headerTextForSelectionScreen, defaultBillingDetails, billingDetailsCollectionConfiguration, @@ -556,6 +585,7 @@ abstract class _CustomerSheetInitParams implements CustomerSheetInitParams { required final String customerId, required final String customerEphemeralKeySecret, final String? merchantDisplayName, + final bool? allowsRemovalOfLastSavedPaymentMethod, final String? headerTextForSelectionScreen, final BillingDetails? defaultBillingDetails, final BillingDetailsCollectionConfiguration? @@ -600,6 +630,12 @@ abstract class _CustomerSheetInitParams implements CustomerSheetInitParams { String? get merchantDisplayName; @override + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? get allowsRemovalOfLastSavedPaymentMethod; + @override + /// Optional configuration for setting the header text of the Payment Method selection screen String? get headerTextForSelectionScreen; @override diff --git a/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart b/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart index 819878538..b656b7cc1 100644 --- a/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/customer_sheet.g.dart @@ -18,6 +18,8 @@ _$CustomerSheetInitParamsImpl _$$CustomerSheetInitParamsImplFromJson( customerId: json['customerId'] as String, customerEphemeralKeySecret: json['customerEphemeralKeySecret'] as String, merchantDisplayName: json['merchantDisplayName'] as String?, + allowsRemovalOfLastSavedPaymentMethod: + json['allowsRemovalOfLastSavedPaymentMethod'] as bool?, headerTextForSelectionScreen: json['headerTextForSelectionScreen'] as String?, defaultBillingDetails: json['defaultBillingDetails'] == null @@ -49,6 +51,8 @@ Map _$$CustomerSheetInitParamsImplToJson( 'customerId': instance.customerId, 'customerEphemeralKeySecret': instance.customerEphemeralKeySecret, 'merchantDisplayName': instance.merchantDisplayName, + 'allowsRemovalOfLastSavedPaymentMethod': + instance.allowsRemovalOfLastSavedPaymentMethod, 'headerTextForSelectionScreen': instance.headerTextForSelectionScreen, 'defaultBillingDetails': instance.defaultBillingDetails?.toJson(), 'billingDetailsCollectionConfiguration': diff --git a/packages/stripe_platform_interface/lib/src/models/errors.dart b/packages/stripe_platform_interface/lib/src/models/errors.dart index 31be863a3..ad894e0c5 100644 --- a/packages/stripe_platform_interface/lib/src/models/errors.dart +++ b/packages/stripe_platform_interface/lib/src/models/errors.dart @@ -51,7 +51,7 @@ class LocalizedErrorMessage with _$LocalizedErrorMessage { @JsonSerializable(explicitToJson: true) const factory LocalizedErrorMessage({ /// The error code for example Cancelled - required FailureCode code, + @JsonKey(unknownEnumValue: FailureCode.Unknown) required FailureCode code, /// Localized error message if any String? localizedMessage, @@ -73,7 +73,7 @@ class LocalizedErrorMessage with _$LocalizedErrorMessage { _$LocalizedErrorMessageFromJson(json); } -enum FailureCode { Failed, Canceled, Timeout } +enum FailureCode { Failed, Canceled, Timeout, Unknown } class StripeConfigException implements Exception { const StripeConfigException(this.message); diff --git a/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart index cf89c47e7..808c63523 100644 --- a/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/errors.freezed.dart @@ -346,6 +346,7 @@ LocalizedErrorMessage _$LocalizedErrorMessageFromJson( /// @nodoc mixin _$LocalizedErrorMessage { /// The error code for example Cancelled + @JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode get code => throw _privateConstructorUsedError; /// Localized error message if any @@ -376,7 +377,7 @@ abstract class $LocalizedErrorMessageCopyWith<$Res> { _$LocalizedErrorMessageCopyWithImpl<$Res, LocalizedErrorMessage>; @useResult $Res call( - {FailureCode code, + {@JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode code, String? localizedMessage, String? message, String? stripeErrorCode, @@ -444,7 +445,7 @@ abstract class _$$LocalizedErrorMessageImplCopyWith<$Res> @override @useResult $Res call( - {FailureCode code, + {@JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode code, String? localizedMessage, String? message, String? stripeErrorCode, @@ -505,7 +506,7 @@ class __$$LocalizedErrorMessageImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { const _$LocalizedErrorMessageImpl( - {required this.code, + {@JsonKey(unknownEnumValue: FailureCode.Unknown) required this.code, this.localizedMessage, this.message, this.stripeErrorCode, @@ -517,6 +518,7 @@ class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { /// The error code for example Cancelled @override + @JsonKey(unknownEnumValue: FailureCode.Unknown) final FailureCode code; /// Localized error message if any @@ -582,7 +584,8 @@ class _$LocalizedErrorMessageImpl implements _LocalizedErrorMessage { abstract class _LocalizedErrorMessage implements LocalizedErrorMessage { const factory _LocalizedErrorMessage( - {required final FailureCode code, + {@JsonKey(unknownEnumValue: FailureCode.Unknown) + required final FailureCode code, final String? localizedMessage, final String? message, final String? stripeErrorCode, @@ -595,6 +598,7 @@ abstract class _LocalizedErrorMessage implements LocalizedErrorMessage { @override /// The error code for example Cancelled + @JsonKey(unknownEnumValue: FailureCode.Unknown) FailureCode get code; @override diff --git a/packages/stripe_platform_interface/lib/src/models/errors.g.dart b/packages/stripe_platform_interface/lib/src/models/errors.g.dart index d8ca7f544..c9ad22a31 100644 --- a/packages/stripe_platform_interface/lib/src/models/errors.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/errors.g.dart @@ -36,7 +36,8 @@ Map _$$StripeExceptionImplToJson( _$LocalizedErrorMessageImpl _$$LocalizedErrorMessageImplFromJson( Map json) => _$LocalizedErrorMessageImpl( - code: $enumDecode(_$FailureCodeEnumMap, json['code']), + code: $enumDecode(_$FailureCodeEnumMap, json['code'], + unknownValue: FailureCode.Unknown), localizedMessage: json['localizedMessage'] as String?, message: json['message'] as String?, stripeErrorCode: json['stripeErrorCode'] as String?, @@ -59,4 +60,5 @@ const _$FailureCodeEnumMap = { FailureCode.Failed: 'Failed', FailureCode.Canceled: 'Canceled', FailureCode.Timeout: 'Timeout', + FailureCode.Unknown: 'Unknown', }; diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.dart b/packages/stripe_platform_interface/lib/src/models/next_action.dart index f44d607fd..f3fedbb3d 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.dart @@ -58,6 +58,14 @@ class NextAction with _$NextAction { factory NextAction.fromJson(Map json) => _$NextActionFromJson(json); + + /// Contains details necessary for the customer to complete the payment. + @JsonSerializable(explicitToJson: true) + @FreezedUnionValue('multibanco') + const factory NextAction.multibanco({ + /// The URL for the hosted multibanco voucher page, which allows customers to view and print an multibanco voucher. + String? voucherURL, + }) = _NextActionMultiBanco; } /// The type of followup action the customer needs to do in order to complete diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart index 5e3602a7d..9c80b3ac3 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.freezed.dart @@ -24,6 +24,8 @@ NextAction _$NextActionFromJson(Map json) { return _NextActionWeChatRedirect.fromJson(json); case 'verifyWithMicrodeposits': return _NextActionMicroDeposits.fromJson(json); + case 'multibanco': + return _NextActionMultiBanco.fromJson(json); default: throw CheckedFromJsonException( @@ -43,6 +45,7 @@ mixin _$NextAction { required TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType) verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -55,6 +58,7 @@ mixin _$NextAction { TResult? Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -67,6 +71,7 @@ mixin _$NextAction { TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -78,6 +83,7 @@ mixin _$NextAction { wechatPayRedirect, required TResult Function(_NextActionMicroDeposits value) verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -86,6 +92,7 @@ mixin _$NextAction { TResult? Function(_NextActionOxxo value)? displayOxxoDetails, TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -94,6 +101,7 @@ mixin _$NextAction { TResult Function(_NextActionOxxo value)? displayOxxoDetails, TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -202,6 +210,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { required TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType) verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, }) { return redirectToUrl(redirectUrl); } @@ -217,6 +226,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { TResult? Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, }) { return redirectToUrl?.call(redirectUrl); } @@ -232,6 +242,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, required TResult orElse(), }) { if (redirectToUrl != null) { @@ -249,6 +260,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { wechatPayRedirect, required TResult Function(_NextActionMicroDeposits value) verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, }) { return redirectToUrl(this); } @@ -260,6 +272,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { TResult? Function(_NextActionOxxo value)? displayOxxoDetails, TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, }) { return redirectToUrl?.call(this); } @@ -271,6 +284,7 @@ class _$NextActionRedirectImpl implements _NextActionRedirect { TResult Function(_NextActionOxxo value)? displayOxxoDetails, TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, required TResult orElse(), }) { if (redirectToUrl != null) { @@ -412,6 +426,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { required TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType) verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, }) { return displayOxxoDetails(expiration, voucherURL, voucherNumber); } @@ -427,6 +442,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { TResult? Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, }) { return displayOxxoDetails?.call(expiration, voucherURL, voucherNumber); } @@ -442,6 +458,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, required TResult orElse(), }) { if (displayOxxoDetails != null) { @@ -459,6 +476,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { wechatPayRedirect, required TResult Function(_NextActionMicroDeposits value) verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, }) { return displayOxxoDetails(this); } @@ -470,6 +488,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { TResult? Function(_NextActionOxxo value)? displayOxxoDetails, TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, }) { return displayOxxoDetails?.call(this); } @@ -481,6 +500,7 @@ class _$NextActionOxxoImpl implements _NextActionOxxo { TResult Function(_NextActionOxxo value)? displayOxxoDetails, TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, required TResult orElse(), }) { if (displayOxxoDetails != null) { @@ -605,6 +625,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { required TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType) verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, }) { return wechatPayRedirect(redirectUrl); } @@ -620,6 +641,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { TResult? Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, }) { return wechatPayRedirect?.call(redirectUrl); } @@ -635,6 +657,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, required TResult orElse(), }) { if (wechatPayRedirect != null) { @@ -652,6 +675,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { wechatPayRedirect, required TResult Function(_NextActionMicroDeposits value) verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, }) { return wechatPayRedirect(this); } @@ -663,6 +687,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { TResult? Function(_NextActionOxxo value)? displayOxxoDetails, TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, }) { return wechatPayRedirect?.call(this); } @@ -674,6 +699,7 @@ class _$NextActionWeChatRedirectImpl implements _NextActionWeChatRedirect { TResult Function(_NextActionOxxo value)? displayOxxoDetails, TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, required TResult orElse(), }) { if (wechatPayRedirect != null) { @@ -818,6 +844,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { required TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType) verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, }) { return verifyWithMicroDeposits(arrivalDate, redirectUrl, microdepositType); } @@ -833,6 +860,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { TResult? Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, }) { return verifyWithMicroDeposits?.call( arrivalDate, redirectUrl, microdepositType); @@ -849,6 +877,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { TResult Function( String? arrivalDate, String? redirectUrl, String? microdepositType)? verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, required TResult orElse(), }) { if (verifyWithMicroDeposits != null) { @@ -867,6 +896,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { wechatPayRedirect, required TResult Function(_NextActionMicroDeposits value) verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, }) { return verifyWithMicroDeposits(this); } @@ -878,6 +908,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { TResult? Function(_NextActionOxxo value)? displayOxxoDetails, TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, }) { return verifyWithMicroDeposits?.call(this); } @@ -889,6 +920,7 @@ class _$NextActionMicroDepositsImpl implements _NextActionMicroDeposits { TResult Function(_NextActionOxxo value)? displayOxxoDetails, TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, required TResult orElse(), }) { if (verifyWithMicroDeposits != null) { @@ -926,3 +958,193 @@ abstract class _NextActionMicroDeposits implements NextAction { _$$NextActionMicroDepositsImplCopyWith<_$NextActionMicroDepositsImpl> get copyWith => throw _privateConstructorUsedError; } + +/// @nodoc +abstract class _$$NextActionMultiBancoImplCopyWith<$Res> { + factory _$$NextActionMultiBancoImplCopyWith(_$NextActionMultiBancoImpl value, + $Res Function(_$NextActionMultiBancoImpl) then) = + __$$NextActionMultiBancoImplCopyWithImpl<$Res>; + @useResult + $Res call({String? voucherURL}); +} + +/// @nodoc +class __$$NextActionMultiBancoImplCopyWithImpl<$Res> + extends _$NextActionCopyWithImpl<$Res, _$NextActionMultiBancoImpl> + implements _$$NextActionMultiBancoImplCopyWith<$Res> { + __$$NextActionMultiBancoImplCopyWithImpl(_$NextActionMultiBancoImpl _value, + $Res Function(_$NextActionMultiBancoImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? voucherURL = freezed, + }) { + return _then(_$NextActionMultiBancoImpl( + voucherURL: freezed == voucherURL + ? _value.voucherURL + : voucherURL // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$NextActionMultiBancoImpl implements _NextActionMultiBanco { + const _$NextActionMultiBancoImpl({this.voucherURL, final String? $type}) + : $type = $type ?? 'multibanco'; + + factory _$NextActionMultiBancoImpl.fromJson(Map json) => + _$$NextActionMultiBancoImplFromJson(json); + + /// The URL for the hosted multibanco voucher page, which allows customers to view and print an multibanco voucher. + @override + final String? voucherURL; + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'NextAction.multibanco(voucherURL: $voucherURL)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$NextActionMultiBancoImpl && + (identical(other.voucherURL, voucherURL) || + other.voucherURL == voucherURL)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, voucherURL); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> + get copyWith => + __$$NextActionMultiBancoImplCopyWithImpl<_$NextActionMultiBancoImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? redirectUrl) redirectToUrl, + required TResult Function( + int? expiration, String? voucherURL, String? voucherNumber) + displayOxxoDetails, + required TResult Function(String? redirectUrl) wechatPayRedirect, + required TResult Function( + String? arrivalDate, String? redirectUrl, String? microdepositType) + verifyWithMicroDeposits, + required TResult Function(String? voucherURL) multibanco, + }) { + return multibanco(voucherURL); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? redirectUrl)? redirectToUrl, + TResult? Function( + int? expiration, String? voucherURL, String? voucherNumber)? + displayOxxoDetails, + TResult? Function(String? redirectUrl)? wechatPayRedirect, + TResult? Function( + String? arrivalDate, String? redirectUrl, String? microdepositType)? + verifyWithMicroDeposits, + TResult? Function(String? voucherURL)? multibanco, + }) { + return multibanco?.call(voucherURL); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? redirectUrl)? redirectToUrl, + TResult Function( + int? expiration, String? voucherURL, String? voucherNumber)? + displayOxxoDetails, + TResult Function(String? redirectUrl)? wechatPayRedirect, + TResult Function( + String? arrivalDate, String? redirectUrl, String? microdepositType)? + verifyWithMicroDeposits, + TResult Function(String? voucherURL)? multibanco, + required TResult orElse(), + }) { + if (multibanco != null) { + return multibanco(voucherURL); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(_NextActionRedirect value) redirectToUrl, + required TResult Function(_NextActionOxxo value) displayOxxoDetails, + required TResult Function(_NextActionWeChatRedirect value) + wechatPayRedirect, + required TResult Function(_NextActionMicroDeposits value) + verifyWithMicroDeposits, + required TResult Function(_NextActionMultiBanco value) multibanco, + }) { + return multibanco(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(_NextActionRedirect value)? redirectToUrl, + TResult? Function(_NextActionOxxo value)? displayOxxoDetails, + TResult? Function(_NextActionWeChatRedirect value)? wechatPayRedirect, + TResult? Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult? Function(_NextActionMultiBanco value)? multibanco, + }) { + return multibanco?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(_NextActionRedirect value)? redirectToUrl, + TResult Function(_NextActionOxxo value)? displayOxxoDetails, + TResult Function(_NextActionWeChatRedirect value)? wechatPayRedirect, + TResult Function(_NextActionMicroDeposits value)? verifyWithMicroDeposits, + TResult Function(_NextActionMultiBanco value)? multibanco, + required TResult orElse(), + }) { + if (multibanco != null) { + return multibanco(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$NextActionMultiBancoImplToJson( + this, + ); + } +} + +abstract class _NextActionMultiBanco implements NextAction { + const factory _NextActionMultiBanco({final String? voucherURL}) = + _$NextActionMultiBancoImpl; + + factory _NextActionMultiBanco.fromJson(Map json) = + _$NextActionMultiBancoImpl.fromJson; + + /// The URL for the hosted multibanco voucher page, which allows customers to view and print an multibanco voucher. + String? get voucherURL; + @JsonKey(ignore: true) + _$$NextActionMultiBancoImplCopyWith<_$NextActionMultiBancoImpl> + get copyWith => throw _privateConstructorUsedError; +} diff --git a/packages/stripe_platform_interface/lib/src/models/next_action.g.dart b/packages/stripe_platform_interface/lib/src/models/next_action.g.dart index 8b85f1551..a9288f6c8 100644 --- a/packages/stripe_platform_interface/lib/src/models/next_action.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/next_action.g.dart @@ -68,3 +68,17 @@ Map _$$NextActionMicroDepositsImplToJson( 'microdepositType': instance.microdepositType, 'type': instance.$type, }; + +_$NextActionMultiBancoImpl _$$NextActionMultiBancoImplFromJson( + Map json) => + _$NextActionMultiBancoImpl( + voucherURL: json['voucherURL'] as String?, + $type: json['type'] as String?, + ); + +Map _$$NextActionMultiBancoImplToJson( + _$NextActionMultiBancoImpl instance) => + { + 'voucherURL': instance.voucherURL, + 'type': instance.$type, + }; diff --git a/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart index b19796e2a..337720762 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_intents.g.dart @@ -71,6 +71,7 @@ const _$CaptureMethodEnumMap = { CaptureMethod.Manual: 'Manual', CaptureMethod.Automatic: 'Automatic', CaptureMethod.AutomaticAsync: 'AutomaticAsync', + CaptureMethod.Unknown: 'Unknown', }; const _$ConfirmationMethodEnumMap = { diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.dart index 1d2964382..ee8584690 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.dart @@ -261,10 +261,10 @@ class UsBankAccount with _$UsBankAccount { String? last4, /// The bank account type of the holder - required BankAccountHolderType accountHolderType, + BankAccountHolderType? accountHolderType, /// The account type - required UsBankAccountType accountType, + UsBankAccountType? accountType, /// The name of the bank of the account String? bankName, @@ -275,8 +275,8 @@ class UsBankAccount with _$UsBankAccount { /// Number of linkedaccount String? linkedAccount, - /// list of preferred network names - List? preferredNetworks, + /// list of preferred network + String? preferredNetwork, /// list of preferred network names List? supportedNetworks, @@ -296,7 +296,7 @@ enum UsBankAccountType { enum PaymentMethodType { AfterpayClearpay, Card, - CashAppPay, + CashApp, Alipay, Grabpay, Ideal, @@ -739,11 +739,11 @@ class PaymentMethodDataUsBank with _$PaymentMethodDataUsBank { @JsonSerializable(explicitToJson: true) const factory PaymentMethodDataUsBank({ /// The account number of the bank account. - String? accountNumber, + required String accountNumber, ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. - String? routingNumber, + required String routingNumber, /// The bank account type of the holder BankAccountHolderType? accountHolderType, diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart index 5df12b8d7..31bd65c9d 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.freezed.dart @@ -2476,11 +2476,11 @@ mixin _$UsBankAccount { String? get last4 => throw _privateConstructorUsedError; /// The bank account type of the holder - BankAccountHolderType get accountHolderType => + BankAccountHolderType? get accountHolderType => throw _privateConstructorUsedError; /// The account type - UsBankAccountType get accountType => throw _privateConstructorUsedError; + UsBankAccountType? get accountType => throw _privateConstructorUsedError; /// The name of the bank of the account String? get bankName => throw _privateConstructorUsedError; @@ -2491,8 +2491,8 @@ mixin _$UsBankAccount { /// Number of linkedaccount String? get linkedAccount => throw _privateConstructorUsedError; - /// list of preferred network names - List? get preferredNetworks => throw _privateConstructorUsedError; + /// list of preferred network + String? get preferredNetwork => throw _privateConstructorUsedError; /// list of preferred network names List? get supportedNetworks => throw _privateConstructorUsedError; @@ -2512,12 +2512,12 @@ abstract class $UsBankAccountCopyWith<$Res> { $Res call( {String? routingNumber, String? last4, - BankAccountHolderType accountHolderType, - UsBankAccountType accountType, + BankAccountHolderType? accountHolderType, + UsBankAccountType? accountType, String? bankName, String? fingerprint, String? linkedAccount, - List? preferredNetworks, + String? preferredNetwork, List? supportedNetworks}); } @@ -2536,12 +2536,12 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> $Res call({ Object? routingNumber = freezed, Object? last4 = freezed, - Object? accountHolderType = null, - Object? accountType = null, + Object? accountHolderType = freezed, + Object? accountType = freezed, Object? bankName = freezed, Object? fingerprint = freezed, Object? linkedAccount = freezed, - Object? preferredNetworks = freezed, + Object? preferredNetwork = freezed, Object? supportedNetworks = freezed, }) { return _then(_value.copyWith( @@ -2553,14 +2553,14 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> ? _value.last4 : last4 // ignore: cast_nullable_to_non_nullable as String?, - accountHolderType: null == accountHolderType + accountHolderType: freezed == accountHolderType ? _value.accountHolderType : accountHolderType // ignore: cast_nullable_to_non_nullable - as BankAccountHolderType, - accountType: null == accountType + as BankAccountHolderType?, + accountType: freezed == accountType ? _value.accountType : accountType // ignore: cast_nullable_to_non_nullable - as UsBankAccountType, + as UsBankAccountType?, bankName: freezed == bankName ? _value.bankName : bankName // ignore: cast_nullable_to_non_nullable @@ -2573,10 +2573,10 @@ class _$UsBankAccountCopyWithImpl<$Res, $Val extends UsBankAccount> ? _value.linkedAccount : linkedAccount // ignore: cast_nullable_to_non_nullable as String?, - preferredNetworks: freezed == preferredNetworks - ? _value.preferredNetworks - : preferredNetworks // ignore: cast_nullable_to_non_nullable - as List?, + preferredNetwork: freezed == preferredNetwork + ? _value.preferredNetwork + : preferredNetwork // ignore: cast_nullable_to_non_nullable + as String?, supportedNetworks: freezed == supportedNetworks ? _value.supportedNetworks : supportedNetworks // ignore: cast_nullable_to_non_nullable @@ -2596,12 +2596,12 @@ abstract class _$$UsBankAccountImplCopyWith<$Res> $Res call( {String? routingNumber, String? last4, - BankAccountHolderType accountHolderType, - UsBankAccountType accountType, + BankAccountHolderType? accountHolderType, + UsBankAccountType? accountType, String? bankName, String? fingerprint, String? linkedAccount, - List? preferredNetworks, + String? preferredNetwork, List? supportedNetworks}); } @@ -2618,12 +2618,12 @@ class __$$UsBankAccountImplCopyWithImpl<$Res> $Res call({ Object? routingNumber = freezed, Object? last4 = freezed, - Object? accountHolderType = null, - Object? accountType = null, + Object? accountHolderType = freezed, + Object? accountType = freezed, Object? bankName = freezed, Object? fingerprint = freezed, Object? linkedAccount = freezed, - Object? preferredNetworks = freezed, + Object? preferredNetwork = freezed, Object? supportedNetworks = freezed, }) { return _then(_$UsBankAccountImpl( @@ -2635,14 +2635,14 @@ class __$$UsBankAccountImplCopyWithImpl<$Res> ? _value.last4 : last4 // ignore: cast_nullable_to_non_nullable as String?, - accountHolderType: null == accountHolderType + accountHolderType: freezed == accountHolderType ? _value.accountHolderType : accountHolderType // ignore: cast_nullable_to_non_nullable - as BankAccountHolderType, - accountType: null == accountType + as BankAccountHolderType?, + accountType: freezed == accountType ? _value.accountType : accountType // ignore: cast_nullable_to_non_nullable - as UsBankAccountType, + as UsBankAccountType?, bankName: freezed == bankName ? _value.bankName : bankName // ignore: cast_nullable_to_non_nullable @@ -2655,10 +2655,10 @@ class __$$UsBankAccountImplCopyWithImpl<$Res> ? _value.linkedAccount : linkedAccount // ignore: cast_nullable_to_non_nullable as String?, - preferredNetworks: freezed == preferredNetworks - ? _value._preferredNetworks - : preferredNetworks // ignore: cast_nullable_to_non_nullable - as List?, + preferredNetwork: freezed == preferredNetwork + ? _value.preferredNetwork + : preferredNetwork // ignore: cast_nullable_to_non_nullable + as String?, supportedNetworks: freezed == supportedNetworks ? _value._supportedNetworks : supportedNetworks // ignore: cast_nullable_to_non_nullable @@ -2674,15 +2674,14 @@ class _$UsBankAccountImpl implements _UsBankAccount { const _$UsBankAccountImpl( {this.routingNumber, this.last4, - required this.accountHolderType, - required this.accountType, + this.accountHolderType, + this.accountType, this.bankName, this.fingerprint, this.linkedAccount, - final List? preferredNetworks, + this.preferredNetwork, final List? supportedNetworks}) - : _preferredNetworks = preferredNetworks, - _supportedNetworks = supportedNetworks; + : _supportedNetworks = supportedNetworks; factory _$UsBankAccountImpl.fromJson(Map json) => _$$UsBankAccountImplFromJson(json); @@ -2697,11 +2696,11 @@ class _$UsBankAccountImpl implements _UsBankAccount { /// The bank account type of the holder @override - final BankAccountHolderType accountHolderType; + final BankAccountHolderType? accountHolderType; /// The account type @override - final UsBankAccountType accountType; + final UsBankAccountType? accountType; /// The name of the bank of the account @override @@ -2715,19 +2714,9 @@ class _$UsBankAccountImpl implements _UsBankAccount { @override final String? linkedAccount; - /// list of preferred network names - final List? _preferredNetworks; - - /// list of preferred network names + /// list of preferred network @override - List? get preferredNetworks { - final value = _preferredNetworks; - if (value == null) return null; - if (_preferredNetworks is EqualUnmodifiableListView) - return _preferredNetworks; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } + final String? preferredNetwork; /// list of preferred network names final List? _supportedNetworks; @@ -2745,7 +2734,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { @override String toString() { - return 'UsBankAccount(routingNumber: $routingNumber, last4: $last4, accountHolderType: $accountHolderType, accountType: $accountType, bankName: $bankName, fingerprint: $fingerprint, linkedAccount: $linkedAccount, preferredNetworks: $preferredNetworks, supportedNetworks: $supportedNetworks)'; + return 'UsBankAccount(routingNumber: $routingNumber, last4: $last4, accountHolderType: $accountHolderType, accountType: $accountType, bankName: $bankName, fingerprint: $fingerprint, linkedAccount: $linkedAccount, preferredNetwork: $preferredNetwork, supportedNetworks: $supportedNetworks)'; } @override @@ -2766,8 +2755,8 @@ class _$UsBankAccountImpl implements _UsBankAccount { other.fingerprint == fingerprint) && (identical(other.linkedAccount, linkedAccount) || other.linkedAccount == linkedAccount) && - const DeepCollectionEquality() - .equals(other._preferredNetworks, _preferredNetworks) && + (identical(other.preferredNetwork, preferredNetwork) || + other.preferredNetwork == preferredNetwork) && const DeepCollectionEquality() .equals(other._supportedNetworks, _supportedNetworks)); } @@ -2783,7 +2772,7 @@ class _$UsBankAccountImpl implements _UsBankAccount { bankName, fingerprint, linkedAccount, - const DeepCollectionEquality().hash(_preferredNetworks), + preferredNetwork, const DeepCollectionEquality().hash(_supportedNetworks)); @JsonKey(ignore: true) @@ -2804,12 +2793,12 @@ abstract class _UsBankAccount implements UsBankAccount { const factory _UsBankAccount( {final String? routingNumber, final String? last4, - required final BankAccountHolderType accountHolderType, - required final UsBankAccountType accountType, + final BankAccountHolderType? accountHolderType, + final UsBankAccountType? accountType, final String? bankName, final String? fingerprint, final String? linkedAccount, - final List? preferredNetworks, + final String? preferredNetwork, final List? supportedNetworks}) = _$UsBankAccountImpl; factory _UsBankAccount.fromJson(Map json) = @@ -2826,11 +2815,11 @@ abstract class _UsBankAccount implements UsBankAccount { @override /// The bank account type of the holder - BankAccountHolderType get accountHolderType; + BankAccountHolderType? get accountHolderType; @override /// The account type - UsBankAccountType get accountType; + UsBankAccountType? get accountType; @override /// The name of the bank of the account @@ -2845,8 +2834,8 @@ abstract class _UsBankAccount implements UsBankAccount { String? get linkedAccount; @override - /// list of preferred network names - List? get preferredNetworks; + /// list of preferred network + String? get preferredNetwork; @override /// list of preferred network names @@ -12593,11 +12582,11 @@ PaymentMethodDataUsBank _$PaymentMethodDataUsBankFromJson( /// @nodoc mixin _$PaymentMethodDataUsBank { /// The account number of the bank account. - String? get accountNumber => throw _privateConstructorUsedError; + String get accountNumber => throw _privateConstructorUsedError; ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. - String? get routingNumber => throw _privateConstructorUsedError; + String get routingNumber => throw _privateConstructorUsedError; /// The bank account type of the holder BankAccountHolderType? get accountHolderType => @@ -12628,8 +12617,8 @@ abstract class $PaymentMethodDataUsBankCopyWith<$Res> { _$PaymentMethodDataUsBankCopyWithImpl<$Res, PaymentMethodDataUsBank>; @useResult $Res call( - {String? accountNumber, - String? routingNumber, + {String accountNumber, + String routingNumber, BankAccountHolderType? accountHolderType, UsBankAccountType? accountType, BillingDetails? billingDetails, @@ -12655,8 +12644,8 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, @pragma('vm:prefer-inline') @override $Res call({ - Object? accountNumber = freezed, - Object? routingNumber = freezed, + Object? accountNumber = null, + Object? routingNumber = null, Object? accountHolderType = freezed, Object? accountType = freezed, Object? billingDetails = freezed, @@ -12664,14 +12653,14 @@ class _$PaymentMethodDataUsBankCopyWithImpl<$Res, Object? mandateData = freezed, }) { return _then(_value.copyWith( - accountNumber: freezed == accountNumber + accountNumber: null == accountNumber ? _value.accountNumber : accountNumber // ignore: cast_nullable_to_non_nullable - as String?, - routingNumber: freezed == routingNumber + as String, + routingNumber: null == routingNumber ? _value.routingNumber : routingNumber // ignore: cast_nullable_to_non_nullable - as String?, + as String, accountHolderType: freezed == accountHolderType ? _value.accountHolderType : accountHolderType // ignore: cast_nullable_to_non_nullable @@ -12742,8 +12731,8 @@ abstract class _$$PaymentMethodDataUsBankImplCopyWith<$Res> @override @useResult $Res call( - {String? accountNumber, - String? routingNumber, + {String accountNumber, + String routingNumber, BankAccountHolderType? accountHolderType, UsBankAccountType? accountType, BillingDetails? billingDetails, @@ -12771,8 +12760,8 @@ class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? accountNumber = freezed, - Object? routingNumber = freezed, + Object? accountNumber = null, + Object? routingNumber = null, Object? accountHolderType = freezed, Object? accountType = freezed, Object? billingDetails = freezed, @@ -12780,14 +12769,14 @@ class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> Object? mandateData = freezed, }) { return _then(_$PaymentMethodDataUsBankImpl( - accountNumber: freezed == accountNumber + accountNumber: null == accountNumber ? _value.accountNumber : accountNumber // ignore: cast_nullable_to_non_nullable - as String?, - routingNumber: freezed == routingNumber + as String, + routingNumber: null == routingNumber ? _value.routingNumber : routingNumber // ignore: cast_nullable_to_non_nullable - as String?, + as String, accountHolderType: freezed == accountHolderType ? _value.accountHolderType : accountHolderType // ignore: cast_nullable_to_non_nullable @@ -12817,8 +12806,8 @@ class __$$PaymentMethodDataUsBankImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { const _$PaymentMethodDataUsBankImpl( - {this.accountNumber, - this.routingNumber, + {required this.accountNumber, + required this.routingNumber, this.accountHolderType, this.accountType, this.billingDetails, @@ -12830,12 +12819,12 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { /// The account number of the bank account. @override - final String? accountNumber; + final String accountNumber; ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. @override - final String? routingNumber; + final String routingNumber; /// The bank account type of the holder @override @@ -12912,8 +12901,8 @@ class _$PaymentMethodDataUsBankImpl implements _PaymentMethodDataUsBank { abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { const factory _PaymentMethodDataUsBank( - {final String? accountNumber, - final String? routingNumber, + {required final String accountNumber, + required final String routingNumber, final BankAccountHolderType? accountHolderType, final UsBankAccountType? accountType, final BillingDetails? billingDetails, @@ -12926,12 +12915,12 @@ abstract class _PaymentMethodDataUsBank implements PaymentMethodDataUsBank { @override /// The account number of the bank account. - String? get accountNumber; + String get accountNumber; @override ///The routing number, sort code, or other country-appropriate institution ///number for the bank account. - String? get routingNumber; + String get routingNumber; @override /// The bank account type of the holder diff --git a/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart index 99bbd8e41..47c57d34a 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_methods.g.dart @@ -180,15 +180,14 @@ _$UsBankAccountImpl _$$UsBankAccountImplFromJson(Map json) => _$UsBankAccountImpl( routingNumber: json['routingNumber'] as String?, last4: json['last4'] as String?, - accountHolderType: $enumDecode( + accountHolderType: $enumDecodeNullable( _$BankAccountHolderTypeEnumMap, json['accountHolderType']), - accountType: $enumDecode(_$UsBankAccountTypeEnumMap, json['accountType']), + accountType: + $enumDecodeNullable(_$UsBankAccountTypeEnumMap, json['accountType']), bankName: json['bankName'] as String?, fingerprint: json['fingerprint'] as String?, linkedAccount: json['linkedAccount'] as String?, - preferredNetworks: (json['preferredNetworks'] as List?) - ?.map((e) => e as String) - .toList(), + preferredNetwork: json['preferredNetwork'] as String?, supportedNetworks: (json['supportedNetworks'] as List?) ?.map((e) => e as String) .toList(), @@ -199,12 +198,12 @@ Map _$$UsBankAccountImplToJson(_$UsBankAccountImpl instance) => 'routingNumber': instance.routingNumber, 'last4': instance.last4, 'accountHolderType': - _$BankAccountHolderTypeEnumMap[instance.accountHolderType]!, - 'accountType': _$UsBankAccountTypeEnumMap[instance.accountType]!, + _$BankAccountHolderTypeEnumMap[instance.accountHolderType], + 'accountType': _$UsBankAccountTypeEnumMap[instance.accountType], 'bankName': instance.bankName, 'fingerprint': instance.fingerprint, 'linkedAccount': instance.linkedAccount, - 'preferredNetworks': instance.preferredNetworks, + 'preferredNetwork': instance.preferredNetwork, 'supportedNetworks': instance.supportedNetworks, }; @@ -792,8 +791,8 @@ Map _$$PaymentMethodDataAfterPayImplToJson( _$PaymentMethodDataUsBankImpl _$$PaymentMethodDataUsBankImplFromJson( Map json) => _$PaymentMethodDataUsBankImpl( - accountNumber: json['accountNumber'] as String?, - routingNumber: json['routingNumber'] as String?, + accountNumber: json['accountNumber'] as String, + routingNumber: json['routingNumber'] as String, accountHolderType: $enumDecodeNullable( _$BankAccountHolderTypeEnumMap, json['accountHolderType']), accountType: diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart index 61c17b258..673240df1 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.dart @@ -81,6 +81,18 @@ class SetupPaymentSheetParameters with _$SetupPaymentSheetParameters { /// paymentIntent since the customer can change those. @JsonKey(name: 'defaultBillingDetails') BillingDetails? billingDetails, + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? allowsRemovalOfLastSavedPaymentMethod, + + /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. + /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. + /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. + /// Example: ["card", "external_paypal", "klarna"] + /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. + List? paymentMethodOrder, + /// Return URL is required for IDEAL, Klarna and few other payment methods String? returnURL, diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart index cdd4273fd..d7e739006 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.freezed.dart @@ -89,6 +89,19 @@ mixin _$SetupPaymentSheetParameters { @JsonKey(name: 'defaultBillingDetails') BillingDetails? get billingDetails => throw _privateConstructorUsedError; + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? get allowsRemovalOfLastSavedPaymentMethod => + throw _privateConstructorUsedError; + + /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. + /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. + /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. + /// Example: ["card", "external_paypal", "klarna"] + /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. + List? get paymentMethodOrder => throw _privateConstructorUsedError; + /// Return URL is required for IDEAL, Klarna and few other payment methods String? get returnURL => throw _privateConstructorUsedError; @@ -135,6 +148,8 @@ abstract class $SetupPaymentSheetParametersCopyWith<$Res> { bool allowsDelayedPaymentMethods, PaymentSheetAppearance? appearance, @JsonKey(name: 'defaultBillingDetails') BillingDetails? billingDetails, + bool? allowsRemovalOfLastSavedPaymentMethod, + List? paymentMethodOrder, String? returnURL, BillingDetailsCollectionConfiguration? billingDetailsCollectionConfiguration, @@ -179,6 +194,8 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, Object? allowsDelayedPaymentMethods = null, Object? appearance = freezed, Object? billingDetails = freezed, + Object? allowsRemovalOfLastSavedPaymentMethod = freezed, + Object? paymentMethodOrder = freezed, Object? returnURL = freezed, Object? billingDetailsCollectionConfiguration = freezed, Object? removeSavedPaymentMethodMessage = freezed, @@ -241,6 +258,15 @@ class _$SetupPaymentSheetParametersCopyWithImpl<$Res, ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable as BillingDetails?, + allowsRemovalOfLastSavedPaymentMethod: freezed == + allowsRemovalOfLastSavedPaymentMethod + ? _value.allowsRemovalOfLastSavedPaymentMethod + : allowsRemovalOfLastSavedPaymentMethod // ignore: cast_nullable_to_non_nullable + as bool?, + paymentMethodOrder: freezed == paymentMethodOrder + ? _value.paymentMethodOrder + : paymentMethodOrder // ignore: cast_nullable_to_non_nullable + as List?, returnURL: freezed == returnURL ? _value.returnURL : returnURL // ignore: cast_nullable_to_non_nullable @@ -362,6 +388,8 @@ abstract class _$$SetupParametersImplCopyWith<$Res> bool allowsDelayedPaymentMethods, PaymentSheetAppearance? appearance, @JsonKey(name: 'defaultBillingDetails') BillingDetails? billingDetails, + bool? allowsRemovalOfLastSavedPaymentMethod, + List? paymentMethodOrder, String? returnURL, BillingDetailsCollectionConfiguration? billingDetailsCollectionConfiguration, @@ -409,6 +437,8 @@ class __$$SetupParametersImplCopyWithImpl<$Res> Object? allowsDelayedPaymentMethods = null, Object? appearance = freezed, Object? billingDetails = freezed, + Object? allowsRemovalOfLastSavedPaymentMethod = freezed, + Object? paymentMethodOrder = freezed, Object? returnURL = freezed, Object? billingDetailsCollectionConfiguration = freezed, Object? removeSavedPaymentMethodMessage = freezed, @@ -471,6 +501,15 @@ class __$$SetupParametersImplCopyWithImpl<$Res> ? _value.billingDetails : billingDetails // ignore: cast_nullable_to_non_nullable as BillingDetails?, + allowsRemovalOfLastSavedPaymentMethod: freezed == + allowsRemovalOfLastSavedPaymentMethod + ? _value.allowsRemovalOfLastSavedPaymentMethod + : allowsRemovalOfLastSavedPaymentMethod // ignore: cast_nullable_to_non_nullable + as bool?, + paymentMethodOrder: freezed == paymentMethodOrder + ? _value._paymentMethodOrder + : paymentMethodOrder // ignore: cast_nullable_to_non_nullable + as List?, returnURL: freezed == returnURL ? _value.returnURL : returnURL // ignore: cast_nullable_to_non_nullable @@ -512,12 +551,15 @@ class _$SetupParametersImpl implements _SetupParameters { this.allowsDelayedPaymentMethods = false, this.appearance, @JsonKey(name: 'defaultBillingDetails') this.billingDetails, + this.allowsRemovalOfLastSavedPaymentMethod, + final List? paymentMethodOrder, this.returnURL, this.billingDetailsCollectionConfiguration, this.removeSavedPaymentMethodMessage, @JsonKey(toJson: _cardBrandListToJson) final List? preferredNetworks}) - : _preferredNetworks = preferredNetworks; + : _paymentMethodOrder = paymentMethodOrder, + _preferredNetworks = preferredNetworks; factory _$SetupParametersImpl.fromJson(Map json) => _$$SetupParametersImplFromJson(json); @@ -605,6 +647,34 @@ class _$SetupParametersImpl implements _SetupParameters { @JsonKey(name: 'defaultBillingDetails') final BillingDetails? billingDetails; + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + @override + final bool? allowsRemovalOfLastSavedPaymentMethod; + + /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. + /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. + /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. + /// Example: ["card", "external_paypal", "klarna"] + /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. + final List? _paymentMethodOrder; + + /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. + /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. + /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. + /// Example: ["card", "external_paypal", "klarna"] + /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. + @override + List? get paymentMethodOrder { + final value = _paymentMethodOrder; + if (value == null) return null; + if (_paymentMethodOrder is EqualUnmodifiableListView) + return _paymentMethodOrder; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + /// Return URL is required for IDEAL, Klarna and few other payment methods @override final String? returnURL; @@ -637,7 +707,7 @@ class _$SetupParametersImpl implements _SetupParameters { @override String toString() { - return 'SetupPaymentSheetParameters(customFlow: $customFlow, customerId: $customerId, primaryButtonLabel: $primaryButtonLabel, customerEphemeralKeySecret: $customerEphemeralKeySecret, paymentIntentClientSecret: $paymentIntentClientSecret, setupIntentClientSecret: $setupIntentClientSecret, intentConfiguration: $intentConfiguration, merchantDisplayName: $merchantDisplayName, applePay: $applePay, style: $style, googlePay: $googlePay, allowsDelayedPaymentMethods: $allowsDelayedPaymentMethods, appearance: $appearance, billingDetails: $billingDetails, returnURL: $returnURL, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, preferredNetworks: $preferredNetworks)'; + return 'SetupPaymentSheetParameters(customFlow: $customFlow, customerId: $customerId, primaryButtonLabel: $primaryButtonLabel, customerEphemeralKeySecret: $customerEphemeralKeySecret, paymentIntentClientSecret: $paymentIntentClientSecret, setupIntentClientSecret: $setupIntentClientSecret, intentConfiguration: $intentConfiguration, merchantDisplayName: $merchantDisplayName, applePay: $applePay, style: $style, googlePay: $googlePay, allowsDelayedPaymentMethods: $allowsDelayedPaymentMethods, appearance: $appearance, billingDetails: $billingDetails, allowsRemovalOfLastSavedPaymentMethod: $allowsRemovalOfLastSavedPaymentMethod, paymentMethodOrder: $paymentMethodOrder, returnURL: $returnURL, billingDetailsCollectionConfiguration: $billingDetailsCollectionConfiguration, removeSavedPaymentMethodMessage: $removeSavedPaymentMethodMessage, preferredNetworks: $preferredNetworks)'; } @override @@ -674,41 +744,47 @@ class _$SetupParametersImpl implements _SetupParameters { other.appearance == appearance) && (identical(other.billingDetails, billingDetails) || other.billingDetails == billingDetails) && + (identical(other.allowsRemovalOfLastSavedPaymentMethod, allowsRemovalOfLastSavedPaymentMethod) || + other.allowsRemovalOfLastSavedPaymentMethod == + allowsRemovalOfLastSavedPaymentMethod) && + const DeepCollectionEquality() + .equals(other._paymentMethodOrder, _paymentMethodOrder) && (identical(other.returnURL, returnURL) || other.returnURL == returnURL) && - (identical(other.billingDetailsCollectionConfiguration, - billingDetailsCollectionConfiguration) || + (identical(other.billingDetailsCollectionConfiguration, billingDetailsCollectionConfiguration) || other.billingDetailsCollectionConfiguration == billingDetailsCollectionConfiguration) && (identical(other.removeSavedPaymentMethodMessage, removeSavedPaymentMethodMessage) || other.removeSavedPaymentMethodMessage == removeSavedPaymentMethodMessage) && - const DeepCollectionEquality() - .equals(other._preferredNetworks, _preferredNetworks)); + const DeepCollectionEquality().equals(other._preferredNetworks, _preferredNetworks)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - customFlow, - customerId, - primaryButtonLabel, - customerEphemeralKeySecret, - paymentIntentClientSecret, - setupIntentClientSecret, - intentConfiguration, - merchantDisplayName, - applePay, - style, - googlePay, - allowsDelayedPaymentMethods, - appearance, - billingDetails, - returnURL, - billingDetailsCollectionConfiguration, - removeSavedPaymentMethodMessage, - const DeepCollectionEquality().hash(_preferredNetworks)); + int get hashCode => Object.hashAll([ + runtimeType, + customFlow, + customerId, + primaryButtonLabel, + customerEphemeralKeySecret, + paymentIntentClientSecret, + setupIntentClientSecret, + intentConfiguration, + merchantDisplayName, + applePay, + style, + googlePay, + allowsDelayedPaymentMethods, + appearance, + billingDetails, + allowsRemovalOfLastSavedPaymentMethod, + const DeepCollectionEquality().hash(_paymentMethodOrder), + returnURL, + billingDetailsCollectionConfiguration, + removeSavedPaymentMethodMessage, + const DeepCollectionEquality().hash(_preferredNetworks) + ]); @JsonKey(ignore: true) @override @@ -742,6 +818,8 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { final PaymentSheetAppearance? appearance, @JsonKey(name: 'defaultBillingDetails') final BillingDetails? billingDetails, + final bool? allowsRemovalOfLastSavedPaymentMethod, + final List? paymentMethodOrder, final String? returnURL, final BillingDetailsCollectionConfiguration? billingDetailsCollectionConfiguration, @@ -835,6 +913,20 @@ abstract class _SetupParameters implements SetupPaymentSheetParameters { BillingDetails? get billingDetails; @override + ///This is an experimental feature that may be removed at any time. + /// Defaults to true. If true, the customer can delete all saved payment methods. + /// If false, the customer can't delete if they only have one saved payment method remaining. + bool? get allowsRemovalOfLastSavedPaymentMethod; + @override + + /// By default, PaymentSheet will use a dynamic ordering that optimizes payment method display for the customer. + /// You can override the default order in which payment methods are displayed in PaymentSheet with a list of payment method types. + /// See https://stripe.com/docs/api/payment_methods/object#payment_method_object-type for the list of valid types. You may also pass external payment methods. + /// Example: ["card", "external_paypal", "klarna"] + /// If you omit payment methods from this list, they’ll be automatically ordered by Stripe after the ones you provide. Invalid payment methods are ignored. + List? get paymentMethodOrder; + @override + /// Return URL is required for IDEAL, Klarna and few other payment methods String? get returnURL; @override diff --git a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart index 11a688302..3065a04c9 100644 --- a/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/payment_sheet.g.dart @@ -39,6 +39,11 @@ _$SetupParametersImpl _$$SetupParametersImplFromJson( ? null : BillingDetails.fromJson( json['defaultBillingDetails'] as Map), + allowsRemovalOfLastSavedPaymentMethod: + json['allowsRemovalOfLastSavedPaymentMethod'] as bool?, + paymentMethodOrder: (json['paymentMethodOrder'] as List?) + ?.map((e) => e as String) + .toList(), returnURL: json['returnURL'] as String?, billingDetailsCollectionConfiguration: json['billingDetailsCollectionConfiguration'] == null @@ -70,6 +75,9 @@ Map _$$SetupParametersImplToJson( 'allowsDelayedPaymentMethods': instance.allowsDelayedPaymentMethods, 'appearance': instance.appearance?.toJson(), 'defaultBillingDetails': instance.billingDetails?.toJson(), + 'allowsRemovalOfLastSavedPaymentMethod': + instance.allowsRemovalOfLastSavedPaymentMethod, + 'paymentMethodOrder': instance.paymentMethodOrder, 'returnURL': instance.returnURL, 'billingDetailsCollectionConfiguration': instance.billingDetailsCollectionConfiguration?.toJson(), @@ -139,6 +147,7 @@ const _$CaptureMethodEnumMap = { CaptureMethod.Manual: 'Manual', CaptureMethod.Automatic: 'Automatic', CaptureMethod.AutomaticAsync: 'AutomaticAsync', + CaptureMethod.Unknown: 'Unknown', }; _$PaymentSheetApplePayImpl _$$PaymentSheetApplePayImplFromJson( diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.dart index 0bdca9b5e..05fc57699 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.dart @@ -353,10 +353,10 @@ class PaymentRequestType with _$PaymentRequestType { required String managementUrl, /// The regular billing cycle for the payment, including start end dates, interval and count. - required ImmediateCartSummaryItem billing, + required RecurringCartSummaryItem billing, /// Same as the billing property but related to trial period. - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem? trialBilling, /// A localized billing agreement that Apple displays to user before authorizing the payment String? billingAgreement, diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart index 16aa9a4fe..fa2d81a78 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.freezed.dart @@ -4716,8 +4716,8 @@ mixin _$PaymentRequestType { required TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL) recurring, @@ -4739,8 +4739,8 @@ mixin _$PaymentRequestType { TResult? Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -4761,8 +4761,8 @@ mixin _$PaymentRequestType { TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -4833,8 +4833,8 @@ abstract class _$$PaymentRequestTypeRecurringImplCopyWith<$Res> { $Res call( {String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL}); } @@ -4871,11 +4871,11 @@ class __$$PaymentRequestTypeRecurringImplCopyWithImpl<$Res> billing: freezed == billing ? _value.billing : billing // ignore: cast_nullable_to_non_nullable - as ImmediateCartSummaryItem, + as RecurringCartSummaryItem, trialBilling: freezed == trialBilling ? _value.trialBilling : trialBilling // ignore: cast_nullable_to_non_nullable - as ImmediateCartSummaryItem?, + as RecurringCartSummaryItem?, billingAgreement: freezed == billingAgreement ? _value.billingAgreement : billingAgreement // ignore: cast_nullable_to_non_nullable @@ -4919,11 +4919,11 @@ class _$PaymentRequestTypeRecurringImpl /// The regular billing cycle for the payment, including start end dates, interval and count. @override - final ImmediateCartSummaryItem billing; + final RecurringCartSummaryItem billing; /// Same as the billing property but related to trial period. @override - final ImmediateCartSummaryItem? trialBilling; + final RecurringCartSummaryItem? trialBilling; /// A localized billing agreement that Apple displays to user before authorizing the payment @override @@ -4985,8 +4985,8 @@ class _$PaymentRequestTypeRecurringImpl required TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL) recurring, @@ -5012,8 +5012,8 @@ class _$PaymentRequestTypeRecurringImpl TResult? Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -5038,8 +5038,8 @@ class _$PaymentRequestTypeRecurringImpl TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -5109,8 +5109,8 @@ abstract class _PaymentRequestTypeRecurring implements PaymentRequestType { const factory _PaymentRequestTypeRecurring( {required final String description, required final String managementUrl, - required final ImmediateCartSummaryItem billing, - final ImmediateCartSummaryItem? trialBilling, + required final RecurringCartSummaryItem billing, + final RecurringCartSummaryItem? trialBilling, final String? billingAgreement, final String? tokenNotificationURL}) = _$PaymentRequestTypeRecurringImpl; @@ -5126,10 +5126,10 @@ abstract class _PaymentRequestTypeRecurring implements PaymentRequestType { String get managementUrl; /// The regular billing cycle for the payment, including start end dates, interval and count. - ImmediateCartSummaryItem get billing; + RecurringCartSummaryItem get billing; /// Same as the billing property but related to trial period. - ImmediateCartSummaryItem? get trialBilling; + RecurringCartSummaryItem? get trialBilling; /// A localized billing agreement that Apple displays to user before authorizing the payment String? get billingAgreement; @@ -5316,8 +5316,8 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { required TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL) recurring, @@ -5343,8 +5343,8 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { TResult? Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -5369,8 +5369,8 @@ class _$PaymentRequestTypeReloadImpl implements _PaymentRequestTypeReload { TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -5570,8 +5570,8 @@ class _$PaymentRequestTypeMultiMerchantImpl required TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL) recurring, @@ -5596,8 +5596,8 @@ class _$PaymentRequestTypeMultiMerchantImpl TResult? Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, @@ -5621,8 +5621,8 @@ class _$PaymentRequestTypeMultiMerchantImpl TResult Function( String description, String managementUrl, - ImmediateCartSummaryItem billing, - ImmediateCartSummaryItem? trialBilling, + RecurringCartSummaryItem billing, + RecurringCartSummaryItem? trialBilling, String? billingAgreement, String? tokenNotificationURL)? recurring, diff --git a/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart b/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart index f6f9cd1df..d3d2c5a03 100644 --- a/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/platform_pay.g.dart @@ -412,11 +412,11 @@ _$PaymentRequestTypeRecurringImpl _$$PaymentRequestTypeRecurringImplFromJson( _$PaymentRequestTypeRecurringImpl( description: json['description'] as String, managementUrl: json['managementUrl'] as String, - billing: ImmediateCartSummaryItem.fromJson( + billing: RecurringCartSummaryItem.fromJson( json['billing'] as Map), trialBilling: json['trialBilling'] == null ? null - : ImmediateCartSummaryItem.fromJson( + : RecurringCartSummaryItem.fromJson( json['trialBilling'] as Map), billingAgreement: json['billingAgreement'] as String?, tokenNotificationURL: json['tokenNotificationURL'] as String?, diff --git a/packages/stripe_platform_interface/lib/src/models/push_provisioning.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.dart new file mode 100644 index 000000000..db88db503 --- /dev/null +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.dart @@ -0,0 +1,148 @@ +// ignore_for_file: constant_identifier_names + +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'push_provisioning.freezed.dart'; +part 'push_provisioning.g.dart'; + +@freezed + +/// Tokenized token for Google Pay. +class GooglePayCardToken with _$GooglePayCardToken { + @JsonSerializable(explicitToJson: true) + const factory GooglePayCardToken({ + /// The token reference ID., + required String id, + + /// Last four digits of the FPAN, + required String fpanLastFour, + + /// Last four digits of the DPAN, + required String dpanLastFour, + + /// The network of the card. + required int network, + + /// The service provider of the card. + required int serviceProvider, + + /// The name of the issuer., + required String issuer, + + /// The GooglePayCardTokenStatus., + required GooglePayCardTokenStatus status, + + /// Deprecated. Use fpanLastFour or dpanLastFour., + required String cardLastFour, + }) = _GooglePayCardToken; + + factory GooglePayCardToken.fromJson(Map json) => + _$GooglePayCardTokenFromJson(json); +} + +@freezed + +/// The result of checking if a card is in the wallet. +class IsCardInWalletResult with _$IsCardInWalletResult { + @JsonSerializable(explicitToJson: true) + const factory IsCardInWalletResult({ + required bool isInWallet, + GooglePayCardToken? token, + }) = _IsCardInWalletResult; + + factory IsCardInWalletResult.fromJson(Map json) => + _$IsCardInWalletResultFromJson(json); +} + +@freezed + +/// The result of checking if a card can be added to the wallet. +class CanAddCardToWalletResult with _$CanAddCardToWalletResult { + @JsonSerializable(explicitToJson: true) + const factory CanAddCardToWalletResult({ + required bool canAddCard, + CanAddCardToDetails? details, + }) = _CanAddCardToWalletResult; + + factory CanAddCardToWalletResult.fromJson(Map json) => + _$CanAddCardToWalletResultFromJson(json); +} + +@freezed + +/// The details if card can be added. +class CanAddCardToDetails with _$CanAddCardToDetails { + @JsonSerializable(explicitToJson: true) + const factory CanAddCardToDetails({ + GooglePayCardToken? token, + CanAddCardToWalletStatus? status, + }) = _CanAddCardToDetails; + + factory CanAddCardToDetails.fromJson(Map json) => + _$CanAddCardToDetailsFromJson(json); +} + +@freezed + +/// The params for checking if a card is in the wallet. +class CanAddCardToWalletParams with _$CanAddCardToWalletParams { + @JsonSerializable(explicitToJson: true) + const factory CanAddCardToWalletParams({ + ///The `primary_account_identifier` value from the issued card. Can be an empty string. + String? primaryAccountIdentifier, + + /// Last 4 digits of the card number. Required for Android. + required String cardLastFour, + + /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios + bool? testEnv, + + /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. + bool? hasPairedAppleWatch, + + /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. + bool? supportsTapToPay, + }) = _CanAddCardToWalletParams; + + factory CanAddCardToWalletParams.fromJson(Map json) => + _$CanAddCardToWalletParamsFromJson(json); +} + +/// The google pay card token status. +enum GooglePayCardTokenStatus { + /// The token needs identity verification + TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION, + + /// The token is pending + TOKEN_STATE_PENDING, + + /// The token is suspended + TOKEN_STATE_SUSPENDED, + + /// The token is active + TOKEN_STATE_ACTIVE, + + /// The token is pending provisioning + TOKEN_STATE_FELICA_PENDING_PROVISIONING, + + /// The token is unprovisioned + TOKEN_STATE_UNTOKENIZED, +} + +/// The can add card to wallet status. +enum CanAddCardToWalletStatus { + /// You are missing configuration required for Push Provisioning. Make sure you've completed all steps + MISSING_CONFIGURATION, + + /// This device doesn't support adding a card to the native wallet. + UNSUPPORTED_DEVICE, + + /// This card already exists on this device and any paired devices. + CARD_ALREADY_EXISTS, + + /// This card already exists on this device, but not on the paired device. + CARD_EXISTS_ON_CURRENT_DEVICE, + + /// This card already exists on the paired device, but not on this device. + CARD_EXISTS_ON_PAIRED_DEVICE, +} diff --git a/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart new file mode 100644 index 000000000..66ead3999 --- /dev/null +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.freezed.dart @@ -0,0 +1,1138 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'push_provisioning.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + +GooglePayCardToken _$GooglePayCardTokenFromJson(Map json) { + return _GooglePayCardToken.fromJson(json); +} + +/// @nodoc +mixin _$GooglePayCardToken { + /// The token reference ID., + String get id => throw _privateConstructorUsedError; + + /// Last four digits of the FPAN, + String get fpanLastFour => throw _privateConstructorUsedError; + + /// Last four digits of the DPAN, + String get dpanLastFour => throw _privateConstructorUsedError; + + /// The network of the card. + int get network => throw _privateConstructorUsedError; + + /// The service provider of the card. + int get serviceProvider => throw _privateConstructorUsedError; + + /// The name of the issuer., + String get issuer => throw _privateConstructorUsedError; + + /// The GooglePayCardTokenStatus., + GooglePayCardTokenStatus get status => throw _privateConstructorUsedError; + + /// Deprecated. Use fpanLastFour or dpanLastFour., + String get cardLastFour => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $GooglePayCardTokenCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $GooglePayCardTokenCopyWith<$Res> { + factory $GooglePayCardTokenCopyWith( + GooglePayCardToken value, $Res Function(GooglePayCardToken) then) = + _$GooglePayCardTokenCopyWithImpl<$Res, GooglePayCardToken>; + @useResult + $Res call( + {String id, + String fpanLastFour, + String dpanLastFour, + int network, + int serviceProvider, + String issuer, + GooglePayCardTokenStatus status, + String cardLastFour}); +} + +/// @nodoc +class _$GooglePayCardTokenCopyWithImpl<$Res, $Val extends GooglePayCardToken> + implements $GooglePayCardTokenCopyWith<$Res> { + _$GooglePayCardTokenCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? id = null, + Object? fpanLastFour = null, + Object? dpanLastFour = null, + Object? network = null, + Object? serviceProvider = null, + Object? issuer = null, + Object? status = null, + Object? cardLastFour = null, + }) { + return _then(_value.copyWith( + id: null == id + ? _value.id + : id // ignore: cast_nullable_to_non_nullable + as String, + fpanLastFour: null == fpanLastFour + ? _value.fpanLastFour + : fpanLastFour // ignore: cast_nullable_to_non_nullable + as String, + dpanLastFour: null == dpanLastFour + ? _value.dpanLastFour + : dpanLastFour // ignore: cast_nullable_to_non_nullable + as String, + network: null == network + ? _value.network + : network // ignore: cast_nullable_to_non_nullable + as int, + serviceProvider: null == serviceProvider + ? _value.serviceProvider + : serviceProvider // ignore: cast_nullable_to_non_nullable + as int, + issuer: null == issuer + ? _value.issuer + : issuer // ignore: cast_nullable_to_non_nullable + as String, + status: null == status + ? _value.status + : status // ignore: cast_nullable_to_non_nullable + as GooglePayCardTokenStatus, + cardLastFour: null == cardLastFour + ? _value.cardLastFour + : cardLastFour // ignore: cast_nullable_to_non_nullable + as String, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$GooglePayCardTokenImplCopyWith<$Res> + implements $GooglePayCardTokenCopyWith<$Res> { + factory _$$GooglePayCardTokenImplCopyWith(_$GooglePayCardTokenImpl value, + $Res Function(_$GooglePayCardTokenImpl) then) = + __$$GooglePayCardTokenImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String id, + String fpanLastFour, + String dpanLastFour, + int network, + int serviceProvider, + String issuer, + GooglePayCardTokenStatus status, + String cardLastFour}); +} + +/// @nodoc +class __$$GooglePayCardTokenImplCopyWithImpl<$Res> + extends _$GooglePayCardTokenCopyWithImpl<$Res, _$GooglePayCardTokenImpl> + implements _$$GooglePayCardTokenImplCopyWith<$Res> { + __$$GooglePayCardTokenImplCopyWithImpl(_$GooglePayCardTokenImpl _value, + $Res Function(_$GooglePayCardTokenImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? id = null, + Object? fpanLastFour = null, + Object? dpanLastFour = null, + Object? network = null, + Object? serviceProvider = null, + Object? issuer = null, + Object? status = null, + Object? cardLastFour = null, + }) { + return _then(_$GooglePayCardTokenImpl( + id: null == id + ? _value.id + : id // ignore: cast_nullable_to_non_nullable + as String, + fpanLastFour: null == fpanLastFour + ? _value.fpanLastFour + : fpanLastFour // ignore: cast_nullable_to_non_nullable + as String, + dpanLastFour: null == dpanLastFour + ? _value.dpanLastFour + : dpanLastFour // ignore: cast_nullable_to_non_nullable + as String, + network: null == network + ? _value.network + : network // ignore: cast_nullable_to_non_nullable + as int, + serviceProvider: null == serviceProvider + ? _value.serviceProvider + : serviceProvider // ignore: cast_nullable_to_non_nullable + as int, + issuer: null == issuer + ? _value.issuer + : issuer // ignore: cast_nullable_to_non_nullable + as String, + status: null == status + ? _value.status + : status // ignore: cast_nullable_to_non_nullable + as GooglePayCardTokenStatus, + cardLastFour: null == cardLastFour + ? _value.cardLastFour + : cardLastFour // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$GooglePayCardTokenImpl implements _GooglePayCardToken { + const _$GooglePayCardTokenImpl( + {required this.id, + required this.fpanLastFour, + required this.dpanLastFour, + required this.network, + required this.serviceProvider, + required this.issuer, + required this.status, + required this.cardLastFour}); + + factory _$GooglePayCardTokenImpl.fromJson(Map json) => + _$$GooglePayCardTokenImplFromJson(json); + + /// The token reference ID., + @override + final String id; + + /// Last four digits of the FPAN, + @override + final String fpanLastFour; + + /// Last four digits of the DPAN, + @override + final String dpanLastFour; + + /// The network of the card. + @override + final int network; + + /// The service provider of the card. + @override + final int serviceProvider; + + /// The name of the issuer., + @override + final String issuer; + + /// The GooglePayCardTokenStatus., + @override + final GooglePayCardTokenStatus status; + + /// Deprecated. Use fpanLastFour or dpanLastFour., + @override + final String cardLastFour; + + @override + String toString() { + return 'GooglePayCardToken(id: $id, fpanLastFour: $fpanLastFour, dpanLastFour: $dpanLastFour, network: $network, serviceProvider: $serviceProvider, issuer: $issuer, status: $status, cardLastFour: $cardLastFour)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$GooglePayCardTokenImpl && + (identical(other.id, id) || other.id == id) && + (identical(other.fpanLastFour, fpanLastFour) || + other.fpanLastFour == fpanLastFour) && + (identical(other.dpanLastFour, dpanLastFour) || + other.dpanLastFour == dpanLastFour) && + (identical(other.network, network) || other.network == network) && + (identical(other.serviceProvider, serviceProvider) || + other.serviceProvider == serviceProvider) && + (identical(other.issuer, issuer) || other.issuer == issuer) && + (identical(other.status, status) || other.status == status) && + (identical(other.cardLastFour, cardLastFour) || + other.cardLastFour == cardLastFour)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, id, fpanLastFour, dpanLastFour, + network, serviceProvider, issuer, status, cardLastFour); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => + __$$GooglePayCardTokenImplCopyWithImpl<_$GooglePayCardTokenImpl>( + this, _$identity); + + @override + Map toJson() { + return _$$GooglePayCardTokenImplToJson( + this, + ); + } +} + +abstract class _GooglePayCardToken implements GooglePayCardToken { + const factory _GooglePayCardToken( + {required final String id, + required final String fpanLastFour, + required final String dpanLastFour, + required final int network, + required final int serviceProvider, + required final String issuer, + required final GooglePayCardTokenStatus status, + required final String cardLastFour}) = _$GooglePayCardTokenImpl; + + factory _GooglePayCardToken.fromJson(Map json) = + _$GooglePayCardTokenImpl.fromJson; + + @override + + /// The token reference ID., + String get id; + @override + + /// Last four digits of the FPAN, + String get fpanLastFour; + @override + + /// Last four digits of the DPAN, + String get dpanLastFour; + @override + + /// The network of the card. + int get network; + @override + + /// The service provider of the card. + int get serviceProvider; + @override + + /// The name of the issuer., + String get issuer; + @override + + /// The GooglePayCardTokenStatus., + GooglePayCardTokenStatus get status; + @override + + /// Deprecated. Use fpanLastFour or dpanLastFour., + String get cardLastFour; + @override + @JsonKey(ignore: true) + _$$GooglePayCardTokenImplCopyWith<_$GooglePayCardTokenImpl> get copyWith => + throw _privateConstructorUsedError; +} + +IsCardInWalletResult _$IsCardInWalletResultFromJson(Map json) { + return _IsCardInWalletResult.fromJson(json); +} + +/// @nodoc +mixin _$IsCardInWalletResult { + bool get isInWallet => throw _privateConstructorUsedError; + GooglePayCardToken? get token => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $IsCardInWalletResultCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $IsCardInWalletResultCopyWith<$Res> { + factory $IsCardInWalletResultCopyWith(IsCardInWalletResult value, + $Res Function(IsCardInWalletResult) then) = + _$IsCardInWalletResultCopyWithImpl<$Res, IsCardInWalletResult>; + @useResult + $Res call({bool isInWallet, GooglePayCardToken? token}); + + $GooglePayCardTokenCopyWith<$Res>? get token; +} + +/// @nodoc +class _$IsCardInWalletResultCopyWithImpl<$Res, + $Val extends IsCardInWalletResult> + implements $IsCardInWalletResultCopyWith<$Res> { + _$IsCardInWalletResultCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? isInWallet = null, + Object? token = freezed, + }) { + return _then(_value.copyWith( + isInWallet: null == isInWallet + ? _value.isInWallet + : isInWallet // ignore: cast_nullable_to_non_nullable + as bool, + token: freezed == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as GooglePayCardToken?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $GooglePayCardTokenCopyWith<$Res>? get token { + if (_value.token == null) { + return null; + } + + return $GooglePayCardTokenCopyWith<$Res>(_value.token!, (value) { + return _then(_value.copyWith(token: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$IsCardInWalletResultImplCopyWith<$Res> + implements $IsCardInWalletResultCopyWith<$Res> { + factory _$$IsCardInWalletResultImplCopyWith(_$IsCardInWalletResultImpl value, + $Res Function(_$IsCardInWalletResultImpl) then) = + __$$IsCardInWalletResultImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({bool isInWallet, GooglePayCardToken? token}); + + @override + $GooglePayCardTokenCopyWith<$Res>? get token; +} + +/// @nodoc +class __$$IsCardInWalletResultImplCopyWithImpl<$Res> + extends _$IsCardInWalletResultCopyWithImpl<$Res, _$IsCardInWalletResultImpl> + implements _$$IsCardInWalletResultImplCopyWith<$Res> { + __$$IsCardInWalletResultImplCopyWithImpl(_$IsCardInWalletResultImpl _value, + $Res Function(_$IsCardInWalletResultImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? isInWallet = null, + Object? token = freezed, + }) { + return _then(_$IsCardInWalletResultImpl( + isInWallet: null == isInWallet + ? _value.isInWallet + : isInWallet // ignore: cast_nullable_to_non_nullable + as bool, + token: freezed == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as GooglePayCardToken?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$IsCardInWalletResultImpl implements _IsCardInWalletResult { + const _$IsCardInWalletResultImpl({required this.isInWallet, this.token}); + + factory _$IsCardInWalletResultImpl.fromJson(Map json) => + _$$IsCardInWalletResultImplFromJson(json); + + @override + final bool isInWallet; + @override + final GooglePayCardToken? token; + + @override + String toString() { + return 'IsCardInWalletResult(isInWallet: $isInWallet, token: $token)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$IsCardInWalletResultImpl && + (identical(other.isInWallet, isInWallet) || + other.isInWallet == isInWallet) && + (identical(other.token, token) || other.token == token)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, isInWallet, token); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> + get copyWith => + __$$IsCardInWalletResultImplCopyWithImpl<_$IsCardInWalletResultImpl>( + this, _$identity); + + @override + Map toJson() { + return _$$IsCardInWalletResultImplToJson( + this, + ); + } +} + +abstract class _IsCardInWalletResult implements IsCardInWalletResult { + const factory _IsCardInWalletResult( + {required final bool isInWallet, + final GooglePayCardToken? token}) = _$IsCardInWalletResultImpl; + + factory _IsCardInWalletResult.fromJson(Map json) = + _$IsCardInWalletResultImpl.fromJson; + + @override + bool get isInWallet; + @override + GooglePayCardToken? get token; + @override + @JsonKey(ignore: true) + _$$IsCardInWalletResultImplCopyWith<_$IsCardInWalletResultImpl> + get copyWith => throw _privateConstructorUsedError; +} + +CanAddCardToWalletResult _$CanAddCardToWalletResultFromJson( + Map json) { + return _CanAddCardToWalletResult.fromJson(json); +} + +/// @nodoc +mixin _$CanAddCardToWalletResult { + bool get canAddCard => throw _privateConstructorUsedError; + CanAddCardToDetails? get details => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $CanAddCardToWalletResultCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $CanAddCardToWalletResultCopyWith<$Res> { + factory $CanAddCardToWalletResultCopyWith(CanAddCardToWalletResult value, + $Res Function(CanAddCardToWalletResult) then) = + _$CanAddCardToWalletResultCopyWithImpl<$Res, CanAddCardToWalletResult>; + @useResult + $Res call({bool canAddCard, CanAddCardToDetails? details}); + + $CanAddCardToDetailsCopyWith<$Res>? get details; +} + +/// @nodoc +class _$CanAddCardToWalletResultCopyWithImpl<$Res, + $Val extends CanAddCardToWalletResult> + implements $CanAddCardToWalletResultCopyWith<$Res> { + _$CanAddCardToWalletResultCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? canAddCard = null, + Object? details = freezed, + }) { + return _then(_value.copyWith( + canAddCard: null == canAddCard + ? _value.canAddCard + : canAddCard // ignore: cast_nullable_to_non_nullable + as bool, + details: freezed == details + ? _value.details + : details // ignore: cast_nullable_to_non_nullable + as CanAddCardToDetails?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $CanAddCardToDetailsCopyWith<$Res>? get details { + if (_value.details == null) { + return null; + } + + return $CanAddCardToDetailsCopyWith<$Res>(_value.details!, (value) { + return _then(_value.copyWith(details: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$CanAddCardToWalletResultImplCopyWith<$Res> + implements $CanAddCardToWalletResultCopyWith<$Res> { + factory _$$CanAddCardToWalletResultImplCopyWith( + _$CanAddCardToWalletResultImpl value, + $Res Function(_$CanAddCardToWalletResultImpl) then) = + __$$CanAddCardToWalletResultImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({bool canAddCard, CanAddCardToDetails? details}); + + @override + $CanAddCardToDetailsCopyWith<$Res>? get details; +} + +/// @nodoc +class __$$CanAddCardToWalletResultImplCopyWithImpl<$Res> + extends _$CanAddCardToWalletResultCopyWithImpl<$Res, + _$CanAddCardToWalletResultImpl> + implements _$$CanAddCardToWalletResultImplCopyWith<$Res> { + __$$CanAddCardToWalletResultImplCopyWithImpl( + _$CanAddCardToWalletResultImpl _value, + $Res Function(_$CanAddCardToWalletResultImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? canAddCard = null, + Object? details = freezed, + }) { + return _then(_$CanAddCardToWalletResultImpl( + canAddCard: null == canAddCard + ? _value.canAddCard + : canAddCard // ignore: cast_nullable_to_non_nullable + as bool, + details: freezed == details + ? _value.details + : details // ignore: cast_nullable_to_non_nullable + as CanAddCardToDetails?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$CanAddCardToWalletResultImpl implements _CanAddCardToWalletResult { + const _$CanAddCardToWalletResultImpl( + {required this.canAddCard, this.details}); + + factory _$CanAddCardToWalletResultImpl.fromJson(Map json) => + _$$CanAddCardToWalletResultImplFromJson(json); + + @override + final bool canAddCard; + @override + final CanAddCardToDetails? details; + + @override + String toString() { + return 'CanAddCardToWalletResult(canAddCard: $canAddCard, details: $details)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$CanAddCardToWalletResultImpl && + (identical(other.canAddCard, canAddCard) || + other.canAddCard == canAddCard) && + (identical(other.details, details) || other.details == details)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, canAddCard, details); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> + get copyWith => __$$CanAddCardToWalletResultImplCopyWithImpl< + _$CanAddCardToWalletResultImpl>(this, _$identity); + + @override + Map toJson() { + return _$$CanAddCardToWalletResultImplToJson( + this, + ); + } +} + +abstract class _CanAddCardToWalletResult implements CanAddCardToWalletResult { + const factory _CanAddCardToWalletResult( + {required final bool canAddCard, + final CanAddCardToDetails? details}) = _$CanAddCardToWalletResultImpl; + + factory _CanAddCardToWalletResult.fromJson(Map json) = + _$CanAddCardToWalletResultImpl.fromJson; + + @override + bool get canAddCard; + @override + CanAddCardToDetails? get details; + @override + @JsonKey(ignore: true) + _$$CanAddCardToWalletResultImplCopyWith<_$CanAddCardToWalletResultImpl> + get copyWith => throw _privateConstructorUsedError; +} + +CanAddCardToDetails _$CanAddCardToDetailsFromJson(Map json) { + return _CanAddCardToDetails.fromJson(json); +} + +/// @nodoc +mixin _$CanAddCardToDetails { + GooglePayCardToken? get token => throw _privateConstructorUsedError; + CanAddCardToWalletStatus? get status => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $CanAddCardToDetailsCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $CanAddCardToDetailsCopyWith<$Res> { + factory $CanAddCardToDetailsCopyWith( + CanAddCardToDetails value, $Res Function(CanAddCardToDetails) then) = + _$CanAddCardToDetailsCopyWithImpl<$Res, CanAddCardToDetails>; + @useResult + $Res call({GooglePayCardToken? token, CanAddCardToWalletStatus? status}); + + $GooglePayCardTokenCopyWith<$Res>? get token; +} + +/// @nodoc +class _$CanAddCardToDetailsCopyWithImpl<$Res, $Val extends CanAddCardToDetails> + implements $CanAddCardToDetailsCopyWith<$Res> { + _$CanAddCardToDetailsCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? token = freezed, + Object? status = freezed, + }) { + return _then(_value.copyWith( + token: freezed == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as GooglePayCardToken?, + status: freezed == status + ? _value.status + : status // ignore: cast_nullable_to_non_nullable + as CanAddCardToWalletStatus?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $GooglePayCardTokenCopyWith<$Res>? get token { + if (_value.token == null) { + return null; + } + + return $GooglePayCardTokenCopyWith<$Res>(_value.token!, (value) { + return _then(_value.copyWith(token: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$CanAddCardToDetailsImplCopyWith<$Res> + implements $CanAddCardToDetailsCopyWith<$Res> { + factory _$$CanAddCardToDetailsImplCopyWith(_$CanAddCardToDetailsImpl value, + $Res Function(_$CanAddCardToDetailsImpl) then) = + __$$CanAddCardToDetailsImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({GooglePayCardToken? token, CanAddCardToWalletStatus? status}); + + @override + $GooglePayCardTokenCopyWith<$Res>? get token; +} + +/// @nodoc +class __$$CanAddCardToDetailsImplCopyWithImpl<$Res> + extends _$CanAddCardToDetailsCopyWithImpl<$Res, _$CanAddCardToDetailsImpl> + implements _$$CanAddCardToDetailsImplCopyWith<$Res> { + __$$CanAddCardToDetailsImplCopyWithImpl(_$CanAddCardToDetailsImpl _value, + $Res Function(_$CanAddCardToDetailsImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? token = freezed, + Object? status = freezed, + }) { + return _then(_$CanAddCardToDetailsImpl( + token: freezed == token + ? _value.token + : token // ignore: cast_nullable_to_non_nullable + as GooglePayCardToken?, + status: freezed == status + ? _value.status + : status // ignore: cast_nullable_to_non_nullable + as CanAddCardToWalletStatus?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$CanAddCardToDetailsImpl implements _CanAddCardToDetails { + const _$CanAddCardToDetailsImpl({this.token, this.status}); + + factory _$CanAddCardToDetailsImpl.fromJson(Map json) => + _$$CanAddCardToDetailsImplFromJson(json); + + @override + final GooglePayCardToken? token; + @override + final CanAddCardToWalletStatus? status; + + @override + String toString() { + return 'CanAddCardToDetails(token: $token, status: $status)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$CanAddCardToDetailsImpl && + (identical(other.token, token) || other.token == token) && + (identical(other.status, status) || other.status == status)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, token, status); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => + __$$CanAddCardToDetailsImplCopyWithImpl<_$CanAddCardToDetailsImpl>( + this, _$identity); + + @override + Map toJson() { + return _$$CanAddCardToDetailsImplToJson( + this, + ); + } +} + +abstract class _CanAddCardToDetails implements CanAddCardToDetails { + const factory _CanAddCardToDetails( + {final GooglePayCardToken? token, + final CanAddCardToWalletStatus? status}) = _$CanAddCardToDetailsImpl; + + factory _CanAddCardToDetails.fromJson(Map json) = + _$CanAddCardToDetailsImpl.fromJson; + + @override + GooglePayCardToken? get token; + @override + CanAddCardToWalletStatus? get status; + @override + @JsonKey(ignore: true) + _$$CanAddCardToDetailsImplCopyWith<_$CanAddCardToDetailsImpl> get copyWith => + throw _privateConstructorUsedError; +} + +CanAddCardToWalletParams _$CanAddCardToWalletParamsFromJson( + Map json) { + return _CanAddCardToWalletParams.fromJson(json); +} + +/// @nodoc +mixin _$CanAddCardToWalletParams { + ///The `primary_account_identifier` value from the issued card. Can be an empty string. + String? get primaryAccountIdentifier => throw _privateConstructorUsedError; + + /// Last 4 digits of the card number. Required for Android. + String get cardLastFour => throw _privateConstructorUsedError; + + /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios + bool? get testEnv => throw _privateConstructorUsedError; + + /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. + bool? get hasPairedAppleWatch => throw _privateConstructorUsedError; + + /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. + bool? get supportsTapToPay => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $CanAddCardToWalletParamsCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $CanAddCardToWalletParamsCopyWith<$Res> { + factory $CanAddCardToWalletParamsCopyWith(CanAddCardToWalletParams value, + $Res Function(CanAddCardToWalletParams) then) = + _$CanAddCardToWalletParamsCopyWithImpl<$Res, CanAddCardToWalletParams>; + @useResult + $Res call( + {String? primaryAccountIdentifier, + String cardLastFour, + bool? testEnv, + bool? hasPairedAppleWatch, + bool? supportsTapToPay}); +} + +/// @nodoc +class _$CanAddCardToWalletParamsCopyWithImpl<$Res, + $Val extends CanAddCardToWalletParams> + implements $CanAddCardToWalletParamsCopyWith<$Res> { + _$CanAddCardToWalletParamsCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? primaryAccountIdentifier = freezed, + Object? cardLastFour = null, + Object? testEnv = freezed, + Object? hasPairedAppleWatch = freezed, + Object? supportsTapToPay = freezed, + }) { + return _then(_value.copyWith( + primaryAccountIdentifier: freezed == primaryAccountIdentifier + ? _value.primaryAccountIdentifier + : primaryAccountIdentifier // ignore: cast_nullable_to_non_nullable + as String?, + cardLastFour: null == cardLastFour + ? _value.cardLastFour + : cardLastFour // ignore: cast_nullable_to_non_nullable + as String, + testEnv: freezed == testEnv + ? _value.testEnv + : testEnv // ignore: cast_nullable_to_non_nullable + as bool?, + hasPairedAppleWatch: freezed == hasPairedAppleWatch + ? _value.hasPairedAppleWatch + : hasPairedAppleWatch // ignore: cast_nullable_to_non_nullable + as bool?, + supportsTapToPay: freezed == supportsTapToPay + ? _value.supportsTapToPay + : supportsTapToPay // ignore: cast_nullable_to_non_nullable + as bool?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$CanAddCardToWalletParamsImplCopyWith<$Res> + implements $CanAddCardToWalletParamsCopyWith<$Res> { + factory _$$CanAddCardToWalletParamsImplCopyWith( + _$CanAddCardToWalletParamsImpl value, + $Res Function(_$CanAddCardToWalletParamsImpl) then) = + __$$CanAddCardToWalletParamsImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? primaryAccountIdentifier, + String cardLastFour, + bool? testEnv, + bool? hasPairedAppleWatch, + bool? supportsTapToPay}); +} + +/// @nodoc +class __$$CanAddCardToWalletParamsImplCopyWithImpl<$Res> + extends _$CanAddCardToWalletParamsCopyWithImpl<$Res, + _$CanAddCardToWalletParamsImpl> + implements _$$CanAddCardToWalletParamsImplCopyWith<$Res> { + __$$CanAddCardToWalletParamsImplCopyWithImpl( + _$CanAddCardToWalletParamsImpl _value, + $Res Function(_$CanAddCardToWalletParamsImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? primaryAccountIdentifier = freezed, + Object? cardLastFour = null, + Object? testEnv = freezed, + Object? hasPairedAppleWatch = freezed, + Object? supportsTapToPay = freezed, + }) { + return _then(_$CanAddCardToWalletParamsImpl( + primaryAccountIdentifier: freezed == primaryAccountIdentifier + ? _value.primaryAccountIdentifier + : primaryAccountIdentifier // ignore: cast_nullable_to_non_nullable + as String?, + cardLastFour: null == cardLastFour + ? _value.cardLastFour + : cardLastFour // ignore: cast_nullable_to_non_nullable + as String, + testEnv: freezed == testEnv + ? _value.testEnv + : testEnv // ignore: cast_nullable_to_non_nullable + as bool?, + hasPairedAppleWatch: freezed == hasPairedAppleWatch + ? _value.hasPairedAppleWatch + : hasPairedAppleWatch // ignore: cast_nullable_to_non_nullable + as bool?, + supportsTapToPay: freezed == supportsTapToPay + ? _value.supportsTapToPay + : supportsTapToPay // ignore: cast_nullable_to_non_nullable + as bool?, + )); + } +} + +/// @nodoc + +@JsonSerializable(explicitToJson: true) +class _$CanAddCardToWalletParamsImpl implements _CanAddCardToWalletParams { + const _$CanAddCardToWalletParamsImpl( + {this.primaryAccountIdentifier, + required this.cardLastFour, + this.testEnv, + this.hasPairedAppleWatch, + this.supportsTapToPay}); + + factory _$CanAddCardToWalletParamsImpl.fromJson(Map json) => + _$$CanAddCardToWalletParamsImplFromJson(json); + + ///The `primary_account_identifier` value from the issued card. Can be an empty string. + @override + final String? primaryAccountIdentifier; + + /// Last 4 digits of the card number. Required for Android. + @override + final String cardLastFour; + + /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios + @override + final bool? testEnv; + + /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. + @override + final bool? hasPairedAppleWatch; + + /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. + @override + final bool? supportsTapToPay; + + @override + String toString() { + return 'CanAddCardToWalletParams(primaryAccountIdentifier: $primaryAccountIdentifier, cardLastFour: $cardLastFour, testEnv: $testEnv, hasPairedAppleWatch: $hasPairedAppleWatch, supportsTapToPay: $supportsTapToPay)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$CanAddCardToWalletParamsImpl && + (identical( + other.primaryAccountIdentifier, primaryAccountIdentifier) || + other.primaryAccountIdentifier == primaryAccountIdentifier) && + (identical(other.cardLastFour, cardLastFour) || + other.cardLastFour == cardLastFour) && + (identical(other.testEnv, testEnv) || other.testEnv == testEnv) && + (identical(other.hasPairedAppleWatch, hasPairedAppleWatch) || + other.hasPairedAppleWatch == hasPairedAppleWatch) && + (identical(other.supportsTapToPay, supportsTapToPay) || + other.supportsTapToPay == supportsTapToPay)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, primaryAccountIdentifier, + cardLastFour, testEnv, hasPairedAppleWatch, supportsTapToPay); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> + get copyWith => __$$CanAddCardToWalletParamsImplCopyWithImpl< + _$CanAddCardToWalletParamsImpl>(this, _$identity); + + @override + Map toJson() { + return _$$CanAddCardToWalletParamsImplToJson( + this, + ); + } +} + +abstract class _CanAddCardToWalletParams implements CanAddCardToWalletParams { + const factory _CanAddCardToWalletParams( + {final String? primaryAccountIdentifier, + required final String cardLastFour, + final bool? testEnv, + final bool? hasPairedAppleWatch, + final bool? supportsTapToPay}) = _$CanAddCardToWalletParamsImpl; + + factory _CanAddCardToWalletParams.fromJson(Map json) = + _$CanAddCardToWalletParamsImpl.fromJson; + + @override + + ///The `primary_account_identifier` value from the issued card. Can be an empty string. + String? get primaryAccountIdentifier; + @override + + /// Last 4 digits of the card number. Required for Android. + String get cardLastFour; + @override + + /// iOS only. Set this to `true` until shipping through TestFlight || App Store. If false, you must be using live cards, and have the proper iOS entitlement set up. See https://stripe.com/docs/issuing/cards/digital-wallets?platform=react-native#requesting-access-for-ios + bool? get testEnv; + @override + + /// iOS only. Set this to `true` if: your user has an Apple Watch device currently paired, and you want to check that device for the presence of the specified card. + bool? get hasPairedAppleWatch; + @override + + /// Android only, defaults to `true`. Set this to `false` if you'd like to allow users without NFC-enabled devices to add cards to the wallet. NFC is required for paying in stores. + bool? get supportsTapToPay; + @override + @JsonKey(ignore: true) + _$$CanAddCardToWalletParamsImplCopyWith<_$CanAddCardToWalletParamsImpl> + get copyWith => throw _privateConstructorUsedError; +} diff --git a/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart b/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart new file mode 100644 index 000000000..2c9f556c4 --- /dev/null +++ b/packages/stripe_platform_interface/lib/src/models/push_provisioning.g.dart @@ -0,0 +1,124 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'push_provisioning.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_$GooglePayCardTokenImpl _$$GooglePayCardTokenImplFromJson( + Map json) => + _$GooglePayCardTokenImpl( + id: json['id'] as String, + fpanLastFour: json['fpanLastFour'] as String, + dpanLastFour: json['dpanLastFour'] as String, + network: json['network'] as int, + serviceProvider: json['serviceProvider'] as int, + issuer: json['issuer'] as String, + status: $enumDecode(_$GooglePayCardTokenStatusEnumMap, json['status']), + cardLastFour: json['cardLastFour'] as String, + ); + +Map _$$GooglePayCardTokenImplToJson( + _$GooglePayCardTokenImpl instance) => + { + 'id': instance.id, + 'fpanLastFour': instance.fpanLastFour, + 'dpanLastFour': instance.dpanLastFour, + 'network': instance.network, + 'serviceProvider': instance.serviceProvider, + 'issuer': instance.issuer, + 'status': _$GooglePayCardTokenStatusEnumMap[instance.status]!, + 'cardLastFour': instance.cardLastFour, + }; + +const _$GooglePayCardTokenStatusEnumMap = { + GooglePayCardTokenStatus.TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION: + 'TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION', + GooglePayCardTokenStatus.TOKEN_STATE_PENDING: 'TOKEN_STATE_PENDING', + GooglePayCardTokenStatus.TOKEN_STATE_SUSPENDED: 'TOKEN_STATE_SUSPENDED', + GooglePayCardTokenStatus.TOKEN_STATE_ACTIVE: 'TOKEN_STATE_ACTIVE', + GooglePayCardTokenStatus.TOKEN_STATE_FELICA_PENDING_PROVISIONING: + 'TOKEN_STATE_FELICA_PENDING_PROVISIONING', + GooglePayCardTokenStatus.TOKEN_STATE_UNTOKENIZED: 'TOKEN_STATE_UNTOKENIZED', +}; + +_$IsCardInWalletResultImpl _$$IsCardInWalletResultImplFromJson( + Map json) => + _$IsCardInWalletResultImpl( + isInWallet: json['isInWallet'] as bool, + token: json['token'] == null + ? null + : GooglePayCardToken.fromJson(json['token'] as Map), + ); + +Map _$$IsCardInWalletResultImplToJson( + _$IsCardInWalletResultImpl instance) => + { + 'isInWallet': instance.isInWallet, + 'token': instance.token?.toJson(), + }; + +_$CanAddCardToWalletResultImpl _$$CanAddCardToWalletResultImplFromJson( + Map json) => + _$CanAddCardToWalletResultImpl( + canAddCard: json['canAddCard'] as bool, + details: json['details'] == null + ? null + : CanAddCardToDetails.fromJson( + json['details'] as Map), + ); + +Map _$$CanAddCardToWalletResultImplToJson( + _$CanAddCardToWalletResultImpl instance) => + { + 'canAddCard': instance.canAddCard, + 'details': instance.details?.toJson(), + }; + +_$CanAddCardToDetailsImpl _$$CanAddCardToDetailsImplFromJson( + Map json) => + _$CanAddCardToDetailsImpl( + token: json['token'] == null + ? null + : GooglePayCardToken.fromJson(json['token'] as Map), + status: $enumDecodeNullable( + _$CanAddCardToWalletStatusEnumMap, json['status']), + ); + +Map _$$CanAddCardToDetailsImplToJson( + _$CanAddCardToDetailsImpl instance) => + { + 'token': instance.token?.toJson(), + 'status': _$CanAddCardToWalletStatusEnumMap[instance.status], + }; + +const _$CanAddCardToWalletStatusEnumMap = { + CanAddCardToWalletStatus.MISSING_CONFIGURATION: 'MISSING_CONFIGURATION', + CanAddCardToWalletStatus.UNSUPPORTED_DEVICE: 'UNSUPPORTED_DEVICE', + CanAddCardToWalletStatus.CARD_ALREADY_EXISTS: 'CARD_ALREADY_EXISTS', + CanAddCardToWalletStatus.CARD_EXISTS_ON_CURRENT_DEVICE: + 'CARD_EXISTS_ON_CURRENT_DEVICE', + CanAddCardToWalletStatus.CARD_EXISTS_ON_PAIRED_DEVICE: + 'CARD_EXISTS_ON_PAIRED_DEVICE', +}; + +_$CanAddCardToWalletParamsImpl _$$CanAddCardToWalletParamsImplFromJson( + Map json) => + _$CanAddCardToWalletParamsImpl( + primaryAccountIdentifier: json['primaryAccountIdentifier'] as String?, + cardLastFour: json['cardLastFour'] as String, + testEnv: json['testEnv'] as bool?, + hasPairedAppleWatch: json['hasPairedAppleWatch'] as bool?, + supportsTapToPay: json['supportsTapToPay'] as bool?, + ); + +Map _$$CanAddCardToWalletParamsImplToJson( + _$CanAddCardToWalletParamsImpl instance) => + { + 'primaryAccountIdentifier': instance.primaryAccountIdentifier, + 'cardLastFour': instance.cardLastFour, + 'testEnv': instance.testEnv, + 'hasPairedAppleWatch': instance.hasPairedAppleWatch, + 'supportsTapToPay': instance.supportsTapToPay, + }; diff --git a/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart b/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart index e4ee2d449..cb7b2b382 100644 --- a/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart +++ b/packages/stripe_platform_interface/lib/src/models/setup_intent.g.dart @@ -52,7 +52,7 @@ Map _$$SetupIntentImplToJson(_$SetupIntentImpl instance) => const _$PaymentMethodTypeEnumMap = { PaymentMethodType.AfterpayClearpay: 'AfterpayClearpay', PaymentMethodType.Card: 'Card', - PaymentMethodType.CashAppPay: 'CashAppPay', + PaymentMethodType.CashApp: 'CashApp', PaymentMethodType.Alipay: 'Alipay', PaymentMethodType.Grabpay: 'Grabpay', PaymentMethodType.Ideal: 'Ideal', diff --git a/packages/stripe_platform_interface/lib/src/stripe_platform_interface.dart b/packages/stripe_platform_interface/lib/src/stripe_platform_interface.dart index 4bf27f4ea..6f750aae2 100644 --- a/packages/stripe_platform_interface/lib/src/stripe_platform_interface.dart +++ b/packages/stripe_platform_interface/lib/src/stripe_platform_interface.dart @@ -94,8 +94,14 @@ abstract class StripePlatform extends PlatformInterface { Future createGooglePayPaymentMethod( CreateGooglePayPaymentParams params); + @Deprecated('use the new method [CanAddCardToWalletParams] instead') Future canAddToWallet(String last4); + Future canAddCardToWallet( + CanAddCardToWalletParams params); + + Future isCardInWallet(String cardLastFour); + /// Check if either google pay or apple pay is supported on device. Future isPlatformPaySupported({ IsGooglePaySupportedParams? params, diff --git a/packages/stripe_platform_interface/lib/stripe_platform_interface.dart b/packages/stripe_platform_interface/lib/stripe_platform_interface.dart index b2a578c5d..4d7d91c3e 100644 --- a/packages/stripe_platform_interface/lib/stripe_platform_interface.dart +++ b/packages/stripe_platform_interface/lib/stripe_platform_interface.dart @@ -22,6 +22,7 @@ export 'src/models/payment_methods.dart'; export 'src/models/payment_sheet.dart'; export 'src/models/platform_pay.dart'; export 'src/models/platform_pay_button.dart'; +export 'src/models/push_provisioning.dart'; export 'src/models/setup_intent.dart'; export 'src/models/three_d_secure.dart'; export 'src/models/wallet.dart'; diff --git a/packages/stripe_platform_interface/pubspec.yaml b/packages/stripe_platform_interface/pubspec.yaml index d792ff975..5d23d70b7 100644 --- a/packages/stripe_platform_interface/pubspec.yaml +++ b/packages/stripe_platform_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_platform_interface description: Platform interface for stripe sdk -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_platform_interface/test/test_data.dart b/packages/stripe_platform_interface/test/test_data.dart index 1acd52269..32ea7798b 100644 --- a/packages/stripe_platform_interface/test/test_data.dart +++ b/packages/stripe_platform_interface/test/test_data.dart @@ -33,8 +33,8 @@ extension PaymentMethodTestInstance on PaymentMethod { 'USBankAccount': { 'routingNumber': usBankAccount.routingNumber, 'last4': usBankAccount.last4, - 'accountHolderType': usBankAccount.accountHolderType.name, - 'accountType': usBankAccount.accountType.name, + 'accountHolderType': usBankAccount.accountHolderType?.name, + 'accountType': usBankAccount.accountType?.name, 'bankName': usBankAccount.bankName, 'fingerprint': usBankAccount.fingerprint, 'linkedAccount': usBankAccount.linkedAccount, diff --git a/packages/stripe_web/CHANGELOG.md b/packages/stripe_web/CHANGELOG.md index f685b44d1..425986c4d 100644 --- a/packages/stripe_web/CHANGELOG.md +++ b/packages/stripe_web/CHANGELOG.md @@ -1,3 +1,16 @@ +## 5.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). + ## 5.0.0 **Breaking changes** diff --git a/packages/stripe_web/lib/src/parser/payment_intent.dart b/packages/stripe_web/lib/src/parser/payment_intent.dart index 0df15a414..d15ec1611 100644 --- a/packages/stripe_web/lib/src/parser/payment_intent.dart +++ b/packages/stripe_web/lib/src/parser/payment_intent.dart @@ -1,5 +1,5 @@ -import 'package:stripe_platform_interface/stripe_platform_interface.dart'; import 'package:stripe_js/stripe_api.dart' as js; +import 'package:stripe_platform_interface/stripe_platform_interface.dart'; extension PaymentIntentExtension on js.PaymentIntent { PaymentIntent parse() { @@ -74,6 +74,9 @@ extension CaptureMethodExtension on CaptureMethod { case 'Automatic': case 'automatic': return CaptureMethod.Automatic; + case 'AutomaticAsync': + case 'automatic_async': + return CaptureMethod.AutomaticAsync; case 'Manual': case 'manual': return CaptureMethod.Manual; diff --git a/packages/stripe_web/lib/src/web_stripe.dart b/packages/stripe_web/lib/src/web_stripe.dart index d025b0816..a33f01f55 100644 --- a/packages/stripe_web/lib/src/web_stripe.dart +++ b/packages/stripe_web/lib/src/web_stripe.dart @@ -55,13 +55,21 @@ class WebStripe extends StripePlatform { bool? setReturnUrlSchemeOnAndroid, }) async { this._urlScheme = urlScheme; + if (__stripe != null) { - __stripe!.stripeAccount = stripeAccountId; + // Check if the new stripeAccountId is different + if (__stripe!.stripeAccount != stripeAccountId) { + // Re-initialize with new stripeAccountId + await stripe_js.loadStripe(); + var stripeOption = stripe_js.StripeOptions(); + stripeOption.stripeAccount = stripeAccountId; + __stripe = stripe_js.Stripe(publishableKey, stripeOption); + } return; } await stripe_js.loadStripe(); - final stripeOption = stripe_js.StripeOptions(); + var stripeOption = stripe_js.StripeOptions(); if (stripeAccountId != null) { stripeOption.stripeAccount = stripeAccountId; } @@ -119,9 +127,7 @@ class WebStripe extends StripePlatform { paymentIntentClientSecret, data: stripe_js.ConfirmCardPaymentData( paymentMethod: stripe_js.CardPaymentMethodDetails(card: element!), - setupFutureUsage: (options?.setupFutureUsage ?? - PaymentIntentsFutureUsage.OnSession) - .toJs(), + setupFutureUsage: options?.setupFutureUsage?.toJs(), ), ); }, @@ -604,6 +610,17 @@ class WebStripe extends StripePlatform { throw WebUnsupportedError.method( 'retrieveCustomerSheetPaymentOptionSelection'); } + + @override + Future canAddCardToWallet( + CanAddCardToWalletParams params) { + throw WebUnsupportedError.method('canAddCardToWallet'); + } + + @override + Future isCardInWallet(String cardLastFour) { + throw WebUnsupportedError.method('isCardInWallet'); + } } class WebUnsupportedError extends Error implements UnsupportedError { diff --git a/packages/stripe_web/lib/src/widgets/card_field.dart b/packages/stripe_web/lib/src/widgets/card_field.dart index adb7a1264..b79d178a3 100644 --- a/packages/stripe_web/lib/src/widgets/card_field.dart +++ b/packages/stripe_web/lib/src/widgets/card_field.dart @@ -53,6 +53,8 @@ class WebCardField extends StatefulWidget { class WebStripeCardState extends State with CardFieldContext { CardEditController get controller => widget.controller; + late MutationObserver mutationObserver; + @override void initState() { // ignore: undefined_prefixed_name @@ -62,6 +64,24 @@ class WebStripeCardState extends State with CardFieldContext { ..id = 'card-element' ..style.border = 'none', ); + mutationObserver = MutationObserver((entries, observer) { + if (document.getElementById('card-element') != null) { + mutationObserver.disconnect(); + + updateCardDetails( + const CardFieldInputDetails(complete: false), + controller, + ); + element = WebStripe.js + .elements(createElementOptions()) + .createCard(createOptions()) + ..mount('#card-element') + ..onBlur(requestBlur) + ..onFocus(requestFocus) + ..onChange(onCardChanged); + } + }); + mutationObserver.observe(document, childList: true, subtree: true); initStripe(); super.initState(); } @@ -80,19 +100,6 @@ class WebStripeCardState extends State with CardFieldContext { dev.log('WARNING! Initial card data value has been ignored. \n' '$kDebugPCIMessage'); } - ambiguate(WidgetsBinding.instance)?.addPostFrameCallback((timeStamp) { - updateCardDetails( - const CardFieldInputDetails(complete: false), - controller, - ); - element = WebStripe.js - .elements(createElementOptions()) - .createCard(createOptions()) - ..mount('#card-element') - ..onBlur(requestBlur) - ..onFocus(requestFocus) - ..onChange(onCardChanged); - }); } }); } @@ -158,7 +165,13 @@ class WebStripeCardState extends State with CardFieldContext { } js.CardElementOptions createOptions() { + final textColor = widget.style?.textColor; return js.CardElementOptions( + style: { + 'base': { + if (textColor != null) 'color': '${colorToCssString(textColor)}' + } + }, hidePostalCode: !widget.enablePostalCode, ); } @@ -184,6 +197,7 @@ class WebStripeCardState extends State with CardFieldContext { void dispose() { detachController(controller); element?.unmount(); + mutationObserver.disconnect(); super.dispose(); } diff --git a/packages/stripe_web/lib/src/widgets/payment_element.dart b/packages/stripe_web/lib/src/widgets/payment_element.dart index a501b0300..4d9eb4c4d 100644 --- a/packages/stripe_web/lib/src/widgets/payment_element.dart +++ b/packages/stripe_web/lib/src/widgets/payment_element.dart @@ -1,64 +1,55 @@ import 'dart:html'; - -import 'dart:ui' as ui; - +import 'dart:ui_web' as ui; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import '../../flutter_stripe_web.dart'; -import 'package:stripe_js/stripe_js.dart' as js; import 'package:stripe_js/stripe_api.dart' as js; +import 'package:stripe_js/stripe_js.dart' as js; export 'package:stripe_js/stripe_api.dart' show PaymentElementLayout; typedef PaymentElementTheme = js.ElementTheme; class PaymentElement extends StatefulWidget { - PaymentElement({ - required this.onCardChanged, - Key? key, - this.onFocus, - this.style, - this.placeholder, - this.enablePostalCode = false, - double? width, - double? height = kCardFieldDefaultHeight, - BoxConstraints? constraints, - this.focusNode, - required this.clientSecret, - this.autofocus = false, - this.layout = PaymentElementLayout.accordion, - this.appearance, - }) : assert(constraints == null || constraints.debugAssertIsValid()), - constraints = (width != null || height != null) - ? constraints?.tighten(width: width, height: height) ?? - BoxConstraints.tightFor(width: width, height: height) - : constraints, - super(key: key); - - final BoxConstraints? constraints; - final CardFocusCallback? onFocus; final String clientSecret; - final CardChangedCallback onCardChanged; + final double? width; + final double? height; final CardStyle? style; final CardPlaceholder? placeholder; final bool enablePostalCode; - final FocusNode? focusNode; final bool autofocus; + final FocusNode? focusNode; + final CardFocusCallback? onFocus; + final CardChangedCallback onCardChanged; final PaymentElementLayout layout; final js.ElementAppearance? appearance; + + PaymentElement({ + super.key, + required this.clientSecret, + this.width, + this.height, + this.style, + this.placeholder, + this.enablePostalCode = false, + this.autofocus = false, + this.focusNode, + this.onFocus, + required this.onCardChanged, + this.layout = PaymentElementLayout.accordion, + this.appearance, + }); + @override - PaymentElementState createState() => PaymentElementState(); + State createState() => PaymentElementState(); } class PaymentElementState extends State { - // 2 is the first size generated by the iframe. O will not worrk - double height = 2; - late final DivElement _divElement = DivElement() - ..id = 'payment-element' - ..style.border = 'none' - ..style.width = '100%' - ..style.height = '$height'; + DivElement _divElement = DivElement(); + // 2 is the first size generated by the iframe, O will not work. + double height = 2.0; + late MutationObserver? mutationObserver = MutationObserver((entries, observer) { if (document.getElementById('payment-element') != null) { @@ -82,23 +73,33 @@ class PaymentElementState extends State { }); late final resizeObserver = ResizeObserver((entries, observer) { - for (final entry in entries) { - if (entry.contentRect is DomRectReadOnly) { - final cr = entry.contentRect; - final height = cr.height; - setState(() { - this.height = height; - _divElement.style.height = '${height}px'; - }); + if (widget.height == null) { + for (final entry in entries) { + if (entry.contentRect is DomRectReadOnly) { + final cr = entry.contentRect; + setState(() { + height = cr.height; + _divElement.style.height = '${height}px'; + }); + } } } }); @override void initState() { + height = widget.height ?? height; + + _divElement = DivElement() + ..id = 'payment-element' + ..style.border = 'none' + ..style.width = '100%' + ..style.height = '${height}' + ..style.overflow = 'scroll' + ..style.overflowX = 'hidden'; + elements = WebStripe.js.elements(createOptions()); mutationObserver!.observe(document, childList: true, subtree: true); - // ignore: undefined_prefixed_name ui.platformViewRegistry.registerViewFactory( 'stripe_payment_element', (int viewId) => _divElement, @@ -144,8 +145,10 @@ class PaymentElementState extends State { element?.blur(); */ }, child: ConstrainedBox( - constraints: - BoxConstraints(maxWidth: double.infinity, maxHeight: height), + constraints: BoxConstraints( + maxWidth: double.infinity, + maxHeight: height, + ), child: const HtmlElementView(viewType: 'stripe_payment_element'), ), ); diff --git a/packages/stripe_web/pubspec.yaml b/packages/stripe_web/pubspec.yaml index c5c6b6e7e..aae4defad 100644 --- a/packages/stripe_web/pubspec.yaml +++ b/packages/stripe_web/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_stripe_web description: Stripe sdk bindings for the Flutter web platform. This package contains the implementation of the platform interface for web. -version: 5.0.0 +version: 5.2.0 homepage: https://github.com/flutter-stripe/flutter_stripe environment: @@ -13,9 +13,9 @@ dependencies: flutter_web_plugins: sdk: flutter freezed_annotation: ^2.0.3 - stripe_platform_interface: ^10.0.0 + stripe_platform_interface: ^10.1.1 js: ^0.6.3 - stripe_js: ^3.3.0 + stripe_js: ^3.4.0 dev_dependencies: flutter_test: