Skip to content

KRED-2534 Add get merchant#19

Merged
syauqimekari merged 3 commits intomasterfrom
KRED-2534
Aug 7, 2025
Merged

KRED-2534 Add get merchant#19
syauqimekari merged 3 commits intomasterfrom
KRED-2534

Conversation

@syauqimekari
Copy link
Contributor

No description provided.

Copy link
Contributor

@TjandraD TjandraD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

return [] unless merchants

merchants.map do |merchant_data|
MerchantItem.new(merchant_data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmn, ini modelnya gak inheret dri model base? kalo ada penambahan attribute di API response ada kemungkinan bakal error ini @syauqimekari, bisa coba tambahin test case ini gak?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oke bang

end

# Inner class to represent individual merchant items
class MerchantItem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kalo ini dibuat file baru aja gimana? gk perlu di define di model dalem class get, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oke bang

class Get < MidtransApi::Model::Base
resource_attributes :merchants

def resolve_params_attr(attr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini buat apa ya ki?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini udah standard dari base modelnya bang untuk parsenya

@syauqimekari syauqimekari merged commit 77fe5e4 into master Aug 7, 2025
2 checks passed
@syauqimekari syauqimekari deleted the KRED-2534 branch August 7, 2025 02:53
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.

3 participants