Files
github-api/jacoco/org.kohsuke.github/GHMarketplaceUserPurchase.java.html
2021-06-02 11:09:28 -07:00

113 lines
4.3 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHMarketplaceUserPurchase.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> &gt; <a href="index.source.html" class="el_package">org.kohsuke.github</a> &gt; <span class="el_source">GHMarketplaceUserPurchase.java</span></div><h1>GHMarketplaceUserPurchase.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Date;
/**
* Github Marketplace User Purchase
*
* @author Paulo Miguel Almeida
* @see GitHub#getMyMarketplacePurchases()
*/
<span class="fc" id="L13">public class GHMarketplaceUserPurchase extends GitHubInteractiveObject {</span>
private String billingCycle;
private String nextBillingDate;
private boolean onFreeTrial;
private String freeTrialEndsOn;
private Long unitCount;
private String updatedAt;
@SuppressFBWarnings(value = &quot;UWF_UNWRITTEN_FIELD&quot;, justification = &quot;Field comes from JSON deserialization&quot;)
private GHMarketplaceAccount account;
@SuppressFBWarnings(value = &quot;UWF_UNWRITTEN_FIELD&quot;, justification = &quot;Field comes from JSON deserialization&quot;)
private GHMarketplacePlan plan;
/**
* Wrap up GHMarketplaceUserPurchase.
*
* @param root
* the root
* @return an instance of the GHMarketplaceUserPurchase class
*/
GHMarketplaceUserPurchase wrapUp(GitHub root) {
<span class="fc" id="L33"> this.root = root;</span>
<span class="pc bpc" id="L34" title="1 of 2 branches missed."> if (this.account != null)</span>
<span class="fc" id="L35"> this.account.wrapUp(this.root);</span>
<span class="pc bpc" id="L36" title="1 of 2 branches missed."> if (this.plan != null)</span>
<span class="fc" id="L37"> this.plan.wrapUp(this.root);</span>
<span class="fc" id="L38"> return this;</span>
}
/**
* Gets billing cycle.
*
* @return the billing cycle
*/
public String getBillingCycle() {
<span class="fc" id="L47"> return billingCycle;</span>
}
/**
* Gets next billing date.
*
* @return the next billing date
*/
public Date getNextBillingDate() {
<span class="nc" id="L56"> return GitHubClient.parseDate(nextBillingDate);</span>
}
/**
* Is on free trial boolean.
*
* @return the boolean
*/
public boolean isOnFreeTrial() {
<span class="fc" id="L65"> return onFreeTrial;</span>
}
/**
* Gets free trial ends on.
*
* @return the free trial ends on
*/
public Date getFreeTrialEndsOn() {
<span class="fc" id="L74"> return GitHubClient.parseDate(freeTrialEndsOn);</span>
}
/**
* Gets unit count.
*
* @return the unit count
*/
public Long getUnitCount() {
<span class="nc" id="L83"> return unitCount;</span>
}
/**
* Gets updated at.
*
* @return the updated at
*/
public Date getUpdatedAt() {
<span class="nc" id="L92"> return GitHubClient.parseDate(updatedAt);</span>
}
/**
* Gets account.
*
* @return the account
*/
public GHMarketplaceAccount getAccount() {
<span class="fc" id="L101"> return account;</span>
}
/**
* Gets plan.
*
* @return the plan
*/
public GHMarketplacePlan getPlan() {
<span class="fc" id="L110"> return plan;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>