Skip to content

Conversation

@helderhp
Copy link

@helderhp helderhp commented Mar 6, 2023

Atualiza a gem Konduto com os novos campos da API Konduto

  • Agent
  • lat/lon no address
  • analysis layer
  • Hotel
  • Event
  • Pix
  • External Device
  • Options
  • Point of sales
  • tenant

Adiciona o rubocop

Adiciona uma pipeline para execução de lint e tests

MrChampz added 4 commits July 22, 2025 09:59
  This commit introduces several new optional fields across different models to enhance the data sent to the Konduto API. It
  also improves the flexibility of JSON deserialization.

   - Adds the following fields:
       - Order: recurring, risk_level, sales_channel, scheduled, origin_account, destination_accounts, tenant, point_of_sale,
         agent
       - Customer: document_type
       - Payment: tax_id, cvv_result, avs_result, sha1, name, holder
       - Shipping Address: estimated_date, value
   - Creates a new KondutoShippingAddress model to encapsulate shipping-specific attributes.
   - Implements a utility to convert camelCase and PascalCase JSON keys to snake_case, allowing for more robust mapping to Ruby
     model attributes.
   - Updates the README.md to document all the new fields.
   - Adds corresponding tests for the new model and utility functions.
This commit introduces new attributes to the shopping cart item:
- `delivery_type`
- `delivery_sla_in_minutes`
- `seller_id`

The `image` attribute has been removed from the shopping cart item.

The `README.md` file has been updated to reflect these changes and to adjust the requirement level of several other fields, changing them from optional to recommended.

Tests and factories have been updated to align with these changes.
- Updates the README file with new fields and corrects table formatting.
- Renames `kondutor_order.rb` to `konduto_order.rb`.
- Renames `point_of_sale.rb` to `konduto_point_of_sale.rb`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants