Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment component #602

Merged
merged 276 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
6eec356
fix(GiniMechantSDK): Fix conflicts + langs
razvancapra Aug 5, 2024
dcbcaf7
fix(GiniMerchantSDK): Fix payment component view layout
razvancapra Aug 6, 2024
35b5c99
fix(GiniPaymentComponent): Fix payment info screen
razvancapra Aug 6, 2024
7274444
fix(GiniMerchantSDKExampe): show error fix
razvancapra Aug 6, 2024
4e2fff7
fix(GiniMerchantSDK): Fix tests that failed
razvancapra Aug 6, 2024
adfe299
Merge branch 'main' into Payment-Component
razvancapra Aug 6, 2024
8806202
Merge branch 'main' into Payment-Component
razvancapra Aug 28, 2024
4a7c602
refactor(GiniHealthAPILibrary): Remove pinning projects
motokotomax Jul 31, 2024
31da375
fix(GiniPaymentComponent): Fix changes from main in branch
razvancapra Sep 2, 2024
ab0e14b
fix(GiniPaymentComponent): Fix unused files
razvancapra Sep 2, 2024
dae0fa5
fix(GiniPaymentComponent): Fix PaymentReviewViewController dismiss ke…
razvancapra Sep 2, 2024
fe60dbf
Merge branch 'main' into Payment-Component
razvancapra Sep 2, 2024
39153d2
fix(GiniMerchantSDK): Fix remove of the unnecessary configurations
razvancapra Sep 2, 2024
e04865b
fix(GiniMerchantSDK): Fix tests
razvancapra Sep 2, 2024
e4a2582
fix(GiniPaymentComponent): FIx duplication code for bankImageIcon
razvancapra Sep 3, 2024
fed3afe
fix(GiniPaymentComponent): Fix EmptyStackView to use higher-order hel…
razvancapra Sep 3, 2024
8032d65
fix(GiniHealthSDK): Revert emptyStack modifications
razvancapra Sep 3, 2024
9815aa2
feat(GiniPaymentComponent): Add Package-release
razvancapra Sep 4, 2024
b1091ae
fix(GiniPaymentComponent): Rename BanksBottomConfiguration into BankS…
razvancapra Sep 4, 2024
6c557d8
fix(GiniPaymentComponent): Refactor initializer in smaller structs. A…
razvancapra Sep 4, 2024
e44dcc0
fix(GiniPaymentComponent): Rename BanksBottomViewProtocol into BanksS…
razvancapra Sep 4, 2024
8c8f3b7
fix(GiniPaymentComponent): Add remove observer to InstallAppBottomView
razvancapra Sep 4, 2024
19b86af
fix(GiniPaymentComponent): Readd open of previous screen after paymen…
razvancapra Sep 4, 2024
4159757
fix(GiniPaymentComponent): Split PaymentReviewProtocol into 3 protocols
razvancapra Sep 4, 2024
1d0afe1
fix(GiniPaymentComponent): Rename delegateAPI to delegate for Payment…
razvancapra Sep 4, 2024
3d0661c
Fix(GiniHealthSDK, GiniMerchantSDK, GiniPaymentComponent): Rename req…
razvancapra Sep 4, 2024
2be99af
fix(GiniMerchantSDKExample): Remove unused import
razvancapra Sep 4, 2024
c9378ad
Merge branch 'main' into Payment-Component
razvancapra Sep 4, 2024
0a01366
Merge branch 'main' into Payment-Component
razvancapra Sep 4, 2024
7583dea
fix(GiniPaymentComponents): Rename delegateAPI to delegate in initial…
razvancapra Sep 9, 2024
21ea1d9
fix(GiniMerchantSDK) Restore versions
Sep 9, 2024
add906d
fix(GiniMerchantSDK) Remove pinning release
Sep 9, 2024
54c4111
fix(GiniMerchantSDK, GiniHealthSDK): Revert renaming of documentId to…
razvancapra Sep 9, 2024
d15987a
fix(GiniHealthAPILibrary): Re-add health api
Sep 10, 2024
1375d1e
fix(GiniMerchantSDK) Packages folder test
Sep 11, 2024
57e240a
fix(GiniHealthAPI) Remove AuthenticationServices.framework
Sep 11, 2024
53c7e81
fix(GiniHealthAPILibrary): Try remove health job branch
Sep 11, 2024
63f6c1f
Merge branch 'main' into remove-pinning-rebased
Sep 11, 2024
94db7fd
fix(GiniHealthAPILibrary): Retrigger checks
Sep 11, 2024
fde3bb9
feat(GiniHealthSDK): Integrate GiniPaymentComponent and GiniUtilities…
razvancapra Sep 11, 2024
e979c4f
fix(GiniHealthSDKExample): Fix CredentialsManager file
razvancapra Sep 11, 2024
0394960
fix(GiniHealthSDK): Fix payment review layout
Sep 16, 2024
3f3dbfc
fix(GiniHealthSDK): Fix layout issues
razvancapra Sep 17, 2024
40eaaec
Merge branch 'main' into IPC-328-baseSDK-in-HealthSDK
razvancapra Sep 17, 2024
f788d58
fix(GiniHealthSDK): Fix merge changes
razvancapra Sep 17, 2024
8ad8438
fix(GiniHealthSDKTests): Fix tests
razvancapra Sep 17, 2024
dbc58ce
fix(GiniPaymentComponent): Fix keyboard dismiss on Payment Review Screen
razvancapra Sep 17, 2024
07d437b
fix(GiniPaymentComponent): Fix memory leak + blocked screen on Paymen…
razvancapra Sep 18, 2024
882dc23
fix(GiniHealthSDK): Fix update of invoices after modifies on PaymentR…
razvancapra Sep 18, 2024
05db4c2
fix(GiniMerchantSDK): Fix PaymentReviewContainerConfiguration for loc…
razvancapra Sep 18, 2024
7aebba9
fix(GiniHealthSDKPinning): Update to minimum iOS 13
razvancapra Sep 18, 2024
61a3bcd
fix(GiniHealthSDK): Fix GiniHealthSDKPinningExampleApp
razvancapra Sep 18, 2024
aa3e4bf
fix(GiniHealthAPILibrary): Restore pinning tests
Sep 19, 2024
53d836c
fix(GiniHealthAPILibrary): Restore pinning tests
Sep 19, 2024
d2aa250
fix(GiniHealthAPILibrary): Revert changes
Sep 19, 2024
6357617
fix(GiniHealthSDK): Remove GiniHealthSDKPinningExample
razvancapra Sep 20, 2024
ec595e2
fix(GiniHealthSDK): Fix unused code + Fix dependencies
razvancapra Sep 20, 2024
3c65cf8
fix(GiniHealthSDK): Fix Sonar warnings
razvancapra Sep 20, 2024
6a3c28a
fix(GiniHealthAPILibrary): Do not test deleted scheme
Sep 20, 2024
790af9b
fix(GiniHealthSDK): Fix duplication of comment for string
razvancapra Sep 20, 2024
a972330
fix(GiniHealthSDK): Fix duplicated comment for string in answers and …
razvancapra Sep 20, 2024
d40e15f
fix(GiniHealthSDK): Fix build and clean tests
razvancapra Sep 20, 2024
bc0e022
feat(GiniInternalPayment): Rename GiniPaymentComponent to GiniInterna…
razvancapra Sep 22, 2024
36a95a5
fix(GiniHealthSDK) Fix scheme name, make it executable
Sep 22, 2024
2f902da
fix(GiniHealthAPILibrary) Fix scheme name
Sep 22, 2024
d7081ad
fix(GiniInternalPayment): Fix empty closure when submiting feedback
razvancapra Sep 23, 2024
88db5bf
fix(GiniInternalPayment): Reduce complexity of PaymentReviewViewContr…
razvancapra Sep 23, 2024
4ccb0aa
fix(GiniInternalPayment): Refactor nested switch in ZoomedImageView
razvancapra Sep 23, 2024
855010e
fix(GiniInternalPayment): Reduce complexity to validation in PaymentR…
razvancapra Sep 23, 2024
7a21b86
fix(GiniInternalPayment): Reduce complexity of amount field when edit…
razvancapra Sep 23, 2024
b30a491
fix(GiniMerchantSDK, GiniHealthSDK) remove duplicate test, restore ar…
Sep 23, 2024
9b73305
fix(GiniMerchantSDK, GiniHealthSDK) remove duplicate test, restore ar…
Sep 23, 2024
d574632
Merge branch 'main' into remove-pinning-rebased
Sep 23, 2024
98406a5
fix(GiniInternalPayment): Reduce switch case number of lines in Botto…
razvancapra Sep 23, 2024
ffb9cb2
fix(GiniInternalPayment): Extract the nested ternary operation into a…
razvancapra Sep 23, 2024
616c9ab
ci:(GiniHealthSDK) Test invalid token
Sep 23, 2024
a6be5bf
ci(GiniHealthSDK): Add test plan and environment variables
Sep 24, 2024
20dbcb5
ci(GiniHealthSDK): Test plan variable extension
Sep 24, 2024
430d447
fix(GiniHealthSDKExample): Add credentials into GiniSetupHelper initi…
zladzeyka Sep 24, 2024
cf76ad0
Merge pull request #651 from gini/remove-pinning-rebased
zladzeyka Sep 24, 2024
685402e
Merge branch 'Payment-Component' into IPC-328-baseSDK-in-HealthSDK
razvancapra Sep 24, 2024
819117b
fix(GiniHealthSDKExample): Fix integration tests
razvancapra Sep 24, 2024
555328e
fix(GiniHealthSDKExample) Update health-sdk.publish.example.apps.yml
razvancapra Sep 25, 2024
a7ea11b
fix(GiniHealthSDKExample): Fix build scheme to Debug
razvancapra Sep 25, 2024
a8d56e4
fix(GiniHealthSDK): Rename GiniInternalPayment into GiniInternalPayme…
razvancapra Sep 25, 2024
aee7596
fix(GiniInternalPaymentSDK): Fix package release
razvancapra Sep 25, 2024
e54d41f
fix(GinihealthSDKExample): Readd testable of GiniHealthSDKExampleTests
razvancapra Sep 25, 2024
916ccb5
fix(GiniHealthSDKExample): Add privacy link key to german version
razvancapra Sep 25, 2024
08af214
fix(GiniHealthSDKExample): Remove unnecessary import on InvoiceTableV…
razvancapra Sep 25, 2024
27799ef
Merge branch 'main' into IPC-328-baseSDK-in-HealthSDK
razvancapra Oct 4, 2024
3601738
Merge branch 'main' into IPC-328-baseSDK-in-HealthSDK
razvancapra Oct 4, 2024
1fb5d61
fix(GiniHealthSDK): Fix configurable flows
razvancapra Oct 7, 2024
adaa391
feat(GiniHealthSDK): Use HealthSDK without document + bottom sheet co…
razvancapra Oct 10, 2024
045f43a
fix(GiniHealthSDK): Fix tests for PaymentComponentsController
razvancapra Oct 10, 2024
0b059ea
Merge branch 'main' into IPC-328-baseSDK-in-HealthSDK
razvancapra Oct 14, 2024
3b767a4
fix(GiniHealthSDK): Fix merge conflicts and bring new features into B…
razvancapra Oct 14, 2024
240f455
Merge branch 'IPC-328-baseSDK-in-HealthSDK' into IPC-314-HealthSDK-Co…
razvancapra Oct 14, 2024
5ba836a
fix(GiniMerchantSDK): Fix merge conflicts
razvancapra Oct 14, 2024
c87748b
fix(GiniMechantSDK): Fix merge conflicts
razvancapra Oct 14, 2024
df4e9e8
Merge branch 'IPC-328-baseSDK-in-HealthSDK' into IPC-314-HealthSDK-Co…
razvancapra Oct 15, 2024
6477ff7
feat(GiniHealthSDK): Handle new entry points + remove old flows
razvancapra Oct 18, 2024
0674788
fix(GiniInternalPaymentSDK): Update contents.xcworkspacedata
razvancapra Oct 18, 2024
c8cb121
fix(GiniHealthSDK): Fix initialize of HealthSDK with alternative token
razvancapra Oct 18, 2024
b9a54ea
fix(GiniMerchantSDK, GiniHealthSDK): Fix small suggestions
razvancapra Oct 18, 2024
5ad177e
fix(GiniHealthSDKExample): Fix commented lines
razvancapra Oct 18, 2024
5c51bc8
Merge branch 'IPC-328-baseSDK-in-HealthSDK' into IPC-314-HealthSDK-Co…
razvancapra Oct 18, 2024
2b47650
Merge branch 'IPC-328-baseSDK-in-HealthSDK' into IPC-344-HealthSDK-Di…
razvancapra Oct 18, 2024
072a670
fix(GinihealthSDKExample): Fix flow for no show of PaymentReviewScreen
razvancapra Oct 18, 2024
6694c1b
fix(GinIHealthSDK): Fix opening of flows
razvancapra Oct 21, 2024
6ac88f0
fix(GiniHealthSDK): Bank picker in PaymentReviewScreen
razvancapra Oct 21, 2024
2aa565a
feat(GiniHealthSDK): Flow of bank picker in PaymentReviewScreen
razvancapra Oct 21, 2024
259f23e
feat(GinIHealthSDK): Update selected payment provider from PaymentRev…
razvancapra Oct 22, 2024
eff2bd5
feat(GiniHealthSDK): Fix use of SDK without document
razvancapra Oct 24, 2024
1589cf8
fix(GinihealthSDK): Fix use of document flow without reviewscreen + s…
razvancapra Oct 24, 2024
b98ef54
fix(GiniHealthSDK): Fix show of info when review screen is missing
razvancapra Oct 24, 2024
846da41
fix(GinIHealthSDK): Fix share invoice bottom sheet flow
razvancapra Oct 24, 2024
806b1c2
fix(GinIMerchantSDK): Fix share invoice bottom to updated protocol
razvancapra Oct 24, 2024
e4b49bc
fix(GiniHealtSDK): Fix open of more information screen from reviewscreen
razvancapra Oct 24, 2024
604a2ca
fix(GiniHealthSDKExample): Add Logger to GiniUtilities and use it in …
razvancapra Oct 24, 2024
ba1f095
fix(GiniHealthSDK): Fix GiniHealthSDKTests
razvancapra Oct 24, 2024
7919eab
fix(GiniHealthSDK): Fix customLocalization logic
razvancapra Oct 25, 2024
9261e4f
Merge branch 'IPC-328-baseSDK-in-HealthSDK' into IPC-314-HealthSDK-Co…
razvancapra Oct 25, 2024
89c3507
fix(GiniHealthSDK): Readd localization picker to debug menu
razvancapra Oct 25, 2024
5f6e99f
Merge branch 'IPC-314-HealthSDK-Configurability-review-screen' into I…
razvancapra Oct 25, 2024
a181ca9
fix(GiniHealthSDKExample): Fix present share PDF edgecase
razvancapra Oct 25, 2024
fc90e8c
fix(GiniBankSDKExampleBank): Remove committed credentials
razvancapra Oct 25, 2024
4fc2820
fix(GiniHealthSDK): Fix white spacing, wrong naming + missing transla…
razvancapra Oct 25, 2024
0feb273
fix(GiniHelathSDK): Revert documentation for UIImageNamedPreferred
razvancapra Oct 25, 2024
2f25636
Merge pull request #665 from gini/IPC-328-baseSDK-in-HealthSDK
zladzeyka Oct 25, 2024
dc1655e
Merge branch 'Payment-Component' into IPC-344-HealthSDK-Different-ent…
razvancapra Oct 28, 2024
538decb
Merge branch 'main' into Payment-Component
razvancapra Oct 28, 2024
1d62357
Merge branch 'Payment-Component' into IPC-344-HealthSDK-Different-ent…
razvancapra Oct 28, 2024
9acd8d6
feat(GiniHealthSDK): Provide method for trust markers + small fixes
razvancapra Oct 31, 2024
2816287
fix(GiniHealthSDK): Add documentation to public methods, protocols an…
razvancapra Oct 31, 2024
1feb0fe
Merge branch 'IPC-344-HealthSDK-Different-entry-points' into IPC-374-…
razvancapra Oct 31, 2024
a895522
fix(GinIHealthSDK): Add documentation for fetchBankLogos trust marker…
razvancapra Oct 31, 2024
3915069
feat(GiniHealthAPILibrary): Add feedback method with documentId
razvancapra Nov 5, 2024
eb3e915
IPC-347 - Handle paid adjusted status
razvancapra Nov 7, 2024
d5c1225
fix(GiniInternalPaymentSDK): Update PaymentReviewViewController comment
razvancapra Nov 7, 2024
e4737da
Merge branch 'IPC-344-HealthSDK-Different-entry-points' into IPC-374-…
razvancapra Nov 7, 2024
e84c5fb
fix(GiniHelathSDK): Fix maxShownProviders
razvancapra Nov 7, 2024
ed2ae61
fix(GiniHealthSDKExample): Fix constants in InvoiceTableViewCell
razvancapra Nov 7, 2024
3193de8
fix(GinIHealthSDK): Fix sorting of payment providers in one sort
razvancapra Nov 7, 2024
8a29364
Merge branch 'IPC-374-trust-markers-entry-point' into IPC-355-feedbac…
razvancapra Nov 7, 2024
8bcfb9c
Merge branch 'IPC-355-feedback-method-documentId' into IPC-347-handle…
razvancapra Nov 7, 2024
fdc5fb4
Merge branch 'main' into Payment-Component
razvancapra Nov 7, 2024
dfb16a1
fix(GiniHealthSDK): Fix flow invoice without document and without sel…
razvancapra Nov 8, 2024
6cd299c
Merge branch 'IPC-344-HealthSDK-Different-entry-points' into IPC-374-…
razvancapra Nov 8, 2024
b4bca13
Merge branch 'IPC-374-trust-markers-entry-point' into IPC-355-feedbac…
razvancapra Nov 8, 2024
d6cd48c
fix(GinIHealthSDK): Fix indentation
razvancapra Nov 8, 2024
a7c5b9d
Merge branch 'IPC-355-feedback-method-documentId' into IPC-347-handle…
razvancapra Nov 8, 2024
86c4463
fix(GinIBank): Revert to original returnBackToBusiness version
razvancapra Nov 8, 2024
5dae792
feat(GiniHealthSDK): Obtain payment request status
razvancapra Nov 8, 2024
a12159a
feat(GinIHealthSDK): Refactor for easy integration
razvancapra Nov 12, 2024
d5ae6af
fix(GiniHealthSDK): Fix tests
razvancapra Nov 12, 2024
859813e
fix(GiniMechantSDK): Fix errors on GiniMerchantSDK
razvancapra Nov 13, 2024
06e382f
Merge branch 'main' into Payment-Component
razvancapra Nov 13, 2024
8906fa7
fix(GinIHealthSDK): Remove loadPaymentProviders and clean code
razvancapra Nov 13, 2024
f84ca5d
Merge branch 'Payment-Component' into IPC-344-HealthSDK-Different-ent…
razvancapra Nov 14, 2024
48a3a50
Merge branch 'IPC-344-HealthSDK-Different-entry-points' into IPC-374-…
razvancapra Nov 14, 2024
b05a4c1
Merge branch 'IPC-374-trust-markers-entry-point' into IPC-355-feedbac…
razvancapra Nov 14, 2024
f44a436
Merge branch 'IPC-355-feedback-method-documentId' into IPC-347-handle…
razvancapra Nov 14, 2024
afecda0
Merge branch 'IPC-347-handle-paid-adjusted-status' into refactor-inte…
razvancapra Nov 14, 2024
bc9f0a2
fix(GiniHealthSDK): Remove BankSelection not neeeded storyboard + fix…
razvancapra Nov 14, 2024
c75dcc9
fix(GinIHealthSDK): Remove PaymentReview storyboard
razvancapra Nov 14, 2024
3e0dcca
fix(GiniHealthSDK): Remove BankSelectionTableViewCell xib
razvancapra Nov 14, 2024
bce7830
fix(GiniHealthAPILibrary): Try fix minimum version failing error
razvancapra Nov 14, 2024
a96c507
Revert "fix(GiniHealthAPILibrary): Try fix minimum version failing er…
razvancapra Nov 14, 2024
65a16f7
Merge branch 'main' into Payment-Component
razvancapra Nov 15, 2024
d3e74bf
fix(GinIHealthAPILIbrary): Update health api library checks
razvancapra Nov 15, 2024
7f9be14
Merge branch 'main' into Payment-Component
razvancapra Nov 15, 2024
d4b4b68
fix(GinIHealthSDK): Fix checks for healthSDK and healthAPILibrary
razvancapra Nov 15, 2024
1dab1d7
fix(GiniHealthSDK): Fix README.md
razvancapra Nov 15, 2024
e9915cf
fix(GinIHealthSDK): Hide close button configurability in PaymentRevie…
razvancapra Nov 15, 2024
584b01e
fix(GinihealthSDK): Remove event tracking for close button on payment…
razvancapra Nov 15, 2024
7690c82
fix(GinIHealthSDK): Fix health sdk check
razvancapra Nov 15, 2024
925019a
fix(GinIHealthSDK): Fix indentation and format of method
razvancapra Nov 18, 2024
65a26f9
Merge branch 'IPC-347-handle-paid-adjusted-status' into refactor-inte…
razvancapra Nov 18, 2024
67ddfbf
Merge pull request #704 from gini/IPC-344-HealthSDK-Different-entry-p…
razvancapra Nov 18, 2024
75fca20
Merge pull request #725 from gini/IPC-347-handle-paid-adjusted-status
razvancapra Nov 18, 2024
1a69a40
Merge pull request #724 from gini/IPC-355-feedback-method-documentId
razvancapra Nov 18, 2024
4563138
Merge pull request #719 from gini/IPC-374-trust-markers-entry-point
razvancapra Nov 18, 2024
f392cc6
fix(GiniHealthSDK): Fix more information link on payment providers bo…
razvancapra Nov 19, 2024
d354626
fix(GIniHealthSDK): Fix trust markers UI issue
razvancapra Nov 19, 2024
154f6dc
feat(GiniHealthSDK): New onboarding share bottom sheet
razvancapra Nov 20, 2024
0e31d11
fix(GiniHealthSDK): Remove empty lines in PaymentComponentsController
razvancapra Nov 20, 2024
bee9b1f
fix(GiniHealthSDK): Fix navigation flow
razvancapra Nov 20, 2024
150688d
fix(GiniBankSDKExampleBank): Fix iban error missing text
razvancapra Nov 20, 2024
265ac77
fix(GiniHealthSDK): Fix update of default bank selected
razvancapra Nov 20, 2024
73ddb0d
feat(GiniHealthSDK): Move start code from PaymentComponentsController…
razvancapra Nov 20, 2024
3d010f2
feat(GiniHealthSDK): Configurable review screen option should not be …
razvancapra Nov 21, 2024
eb7c110
Merge branch 'refactor-integration-health-sdk' into IPC-401-replace-s…
razvancapra Nov 21, 2024
f6f72ca
Merge branch 'IPC-401-replace-share-with-onboarding-screen' into IPC-…
razvancapra Nov 21, 2024
e831b93
fix(GiniHealthSDK): Fix missing lang
razvancapra Nov 21, 2024
8da6f35
fix(GiniHealthSDK): Fix typo
razvancapra Nov 21, 2024
4b3d639
Merge branch 'IPC-401-replace-share-with-onboarding-screen' into IPC-…
razvancapra Nov 21, 2024
73aa5ca
fix(GinIHealthSDK): Review integration and installion guide
razvancapra Nov 21, 2024
65ff19b
fix(GinIHealthSDK): Review testing documentation
razvancapra Nov 21, 2024
abefbe2
fix(GiniHealthSDK): Fix langs + Update Customization guide
razvancapra Nov 21, 2024
a60a61d
fix(GiniHealthSDK): Fix typos and suggestions from review
razvancapra Nov 21, 2024
76fd544
Merge branch 'IPC-401-replace-share-with-onboarding-screen' into IPC-…
razvancapra Nov 21, 2024
911fd4b
fix(GiniHealthSDK): Fix edge case for showing payment review screen a…
razvancapra Nov 21, 2024
f985fea
fix(GiniHealthSDK): Fix typo for share invoice description
razvancapra Nov 21, 2024
b4b905d
Merge pull request #737 from gini/IPC-401-replace-share-with-onboardi…
razvancapra Nov 21, 2024
fb6a02c
Merge branch 'main' into Payment-Component
razvancapra Nov 21, 2024
91ec698
fix(GiniHealthAPILibrary): Fix ApiResourceTests
razvancapra Nov 21, 2024
2436f54
fix(GiniHealthSDK): Fix check GiniHealthSDKExampleTests scheme
razvancapra Nov 22, 2024
4902e38
fix(GiniHealthSDK): Fix suggestion from PR review
razvancapra Nov 22, 2024
4872b86
Merge branch 'refactor-integration-health-sdk' into IPC-352-health-do…
razvancapra Nov 22, 2024
3e9f77a
fix(GiniHealthSDK): Fix health documentation typos and suggestions
razvancapra Nov 22, 2024
d75b3ad
fix(GiniHealthSDKExample): Fix dark mode navigation bar
razvancapra Nov 22, 2024
8a45376
fix(GiniInternalPaymentSDK): Fix background color of payment review c…
razvancapra Nov 22, 2024
7bea2ec
fix(GiniInternalPaymentSDK): Share QR Bottom sheet scrollable for sma…
razvancapra Nov 22, 2024
f58ac9a
fix(GiniInternalPaymentSDK): Fix disable only payButton in PaymentRev…
razvancapra Nov 22, 2024
e0376b8
fix(GiniHealthSDK): Fix failing tests by commenting createPaymentRequ…
razvancapra Nov 22, 2024
d038d2e
fix(GiniHealthSDK): Fix review suggestion
razvancapra Nov 22, 2024
a6272b5
Merge pull request #740 from gini/IPC-352-health-documentation-update
razvancapra Nov 22, 2024
07a4029
Merge pull request #727 from gini/refactor-integration-health-sdk
razvancapra Nov 22, 2024
637fdbc
fix(GiniHeatlhSDK): Fix GiniHealthSDKExampleTests scheme
razvancapra Nov 22, 2024
917a777
fix(GiniHealthSDKExample): Correct testplan
razvancapra Nov 22, 2024
ce06c05
fix(GiniHealthSDK): Fix XCTestPlan
razvancapra Nov 22, 2024
c903a92
fix(GiniHealthSDK): Fix target name in `health-sdk.check` gitaction flow
ValentinaIancu-Gini Nov 22, 2024
e5bd569
fix(GiniHealthSDK): Fix file path for CredentialsManger file in gith…
ValentinaIancu-Gini Nov 25, 2024
3c1ea36
fix(GiniUtilities): Create Package-release.swift
razvancapra Nov 25, 2024
6cfd158
fix(GiniHealthSDK): Fix setup of credentials for GiniHealthSDK for Ap…
ValentinaIancu-Gini Nov 25, 2024
91b8396
fix(GiniHealthSDK): Fix setup of credentials for GiniHealthSDK for Ap…
ValentinaIancu-Gini Nov 25, 2024
da6690e
ci(GiniHealthSDK): Add debug lines for setting the credentials into C…
ValentinaIancu-Gini Nov 25, 2024
57f1645
ci(GiniHealthSDK): Remove debug lines for setting the credentials int…
ValentinaIancu-Gini Nov 25, 2024
ef20330
fix(GiniHealthSDK): Fix CredentialsManager file content to match the …
ValentinaIancu-Gini Nov 25, 2024
1125a77
ci(GiniHealthSDK): Fix setup of credentials for GiniHealthSDK for App…
ValentinaIancu-Gini Nov 25, 2024
bb3de13
fix(GiniHealthAPILibrary): Fix document's number of pages
ValentinaIancu-Gini Nov 25, 2024
281e047
fix(GiniHealthSDK): Fix document's number of pages
ValentinaIancu-Gini Nov 25, 2024
9b70cb4
fix(GiniHealthSDKExample): Fix document's number of pages
ValentinaIancu-Gini Nov 25, 2024
09471a6
fix(GiniInternalPaymentSDK): Enable horizontal scrolling for UICollec…
ValentinaIancu-Gini Nov 25, 2024
ca85374
fix(GiniMerchantSDK): Fix mapping document after pageCount was added
razvancapra Nov 26, 2024
53fa168
Merge pull request #743 from gini/IPC-440-Import-document-not-uploadi…
ValentinaIancu-Gini Nov 26, 2024
dab4501
feat(GiniHealthAPILibrary): Bumps version 5.0.0
ValentinaIancu-Gini Nov 26, 2024
56d5443
feat(GiniUtilities): Bumps version 1.1.0
ValentinaIancu-Gini Nov 26, 2024
37ad461
feat(GiniInternalPaymentSDK): Bumps version 1.0.0
ValentinaIancu-Gini Nov 26, 2024
e242321
feat(GiniHealthSDK): Bumps version 5.0.0
ValentinaIancu-Gini Nov 26, 2024
6315f66
feat(GiniHealthAPILibrary): Add Package-release file
ValentinaIancu-Gini Nov 26, 2024
91e39f5
Merge branch 'main' into Payment-Component
ValentinaIancu-Gini Nov 26, 2024
9e1eb5a
fix(GiniInternalPaymentSDK): Remove unnecessary import
ValentinaIancu-Gini Nov 26, 2024
cd46cbe
feat(GiniInternalPaymentSDK): Bumps version 1.1.0
ValentinaIancu-Gini Nov 26, 2024
b8d53e4
feat(GiniHealthSDK): Update the version for GiniInternalPaymentsSDK t…
ValentinaIancu-Gini Nov 26, 2024
bb5a158
fix(GiniHealthSDK): Revert update the version for GiniInternalPaymen…
ValentinaIancu-Gini Nov 26, 2024
4bce891
fix(GiniInternalPaymentSDK): Revert bump version to 1.0.0
ValentinaIancu-Gini Nov 26, 2024
84ee511
ci: Update Fastlane file
ValentinaIancu-Gini Nov 26, 2024
13ea076
ci: Revert update Fastlane file
ValentinaIancu-Gini Nov 26, 2024
b8c5498
Merge branch 'main' into Payment-Component
ValentinaIancu-Gini Nov 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions GiniComponents/GiniPaymentComponents/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
32 changes: 32 additions & 0 deletions GiniComponents/GiniPaymentComponents/Package.swift
razvancapra marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version: 5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "GiniPaymentComponents",
defaultLocalization: "en",
platforms: [.iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "GiniPaymentComponents",
targets: ["GiniPaymentComponents"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "GiniHealthAPILibrary", path: "../../HealthAPILibrary/GiniHealthAPILibrary"),
.package(name: "GiniUtilites", path: "../../GiniComponents/GiniUtilites")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "GiniPaymentComponents",
dependencies: ["GiniHealthAPILibrary", "GiniUtilites"]),
.testTarget(
name: "GiniPaymentComponentsTests",
dependencies: ["GiniPaymentComponents"]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ private extension BankSelectionTableViewCell {
bankImageView.layer.borderColor = cellViewModel.bankIconBorderColor.cgColor

bankNameLabel.text = cellViewModel.bankName
bankNameLabel.font = cellViewModel.bankNameLabelFont
bankNameLabel.textColor = cellViewModel.bankNameLabelAccentColor
bankNameLabel.font = cellViewModel.bankNameFont
bankNameLabel.textColor = cellViewModel.bankNameAccentColor

cellView.backgroundColor = cellViewModel.backgroundColor
cellView.layer.borderWidth = isSelected ? Constants.selectedBorderWidth : Constants.notSelectedBorderWidth
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//
// BankSelectionTableViewCellModel.swift
// GiniMerchantSDK
//
// Copyright © 2024 Gini GmbH. All rights reserved.
//


import UIKit
import GiniUtilites
import GiniHealthAPILibrary

final class BankSelectionTableViewCellModel {

private var isSelected: Bool = false

var shouldShowSelectionIcon: Bool {
isSelected
}

let bankName: String
let backgroundColor: UIColor
let bankIconBorderColor: UIColor
let bankNameFont: UIFont
let bankNameAccentColor: UIColor
let selectedBankBorderColor: UIColor
let notSelectedBankBorderColor: UIColor
let selectionIndicatorImage: UIImage

private var bankImageIconData: Data?
var bankImageIcon: UIImage {
if let bankImageIconData {
return UIImage(data: bankImageIconData) ?? UIImage()
}
return UIImage()
}

init(paymentProvider: PaymentProviderAdditionalInfo,
razvancapra marked this conversation as resolved.
Show resolved Hide resolved
backgroundColor: UIColor,
bankNameFont: UIFont,
bankNameAccentColor: UIColor,
bankIconBorderColor: UIColor,
selectedBankBorderColor: UIColor,
notSelectedBankBorderColor: UIColor,
selectionIndicatorImage: UIImage) {
self.isSelected = paymentProvider.isSelected
self.bankImageIconData = paymentProvider.paymentProvider.iconData
self.bankName = paymentProvider.paymentProvider.name
self.bankNameFont = bankNameFont
self.backgroundColor = backgroundColor
self.bankNameAccentColor = bankNameAccentColor
self.bankIconBorderColor = bankIconBorderColor
self.selectedBankBorderColor = selectedBankBorderColor
self.notSelectedBankBorderColor = notSelectedBankBorderColor
self.selectionIndicatorImage = selectionIndicatorImage
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
//
// BanksBottomConfiguration.swift
//
// Copyright © 2024 Gini GmbH. All rights reserved.
//

import UIKit

public struct BanksBottomConfiguration {
razvancapra marked this conversation as resolved.
Show resolved Hide resolved
let descriptionAccentColor: UIColor
let descriptionFont: UIFont
let selectBankAccentColor: UIColor
let selectBankFont: UIFont
let closeTitleIcon: UIImage
let closeIconAccentColor: UIColor

let bankCellBackgroundColor: UIColor
let bankCellIconBorderColor: UIColor
let bankCellNameFont: UIFont
let bankCellNameAccentColor: UIColor
let bankCellSelectedBorderColor: UIColor
let bankCellNotSelectedBorderColor: UIColor
let bankCellSelectionIndicatorImage: UIImage

public init(descriptionAccentColor: UIColor,
descriptionFont: UIFont,
selectBankAccentColor: UIColor,
selectBankFont: UIFont,
closeTitleIcon: UIImage,
closeIconAccentColor: UIColor,
bankCellBackgroundColor: UIColor,
bankCellIconBorderColor: UIColor,
bankCellNameFont: UIFont,
bankCellNameAccentColor: UIColor,
bankCellSelectedBorderColor: UIColor,
bankCellNotSelectedBorderColor: UIColor,
bankCellSelectionIndicatorImage: UIImage) {
self.descriptionAccentColor = descriptionAccentColor
self.descriptionFont = descriptionFont
self.selectBankAccentColor = selectBankAccentColor
self.selectBankFont = selectBankFont
self.closeTitleIcon = closeTitleIcon
self.closeIconAccentColor = closeIconAccentColor
self.bankCellBackgroundColor = bankCellBackgroundColor
self.bankCellIconBorderColor = bankCellIconBorderColor
self.bankCellNameFont = bankCellNameFont
self.bankCellNameAccentColor = bankCellNameAccentColor
self.bankCellSelectedBorderColor = bankCellSelectedBorderColor
self.bankCellNotSelectedBorderColor = bankCellNotSelectedBorderColor
self.bankCellSelectionIndicatorImage = bankCellSelectionIndicatorImage
}
}

public struct BanksBottomStrings {
let selectBankTitleText: String
let descriptionText: String

public init(selectBankTitleText: String, descriptionText: String) {
self.selectBankTitleText = selectBankTitleText
self.descriptionText = descriptionText
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
// Copyright © 2024 Gini GmbH. All rights reserved.
//


import UIKit
import GiniUtilites

class BanksBottomView: BottomSheetViewController {
public final class BanksBottomView: BottomSheetViewController {

var viewModel: BanksBottomViewModel

Expand All @@ -24,18 +23,18 @@ class BanksBottomView: BottomSheetViewController {
private lazy var titleLabel: UILabel = {
let label = UILabel()
label.translatesAutoresizingMaskIntoConstraints = false
label.text = viewModel.selectBankTitleText
label.textColor = viewModel.selectBankLabelAccentColor
label.font = viewModel.selectBankLabelFont
label.text = viewModel.strings.selectBankTitleText
label.textColor = viewModel.configuration.selectBankAccentColor
label.font = viewModel.configuration.selectBankFont
label.numberOfLines = 1
label.lineBreakMode = .byTruncatingTail
return label
}()

private lazy var closeTitleIconImageView: UIImageView = {
let imageView = UIImageView(image: viewModel.closeTitleIcon.withRenderingMode(.alwaysTemplate))
let imageView = UIImageView(image: viewModel.configuration.closeTitleIcon.withRenderingMode(.alwaysTemplate))
imageView.translatesAutoresizingMaskIntoConstraints = false
imageView.tintColor = viewModel.closeIconAccentColor
imageView.tintColor = viewModel.configuration.closeIconAccentColor
imageView.isUserInteractionEnabled = true
imageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(tapOnCloseIcon)))
imageView.isHidden = true
Expand All @@ -47,9 +46,9 @@ class BanksBottomView: BottomSheetViewController {
private lazy var descriptionLabel: UILabel = {
let label = UILabel()
label.translatesAutoresizingMaskIntoConstraints = false
label.text = viewModel.descriptionText
label.textColor = viewModel.descriptionLabelAccentColor
label.font = viewModel.descriptionLabelFont
label.text = viewModel.strings.descriptionText
label.textColor = viewModel.configuration.descriptionAccentColor
label.font = viewModel.configuration.descriptionFont
label.numberOfLines = 0
return label
}()
Expand All @@ -76,27 +75,23 @@ class BanksBottomView: BottomSheetViewController {
private let bottomStackView = EmptyStackView(orientation: .horizontal)

private lazy var moreInformationView: MoreInformationView = {
let view = MoreInformationView()
let viewModel = MoreInformationViewModel()
let viewModel = viewModel.moreInformationViewModel
viewModel.delegate = self
view.viewModel = viewModel
return view
return MoreInformationView(viewModel: viewModel)
}()

private lazy var poweredByGiniView: PoweredByGiniView = {
let view = PoweredByGiniView()
view.viewModel = PoweredByGiniViewModel()
return view
PoweredByGiniView(viewModel: viewModel.poweredByGiniViewModel)
}()

override func viewDidLoad() {
public override func viewDidLoad() {
super.viewDidLoad()
setupView()
}

init(viewModel: BanksBottomViewModel) {
public init(viewModel: BanksBottomViewModel, bottomSheetConfiguration: BottomSheetConfiguration) {
self.viewModel = viewModel
super.init(nibName: nil, bundle: nil)
super.init(configuration: bottomSheetConfiguration)
}

required init?(coder: NSCoder) {
Expand Down Expand Up @@ -200,28 +195,28 @@ extension BanksBottomView {
}

extension BanksBottomView: MoreInformationViewProtocol {
func didTapOnMoreInformation() {
public func didTapOnMoreInformation() {
viewModel.didTapOnMoreInformation()
}
}

extension BanksBottomView: UITableViewDataSource, UITableViewDelegate {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
viewModel.paymentProviders.count
}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell: BankSelectionTableViewCell = tableView.dequeueReusableCell(for: indexPath)
let invoiceTableViewCellModel = viewModel.paymentProvidersViewModel(paymentProvider: viewModel.paymentProviders[indexPath.row])
cell.cellViewModel = invoiceTableViewCellModel
return cell
}

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
viewModel.rowHeight
}

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
viewModel.viewDelegate?.didSelectPaymentProvider(paymentProvider: viewModel.paymentProviders[indexPath.row].paymentProvider)
}
}
Loading