Class: Pago::V2026_04::Models::CustomerBenefitGrantGitHubRepository
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ created_at: "created_at", modified_at: "modified_at", id: "id", granted_at: "granted_at", revoked_at: "revoked_at", customer_id: "customer_id", member_id: "member_id", benefit_id: "benefit_id", subscription_id: "subscription_id", order_id: "order_id", is_granted: "is_granted", is_revoked: "is_revoked", error: "error", customer: "customer", benefit: "benefit", properties: "properties" }.freeze
- REQUIRED_KEYS =
["created_at", "modified_at", "id", "granted_at", "revoked_at", "customer_id", "benefit_id", "subscription_id", "order_id", "is_granted", "is_revoked", "customer", "benefit", "properties"].freeze
Instance Attribute Summary collapse
- #benefit ⇒ Models::BenefitGitHubRepositorySubscriber readonly
- #benefit_id ⇒ String readonly
-
#created_at ⇒ String
readonly
Creation timestamp of the object.
- #customer ⇒ Models::CustomerPortalCustomer readonly
- #customer_id ⇒ String readonly
- #error ⇒ Models::BenefitGrantError? readonly
- #granted_at ⇒ String? readonly
-
#id ⇒ String
readonly
The ID of the object.
- #is_granted ⇒ Boolean readonly
- #is_revoked ⇒ Boolean readonly
- #member_id ⇒ String? readonly
-
#modified_at ⇒ String?
readonly
Last modification timestamp of the object.
- #order_id ⇒ String? readonly
- #properties ⇒ Models::BenefitGrantGitHubRepositoryProperties readonly
- #revoked_at ⇒ String? readonly
- #subscription_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties:) ⇒ CustomerBenefitGrantGitHubRepository
constructor
A new instance of CustomerBenefitGrantGitHubRepository.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties:) ⇒ CustomerBenefitGrantGitHubRepository
Returns a new instance of CustomerBenefitGrantGitHubRepository.
15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 |
# File 'lib/pago/v2026_04/models.rb', line 15514 def initialize( created_at:, modified_at:, id:, granted_at:, revoked_at:, customer_id:, member_id: ::Pago::UNSET, benefit_id:, subscription_id:, order_id:, is_granted:, is_revoked:, error: ::Pago::UNSET, customer:, benefit:, properties: ) super() assign(:created_at, created_at) assign(:modified_at, modified_at) assign(:id, id) assign(:granted_at, granted_at) assign(:revoked_at, revoked_at) assign(:customer_id, customer_id) assign(:member_id, member_id) assign(:benefit_id, benefit_id) assign(:subscription_id, subscription_id) assign(:order_id, order_id) assign(:is_granted, is_granted) assign(:is_revoked, is_revoked) assign(:error, error) assign(:customer, customer) assign(:benefit, benefit) assign(:properties, properties) end |
Instance Attribute Details
#benefit ⇒ Models::BenefitGitHubRepositorySubscriber (readonly)
15509 15510 15511 |
# File 'lib/pago/v2026_04/models.rb', line 15509 def benefit @benefit end |
#benefit_id ⇒ String (readonly)
15488 15489 15490 |
# File 'lib/pago/v2026_04/models.rb', line 15488 def benefit_id @benefit_id end |
#created_at ⇒ String (readonly)
Creation timestamp of the object.
15465 15466 15467 |
# File 'lib/pago/v2026_04/models.rb', line 15465 def created_at @created_at end |
#customer ⇒ Models::CustomerPortalCustomer (readonly)
15506 15507 15508 |
# File 'lib/pago/v2026_04/models.rb', line 15506 def customer @customer end |
#customer_id ⇒ String (readonly)
15482 15483 15484 |
# File 'lib/pago/v2026_04/models.rb', line 15482 def customer_id @customer_id end |
#error ⇒ Models::BenefitGrantError? (readonly)
15503 15504 15505 |
# File 'lib/pago/v2026_04/models.rb', line 15503 def error @error end |
#granted_at ⇒ String? (readonly)
15476 15477 15478 |
# File 'lib/pago/v2026_04/models.rb', line 15476 def granted_at @granted_at end |
#id ⇒ String (readonly)
The ID of the object.
15473 15474 15475 |
# File 'lib/pago/v2026_04/models.rb', line 15473 def id @id end |
#is_granted ⇒ Boolean (readonly)
15497 15498 15499 |
# File 'lib/pago/v2026_04/models.rb', line 15497 def is_granted @is_granted end |
#is_revoked ⇒ Boolean (readonly)
15500 15501 15502 |
# File 'lib/pago/v2026_04/models.rb', line 15500 def is_revoked @is_revoked end |
#member_id ⇒ String? (readonly)
15485 15486 15487 |
# File 'lib/pago/v2026_04/models.rb', line 15485 def member_id @member_id end |
#modified_at ⇒ String? (readonly)
Last modification timestamp of the object.
15469 15470 15471 |
# File 'lib/pago/v2026_04/models.rb', line 15469 def modified_at @modified_at end |
#order_id ⇒ String? (readonly)
15494 15495 15496 |
# File 'lib/pago/v2026_04/models.rb', line 15494 def order_id @order_id end |
#properties ⇒ Models::BenefitGrantGitHubRepositoryProperties (readonly)
15512 15513 15514 |
# File 'lib/pago/v2026_04/models.rb', line 15512 def properties @properties end |
#revoked_at ⇒ String? (readonly)
15479 15480 15481 |
# File 'lib/pago/v2026_04/models.rb', line 15479 def revoked_at @revoked_at end |
#subscription_id ⇒ String? (readonly)
15491 15492 15493 |
# File 'lib/pago/v2026_04/models.rb', line 15491 def subscription_id @subscription_id end |
Class Method Details
.from_json(data) ⇒ CustomerBenefitGrantGitHubRepository?
15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 |
# File 'lib/pago/v2026_04/models.rb', line 15553 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( created_at: (data.key?("created_at") ? data["created_at"] : ::Pago::UNSET), modified_at: (data.key?("modified_at") ? data["modified_at"] : ::Pago::UNSET), id: (data.key?("id") ? data["id"] : ::Pago::UNSET), granted_at: (data.key?("granted_at") ? data["granted_at"] : ::Pago::UNSET), revoked_at: (data.key?("revoked_at") ? data["revoked_at"] : ::Pago::UNSET), customer_id: (data.key?("customer_id") ? data["customer_id"] : ::Pago::UNSET), member_id: (data.key?("member_id") ? data["member_id"] : ::Pago::UNSET), benefit_id: (data.key?("benefit_id") ? data["benefit_id"] : ::Pago::UNSET), subscription_id: (data.key?("subscription_id") ? data["subscription_id"] : ::Pago::UNSET), order_id: (data.key?("order_id") ? data["order_id"] : ::Pago::UNSET), is_granted: (data.key?("is_granted") ? data["is_granted"] : ::Pago::UNSET), is_revoked: (data.key?("is_revoked") ? data["is_revoked"] : ::Pago::UNSET), error: (data.key?("error") ? Models::BenefitGrantError.from_json(data["error"]) : ::Pago::UNSET), customer: (data.key?("customer") ? Models::CustomerPortalCustomer.from_json(data["customer"]) : ::Pago::UNSET), benefit: (data.key?("benefit") ? Models::BenefitGitHubRepositorySubscriber.from_json(data["benefit"]) : ::Pago::UNSET), properties: (data.key?("properties") ? Models::BenefitGrantGitHubRepositoryProperties.from_json(data["properties"]) : ::Pago::UNSET) ), data ) end |