Daniel Arantes Loverde 6b397db494 feat(cards): implement full saved card management and transparent checkout
- ApiCardModels.swift: SavedCard, SaveCardPayload, CreditCardOrderPayload, etc.
- ApiOrderModels.swift: add savedCardId, clientCpfCnpj, creditCard, creditCardHolderInfo to CreateOrderPayload; Codable for item/addon payloads
- ApiService.swift: listCards, saveCard, updateCard, deleteCard, updateProfileCpf
- AppState.ProfileState: add cpf field
- CheckoutView: CardSelectionSheet (list saved cards + add new), rewrite PaymentCardView (submits order with card data), CardPaymentContext carries full order data
- CheckoutView+Logic: buildCreateOrderPayload accepts card params, new loadSavedCards/confirmOrderWithSavedCard/handleOrderResponse helpers, redirect credit card confirm to CardSelectionSheet
- OrdersView: CREDIT_CARD pending orders go to tracking (not card form, since card is now submitted with order)
- UserProfileView: CPF field with mask, save via PATCH /api/customer/profile
2026-06-03 17:32:30 -03:00
2026-06-03 14:52:27 -03:00
2026-06-03 14:52:27 -03:00
2026-02-24 10:19:47 -03:00
2026-06-03 14:52:27 -03:00
2026-06-03 14:52:27 -03:00
2026-06-03 14:52:27 -03:00
2026-06-03 14:52:27 -03:00
2026-03-26 08:26:58 -03:00
2026-04-16 14:50:07 -03:00
2026-06-03 14:52:27 -03:00
2026-06-03 14:52:27 -03:00
Description
Swift and SwiftUI algorithms helpers
31 MiB
v2.1.0 Latest
2026-09-16 13:32:23 -03:00
Languages
Swift 93.7%
C++ 6.3%