Class: Increase::Resources::CardValidations
- Inherits:
-
Object
- Object
- Increase::Resources::CardValidations
- Defined in:
- lib/increase/resources/card_validations.rb
Instance Method Summary collapse
-
#create(account_id: , card_token_id: , merchant_category_code: , merchant_city_name: , merchant_name: , merchant_postal_code: , merchant_state: , cardholder_first_name: nil, cardholder_last_name: nil, cardholder_middle_name: nil, cardholder_postal_code: nil, cardholder_street_address: nil, request_options: {}) ⇒ Increase::Models::CardValidation
Some parameter documentations has been truncated, see Models::CardValidationCreateParams for more details.
-
#initialize(client:) ⇒ CardValidations
constructor
private
A new instance of CardValidations.
-
#list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::CardValidation>
Some parameter documentations has been truncated, see Models::CardValidationListParams for more details.
-
#retrieve(card_validation_id, request_options: {}) ⇒ Increase::Models::CardValidation
Retrieve a Card Validation.
Constructor Details
#initialize(client:) ⇒ CardValidations
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CardValidations.
112 113 114 |
# File 'lib/increase/resources/card_validations.rb', line 112 def initialize(client:) @client = client end |
Instance Method Details
#create(account_id: , card_token_id: , merchant_category_code: , merchant_city_name: , merchant_name: , merchant_postal_code: , merchant_state: , cardholder_first_name: nil, cardholder_last_name: nil, cardholder_middle_name: nil, cardholder_postal_code: nil, cardholder_street_address: nil, request_options: {}) ⇒ Increase::Models::CardValidation
Some parameter documentations has been truncated, see Models::CardValidationCreateParams for more details.
Create a Card Validation
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/increase/resources/card_validations.rb', line 42 def create(params) parsed, = Increase::CardValidationCreateParams.dump_request(params) @client.request( method: :post, path: "card_validations", body: parsed, model: Increase::CardValidation, options: ) end |
#list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::CardValidation>
Some parameter documentations has been truncated, see Models::CardValidationListParams for more details.
List Card Validations
97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/increase/resources/card_validations.rb', line 97 def list(params = {}) parsed, = Increase::CardValidationListParams.dump_request(params) @client.request( method: :get, path: "card_validations", query: parsed, page: Increase::Internal::Page, model: Increase::CardValidation, options: ) end |
#retrieve(card_validation_id, request_options: {}) ⇒ Increase::Models::CardValidation
Retrieve a Card Validation
64 65 66 67 68 69 70 71 |
# File 'lib/increase/resources/card_validations.rb', line 64 def retrieve(card_validation_id, params = {}) @client.request( method: :get, path: ["card_validations/%1$s", card_validation_id], model: Increase::CardValidation, options: params[:request_options] ) end |