Skip to content

Commit a06e8cc

Browse files
committed
Merge branch 'main' of github.com:komoju/komoju-ruby-sdk into ce-474-add-ci
2 parents da19eb1 + e726b53 commit a06e8cc

826 files changed

Lines changed: 146651 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
*.gem
2+
*.rbc
3+
4+
# Build artifacts
5+
/coverage/
6+
/InstalledFiles
7+
/pkg/
8+
/spec/reports/
9+
/spec/examples.txt
10+
/tmp/
11+
12+
# Bundler
13+
/.bundle/
14+
/vendor/bundle
15+
/lib/bundler/man/
16+
17+
# Library convention: don't commit Gemfile.lock
18+
Gemfile.lock
19+
.rvmrc
20+
21+
# Docs cache
22+
/.yardoc/
23+
/_yardoc/
24+
/doc/
25+
/rdoc/
26+
27+
# IDE / OS
28+
.DS_Store
29+
Thumbs.db
30+
.idea/
31+
.vscode/
32+
*.swp
33+
*.swo
34+
35+
# Secret keys and env vars
36+
.env
37+
.env.*
38+
39+
# openapi-generator artifacts not needed in this repo
40+
git_push.sh
41+
.gitlab-ci.yml
42+
.travis.yml

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
## [1.0.0.beta.1] - 2026-05-25
6+
7+
Targets KOMOJU API version `2025-01-28`.
8+
9+
### Changed
10+
11+
- [`GET payments` endpoint] The response object for partially captured payments has been updated.
12+
13+
- **Return value changes**:
14+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
15+
- `refunds`: partially captured payments no longer show a refund for the difference between the authorized amount and captured amount.
16+
17+
- [`POST payments` endpoint] The response object for partially captured payments has been updated.
18+
19+
- **Return value changes**:
20+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
21+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
22+
23+
- [`GET payments/:id` endpoint] The response object for a partially captured payment has been updated.
24+
25+
- **Return value changes**:
26+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
27+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
28+
29+
- [`PATCH payments/:id` endpoint] The response object for a partially captured payment has been updated.
30+
31+
- **Return value changes**:
32+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
33+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
34+
35+
- [`POST payments/:id/capture` endpoint] The response object for a partially captured payment has been updated.
36+
37+
- **Return value changes**:
38+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
39+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
40+
41+
- [`POST payments/:id/refund` endpoint] The response object for a partially captured payment has been updated.
42+
43+
- **Return value changes**:
44+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
45+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
46+
47+
- [`POST payments/:id/cancel` endpoint] The response object for a partially captured payment has been updated.
48+
49+
- **Return value changes**:
50+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
51+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
52+
53+
- [`POST payments/:id/finalize` endpoint] The response object for a partially captured payment has been updated.
54+
55+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
56+
- `refunds`: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
57+
58+
- [`GET merchants/{merchant_id}/payments` endpoint] The response object for a partially captured payment has been updated.
59+
60+
- **Return value changes**:
61+
- `amount_refunded`: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.
62+
- `refunds`: partially captured payments no longer show a refund for the difference between the authorized amount and captured amount.
63+
64+
- [`GET balances/:id` endpoint] Transformed the response to a nested (2D) structure to match the Merchant dashboard's Payout Balance page.
65+
66+
- **Renamed keys**: `balance_total` is now `total_balance_cents`.
67+
- **Removed keys**: `payment_fee_total`, `tax_total`.
68+
- **Structural changes**: Added new `payments`, `refunds`, `platform_model`, `corrections`, `komoju_card_charges` and `misc` sections.
69+
70+
- [`GET settlements` endpoint] Renamed one key name, added a number of new keys, and made changes to several returned values.
71+
72+
- **Renamed keys**: `amount` is now `settlement_amount_cents`.
73+
- **Return value changes**: `status`: "automatic_pending" is now returned as "pending".
74+
75+
- [`GET settlements/:id` endpoint] Renamed two key names, added a number of new keys, made changes to several returned values, and transformed the response to a nested (2D) structure.
76+
77+
- **Renamed keys**: `amount` is now `settlement_amount_cents`.
78+
- **Removed keys**: `payment_total`, `payment_fee_total`, `refund_total`, `refund_fee_total`, `refunded_customer_fee_total`, `correction_total`, `tax_total`, `balance_amount`.

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
4+
5+
group :development, :test do
6+
gem 'rake', '~> 13.0.1'
7+
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
9+
end

0 commit comments

Comments
 (0)