<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Apruve.Models
{
    public class LineItem
    {
        // required on create:
        public string title { get; set; }
        public int amount_cents { get; set; }

        // optional:
        public int? quantity { get; set; }
        public int? price_ea_cents { get; set; }
        public string merchant_notes { get; set; }
        public string description { get; set; }
        public string variant_info { get; set; }
        public string sku { get; set; }
        public string vendor { get; set; }
        public string view_product_url { get; set; }

        // for subscriptions:
        

        // set by apruve:
        public string id { get; set; }
        public string payment_request_id { get; set; }

        // Methods
        public static LineItem get(string paymentRequestId, string lineItemId)
        {
            var apruveClient = ApruveClient.getInstance();
            string uri = "/api/v3/payment_requests/" + paymentRequestId + "/line_items/" + lineItemId;
            var apruveResponse = apruveClient.get<Subscription>(uri);

            // Return the response object, which should be a PaymentRequest object
            return apruveResponse;
        }

        public string toValueString()
        {
            StringBuilder valueString = new StringBuilder();
            valueString.Append(id);
            valueString.Append(this.title);
            if (amount_cents != null)
            {
                valueString.Append(amount_cents);
            }<commit_msg>Removed outdated comment<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Apruve.Models
{
    public class LineItem
    {
        // required on create:
        public string title { get; set; }
        public int amount_cents { get; set; }

        // optional:
        public int? quantity { get; set; }
        public int? price_ea_cents { get; set; }
        public string merchant_notes { get; set; }
        public string description { get; set; }
        public string variant_info { get; set; }
        public string sku { get; set; }
        public string vendor { get; set; }
        public string view_product_url { get; set; }

        // set by apruve:
        public string id { get; set; }
        public string payment_request_id { get; set; }

        // Methods
        public static LineItem get(string paymentRequestId, string lineItemId)
        {
            var apruveClient = ApruveClient.getInstance();
            string uri = "/api/v3/payment_requests/" + paymentRequestId + "/line_items/" + lineItemId;
            var apruveResponse = apruveClient.get<Subscription>(uri);

            // Return the response object, which should be a PaymentRequest object
            return apruveResponse;
        }

        public string toValueString()
        {
            StringBuilder valueString = new StringBuilder();
            valueString.Append(id);
            valueString.Append(this.title);
            if (amount_cents != null)
            {
                valueString.Append(amount_cents);
            }
{'fraction_non_alphanumeric': 0.08683645289966248, 'fraction_numerical': 0.000613685179502915, 'mean_word_length': 2.0129390018484288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5427160', 'n_tokens_mistral': 863, 'n_tokens_neox': 843, 'n_words': 258}