Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refs/heads/release/0.3.3 #51

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pokepay_partner_ruby_sdk (0.3.2)
pokepay_partner_ruby_sdk (0.3.3)
inifile (~> 3.0.0)
json (~> 2.3.0)
openssl (>= 2.1.2)
Expand Down
1,602 changes: 1,291 additions & 311 deletions docs/index.md

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions lib/pokepay_partner_ruby_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
require "pokepay_partner_ruby_sdk/request/create_bill"
require "pokepay_partner_ruby_sdk/request/update_bill"
require "pokepay_partner_ruby_sdk/request/create_check"
require "pokepay_partner_ruby_sdk/request/list_checks"
require "pokepay_partner_ruby_sdk/request/get_check"
require "pokepay_partner_ruby_sdk/request/update_check"
require "pokepay_partner_ruby_sdk/request/get_cpm_token"
require "pokepay_partner_ruby_sdk/request/list_transactions"
require "pokepay_partner_ruby_sdk/request/create_transaction"
Expand All @@ -42,6 +45,7 @@
require "pokepay_partner_ruby_sdk/request/refund_external_transaction"
require "pokepay_partner_ruby_sdk/request/list_transfers"
require "pokepay_partner_ruby_sdk/request/list_transfers_v2"
require "pokepay_partner_ruby_sdk/request/list_organizations"
require "pokepay_partner_ruby_sdk/request/create_organization"
require "pokepay_partner_ruby_sdk/request/list_shops"
require "pokepay_partner_ruby_sdk/request/create_shop"
Expand All @@ -66,8 +70,17 @@
require "pokepay_partner_ruby_sdk/request/create_webhook"
require "pokepay_partner_ruby_sdk/request/list_webhooks"
require "pokepay_partner_ruby_sdk/request/update_webhook"
require "pokepay_partner_ruby_sdk/request/delete_webhook"
require "pokepay_partner_ruby_sdk/request/create_user_device"
require "pokepay_partner_ruby_sdk/request/get_user_device"
require "pokepay_partner_ruby_sdk/request/activate_user_device"
require "pokepay_partner_ruby_sdk/request/create_bank"
require "pokepay_partner_ruby_sdk/request/list_banks"
require "pokepay_partner_ruby_sdk/request/create_bank_topup_transaction"
require "pokepay_partner_ruby_sdk/request/list_coupons"
require "pokepay_partner_ruby_sdk/request/create_coupon"
require "pokepay_partner_ruby_sdk/request/get_coupon"
require "pokepay_partner_ruby_sdk/request/update_coupon"
require "pokepay_partner_ruby_sdk/response/pong"
require "pokepay_partner_ruby_sdk/response/echo"
require "pokepay_partner_ruby_sdk/response/pagination"
Expand All @@ -80,6 +93,7 @@
require "pokepay_partner_ruby_sdk/response/account_balance"
require "pokepay_partner_ruby_sdk/response/bill"
require "pokepay_partner_ruby_sdk/response/check"
require "pokepay_partner_ruby_sdk/response/paginated_checks"
require "pokepay_partner_ruby_sdk/response/cpm_token"
require "pokepay_partner_ruby_sdk/response/cashtray"
require "pokepay_partner_ruby_sdk/response/cashtray_with_result"
Expand All @@ -97,12 +111,17 @@
require "pokepay_partner_ruby_sdk/response/account_without_private_money_detail"
require "pokepay_partner_ruby_sdk/response/transfer"
require "pokepay_partner_ruby_sdk/response/external_transaction"
require "pokepay_partner_ruby_sdk/response/external_transaction_detail"
require "pokepay_partner_ruby_sdk/response/product"
require "pokepay_partner_ruby_sdk/response/organization_summary"
require "pokepay_partner_ruby_sdk/response/private_money_organization_summary"
require "pokepay_partner_ruby_sdk/response/paginated_private_money_organization_summaries"
require "pokepay_partner_ruby_sdk/response/private_money_summary"
require "pokepay_partner_ruby_sdk/response/user_stats_operation"
require "pokepay_partner_ruby_sdk/response/user_device"
require "pokepay_partner_ruby_sdk/response/bank_registering_info"
require "pokepay_partner_ruby_sdk/response/bank"
require "pokepay_partner_ruby_sdk/response/banks"
require "pokepay_partner_ruby_sdk/response/paginated_transaction"
require "pokepay_partner_ruby_sdk/response/paginated_transaction_v2"
require "pokepay_partner_ruby_sdk/response/paginated_transfers"
Expand All @@ -123,6 +142,7 @@
require "pokepay_partner_ruby_sdk/response/coupon"
require "pokepay_partner_ruby_sdk/response/coupon_detail"
require "pokepay_partner_ruby_sdk/response/paginated_coupons"
require "pokepay_partner_ruby_sdk/response/paginated_organizations"
require "pokepay_partner_ruby_sdk/response/bad_request"
require "pokepay_partner_ruby_sdk/response/partner_client_not_found"
require "pokepay_partner_ruby_sdk/response/partner_decryption_failed"
Expand Down
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/activate_user_device.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/user_device"

module Pokepay::Request
class ActivateUserDevice < Request
def initialize(user_device_id)
@path = "/user-devices" + "/" + user_device_id + "/activate"
@method = "POST"
@body_params = { }
@response_class = Pokepay::Response::UserDevice
end
attr_reader :response_class
end
end
17 changes: 17 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/create_bank.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/bank_registering_info"

module Pokepay::Request
class CreateBank < Request
def initialize(user_device_id, private_money_id, callback_url, kana, rest_args = {})
@path = "/user-devices" + "/" + user_device_id + "/banks"
@method = "POST"
@body_params = { "private_money_id" => private_money_id,
"callback_url" => callback_url,
"kana" => kana }.merge(rest_args)
@response_class = Pokepay::Response::BankRegisteringInfo
end
attr_reader :response_class
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/transaction_detail"

module Pokepay::Request
class CreateBankTopupTransaction < Request
def initialize(user_device_id, private_money_id, amount, bank_id, request_id)
@path = "/user-devices" + "/" + user_device_id + "/banks" + "/topup"
@method = "POST"
@body_params = { "private_money_id" => private_money_id,
"amount" => amount,
"bank_id" => bank_id,
"request_id" => request_id }
@response_class = Pokepay::Response::TransactionDetail
end
attr_reader :response_class
end
end
19 changes: 19 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/create_coupon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/coupon_detail"

module Pokepay::Request
class CreateCoupon < Request
def initialize(private_money_id, name, starts_at, ends_at, issued_shop_id, rest_args = {})
@path = "/coupons"
@method = "POST"
@body_params = { "private_money_id" => private_money_id,
"name" => name,
"starts_at" => starts_at,
"ends_at" => ends_at,
"issued_shop_id" => issued_shop_id }.merge(rest_args)
@response_class = Pokepay::Response::CouponDetail
end
attr_reader :response_class
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/external_transaction"
require "pokepay_partner_ruby_sdk/response/external_transaction_detail"

module Pokepay::Request
class CreateExternalTransaction < Request
Expand All @@ -11,7 +11,7 @@ def initialize(shop_id, customer_id, private_money_id, amount, rest_args = {})
"customer_id" => customer_id,
"private_money_id" => private_money_id,
"amount" => amount }.merge(rest_args)
@response_class = Pokepay::Response::ExternalTransaction
@response_class = Pokepay::Response::ExternalTransactionDetail
end
attr_reader :response_class
end
Expand Down
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/create_user_device.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/user_device"

module Pokepay::Request
class CreateUserDevice < Request
def initialize(user_id, rest_args = {})
@path = "/user-devices"
@method = "POST"
@body_params = { "user_id" => user_id }.merge(rest_args)
@response_class = Pokepay::Response::UserDevice
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/delete_webhook.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/organization_worker_task_webhook"

module Pokepay::Request
class DeleteWebhook < Request
def initialize(webhook_id)
@path = "/webhooks" + "/" + webhook_id
@method = "DELETE"
@body_params = { }
@response_class = Pokepay::Response::OrganizationWorkerTaskWebhook
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/get_check.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/check"

module Pokepay::Request
class GetCheck < Request
def initialize(check_id)
@path = "/checks" + "/" + check_id
@method = "GET"
@body_params = { }
@response_class = Pokepay::Response::Check
end
attr_reader :response_class
end
end
2 changes: 1 addition & 1 deletion lib/pokepay_partner_ruby_sdk/request/get_coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Pokepay::Request
class GetCoupon < Request
def initialize(coupon_id)
@path = "/coupons" + "/" + coupon-id
@path = "/coupons" + "/" + coupon_id
@method = "GET"
@body_params = { }
@response_class = Pokepay::Response::CouponDetail
Expand Down
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/get_user_device.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/user_device"

module Pokepay::Request
class GetUserDevice < Request
def initialize(user_device_id)
@path = "/user-devices" + "/" + user_device_id
@method = "GET"
@body_params = { }
@response_class = Pokepay::Response::UserDevice
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/list_banks.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/banks"

module Pokepay::Request
class ListBanks < Request
def initialize(user_device_id, rest_args = {})
@path = "/user-devices" + "/" + user_device_id + "/banks"
@method = "GET"
@body_params = { }.merge(rest_args)
@response_class = Pokepay::Response::Banks
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/list_checks.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/paginated_checks"

module Pokepay::Request
class ListChecks < Request
def initialize(rest_args = {})
@path = "/checks"
@method = "GET"
@body_params = { }.merge(rest_args)
@response_class = Pokepay::Response::PaginatedChecks
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/list_organizations.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/paginated_organizations"

module Pokepay::Request
class ListOrganizations < Request
def initialize(private_money_id, rest_args = {})
@path = "/organizations"
@method = "GET"
@body_params = { "private_money_id" => private_money_id }.merge(rest_args)
@response_class = Pokepay::Response::PaginatedOrganizations
end
attr_reader :response_class
end
end
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/external_transaction"
require "pokepay_partner_ruby_sdk/response/external_transaction_detail"

module Pokepay::Request
class RefundExternalTransaction < Request
def initialize(event_id, rest_args = {})
@path = "/external-transactions" + "/" + event_id + "/refund"
@method = "POST"
@body_params = { }.merge(rest_args)
@response_class = Pokepay::Response::ExternalTransaction
@response_class = Pokepay::Response::ExternalTransactionDetail
end
attr_reader :response_class
end
Expand Down
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/update_check.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/check"

module Pokepay::Request
class UpdateCheck < Request
def initialize(check_id, rest_args = {})
@path = "/checks" + "/" + check_id
@method = "PATCH"
@body_params = { }.merge(rest_args)
@response_class = Pokepay::Response::Check
end
attr_reader :response_class
end
end
15 changes: 15 additions & 0 deletions lib/pokepay_partner_ruby_sdk/request/update_coupon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/coupon_detail"

module Pokepay::Request
class UpdateCoupon < Request
def initialize(coupon_id, rest_args = {})
@path = "/coupons" + "/" + coupon_id
@method = "PATCH"
@body_params = { }.merge(rest_args)
@response_class = Pokepay::Response::CouponDetail
end
attr_reader :response_class
end
end
28 changes: 28 additions & 0 deletions lib/pokepay_partner_ruby_sdk/response/bank.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/private_money"

module Pokepay::Response
class Bank
def initialize(row)
@id = row["id"]
@private_money = PrivateMoney.new(row["private_money"])
@bank_name = row["bank_name"]
@bank_code = row["bank_code"]
@branch_number = row["branch_number"]
@branch_name = row["branch_name"]
@deposit_type = row["deposit_type"]
@masked_account_number = row["masked_account_number"]
@account_name = row["account_name"]
end
attr_reader :id
attr_reader :private_money
attr_reader :bank_name
attr_reader :bank_code
attr_reader :branch_number
attr_reader :branch_name
attr_reader :deposit_type
attr_reader :masked_account_number
attr_reader :account_name
end
end
13 changes: 13 additions & 0 deletions lib/pokepay_partner_ruby_sdk/response/bank_registering_info.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT: File is generated by code generator.


module Pokepay::Response
class BankRegisteringInfo
def initialize(row)
@redirect_url = row["redirect_url"]
@paytree_customer_number = row["paytree_customer_number"]
end
attr_reader :redirect_url
attr_reader :paytree_customer_number
end
end
13 changes: 13 additions & 0 deletions lib/pokepay_partner_ruby_sdk/response/banks.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT: File is generated by code generator.


module Pokepay::Response
class Banks
def initialize(row)
@rows = row["rows"]
@count = row["count"]
end
attr_reader :rows
attr_reader :count
end
end
Loading
Loading