File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -389,35 +389,6 @@ try {
389389
390390---
391391
392- ## 🏗️ Migration from Old API
393-
394- ### Before (number-based)
395- ` ` ` typescript
396- // Old approach with magic numbers
397- const result = await doPayment({
398- amount: 2500 ,
399- type: 1 , // What does 1 mean?
400- installmentType: 3 , // What does 3 mean?
401- installments: 1
402- });
403- ```
404-
405- ### After (enum-based)
406- ``` typescript
407- // New approach with type-safe enums
408- const result = await doPayment ({
409- amount: 2500 ,
410- type: PaymentType .CREDIT , // Clear and type-safe
411- installmentType: InstallmentType .BUYER_INSTALLMENT , // Self-documenting
412- installments: 1
413- });
414-
415- // Or use presets for common scenarios
416- const result = await doPayment (PaymentPresets .creditCard (2500 , 1 ));
417- ```
418-
419- ---
420-
421392## 🤝 Contributing
422393
423394` ` ` bash
You can’t perform that action at this time.
0 commit comments