Merged
Conversation
philiplambok-mekari
approved these changes
Oct 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SplitRule API Support
🎯 Overview
This PR adds comprehensive support for Xendit's Split Rule API functionality to the
xendit_apigem, enabling developers to create and manage payment split rules programmatically.📝 Changes Made
✨ New Features
📁 Files Added
lib/xendit_api/api/split_rule.rb- Split Rule API client implementationlib/xendit_api/model/split_rule.rb- Split Rule model classspec/xendit_api/api/split_rule_spec.rb- Comprehensive API tests (7 test cases)spec/xendit_api/model/split_rule_spec.rb- Comprehensive model tests (13 test cases)🔧 Files Modified
lib/xendit_api/client.rb- Added Split Rule API integration and client method🚀 API Features
Split Rule API (
XenditApi::Api::SplitRule)create(params): Create new split rules with routing configurations/split_rules)Path-Groupheader handlingSplit Rule Model (
XenditApi::Model::SplitRule)id,name,description,created,updated,routes🧪 Testing Coverage
Test Coverage Details
API Tests:
Path-Group)Model Tests:
🔍 Technical Implementation
Architecture
XenditApi::Api::Basefor consistent API client behaviorXenditApi::Model::Basefor consistent model behaviorError Handling
Data Handling
✅ Quality Assurance
🎯 Impact
📋 Checklist
Related Ticket: KRED-2900
API Documentation: Xendit Split Rule API