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, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Archive a Physical Card Profile.
-
#clone(physical_card_profile_id, params = {}, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Clone a Physical Card Profile.
-
#create(params = {}, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Create a Physical Card Profile.
-
#initialize(client:) ⇒ PhysicalCardProfiles
constructor
A new instance of PhysicalCardProfiles.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::PhysicalCardProfile>
List Physical Card Profiles.
-
#retrieve(physical_card_profile_id, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Retrieve a Card Profile.
Constructor Details
#initialize(client:) ⇒ PhysicalCardProfiles
Returns a new instance of PhysicalCardProfiles.
6 7 8 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#archive(physical_card_profile_id, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Archive a Physical Card Profile
75 76 77 78 79 80 81 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 75 def archive(physical_card_profile_id, opts = {}) req = {} req[:method] = :post req[:path] = "/physical_card_profiles/#{physical_card_profile_id}/archive" req[:model] = Increase::Models::PhysicalCardProfile @client.request(req, opts) end |
#clone(physical_card_profile_id, params = {}, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Clone a Physical Card Profile
98 99 100 101 102 103 104 105 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 98 def clone(physical_card_profile_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/physical_card_profiles/#{physical_card_profile_id}/clone" req[:body] = params req[:model] = Increase::Models::PhysicalCardProfile @client.request(req, opts) end |
#create(params = {}, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Create a Physical Card Profile
21 22 23 24 25 26 27 28 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 21 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/physical_card_profiles" req[:body] = params req[:model] = Increase::Models::PhysicalCardProfile @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::PhysicalCardProfile>
List Physical Card Profiles
59 60 61 62 63 64 65 66 67 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 59 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/physical_card_profiles" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::PhysicalCardProfile @client.request(req, opts) end |
#retrieve(physical_card_profile_id, opts = {}) ⇒ Increase::Models::PhysicalCardProfile
Retrieve a Card Profile
36 37 38 39 40 41 42 |
# File 'lib/increase/resources/physical_card_profiles.rb', line 36 def retrieve(physical_card_profile_id, opts = {}) req = {} req[:method] = :get req[:path] = "/physical_card_profiles/#{physical_card_profile_id}" req[:model] = Increase::Models::PhysicalCardProfile @client.request(req, opts) end |