Skip to content

Conversation

@MrChampz
Copy link

@MrChampz MrChampz commented Jul 23, 2025

This PR 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.

helderhp and others added 26 commits March 19, 2024 10:29
Adiciona os arquivos de exemplos para os campos da API Konduto
Adiciona alguns campos faltantes mas classes:
  * konduto_address
  * konduto_customer
  * konduto_item
  * konduto_payment
  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.
@MrChampz MrChampz changed the title Feat/new shipping address feat: Add new fields and improve JSON deserialization Jul 23, 2025
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