Class: Onlyfans::Models::Users::SubscribeCreateResponse::Data::SubscribedByData::Subscribe
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::Users::SubscribeCreateResponse::Data::SubscribedByData::Subscribe
- Defined in:
- lib/onlyfans/models/users/subscribe_create_response.rb,
sig/onlyfans/models/users/subscribe_create_response.rbs
Instance Attribute Summary collapse
- #action ⇒ String?
- #cancel_date ⇒ String?
- #date ⇒ String?
- #discount ⇒ Integer?
- #duration ⇒ Integer?
- #earning_id ⇒ Integer?
- #expire_date ⇒ String?
- #id ⇒ Integer?
- #is_current ⇒ Boolean?
- #offer_end ⇒ String?
- #offer_start ⇒ String?
- #price ⇒ Integer?
- #regular_price ⇒ Integer?
- #start_date ⇒ String?
- #subscriber_id ⇒ Integer?
- #type ⇒ String?
- #user_id ⇒ Integer?
Instance Method Summary collapse
- #initialize(id: nil, action: nil, cancel_date: nil, date: nil, discount: nil, duration: nil, earning_id: nil, expire_date: nil, is_current: nil, offer_end: nil, offer_start: nil, price: nil, regular_price: nil, start_date: nil, subscriber_id: nil, type: nil, user_id: nil) ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: nil, action: nil, cancel_date: nil, date: nil, discount: nil, duration: nil, earning_id: nil, expire_date: nil, is_current: nil, offer_end: nil, offer_start: nil, price: nil, regular_price: nil, start_date: nil, subscriber_id: nil, type: nil, user_id: nil) ⇒ Object
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 646 class Subscribe < Onlyfans::Internal::Type::BaseModel # @!attribute id # # @return [Integer, nil] optional :id, Integer # @!attribute action # # @return [String, nil] optional :action, String # @!attribute cancel_date # # @return [String, nil] optional :cancel_date, String, api_name: :cancelDate, nil?: true # @!attribute date # # @return [String, nil] optional :date, String # @!attribute discount # # @return [Integer, nil] optional :discount, Integer # @!attribute duration # # @return [Integer, nil] optional :duration, Integer # @!attribute earning_id # # @return [Integer, nil] optional :earning_id, Integer, api_name: :earningId # @!attribute expire_date # # @return [String, nil] optional :expire_date, String, api_name: :expireDate # @!attribute is_current # # @return [Boolean, nil] optional :is_current, Onlyfans::Internal::Type::Boolean, api_name: :isCurrent # @!attribute offer_end # # @return [String, nil] optional :offer_end, String, api_name: :offerEnd, nil?: true # @!attribute offer_start # # @return [String, nil] optional :offer_start, String, api_name: :offerStart, nil?: true # @!attribute price # # @return [Integer, nil] optional :price, Integer # @!attribute regular_price # # @return [Integer, nil] optional :regular_price, Integer, api_name: :regularPrice # @!attribute start_date # # @return [String, nil] optional :start_date, String, api_name: :startDate # @!attribute subscriber_id # # @return [Integer, nil] optional :subscriber_id, Integer, api_name: :subscriberId # @!attribute type # # @return [String, nil] optional :type, String # @!attribute user_id # # @return [Integer, nil] optional :user_id, Integer, api_name: :userId # @!method initialize(id: nil, action: nil, cancel_date: nil, date: nil, discount: nil, duration: nil, earning_id: nil, expire_date: nil, is_current: nil, offer_end: nil, offer_start: nil, price: nil, regular_price: nil, start_date: nil, subscriber_id: nil, type: nil, user_id: nil) # @param id [Integer] # @param action [String] # @param cancel_date [String, nil] # @param date [String] # @param discount [Integer] # @param duration [Integer] # @param earning_id [Integer] # @param expire_date [String] # @param is_current [Boolean] # @param offer_end [String, nil] # @param offer_start [String, nil] # @param price [Integer] # @param regular_price [Integer] # @param start_date [String] # @param subscriber_id [Integer] # @param type [String] # @param user_id [Integer] end |
Instance Attribute Details
#action ⇒ String?
655 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 655 optional :action, String |
#cancel_date ⇒ String?
660 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 660 optional :cancel_date, String, api_name: :cancelDate, nil?: true |
#date ⇒ String?
665 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 665 optional :date, String |
#discount ⇒ Integer?
670 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 670 optional :discount, Integer |
#duration ⇒ Integer?
675 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 675 optional :duration, Integer |
#earning_id ⇒ Integer?
680 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 680 optional :earning_id, Integer, api_name: :earningId |
#expire_date ⇒ String?
685 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 685 optional :expire_date, String, api_name: :expireDate |
#id ⇒ Integer?
650 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 650 optional :id, Integer |
#is_current ⇒ Boolean?
690 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 690 optional :is_current, Onlyfans::Internal::Type::Boolean, api_name: :isCurrent |
#offer_end ⇒ String?
695 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 695 optional :offer_end, String, api_name: :offerEnd, nil?: true |
#offer_start ⇒ String?
700 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 700 optional :offer_start, String, api_name: :offerStart, nil?: true |
#price ⇒ Integer?
705 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 705 optional :price, Integer |
#regular_price ⇒ Integer?
710 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 710 optional :regular_price, Integer, api_name: :regularPrice |
#start_date ⇒ String?
715 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 715 optional :start_date, String, api_name: :startDate |
#subscriber_id ⇒ Integer?
720 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 720 optional :subscriber_id, Integer, api_name: :subscriberId |
#type ⇒ String?
725 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 725 optional :type, String |
#user_id ⇒ Integer?
730 |
# File 'lib/onlyfans/models/users/subscribe_create_response.rb', line 730 optional :user_id, Integer, api_name: :userId |
Instance Method Details
#to_hash ⇒ {
863 |
# File 'sig/onlyfans/models/users/subscribe_create_response.rbs', line 863
def to_hash: -> {
|