payjpv2 1.2.0 → 1.3.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/Gemfile.lock +1 -1
- data/README.md +9 -2
- data/docs/BankAccountStatus.md +15 -0
- data/docs/BankInfoResponse.md +2 -2
- data/docs/CardBrand.md +15 -0
- data/docs/CardFunding.md +15 -0
- data/docs/CheckoutSessionCreateRequest.md +1 -1
- data/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md +2 -2
- data/docs/DisplayPreferenceRequest.md +1 -1
- data/docs/PaymentFlowCancelRequest.md +1 -1
- data/docs/PaymentFlowPaymentMethodOptionsCardRequest.md +2 -2
- data/docs/PaymentMethodCardDetailsResponse.md +4 -2
- data/docs/PaymentMethodConfigurationDisplayPreference.md +2 -2
- data/docs/PaymentMethodConfigurationPreference.md +15 -0
- data/docs/PaymentMethodConfigurationValue.md +15 -0
- data/docs/PaymentTransactionsApi.md +4 -4
- data/docs/ProductCreateRequest.md +1 -1
- data/docs/RequestExtendedAuthorization.md +15 -0
- data/docs/RequestThreeDSecure.md +15 -0
- data/docs/SetupFlowPaymentMethodOptionsCardRequest.md +1 -1
- data/lib/payjpv2/api/payment_transactions_api.rb +2 -2
- data/lib/payjpv2/models/balance_state.rb +4 -3
- data/lib/payjpv2/models/bank_account_status.rb +42 -0
- data/lib/payjpv2/models/bank_info_response.rb +24 -2
- data/lib/payjpv2/models/capture_method.rb +4 -3
- data/lib/payjpv2/models/card_brand.rb +45 -0
- data/lib/payjpv2/models/card_funding.rb +41 -0
- data/lib/payjpv2/models/checkout_session_create_request.rb +1 -1
- data/lib/payjpv2/models/checkout_session_mode.rb +4 -3
- data/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb +2 -22
- data/lib/payjpv2/models/checkout_session_status.rb +4 -3
- data/lib/payjpv2/models/checkout_session_submit_type.rb +4 -3
- data/lib/payjpv2/models/checkout_session_ui_mode.rb +4 -3
- data/lib/payjpv2/models/country.rb +4 -3
- data/lib/payjpv2/models/currency.rb +4 -3
- data/lib/payjpv2/models/customer_creation.rb +4 -3
- data/lib/payjpv2/models/display_preference_request.rb +6 -6
- data/lib/payjpv2/models/locale.rb +4 -3
- data/lib/payjpv2/models/payment_dispute_reason.rb +4 -3
- data/lib/payjpv2/models/payment_dispute_status.rb +4 -3
- data/lib/payjpv2/models/payment_flow_cancel_request.rb +1 -11
- data/lib/payjpv2/models/payment_flow_cancellation_reason.rb +4 -3
- data/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb +2 -22
- data/lib/payjpv2/models/payment_flow_status.rb +4 -3
- data/lib/payjpv2/models/payment_method_card_details_response.rb +40 -7
- data/lib/payjpv2/models/payment_method_configuration_display_preference.rb +2 -22
- data/lib/payjpv2/models/payment_method_configuration_preference.rb +42 -0
- data/lib/payjpv2/models/payment_method_configuration_value.rb +41 -0
- data/lib/payjpv2/models/payment_method_types.rb +4 -3
- data/lib/payjpv2/models/payment_refund_reason.rb +4 -3
- data/lib/payjpv2/models/payment_refund_status.rb +4 -3
- data/lib/payjpv2/models/payment_transaction_type.rb +4 -3
- data/lib/payjpv2/models/price_type.rb +4 -3
- data/lib/payjpv2/models/product_create_request.rb +15 -1
- data/lib/payjpv2/models/request_extended_authorization.rb +42 -0
- data/lib/payjpv2/models/request_three_d_secure.rb +41 -0
- data/lib/payjpv2/models/setup_flow_cancellation_reason.rb +4 -3
- data/lib/payjpv2/models/setup_flow_payment_method_options_card_request.rb +1 -11
- data/lib/payjpv2/models/setup_flow_status.rb +4 -3
- data/lib/payjpv2/models/statement_subject.rb +4 -3
- data/lib/payjpv2/models/statement_type.rb +4 -3
- data/lib/payjpv2/models/tax_type.rb +4 -3
- data/lib/payjpv2/models/usage.rb +4 -3
- data/lib/payjpv2/version.rb +1 -1
- data/lib/payjpv2.rb +7 -0
- data/spec/api/payment_transactions_api_spec.rb +2 -2
- data/spec/integration/anyof_deserialization_spec.rb +8 -1
- data/spec/models/bank_account_status_spec.rb +30 -0
- data/spec/models/card_brand_spec.rb +30 -0
- data/spec/models/card_funding_spec.rb +30 -0
- data/spec/models/checkout_session_payment_method_options_card_request_spec.rb +0 -8
- data/spec/models/display_preference_request_spec.rb +0 -4
- data/spec/models/payment_flow_cancel_request_spec.rb +0 -4
- data/spec/models/payment_flow_payment_method_options_card_request_spec.rb +0 -8
- data/spec/models/payment_method_card_details_response_spec.rb +6 -0
- data/spec/models/payment_method_configuration_display_preference_spec.rb +0 -8
- data/spec/models/payment_method_configuration_preference_spec.rb +30 -0
- data/spec/models/payment_method_configuration_value_spec.rb +30 -0
- data/spec/models/request_extended_authorization_spec.rb +30 -0
- data/spec/models/request_three_d_secure_spec.rb +30 -0
- data/spec/models/setup_flow_payment_method_options_card_request_spec.rb +0 -4
- metadata +29 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81d43c23b5a8578c804421e1221f7586c023d758000e1a1415e42a901fb545ad
|
|
4
|
+
data.tar.gz: 43d409f825e1110049a584f5f85ce1c2c4a1ef33d964192f2cdf2cfbfd19beaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc1edf16e9dc200bdc0afe359dc9f2a8e629c45d557d836cc43438315f7cb18012c46d06ce6fe23e3f0dfea6e4641557b755240a02c9cd80c39be14d8185e29f
|
|
7
|
+
data.tar.gz: 2427b98cf9e7919f875012eb358dd3588aeac9265bf941e1179a9acc98057244b6dba7b4fb19de3fa2a3ad2112a504532a32ce0ab1971076e4c27bafd17b72d2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A Ruby client library for the PAY.JP v2 API. This SDK provides a convenient way
|
|
|
5
5
|
This Ruby gem is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
6
|
|
|
7
7
|
- API version: 2.0.0
|
|
8
|
-
- Package version: 1.
|
|
8
|
+
- Package version: 1.3.0
|
|
9
9
|
- Generator version: 7.14.0
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@ gem install payjpv2
|
|
|
26
26
|
Add this line to your application's Gemfile:
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
|
-
gem 'payjpv2', '~> 1.
|
|
29
|
+
gem 'payjpv2', '~> 1.3.0'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Then execute:
|
|
@@ -267,9 +267,12 @@ Class | Method | HTTP request | Description
|
|
|
267
267
|
- [PAYJPv2::BalanceResponse](docs/BalanceResponse.md)
|
|
268
268
|
- [PAYJPv2::BalanceState](docs/BalanceState.md)
|
|
269
269
|
- [PAYJPv2::BalanceURLResponse](docs/BalanceURLResponse.md)
|
|
270
|
+
- [PAYJPv2::BankAccountStatus](docs/BankAccountStatus.md)
|
|
270
271
|
- [PAYJPv2::BankInfoResponse](docs/BankInfoResponse.md)
|
|
271
272
|
- [PAYJPv2::CaptureMethod](docs/CaptureMethod.md)
|
|
273
|
+
- [PAYJPv2::CardBrand](docs/CardBrand.md)
|
|
272
274
|
- [PAYJPv2::CardConfigRequest](docs/CardConfigRequest.md)
|
|
275
|
+
- [PAYJPv2::CardFunding](docs/CardFunding.md)
|
|
273
276
|
- [PAYJPv2::CheckoutSessionCreateRequest](docs/CheckoutSessionCreateRequest.md)
|
|
274
277
|
- [PAYJPv2::CheckoutSessionCustomerDetailsAddressResponse](docs/CheckoutSessionCustomerDetailsAddressResponse.md)
|
|
275
278
|
- [PAYJPv2::CheckoutSessionCustomerDetailsResponse](docs/CheckoutSessionCustomerDetailsResponse.md)
|
|
@@ -330,8 +333,10 @@ Class | Method | HTTP request | Description
|
|
|
330
333
|
- [PAYJPv2::PaymentMethodConfigurationDetailsResponse](docs/PaymentMethodConfigurationDetailsResponse.md)
|
|
331
334
|
- [PAYJPv2::PaymentMethodConfigurationDisplayPreference](docs/PaymentMethodConfigurationDisplayPreference.md)
|
|
332
335
|
- [PAYJPv2::PaymentMethodConfigurationListResponse](docs/PaymentMethodConfigurationListResponse.md)
|
|
336
|
+
- [PAYJPv2::PaymentMethodConfigurationPreference](docs/PaymentMethodConfigurationPreference.md)
|
|
333
337
|
- [PAYJPv2::PaymentMethodConfigurationSettingResponse](docs/PaymentMethodConfigurationSettingResponse.md)
|
|
334
338
|
- [PAYJPv2::PaymentMethodConfigurationUpdateRequest](docs/PaymentMethodConfigurationUpdateRequest.md)
|
|
339
|
+
- [PAYJPv2::PaymentMethodConfigurationValue](docs/PaymentMethodConfigurationValue.md)
|
|
335
340
|
- [PAYJPv2::PaymentMethodCreateCardDetailsRequest](docs/PaymentMethodCreateCardDetailsRequest.md)
|
|
336
341
|
- [PAYJPv2::PaymentMethodCreateRequest](docs/PaymentMethodCreateRequest.md)
|
|
337
342
|
- [PAYJPv2::PaymentMethodListResponse](docs/PaymentMethodListResponse.md)
|
|
@@ -364,6 +369,8 @@ Class | Method | HTTP request | Description
|
|
|
364
369
|
- [PAYJPv2::ProductUpdateRequest](docs/ProductUpdateRequest.md)
|
|
365
370
|
- [PAYJPv2::RedirectOptionsRequest](docs/RedirectOptionsRequest.md)
|
|
366
371
|
- [PAYJPv2::RedirectOptionsResponse](docs/RedirectOptionsResponse.md)
|
|
372
|
+
- [PAYJPv2::RequestExtendedAuthorization](docs/RequestExtendedAuthorization.md)
|
|
373
|
+
- [PAYJPv2::RequestThreeDSecure](docs/RequestThreeDSecure.md)
|
|
367
374
|
- [PAYJPv2::SetupFlowCancelRequest](docs/SetupFlowCancelRequest.md)
|
|
368
375
|
- [PAYJPv2::SetupFlowCancellationReason](docs/SetupFlowCancellationReason.md)
|
|
369
376
|
- [PAYJPv2::SetupFlowCreateRequest](docs/SetupFlowCreateRequest.md)
|
data/docs/BankInfoResponse.md
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **bank_code** | **String** | 銀行コード | |
|
|
8
8
|
| **bank_branch_code** | **String** | 支店番号 | |
|
|
9
|
-
| **bank_account_type** | **String** |
|
|
9
|
+
| **bank_account_type** | **String** | 口座種別。`普通` または `当座` | |
|
|
10
10
|
| **bank_account_number** | **String** | 口座番号 | |
|
|
11
11
|
| **bank_account_holder_name** | **String** | 口座名義 | |
|
|
12
|
-
| **bank_account_status** | **
|
|
12
|
+
| **bank_account_status** | [**BankAccountStatus**](BankAccountStatus.md) | 最新振込結果 | 値 | |:---| | **success**: 成功 | | **failed**: 失敗 | | **pending**: 初回振込み前 | | |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
data/docs/CardBrand.md
ADDED
data/docs/CardFunding.md
ADDED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
| **cancel_url** | **String** | キャンセル時のリダイレクト URL | [optional] |
|
|
16
16
|
| **redirect_options** | [**RedirectOptionsRequest**](RedirectOptionsRequest.md) | Checkout から success_url へリダイレクトする際のオプション。Checkout が作成する PaymentFlow / SetupFlow に引き継がれます。 | [optional] |
|
|
17
17
|
| **currency** | [**Currency**](Currency.md) | 価格の通貨。現在は `jpy` のみサポートしています。 | [optional] |
|
|
18
|
-
| **expires_at** | **Time** | Checkout Session
|
|
18
|
+
| **expires_at** | **Time** | Checkout Session の有効期限が失効する日時<br> 24時間以内の日時を指定できます。未指定の場合は作成時点から24時間後になります。 | [optional] |
|
|
19
19
|
| **locale** | [**Locale**](Locale.md) | Checkout 画面の表示言語を指定します。 | 指定できる値 | |:---| | **ja**: 日本語で表示します。 | | [optional] |
|
|
20
20
|
| **payment_method_types** | [**Array<PaymentMethodTypes>**](PaymentMethodTypes.md) | この PaymentFlow で使用できる支払い方法の種類(カードなど)のリストです。指定しない場合、管理画面で利用可能な状態にしている支払い方法を自動的に表示します。 | [optional] |
|
|
21
21
|
| **payment_method_options** | [**CheckoutSessionPaymentMethodOptionsRequest**](CheckoutSessionPaymentMethodOptionsRequest.md) | この PaymentFlow の支払い方法の個別設定 | [optional] |
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **request_extended_authorization** | **
|
|
8
|
-
| **request_three_d_secure** | **
|
|
7
|
+
| **request_extended_authorization** | [**RequestExtendedAuthorization**](RequestExtendedAuthorization.md) | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
8
|
+
| **request_three_d_secure** | [**RequestThreeDSecure**](RequestThreeDSecure.md) | 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **preference** | **
|
|
7
|
+
| **preference** | [**PaymentMethodConfigurationPreference**](PaymentMethodConfigurationPreference.md) | この支払い方法がアカウントで有効になっているかどうか | 値 | |:---| | **on**: この決済手段を決済画面に表示する | | **off**: この決済手段を決済画面に表示しない | | **none**: デフォルト設定を使用 | | |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **cancellation_reason** | **
|
|
7
|
+
| **cancellation_reason** | [**PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | この PaymentFlow のキャンセル理由 | 値 | |:---| | **duplicate**: 重複した支払いである場合。 | | **fraudulent**: 不正な利用だと考えられる場合。 | | **requested_by_customer**: 顧客がキャンセルを要求した場合。 | | **abandoned**: 顧客が支払いを完了しなかった場合。 | | [optional] |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **request_extended_authorization** | **
|
|
8
|
-
| **request_three_d_secure** | **
|
|
7
|
+
| **request_extended_authorization** | [**RequestExtendedAuthorization**](RequestExtendedAuthorization.md) | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] |
|
|
8
|
+
| **request_three_d_secure** | [**RequestThreeDSecure**](RequestThreeDSecure.md) | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **last4** | **String** | カードの下4桁 | |
|
|
8
|
-
| **brand** | **
|
|
8
|
+
| **brand** | [**CardBrand**](CardBrand.md) | | |
|
|
9
9
|
| **exp_month** | **Integer** | カードの有効期限(月) | |
|
|
10
10
|
| **exp_year** | **Integer** | カードの有効期限(年) | |
|
|
11
11
|
| **fingerprint** | **String** | このクレジットカード番号に紐づく値。同一番号のカードからは同一の値が生成されることが保証されています。 | |
|
|
12
12
|
| **country** | **String** | | |
|
|
13
|
+
| **funding** | [**CardFunding**](CardFunding.md) | | |
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,7 +23,8 @@ instance = PAYJPv2::PaymentMethodCardDetailsResponse.new(
|
|
|
22
23
|
exp_month: null,
|
|
23
24
|
exp_year: null,
|
|
24
25
|
fingerprint: null,
|
|
25
|
-
country: null
|
|
26
|
+
country: null,
|
|
27
|
+
funding: null
|
|
26
28
|
)
|
|
27
29
|
```
|
|
28
30
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **preference** | **
|
|
8
|
-
| **value** | **
|
|
7
|
+
| **preference** | [**PaymentMethodConfigurationPreference**](PaymentMethodConfigurationPreference.md) | この支払い方法がアカウントで有効になっているかどうか | 値 | |:---| | **on**: この決済手段を決済画面に表示する | | **off**: この決済手段を決済画面に表示しない | | **none**: デフォルト設定を使用 | | [optional] |
|
|
8
|
+
| **value** | [**PaymentMethodConfigurationValue**](PaymentMethodConfigurationValue.md) | この支払い方法を決済画面に表示するかどうか。 | 値 | |:---| | **on**: この決済手段を決済画面に表示する | | **off**: この決済手段を決済画面に表示しない | | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# PAYJPv2::PaymentMethodConfigurationPreference
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'payjpv2'
|
|
12
|
+
|
|
13
|
+
instance = PAYJPv2::PaymentMethodConfigurationPreference.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# PAYJPv2::PaymentMethodConfigurationValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'payjpv2'
|
|
12
|
+
|
|
13
|
+
instance = PAYJPv2::PaymentMethodConfigurationValue.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -35,8 +35,8 @@ opts = {
|
|
|
35
35
|
starting_after: 'starting_after_example', # String | このIDより後のデータを取得
|
|
36
36
|
ending_before: 'ending_before_example', # String | このIDより前のデータを取得
|
|
37
37
|
term_id: 'term_id_example', # String | 集計区間 ID
|
|
38
|
-
type:
|
|
39
|
-
payment_method_type:
|
|
38
|
+
type: PAYJPv2::PaymentTransactionType::PAYMENT, # PaymentTransactionType | 取引タイプ
|
|
39
|
+
payment_method_type: PAYJPv2::PaymentMethodTypes::CARD # PaymentMethodTypes | 支払い方法タイプ
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
begin
|
|
@@ -72,8 +72,8 @@ end
|
|
|
72
72
|
| **starting_after** | **String** | このIDより後のデータを取得 | [optional] |
|
|
73
73
|
| **ending_before** | **String** | このIDより前のデータを取得 | [optional] |
|
|
74
74
|
| **term_id** | **String** | 集計区間 ID | [optional] |
|
|
75
|
-
| **type** | **
|
|
76
|
-
| **payment_method_type** | **
|
|
75
|
+
| **type** | [**PaymentTransactionType**](.md) | 取引タイプ | [optional] |
|
|
76
|
+
| **payment_method_type** | [**PaymentMethodTypes**](.md) | 支払い方法タイプ | [optional] |
|
|
77
77
|
|
|
78
78
|
### Return type
|
|
79
79
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **name** | **String** | Checkout などで顧客に表示される商品名 | |
|
|
8
|
-
| **id** | **String** | 商品 ID | [optional] |
|
|
8
|
+
| **id** | **String** | 商品 ID(255文字以内) | [optional] |
|
|
9
9
|
| **active** | **Boolean** | 商品が購入可能かどうか | [optional][default to true] |
|
|
10
10
|
| **description** | **String** | Checkout などで顧客に表示される商品説明 | [optional] |
|
|
11
11
|
| **unit_label** | **String** | この製品の単位を表すラベル。設定すると、Checkout などに表示されます。(例:「個」、「ライセンス」、「時間」、「回」など) | [optional] |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# PAYJPv2::RequestExtendedAuthorization
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'payjpv2'
|
|
12
|
+
|
|
13
|
+
instance = PAYJPv2::RequestExtendedAuthorization.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **request_three_d_secure** | **
|
|
7
|
+
| **request_three_d_secure** | [**RequestThreeDSecure**](RequestThreeDSecure.md) | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
@@ -25,8 +25,8 @@ module PAYJPv2
|
|
|
25
25
|
# @option opts [String] :starting_after このIDより後のデータを取得
|
|
26
26
|
# @option opts [String] :ending_before このIDより前のデータを取得
|
|
27
27
|
# @option opts [String] :term_id 集計区間 ID
|
|
28
|
-
# @option opts [
|
|
29
|
-
# @option opts [
|
|
28
|
+
# @option opts [PaymentTransactionType] :type 取引タイプ
|
|
29
|
+
# @option opts [PaymentMethodTypes] :payment_method_type 支払い方法タイプ
|
|
30
30
|
# @option opts [String] :idempotency_key Idempotency key for the request
|
|
31
31
|
# @option opts [Boolean] :include_http_info If true, returns [data, status_code, headers] instead of just data
|
|
32
32
|
# @return [PaymentTransactionListResponse, Array] Returns data or [data, status_code, headers] if include_http_info is true
|
|
@@ -27,15 +27,16 @@ module PAYJPv2
|
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
|
28
28
|
# @return [String] The enum value
|
|
29
29
|
def self.build_from_hash(value)
|
|
30
|
-
|
|
30
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
31
|
+
value
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# Builds the enum from string
|
|
34
35
|
# @param [String] The enum value in the form of the string
|
|
35
36
|
# @return [String] The enum value
|
|
36
37
|
def build_from_hash(value)
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
39
|
+
value
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PAYJPv2
|
|
17
|
+
class BankAccountStatus
|
|
18
|
+
SUCCESS = "success".freeze
|
|
19
|
+
FAILED = "failed".freeze
|
|
20
|
+
PENDING = "pending".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [SUCCESS, FAILED, PENDING].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
31
|
+
value
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Builds the enum from string
|
|
35
|
+
# @param [String] The enum value in the form of the string
|
|
36
|
+
# @return [String] The enum value
|
|
37
|
+
def build_from_hash(value)
|
|
38
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
39
|
+
value
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -21,7 +21,7 @@ module PAYJPv2
|
|
|
21
21
|
# 支店番号
|
|
22
22
|
attr_accessor :bank_branch_code
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# 口座種別。`普通` または `当座`
|
|
25
25
|
attr_accessor :bank_account_type
|
|
26
26
|
|
|
27
27
|
# 口座番号
|
|
@@ -33,6 +33,28 @@ module PAYJPv2
|
|
|
33
33
|
# 最新振込結果 | 値 | |:---| | **success**: 成功 | | **failed**: 失敗 | | **pending**: 初回振込み前 |
|
|
34
34
|
attr_accessor :bank_account_status
|
|
35
35
|
|
|
36
|
+
class EnumAttributeValidator
|
|
37
|
+
attr_reader :datatype
|
|
38
|
+
attr_reader :allowable_values
|
|
39
|
+
|
|
40
|
+
def initialize(datatype, allowable_values)
|
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
|
42
|
+
case datatype.to_s
|
|
43
|
+
when /Integer/i
|
|
44
|
+
value.to_i
|
|
45
|
+
when /Float/i
|
|
46
|
+
value.to_f
|
|
47
|
+
else
|
|
48
|
+
value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def valid?(value)
|
|
54
|
+
!value || allowable_values.include?(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
36
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
59
|
def self.attribute_map
|
|
38
60
|
{
|
|
@@ -63,7 +85,7 @@ module PAYJPv2
|
|
|
63
85
|
:bank_account_type => :'String',
|
|
64
86
|
:bank_account_number => :'String',
|
|
65
87
|
:bank_account_holder_name => :'String',
|
|
66
|
-
:bank_account_status => :'
|
|
88
|
+
:bank_account_status => :'BankAccountStatus'
|
|
67
89
|
}
|
|
68
90
|
end
|
|
69
91
|
|
|
@@ -26,15 +26,16 @@ module PAYJPv2
|
|
|
26
26
|
# @param [String] The enum value in the form of the string
|
|
27
27
|
# @return [String] The enum value
|
|
28
28
|
def self.build_from_hash(value)
|
|
29
|
-
|
|
29
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
30
|
+
value
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Builds the enum from string
|
|
33
34
|
# @param [String] The enum value in the form of the string
|
|
34
35
|
# @return [String] The enum value
|
|
35
36
|
def build_from_hash(value)
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
38
|
+
value
|
|
38
39
|
end
|
|
39
40
|
end
|
|
40
41
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PAYJPv2
|
|
17
|
+
class CardBrand
|
|
18
|
+
VISA = "Visa".freeze
|
|
19
|
+
MASTER_CARD = "MasterCard".freeze
|
|
20
|
+
JCB = "JCB".freeze
|
|
21
|
+
AMERICAN_EXPRESS = "American Express".freeze
|
|
22
|
+
DINERS_CLUB = "Diners Club".freeze
|
|
23
|
+
DISCOVER = "Discover".freeze
|
|
24
|
+
|
|
25
|
+
def self.all_vars
|
|
26
|
+
@all_vars ||= [VISA, MASTER_CARD, JCB, AMERICAN_EXPRESS, DINERS_CLUB, DISCOVER].freeze
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Builds the enum from string
|
|
30
|
+
# @param [String] The enum value in the form of the string
|
|
31
|
+
# @return [String] The enum value
|
|
32
|
+
def self.build_from_hash(value)
|
|
33
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
34
|
+
value
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Builds the enum from string
|
|
38
|
+
# @param [String] The enum value in the form of the string
|
|
39
|
+
# @return [String] The enum value
|
|
40
|
+
def build_from_hash(value)
|
|
41
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
42
|
+
value
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#PAY.JP API v2
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PAYJPv2
|
|
17
|
+
class CardFunding
|
|
18
|
+
DEBIT = "debit".freeze
|
|
19
|
+
PREPAID = "prepaid".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [DEBIT, PREPAID].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Builds the enum from string
|
|
26
|
+
# @param [String] The enum value in the form of the string
|
|
27
|
+
# @return [String] The enum value
|
|
28
|
+
def self.build_from_hash(value)
|
|
29
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
30
|
+
value
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
38
|
+
value
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -48,7 +48,7 @@ module PAYJPv2
|
|
|
48
48
|
# 価格の通貨。現在は `jpy` のみサポートしています。
|
|
49
49
|
attr_accessor :currency
|
|
50
50
|
|
|
51
|
-
# Checkout Session
|
|
51
|
+
# Checkout Session の有効期限が失効する日時<br> 24時間以内の日時を指定できます。未指定の場合は作成時点から24時間後になります。
|
|
52
52
|
attr_accessor :expires_at
|
|
53
53
|
|
|
54
54
|
# Checkout 画面の表示言語を指定します。 | 指定できる値 | |:---| | **ja**: 日本語で表示します。 |
|
|
@@ -26,15 +26,16 @@ module PAYJPv2
|
|
|
26
26
|
# @param [String] The enum value in the form of the string
|
|
27
27
|
# @return [String] The enum value
|
|
28
28
|
def self.build_from_hash(value)
|
|
29
|
-
|
|
29
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
30
|
+
value
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Builds the enum from string
|
|
33
34
|
# @param [String] The enum value in the form of the string
|
|
34
35
|
# @return [String] The enum value
|
|
35
36
|
def build_from_hash(value)
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
38
|
+
value
|
|
38
39
|
end
|
|
39
40
|
end
|
|
40
41
|
end
|
|
@@ -64,8 +64,8 @@ module PAYJPv2
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
-
:request_extended_authorization => :'
|
|
68
|
-
:request_three_d_secure => :'
|
|
67
|
+
:request_extended_authorization => :'RequestExtendedAuthorization',
|
|
68
|
+
:request_three_d_secure => :'RequestThreeDSecure'
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -100,26 +100,6 @@ module PAYJPv2
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
104
|
-
# @param [Object] request_extended_authorization Object to be assigned
|
|
105
|
-
def request_extended_authorization=(request_extended_authorization)
|
|
106
|
-
validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
|
|
107
|
-
unless validator.valid?(request_extended_authorization)
|
|
108
|
-
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
|
|
109
|
-
end
|
|
110
|
-
@request_extended_authorization = request_extended_authorization
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
114
|
-
# @param [Object] request_three_d_secure Object to be assigned
|
|
115
|
-
def request_three_d_secure=(request_three_d_secure)
|
|
116
|
-
validator = EnumAttributeValidator.new('String', ["any", "automatic"])
|
|
117
|
-
unless validator.valid?(request_three_d_secure)
|
|
118
|
-
raise ArgumentError, "invalid value for \"request_three_d_secure\", must be one of #{validator.allowable_values}."
|
|
119
|
-
end
|
|
120
|
-
@request_three_d_secure = request_three_d_secure
|
|
121
|
-
end
|
|
122
|
-
|
|
123
103
|
# Checks equality by comparing each attribute.
|
|
124
104
|
# @param [Object] Object to be compared
|
|
125
105
|
def ==(o)
|