genesis_ruby 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +169 -1
- data/VERSION +1 -1
- data/lib/genesis_ruby/api/constants/non_financial/alternatives/alipay/merchant_types.rb +26 -0
- data/lib/genesis_ruby/api/constants/non_financial/alternatives/alipay/site_types.rb +26 -0
- data/lib/genesis_ruby/api/constants/non_financial/kyc/bank_account_types.rb +24 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/foreign_retailer_indicators.rb +24 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/funding/person_types.rb +26 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/purpose_of_payments.rb +46 -19
- data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/sender_account_number_types.rb +14 -17
- data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/source_of_funds.rb +9 -18
- data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/types.rb +31 -4
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/enhanced_statement_response_fields.rb +39 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/response_fields.rb +2 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/statement_order_by_fields.rb +31 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/statement_response_fields.rb +14 -13
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/{processing_type.rb → scopes.rb} +4 -3
- data/lib/genesis_ruby/api/constants/transactions/parameters/purpose_of_payment.rb +117 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/purpose_of_payment_values.rb +267 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/wallets/e_wallet/payment_types.rb +46 -0
- data/lib/genesis_ruby/api/constants/transactions.rb +9 -0
- data/lib/genesis_ruby/api/mixins/requests/customer_address/billing_info_attributes.rb +3 -1
- data/lib/genesis_ruby/api/mixins/requests/financial/cards/credential_on_file_transaction_link_attributes.rb +83 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/commercial_card_attributes.rb +143 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/funding_attributes.rb +32 -3
- data/lib/genesis_ruby/api/mixins/requests/financial/marketplace_data_attributes.rb +179 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/money_transfer_payout_attributes.rb +49 -46
- data/lib/genesis_ruby/api/mixins/requests/financial/order_attributes.rb +36 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/purpose_of_payment_attributes.rb +14 -4
- data/lib/genesis_ruby/api/mixins/requests/financial/refund/bank_attributes.rb +41 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/refund/beneficiary_attributes.rb +31 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/refund/travel_ticket_attributes.rb +52 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/threeds/force_threeds_attributes.rb +29 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/alternatives/alipay/site_information_attributes.rb +57 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/date_time_from_to_attributes.rb +102 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/background_checks_attributes.rb +31 -10
- data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_document_attributes.rb +49 -7
- data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_instructions_attributes.rb +90 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/reconcile_order_attributes.rb +30 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/scope_attributes.rb +29 -0
- data/lib/genesis_ruby/api/mixins/requests/restricted_setter.rb +12 -0
- data/lib/genesis_ruby/api/mixins/requests/scheme_tokenized_attributes.rb +35 -0
- data/lib/genesis_ruby/api/requests/base/financials/credit_card.rb +1 -12
- data/lib/genesis_ruby/api/requests/base/graphql.rb +7 -0
- data/lib/genesis_ruby/api/requests/base/non_financial/billing_api/abstract_statement.rb +226 -0
- data/lib/genesis_ruby/api/requests/base/non_financial/billing_api/base.rb +39 -37
- data/lib/genesis_ruby/api/requests/base/non_financial/reconcile/base.rb +45 -0
- data/lib/genesis_ruby/api/requests/financial/async_refund.rb +41 -0
- data/lib/genesis_ruby/api/requests/financial/cards/authorize.rb +43 -24
- data/lib/genesis_ruby/api/requests/financial/cards/authorize3d.rb +13 -1
- data/lib/genesis_ruby/api/requests/financial/cards/payout.rb +21 -5
- data/lib/genesis_ruby/api/requests/financial/cards/sale.rb +42 -23
- data/lib/genesis_ruby/api/requests/financial/cards/sale3d.rb +13 -1
- data/lib/genesis_ruby/api/requests/financial/mobile/apple_pay.rb +5 -1
- data/lib/genesis_ruby/api/requests/financial/mobile/google_pay.rb +6 -2
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/my_bank.rb +1 -1
- data/lib/genesis_ruby/api/requests/financial/refund.rb +20 -35
- data/lib/genesis_ruby/api/requests/financial/sdd/sale.rb +6 -1
- data/lib/genesis_ruby/api/requests/financial/wallets/e_wallet.rb +72 -0
- data/lib/genesis_ruby/api/requests/non_financial/alternatives/alipay/register_merchant.rb +147 -0
- data/lib/genesis_ruby/api/requests/non_financial/billing_api/enhanced_statement.rb +46 -0
- data/lib/genesis_ruby/api/requests/non_financial/billing_api/statement.rb +12 -137
- data/lib/genesis_ruby/api/requests/non_financial/billing_api/transactions.rb +4 -2
- data/lib/genesis_ruby/api/requests/non_financial/fraud/chargeback/date_range.rb +10 -19
- data/lib/genesis_ruby/api/requests/non_financial/fraud/rdr/date_range.rb +91 -0
- data/lib/genesis_ruby/api/requests/non_financial/fraud/rdr/transaction.rb +54 -0
- data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/date_range.rb +10 -19
- data/lib/genesis_ruby/api/requests/non_financial/kyc/verifications/bank_account.rb +76 -0
- data/lib/genesis_ruby/api/requests/non_financial/kyc/verifications/create.rb +31 -4
- data/lib/genesis_ruby/api/requests/non_financial/payment_authorizations/date_range.rb +124 -0
- data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/date_range.rb +8 -15
- data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/post_date_range.rb +12 -18
- data/lib/genesis_ruby/api/requests/non_financial/reconcile/date_range.rb +29 -4
- data/lib/genesis_ruby/api/requests/non_financial/reconcile/order.rb +40 -0
- data/lib/genesis_ruby/api/requests/non_financial/reconcile/transaction.rb +1 -15
- data/lib/genesis_ruby/api/requests/non_financial/tokenization/cryptogram.rb +3 -1
- data/lib/genesis_ruby/api/requests/non_financial/tokenization/tokenize.rb +3 -1
- data/lib/genesis_ruby/api/requests/wpf/create.rb +4 -0
- data/lib/genesis_ruby/api/requests/wpf/reconcile.rb +11 -4
- data/lib/genesis_ruby/api/requests/wpf/reconcile_by_date.rb +62 -0
- data/lib/genesis_ruby/api/requests/wpf/reconcile_by_order.rb +38 -0
- data/lib/genesis_ruby/builders/graphql.rb +95 -40
- data/lib/genesis_ruby/dependencies.rb +2 -0
- data/lib/genesis_ruby/utils/money/format.rb +2 -1
- data/lib/genesis_ruby/utils/transactions/financial_types.rb +3 -2
- data/lib/genesis_ruby/utils/transactions/references/refundable_types.rb +2 -1
- data/lib/genesis_ruby/utils/transactions/wpf_types.rb +1 -1
- data/lib/genesis_ruby/version.rb +1 -1
- metadata +40 -35
- data/.kiro/specs/f2025112509-add_managed_recurring_api/.config.kiro +0 -1
- data/.kiro/specs/f2025112509-add_managed_recurring_api/design.md +0 -332
- data/.kiro/specs/f2025112509-add_managed_recurring_api/requirements.md +0 -91
- data/.kiro/specs/f2025112509-add_managed_recurring_api/tasks.md +0 -139
- data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/.config.kiro +0 -1
- data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/design.md +0 -148
- data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/requirements.md +0 -81
- data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/tasks.md +0 -48
- data/.kiro/specs/f2025112606-add_list_payees_trx_request/.config.kiro +0 -1
- data/.kiro/specs/f2025112606-add_list_payees_trx_request/design.md +0 -112
- data/.kiro/specs/f2025112606-add_list_payees_trx_request/requirements.md +0 -74
- data/.kiro/specs/f2025112606-add_list_payees_trx_request/tasks.md +0 -38
- data/.kiro/specs/f2025112609_update_payee_request_params/design.md +0 -86
- data/.kiro/specs/f2025112609_update_payee_request_params/requirements.md +0 -86
- data/.kiro/specs/f2025112609_update_payee_request_params/tasks.md +0 -40
- data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/.config.kiro +0 -1
- data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/design.md +0 -246
- data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/requirements.md +0 -287
- data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/tasks.md +0 -76
- data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/design.md +0 -84
- data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/requirements.md +0 -88
- data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/tasks.md +0 -38
- data/.kiro/steering/product.md +0 -15
- data/.kiro/steering/spec-folder-naming.md +0 -16
- data/.kiro/steering/structure.md +0 -96
- data/.kiro/steering/tech.md +0 -66
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -176
- data/Rakefile +0 -24
- data/genesis_ruby.gemspec +0 -47
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/externally_processed.rb +0 -24
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GenesisRuby
|
|
4
|
+
module Api
|
|
5
|
+
module Constants
|
|
6
|
+
module Transactions
|
|
7
|
+
module Parameters
|
|
8
|
+
module NonFinancial
|
|
9
|
+
module BillingApi
|
|
10
|
+
# Billing API Enhanced Statement Response Fields allowed values
|
|
11
|
+
class EnhancedStatementResponseFields
|
|
12
|
+
|
|
13
|
+
extend Mixins::Constants::Common
|
|
14
|
+
|
|
15
|
+
ID = 'id'
|
|
16
|
+
BILLING_STATEMENT = 'billingStatement'
|
|
17
|
+
STATUS = 'status'
|
|
18
|
+
COMPANY = 'company'
|
|
19
|
+
MASTER_ACCOUNT_NAME = 'masterAccountName'
|
|
20
|
+
MASTER_ACCOUNT_MID = 'masterAccountMID'
|
|
21
|
+
MASTER_ACCOUNT_CURRENCY = 'masterAccountCurrency'
|
|
22
|
+
VALUE_DATE = 'valueDate'
|
|
23
|
+
CREATION_DATE = 'creationDate'
|
|
24
|
+
CURRENCY = 'currency'
|
|
25
|
+
PAYMENT_METHOD = 'paymentMethod'
|
|
26
|
+
START_DATE = 'startDate'
|
|
27
|
+
END_DATE = 'endDate'
|
|
28
|
+
PRICING_METHOD = 'pricingMethod'
|
|
29
|
+
SUMMARY = 'summary'
|
|
30
|
+
DETAILS = 'details'
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GenesisRuby
|
|
4
|
+
module Api
|
|
5
|
+
module Constants
|
|
6
|
+
module Transactions
|
|
7
|
+
module Parameters
|
|
8
|
+
module NonFinancial
|
|
9
|
+
module BillingApi
|
|
10
|
+
# Billing API Statement Order By Field allowed values
|
|
11
|
+
class StatementOrderByFields
|
|
12
|
+
|
|
13
|
+
extend Mixins::Constants::Common
|
|
14
|
+
|
|
15
|
+
BILLING_STATEMENT = 'billingStatement'
|
|
16
|
+
CREATION_DATE = 'creationDate'
|
|
17
|
+
START_DATE = 'startDate'
|
|
18
|
+
END_DATE = 'endDate'
|
|
19
|
+
VALUE_DATE = 'valueDate'
|
|
20
|
+
CURRENCY = 'currency'
|
|
21
|
+
STATUS = 'status'
|
|
22
|
+
MASTER_ACCOUNT_NAME = 'masterAccountName'
|
|
23
|
+
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -12,20 +12,21 @@ module GenesisRuby
|
|
|
12
12
|
|
|
13
13
|
extend Mixins::Constants::Common
|
|
14
14
|
|
|
15
|
-
ID
|
|
16
|
-
BILLING_STATEMENT
|
|
17
|
-
STATUS
|
|
18
|
-
COMPANY
|
|
19
|
-
MASTER_ACCOUNT_NAME
|
|
15
|
+
ID = 'id'
|
|
16
|
+
BILLING_STATEMENT = 'billingStatement'
|
|
17
|
+
STATUS = 'status'
|
|
18
|
+
COMPANY = 'company'
|
|
19
|
+
MASTER_ACCOUNT_NAME = 'masterAccountName'
|
|
20
|
+
MASTER_ACCOUNT_MID = 'masterAccountMID'
|
|
20
21
|
MASTER_ACCOUNT_CURRENCY = 'masterAccountCurrency'
|
|
21
|
-
VALUE_DATE
|
|
22
|
-
CREATION_DATE
|
|
23
|
-
CURRENCY
|
|
24
|
-
PAYMENT_METHOD
|
|
25
|
-
START_DATE
|
|
26
|
-
END_DATE
|
|
27
|
-
SUMMARY
|
|
28
|
-
DETAILS
|
|
22
|
+
VALUE_DATE = 'valueDate'
|
|
23
|
+
CREATION_DATE = 'creationDate'
|
|
24
|
+
CURRENCY = 'currency'
|
|
25
|
+
PAYMENT_METHOD = 'paymentMethod'
|
|
26
|
+
START_DATE = 'startDate'
|
|
27
|
+
END_DATE = 'endDate'
|
|
28
|
+
SUMMARY = 'summary'
|
|
29
|
+
DETAILS = 'details'
|
|
29
30
|
|
|
30
31
|
end
|
|
31
32
|
end
|
|
@@ -6,14 +6,15 @@ module GenesisRuby
|
|
|
6
6
|
module Transactions
|
|
7
7
|
module Parameters
|
|
8
8
|
module NonFinancial
|
|
9
|
-
#
|
|
10
|
-
|
|
9
|
+
# Allowed values for the required scope filter of the reporting date range requests
|
|
10
|
+
# (Processed Transactions, Chargebacks, Retrieval Requests, Rapid Dispute Resolutions)
|
|
11
|
+
class Scopes
|
|
11
12
|
|
|
12
13
|
extend Mixins::Constants::Common
|
|
13
14
|
|
|
14
15
|
CARD_PRESENT = 'card_present'
|
|
15
16
|
CARD_NOT_PRESENT = 'card_not_present'
|
|
16
|
-
|
|
17
|
+
EXTERNAL = 'external'
|
|
17
18
|
|
|
18
19
|
end
|
|
19
20
|
end
|
|
@@ -10,6 +10,123 @@ module GenesisRuby
|
|
|
10
10
|
|
|
11
11
|
extend Mixins::Constants::Common
|
|
12
12
|
|
|
13
|
+
# Account management
|
|
14
|
+
ISACCT = 'ISACCT'
|
|
15
|
+
|
|
16
|
+
# Air transport related business
|
|
17
|
+
ISAIRB = 'ISAIRB'
|
|
18
|
+
|
|
19
|
+
# Transaction is the payment of allowance
|
|
20
|
+
ISALLW = 'ISALLW'
|
|
21
|
+
|
|
22
|
+
# Settlement of annuity
|
|
23
|
+
ISANNI = 'ISANNI'
|
|
24
|
+
|
|
25
|
+
# Unemployment disability benefit
|
|
26
|
+
ISBENE = 'ISBENE'
|
|
27
|
+
|
|
28
|
+
# Business expenses
|
|
29
|
+
ISBEXP = 'ISBEXP'
|
|
30
|
+
|
|
31
|
+
# Bonus payment
|
|
32
|
+
ISBONU = 'ISBONU'
|
|
33
|
+
|
|
34
|
+
# Bus transport related business
|
|
35
|
+
ISBUSB = 'ISBUSB'
|
|
36
|
+
|
|
37
|
+
# Cash management transfer
|
|
38
|
+
ISCASH = 'ISCASH'
|
|
39
|
+
|
|
40
|
+
# Payment of cable TV bill
|
|
41
|
+
ISCBTV = 'ISCBTV'
|
|
42
|
+
|
|
43
|
+
# Government institute issued related to cash compensation, helplessness, disability
|
|
44
|
+
ISCCHD = 'ISCCHD'
|
|
45
|
+
|
|
46
|
+
# Credit card payment
|
|
47
|
+
ISCCRD = 'ISCCRD'
|
|
48
|
+
|
|
49
|
+
# Payment of credit card bill
|
|
50
|
+
ISCDBL = 'ISCDBL'
|
|
51
|
+
|
|
52
|
+
# Payment for charity reasons
|
|
53
|
+
ISCHAR = 'ISCHAR'
|
|
54
|
+
|
|
55
|
+
# Collection payment
|
|
56
|
+
ISCOLL = 'ISCOLL'
|
|
57
|
+
|
|
58
|
+
# Commercial payment
|
|
59
|
+
ISCOMC = 'ISCOMC'
|
|
60
|
+
|
|
61
|
+
# Commission
|
|
62
|
+
ISCOMM = 'ISCOMM'
|
|
63
|
+
|
|
64
|
+
# Compensation relating to interest loss/value date adjustment and can include fees
|
|
65
|
+
ISCOMP = 'ISCOMP'
|
|
66
|
+
|
|
67
|
+
# Payment of copyright
|
|
68
|
+
ISCPYR = 'ISCPYR'
|
|
69
|
+
|
|
70
|
+
# Related to a debit card payment
|
|
71
|
+
ISDCRD = 'ISDCRD'
|
|
72
|
+
|
|
73
|
+
# Payment of a deposit
|
|
74
|
+
ISDEPT = 'ISDEPT'
|
|
75
|
+
|
|
76
|
+
# Payment of dividend
|
|
77
|
+
ISDIVD = 'ISDIVD'
|
|
78
|
+
|
|
79
|
+
# Payment of study/tuition fees
|
|
80
|
+
ISEDUE = 'ISEDUE'
|
|
81
|
+
|
|
82
|
+
# Payment of electricity bill
|
|
83
|
+
ISELEC = 'ISELEC'
|
|
84
|
+
|
|
85
|
+
# Energies
|
|
86
|
+
ISENRG = 'ISENRG'
|
|
87
|
+
|
|
88
|
+
# General fees
|
|
89
|
+
ISFEES = 'ISFEES'
|
|
90
|
+
|
|
91
|
+
# Payment for ferry related business
|
|
92
|
+
ISFERB = 'ISFERB'
|
|
93
|
+
|
|
94
|
+
# Foreign exchange
|
|
95
|
+
ISFREX = 'ISFREX'
|
|
96
|
+
|
|
97
|
+
# Payment of gas bill
|
|
98
|
+
ISGASB = 'ISGASB'
|
|
99
|
+
|
|
100
|
+
# Compensation to unemployed persons during insolvency procedures
|
|
101
|
+
ISGFRP = 'ISGFRP'
|
|
102
|
+
|
|
103
|
+
# Government payment
|
|
104
|
+
ISGOVT = 'ISGOVT'
|
|
105
|
+
|
|
106
|
+
# Health insurance
|
|
107
|
+
ISHLTI = 'ISHLTI'
|
|
108
|
+
|
|
109
|
+
# Reimbursement of credit card payment
|
|
110
|
+
ISICCP = 'ISICCP'
|
|
111
|
+
|
|
112
|
+
# Reimbursement of debit card payment
|
|
113
|
+
ISIDCP = 'ISIDCP'
|
|
114
|
+
|
|
115
|
+
# Payment of car insurance premium
|
|
116
|
+
ISINPC = 'ISINPC'
|
|
117
|
+
|
|
118
|
+
# Transaction is related to the payment of an insurance claim
|
|
119
|
+
ISINSC = 'ISINSC'
|
|
120
|
+
|
|
121
|
+
# Installment
|
|
122
|
+
ISINSM = 'ISINSM'
|
|
123
|
+
|
|
124
|
+
# Insurance premium
|
|
125
|
+
ISINSU = 'ISINSU'
|
|
126
|
+
|
|
127
|
+
# Intra company payment
|
|
128
|
+
ISINTC = 'ISINTC'
|
|
129
|
+
|
|
13
130
|
# Interest
|
|
14
131
|
ISINTE = 'ISINTE'
|
|
15
132
|
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GenesisRuby
|
|
4
|
+
module Api
|
|
5
|
+
module Constants
|
|
6
|
+
module Transactions
|
|
7
|
+
module Parameters
|
|
8
|
+
# Human-readable Purpose of Payment values (Visa)
|
|
9
|
+
class PurposeOfPaymentValues
|
|
10
|
+
|
|
11
|
+
extend Mixins::Constants::Common
|
|
12
|
+
|
|
13
|
+
# Account management
|
|
14
|
+
ACCOUNT_MANAGEMENT = 'account_management'
|
|
15
|
+
|
|
16
|
+
# Air transport related business
|
|
17
|
+
AIR_TRANSPORT_RELATED_BUSINESS = 'air_transport_related_business'
|
|
18
|
+
|
|
19
|
+
# Transaction is the payment of allowance
|
|
20
|
+
PAYMENT_OF_ALLOWANCE = 'payment_of_allowance'
|
|
21
|
+
|
|
22
|
+
# Settlement of annuity
|
|
23
|
+
SETTLEMENT_OF_ANNUITY = 'settlement_of_annuity'
|
|
24
|
+
|
|
25
|
+
# Unemployment disability benefit
|
|
26
|
+
UNEMPLOYMENT_DISABILITY_BENEFIT = 'unemployment_disability_benefit'
|
|
27
|
+
|
|
28
|
+
# Business expenses
|
|
29
|
+
BUSINESS_EXPENSES = 'business_expenses'
|
|
30
|
+
|
|
31
|
+
# Bonus payment
|
|
32
|
+
BONUS_PAYMENT = 'bonus_payment'
|
|
33
|
+
|
|
34
|
+
# Bus transport related business
|
|
35
|
+
BUS_TRANSPORT_RELATED_BUSINESS = 'bus_transport_related_business'
|
|
36
|
+
|
|
37
|
+
# Cash management transfer
|
|
38
|
+
CASH_MANAGEMENT_TRANSFER = 'cash_management_transfer'
|
|
39
|
+
|
|
40
|
+
# Payment of cable TV bill
|
|
41
|
+
PAYMENT_OF_CABLE_TV_BILL = 'payment_of_cable_tv_bill'
|
|
42
|
+
|
|
43
|
+
# Government institute issued related to cash compensation, helplessness, disability
|
|
44
|
+
GOVERNMENT_INSTITUTE_ISSUED_RELATED_TO_CASH_COMPENSATION_HELPLESSNESS_DISABILITY =
|
|
45
|
+
'government_institute_issued_related_to_cash_compensation_helplessness_disability'
|
|
46
|
+
|
|
47
|
+
# Credit card payment
|
|
48
|
+
CREDIT_CARD_PAYMENT = 'credit_card_payment'
|
|
49
|
+
|
|
50
|
+
# Payment of credit card bill
|
|
51
|
+
PAYMENT_OF_CREDIT_CARD_BILL = 'payment_of_credit_card_bill'
|
|
52
|
+
|
|
53
|
+
# Payment for charity reasons
|
|
54
|
+
PAYMENT_FOR_CHARITY_REASONS = 'payment_for_charity_reasons'
|
|
55
|
+
|
|
56
|
+
# Collection payment
|
|
57
|
+
COLLECTION_PAYMENT = 'collection_payment'
|
|
58
|
+
|
|
59
|
+
# Commercial payment
|
|
60
|
+
COMMERCIAL_PAYMENT = 'commercial_payment'
|
|
61
|
+
|
|
62
|
+
# Commission
|
|
63
|
+
COMMISSION = 'commission'
|
|
64
|
+
|
|
65
|
+
# Compensation relating to interest loss/value date adjustment and can include fees
|
|
66
|
+
COMPENSATION_RELATING_TO_INTEREST_LOSS_VALUE_DATE_ADJUSTMENT_AND_CAN_INCLUDE_FEES =
|
|
67
|
+
'compensation_relating_to_interest_loss_value_date_adjustment_and_can_include_fees'
|
|
68
|
+
|
|
69
|
+
# Payment of copyright
|
|
70
|
+
PAYMENT_OF_COPYRIGHT = 'payment_of_copyright'
|
|
71
|
+
|
|
72
|
+
# Related to a debit card payment
|
|
73
|
+
RELATED_TO_DEBIT_CARD_PAYMENT = 'related_to_debit_card_payment'
|
|
74
|
+
|
|
75
|
+
# Payment of a deposit
|
|
76
|
+
PAYMENT_OF_DEPOSIT = 'payment_of_deposit'
|
|
77
|
+
|
|
78
|
+
# Payment of dividend
|
|
79
|
+
PAYMENT_OF_DIVIDEND = 'payment_of_dividend'
|
|
80
|
+
|
|
81
|
+
# Payment of study/tuition fees
|
|
82
|
+
PAYMENT_OF_STUDY_TUITION_FEES = 'payment_of_study_tuition_fees'
|
|
83
|
+
|
|
84
|
+
# Education
|
|
85
|
+
EDUCATION = 'education'
|
|
86
|
+
|
|
87
|
+
# Payment of electricity bill
|
|
88
|
+
PAYMENT_OF_ELECTRICITY_BILL = 'payment_of_electricity_bill'
|
|
89
|
+
|
|
90
|
+
# Energies
|
|
91
|
+
ENERGIES = 'energies'
|
|
92
|
+
|
|
93
|
+
# General fees
|
|
94
|
+
GENERAL_FEES = 'general_fees'
|
|
95
|
+
|
|
96
|
+
# Payment for ferry related business
|
|
97
|
+
PAYMENT_FOR_FERRY_RELATED_BUSINESS = 'payment_for_ferry_related_business'
|
|
98
|
+
|
|
99
|
+
# Foreign exchange
|
|
100
|
+
FOREIGN_EXCHANGE = 'foreign_exchange'
|
|
101
|
+
|
|
102
|
+
# Payment of gas bill
|
|
103
|
+
PAYMENT_OF_GAS_BILL = 'payment_of_gas_bill'
|
|
104
|
+
|
|
105
|
+
# Compensation to unemployed persons during insolvency procedures
|
|
106
|
+
COMPENSATION_TO_UNEMPLOYED_PERSONS_DURING_INSOLVENCY_PROCEDURES =
|
|
107
|
+
'compensation_to_unemployed_persons_during_insolvency_procedures'
|
|
108
|
+
|
|
109
|
+
# Government payment
|
|
110
|
+
GOVERNMENT_PAYMENT = 'government_payment'
|
|
111
|
+
|
|
112
|
+
# Health insurance
|
|
113
|
+
HEALTH_INSURANCE = 'health_insurance'
|
|
114
|
+
|
|
115
|
+
# Reimbursement of credit card payment
|
|
116
|
+
REIMBURSEMENT_OF_CREDIT_CARD_PAYMENT = 'reimbursement_of_credit_card_payment'
|
|
117
|
+
|
|
118
|
+
# Reimbursement of debit card payment
|
|
119
|
+
REIMBURSEMENT_OF_DEBIT_CARD_PAYMENT = 'reimbursement_of_debit_card_payment'
|
|
120
|
+
|
|
121
|
+
# Payment of car insurance premium
|
|
122
|
+
PAYMENT_OF_CAR_INSURANCE_PREMIUM = 'payment_of_car_insurance_premium'
|
|
123
|
+
|
|
124
|
+
# Transaction is related to the payment of an insurance claim
|
|
125
|
+
TRANSACTION_RELATED_TO_PAYMENT_OF_INSURANCE_CLAIM = 'transaction_related_to_payment_of_insurance_claim'
|
|
126
|
+
|
|
127
|
+
# Installment
|
|
128
|
+
INSTALLMENT = 'installment'
|
|
129
|
+
|
|
130
|
+
# Insurance premium
|
|
131
|
+
INSURANCE_PREMIUM = 'insurance_premium'
|
|
132
|
+
|
|
133
|
+
# Payment of mutual funds, investment products and shares
|
|
134
|
+
PAYMENT_OF_MUTUAL_FUNDS_INVESTMENT_PRODUCTS_AND_SHARES =
|
|
135
|
+
'payment_of_mutual_funds_investment_products_and_shares'
|
|
136
|
+
|
|
137
|
+
# Intra company payment
|
|
138
|
+
INTRA_COMPANY_PAYMENT = 'intra_company_payment'
|
|
139
|
+
|
|
140
|
+
# Interest
|
|
141
|
+
INTEREST = 'interest'
|
|
142
|
+
|
|
143
|
+
# Income tax
|
|
144
|
+
INCOME_TAX = 'income_tax'
|
|
145
|
+
|
|
146
|
+
# Investment
|
|
147
|
+
INVESTMENT = 'investment'
|
|
148
|
+
|
|
149
|
+
# Labor insurance
|
|
150
|
+
LABOR_INSURANCE = 'labor_insurance'
|
|
151
|
+
|
|
152
|
+
# License fee
|
|
153
|
+
LICENSE_FEE = 'license_fee'
|
|
154
|
+
|
|
155
|
+
# Life insurance
|
|
156
|
+
LIFE_INSURANCE = 'life_insurance'
|
|
157
|
+
|
|
158
|
+
# Loan
|
|
159
|
+
LOAN = 'loan'
|
|
160
|
+
|
|
161
|
+
# Medical services
|
|
162
|
+
MEDICAL_SERVICES = 'medical_services'
|
|
163
|
+
|
|
164
|
+
# Mobile P2B payment
|
|
165
|
+
MOBILE_P2B_PAYMENT = 'mobile_p2b_payment'
|
|
166
|
+
|
|
167
|
+
# Mobile P2P payment
|
|
168
|
+
MOBILE_P2P_PAYMENT = 'mobile_p2p_payment'
|
|
169
|
+
|
|
170
|
+
# Mobile top up
|
|
171
|
+
MOBILE_TOP_UP = 'mobile_top_up'
|
|
172
|
+
|
|
173
|
+
# Not otherwise specified
|
|
174
|
+
NOT_OTHERWISE_SPECIFIED = 'not_otherwise_specified'
|
|
175
|
+
|
|
176
|
+
# Other
|
|
177
|
+
OTHER = 'other'
|
|
178
|
+
|
|
179
|
+
# Transaction is related to a payment of other telecom related bill
|
|
180
|
+
TRANSACTION_RELATED_TO_PAYMENT_OF_OTHER_TELECOM_RELATED_BILL =
|
|
181
|
+
'transaction_related_to_payment_of_other_telecom_related_bill'
|
|
182
|
+
|
|
183
|
+
# Payroll
|
|
184
|
+
PAYROLL = 'payroll'
|
|
185
|
+
|
|
186
|
+
# Contribution to pension fund
|
|
187
|
+
CONTRIBUTION_TO_PENSION_FUND = 'contribution_to_pension_fund'
|
|
188
|
+
|
|
189
|
+
# Pension payment
|
|
190
|
+
PENSION_PAYMENT = 'pension_payment'
|
|
191
|
+
|
|
192
|
+
# Payment of telephone bill
|
|
193
|
+
PAYMENT_OF_TELEPHONE_BILL = 'payment_of_telephone_bill'
|
|
194
|
+
|
|
195
|
+
# Property insurance
|
|
196
|
+
PROPERTY_INSURANCE = 'property_insurance'
|
|
197
|
+
|
|
198
|
+
# Transaction is for general rental/lease
|
|
199
|
+
TRANSACTION_FOR_GENERAL_RENTAL_LEASE = 'transaction_for_general_rental_lease'
|
|
200
|
+
|
|
201
|
+
# The payment of rent
|
|
202
|
+
THE_PAYMENT_OF_RENT = 'the_payment_of_rent'
|
|
203
|
+
|
|
204
|
+
# Payment for railway transport related business
|
|
205
|
+
PAYMENT_FOR_RAILWAY_TRANSPORT_RELATED_BUSINESS = 'payment_for_railway_transport_related_business'
|
|
206
|
+
|
|
207
|
+
# Royalties
|
|
208
|
+
ROYALTIES = 'royalties'
|
|
209
|
+
|
|
210
|
+
# Salary payment
|
|
211
|
+
SALARY_PAYMENT = 'salary_payment'
|
|
212
|
+
|
|
213
|
+
# Payment to savings/retirement account
|
|
214
|
+
PAYMENT_TO_SAVINGS_RETIREMENT_ACCOUNT = 'payment_to_savings_retirement_account'
|
|
215
|
+
|
|
216
|
+
# Securities
|
|
217
|
+
SECURITIES = 'securities'
|
|
218
|
+
|
|
219
|
+
# Social security benefit
|
|
220
|
+
SOCIAL_SECURITY_BENEFIT = 'social_security_benefit'
|
|
221
|
+
|
|
222
|
+
# Study
|
|
223
|
+
STUDY = 'study'
|
|
224
|
+
|
|
225
|
+
# Subscription
|
|
226
|
+
SUBSCRIPTION = 'subscription'
|
|
227
|
+
|
|
228
|
+
# Supplier payment
|
|
229
|
+
SUPPLIER_PAYMENT = 'supplier_payment'
|
|
230
|
+
|
|
231
|
+
# Refund of a tax payment or obligation
|
|
232
|
+
REFUND_OF_TAX_PAYMENT_OR_OBLIGATION = 'refund_of_tax_payment_or_obligation'
|
|
233
|
+
|
|
234
|
+
# Tax payment
|
|
235
|
+
TAX_PAYMENT = 'tax_payment'
|
|
236
|
+
|
|
237
|
+
# Transaction is related to a payment of telecommunications related bill
|
|
238
|
+
TRANSACTION_RELATED_TO_PAYMENT_OF_TELECOMMUNICATIONS_RELATED_BILL =
|
|
239
|
+
'transaction_related_to_payment_of_telecommunications_related_bill'
|
|
240
|
+
|
|
241
|
+
# Trade services operation
|
|
242
|
+
TRADE_SERVICES_OPERATION = 'trade_services_operation'
|
|
243
|
+
|
|
244
|
+
# Treasury payment
|
|
245
|
+
TREASURY_PAYMENT = 'treasury_payment'
|
|
246
|
+
|
|
247
|
+
# Payment for travel
|
|
248
|
+
PAYMENT_FOR_TRAVEL = 'payment_for_travel'
|
|
249
|
+
|
|
250
|
+
# Utility bill payment
|
|
251
|
+
UTILITY_BILL_PAYMENT = 'utility_bill_payment'
|
|
252
|
+
|
|
253
|
+
# Value added tax payment
|
|
254
|
+
VALUE_ADDED_TAX_PAYMENT = 'value_added_tax_payment'
|
|
255
|
+
|
|
256
|
+
# Withholding
|
|
257
|
+
WITHHOLDING = 'withholding'
|
|
258
|
+
|
|
259
|
+
# Payment of water bill
|
|
260
|
+
PAYMENT_OF_WATER_BILL = 'payment_of_water_bill'
|
|
261
|
+
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GenesisRuby
|
|
4
|
+
module Api
|
|
5
|
+
module Constants
|
|
6
|
+
module Transactions
|
|
7
|
+
module Parameters
|
|
8
|
+
module Wallets
|
|
9
|
+
module EWallet
|
|
10
|
+
# eWallet allowed payment types (e-wallet provider names, sent verbatim to the gateway)
|
|
11
|
+
class PaymentTypes
|
|
12
|
+
|
|
13
|
+
extend Api::Mixins::Constants::Common
|
|
14
|
+
|
|
15
|
+
# Airtel Money e-wallet provider
|
|
16
|
+
AIRTEL_MONEY = 'Airtel Money'
|
|
17
|
+
|
|
18
|
+
# Amazon pay e-wallet provider
|
|
19
|
+
AMAZON_PAY = 'Amazon pay'
|
|
20
|
+
|
|
21
|
+
# Free Charge e-wallet provider
|
|
22
|
+
FREE_CHARGE = 'Free Charge'
|
|
23
|
+
|
|
24
|
+
# Jio Money e-wallet provider
|
|
25
|
+
JIO_MONEY = 'Jio Money'
|
|
26
|
+
|
|
27
|
+
# Ola Money e-wallet provider
|
|
28
|
+
OLA_MONEY = 'Ola Money'
|
|
29
|
+
|
|
30
|
+
# Paytm e-wallet provider
|
|
31
|
+
PAYTM = 'Paytm'
|
|
32
|
+
|
|
33
|
+
# Payzapp e-wallet provider
|
|
34
|
+
PAYZAPP = 'Payzapp'
|
|
35
|
+
|
|
36
|
+
# PhonePe e-wallet provider
|
|
37
|
+
PHONE_PE = 'PhonePe'
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -35,6 +35,11 @@ module GenesisRuby
|
|
|
35
35
|
# for their online purchases at over 150,000 physical outlets.
|
|
36
36
|
ARGENCARD = 'argencard'
|
|
37
37
|
|
|
38
|
+
# Async Refund returns already billed amounts to the customer through an asynchronous workflow; the gateway
|
|
39
|
+
# confirms the result later. The amount can be refunded fully or partially. The reference_id of the preceding
|
|
40
|
+
# transaction is mandatory.
|
|
41
|
+
ASYNC_REFUND = 'async_refund'
|
|
42
|
+
|
|
38
43
|
# Aura is a local Brazilian credit card.
|
|
39
44
|
AURA = 'aura'
|
|
40
45
|
|
|
@@ -113,6 +118,10 @@ module GenesisRuby
|
|
|
113
118
|
# Direct PPRO transaction
|
|
114
119
|
EPS = 'eps'
|
|
115
120
|
|
|
121
|
+
# eWallet transaction that handles different e-wallet providers.
|
|
122
|
+
# The provider is selected with the payment_type parameter.
|
|
123
|
+
E_WALLET = 'e_wallet'
|
|
124
|
+
|
|
116
125
|
# eZeeCard Payout is a sync based payout method.
|
|
117
126
|
# It's merchant initiated and can only reference specific transaction types
|
|
118
127
|
EZEECARD_PAYOUT = 'ezeecard_payout'
|
|
@@ -9,7 +9,8 @@ module GenesisRuby
|
|
|
9
9
|
module BillingInfoAttributes
|
|
10
10
|
|
|
11
11
|
attr_accessor :billing_first_name, :billing_last_name, :billing_address1, :billing_address2,
|
|
12
|
-
:billing_zip_code, :billing_city, :billing_state, :billing_country, :billing_neighborhood
|
|
12
|
+
:billing_zip_code, :billing_city, :billing_state, :billing_country, :billing_neighborhood,
|
|
13
|
+
:billing_street_name
|
|
13
14
|
|
|
14
15
|
protected
|
|
15
16
|
|
|
@@ -24,6 +25,7 @@ module GenesisRuby
|
|
|
24
25
|
city: billing_city,
|
|
25
26
|
state: billing_state,
|
|
26
27
|
neighborhood: billing_neighborhood,
|
|
28
|
+
street_name: billing_street_name,
|
|
27
29
|
country: billing_country
|
|
28
30
|
}
|
|
29
31
|
end
|