Class: Increase::Resources::PhysicalCardProfiles
- Inherits:
-
Object
- Object
- Increase::Resources::PhysicalCardProfiles
- Defined in:
- lib/increase/resources/physical_card_profiles.rb
Instance Method Summary collapse
-
#archive(physical_card_profile_id, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Archive a Physical Card Profile.
-
#clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Some parameter documentations has been truncated, see Models::PhysicalCardProfileCloneParams for more details.
-
#create(carrier_image_file_id: , contact_phone: , description: , front_image_file_id: , program_id: , front_text: nil, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Some parameter documentations has been truncated, see Models::PhysicalCardProfileCreateParams for more details.
-
#initialize(client:) ⇒ PhysicalCardProfiles
constructor
private
A new instance of PhysicalCardProfiles.
-
#list(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::PhysicalCardProfile>
Some parameter documentations has been truncated, see Models::PhysicalCardProfileListParams for more details.
-
#retrieve(physical_card_profile_id, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Retrieve a Card Profile.
Constructor Details
#initialize(client:) ⇒ PhysicalCardProfiles
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 PhysicalCardProfiles.
153 154 155 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 153 def initialize(client:) @client = client end |
Instance Method Details
#archive(physical_card_profile_id, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Archive a Physical Card Profile
104 105 106 107 108 109 110 111 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 104 def archive(physical_card_profile_id, params = {}) @client.request( method: :post, path: ["physical_card_profiles/%1$s/archive", physical_card_profile_id], model: Increase::PhysicalCardProfile, options: params[:request_options] ) end |
#clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Some parameter documentations has been truncated, see Models::PhysicalCardProfileCloneParams for more details.
Clone a Physical Card Profile
139 140 141 142 143 144 145 146 147 148 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 139 def clone_(physical_card_profile_id, params = {}) parsed, = Increase::PhysicalCardProfileCloneParams.dump_request(params) @client.request( method: :post, path: ["physical_card_profiles/%1$s/clone", physical_card_profile_id], body: parsed, model: Increase::PhysicalCardProfile, options: ) end |
#create(carrier_image_file_id: , contact_phone: , description: , front_image_file_id: , program_id: , front_text: nil, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Some parameter documentations has been truncated, see Models::PhysicalCardProfileCreateParams for more details.
Create a Physical Card Profile
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 30 def create(params) parsed, = Increase::PhysicalCardProfileCreateParams.dump_request(params) @client.request( method: :post, path: "physical_card_profiles", body: parsed, model: Increase::PhysicalCardProfile, options: ) end |
#list(cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::PhysicalCardProfile>
Some parameter documentations has been truncated, see Models::PhysicalCardProfileListParams for more details.
List Physical Card Profiles
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 81 def list(params = {}) parsed, = Increase::PhysicalCardProfileListParams.dump_request(params) @client.request( method: :get, path: "physical_card_profiles", query: parsed, page: Increase::Internal::Page, model: Increase::PhysicalCardProfile, options: ) end |
#retrieve(physical_card_profile_id, request_options: {}) ⇒ Increase::Models::PhysicalCardProfile
Retrieve a Card Profile
52 53 54 55 56 57 58 59 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 52 def retrieve(physical_card_profile_id, params = {}) @client.request( method: :get, path: ["physical_card_profiles/%1$s", physical_card_profile_id], model: Increase::PhysicalCardProfile, options: params[:request_options] ) end |