Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Yakushev committed Oct 10, 2018
2 parents 729f382 + a58ad5f commit 0d3de4c
Show file tree
Hide file tree
Showing 166 changed files with 7,306 additions and 994 deletions.
3 changes: 1 addition & 2 deletions BunqSdk/BunqSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<PackageId>Bunq.Sdk</PackageId>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>1.0.0.0</VersionPrefix>
<VersionSuffix>beta</VersionSuffix>
<VersionPrefix>1.1.0.0</VersionPrefix>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>Bunq.Sdk</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion BunqSdk/Http/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class ApiClient
/// Values for the default headers
/// </summary>
private const string CACHE_CONTROL_NONE = "no-cache";
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.0.0.0";
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.1.0.0";
private const string LANGUAGE_EN_US = "en_US";
private const string REGION_NL_NL = "nl_NL";
private const string GEOLOCATION_ZERO = "0 0 0 0 NL";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public static BunqResponse<byte[]> List(int chatConversationId, int attachmentId
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
2 changes: 0 additions & 2 deletions BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class AttachmentMonetaryAccount : BunqModel
/// </summary>
protected const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/attachment";


/// <summary>
/// The attachment.
/// </summary>
Expand Down Expand Up @@ -54,7 +53,6 @@ public static BunqResponse<int> Create(byte[] requestBytes, int? monetaryAccount
return ProcessForId(responseRaw);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
1 change: 0 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/AttachmentPublic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public static BunqResponse<AttachmentPublic> Get(string attachmentPublicUuid,
return FromJson<AttachmentPublic>(responseRaw, OBJECT_TYPE_GET);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public static BunqResponse<byte[]> List(string attachmentPublicUuid,
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
1 change: 0 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/AttachmentTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public static BunqResponse<AttachmentTab> Get(int attachmentTabId, int? monetary
return FromJson<AttachmentTab>(responseRaw, OBJECT_TYPE_GET);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
1 change: 0 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/AttachmentTabContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static BunqResponse<byte[]> List(int attachmentTabId, int? monetaryAccoun
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
7 changes: 6 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/Avatar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ public class Avatar : BunqModel

private const string OBJECT_TYPE_GET = "Avatar";

/// <summary>
/// The public UUID of the public attachment from which an avatar image must be created.
/// </summary>
[JsonProperty(PropertyName = "attachment_public_uuid")]
public string AttachmentPublicUuid { get; set; }

/// <summary>
/// The UUID of the created avatar.
/// </summary>
Expand Down Expand Up @@ -83,7 +89,6 @@ public static BunqResponse<Avatar> Get(string avatarUuid, IDictionary<string, st
return FromJson<Avatar>(responseRaw, OBJECT_TYPE_GET);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
21 changes: 16 additions & 5 deletions BunqSdk/Model/Generated/Endpoint/BillingContractSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ public class BillingContractSubscription : BunqModel
/// </summary>
private const string OBJECT_TYPE_GET = "BillingContractSubscription";

/// <summary>
/// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
/// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
/// </summary>
[JsonProperty(PropertyName = "subscription_type")]
public string SubscriptionType { get; set; }

/// <summary>
/// The id of the billing contract.
/// </summary>
Expand Down Expand Up @@ -68,11 +75,11 @@ public class BillingContractSubscription : BunqModel
public int? ContractVersion { get; set; }

/// <summary>
/// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
/// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
/// The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not
/// possible.
/// </summary>
[JsonProperty(PropertyName = "subscription_type")]
public string SubscriptionType { get; set; }
[JsonProperty(PropertyName = "subscription_type_downgrade")]
public string SubscriptionTypeDowngrade { get; set; }

/// <summary>
/// The subscription status.
Expand Down Expand Up @@ -124,7 +131,6 @@ public static BunqResponse<List<BillingContractSubscription>> List(IDictionary<s
return FromJsonList<BillingContractSubscription>(responseRaw, OBJECT_TYPE_GET);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down Expand Up @@ -164,6 +170,11 @@ public override bool IsAllFieldNull()
return false;
}

if (this.SubscriptionTypeDowngrade != null)
{
return false;
}

if (this.Status != null)
{
return false;
Expand Down
12 changes: 5 additions & 7 deletions BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public class BunqMeFundraiserProfile : BunqModel
/// </summary>
public const string FIELD_POINTER = "pointer";

/// <summary>
/// The pointer (url) which will be used to access the bunq.me fundraiser profile.
/// </summary>
[JsonProperty(PropertyName = "pointer")]
public MonetaryAccountReference Pointer { get; set; }

/// <summary>
/// The color chosen for the bunq.me fundraiser profile in hexadecimal format.
Expand All @@ -41,12 +46,6 @@ public class BunqMeFundraiserProfile : BunqModel
[JsonProperty(PropertyName = "attachment")]
public List<AttachmentPublic> Attachment { get; set; }

/// <summary>
/// The pointer (url) which will be used to access the bunq.me fundraiser profile.
/// </summary>
[JsonProperty(PropertyName = "pointer")]
public MonetaryAccountReference Pointer { get; set; }

/// <summary>
/// The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED.
/// </summary>
Expand All @@ -59,7 +58,6 @@ public class BunqMeFundraiserProfile : BunqModel
[JsonProperty(PropertyName = "redirect_url")]
public string RedirectUrl { get; set; }


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
1 change: 0 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class BunqMeFundraiserResult : BunqModel
[JsonProperty(PropertyName = "payments")]
public List<Payment> Payments { get; set; }


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
25 changes: 12 additions & 13 deletions BunqSdk/Model/Generated/Endpoint/BunqMeTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ public class BunqMeTab : BunqModel
/// </summary>
private const string OBJECT_TYPE_GET = "BunqMeTab";

/// <summary>
/// The bunq.me entry containing the payment information.
/// </summary>
[JsonProperty(PropertyName = "bunqme_tab_entry")]
public BunqMeTabEntry BunqmeTabEntry { get; set; }

/// <summary>
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }

/// <summary>
/// The id of the created bunq.me.
/// </summary>
Expand Down Expand Up @@ -66,24 +78,12 @@ public class BunqMeTab : BunqModel
[JsonProperty(PropertyName = "monetary_account_id")]
public int? MonetaryAccountId { get; set; }

/// <summary>
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }

/// <summary>
/// The url that points to the bunq.me page.
/// </summary>
[JsonProperty(PropertyName = "bunqme_tab_share_url")]
public string BunqmeTabShareUrl { get; set; }

/// <summary>
/// The bunq.me entry containing the payment information.
/// </summary>
[JsonProperty(PropertyName = "bunqme_tab_entry")]
public BunqMeTabEntry BunqmeTabEntry { get; set; }

/// <summary>
/// The list of bunq.me result Inquiries successfully made and paid.
/// </summary>
Expand Down Expand Up @@ -173,7 +173,6 @@ public static BunqResponse<BunqMeTab> Get(int bunqMeTabId, int? monetaryAccountI
return FromJson<BunqMeTab>(responseRaw, OBJECT_TYPE_GET);
}


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
36 changes: 17 additions & 19 deletions BunqSdk/Model/Generated/Endpoint/BunqMeTabEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,29 @@ public class BunqMeTabEntry : BunqModel
public const string FIELD_DESCRIPTION = "description";
public const string FIELD_REDIRECT_URL = "redirect_url";

/// <summary>
/// The requested Amount.
/// </summary>
[JsonProperty(PropertyName = "amount_inquired")]
public Amount AmountInquired { get; set; }

/// <summary>
/// The uuid of the bunq.me.
/// The description for the bunq.me. Maximum 9000 characters.
/// </summary>
[JsonProperty(PropertyName = "uuid")]
public string Uuid { get; set; }
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }

/// <summary>
/// The requested Amount.
/// The URL which the user is sent to when a payment is completed.
/// </summary>
[JsonProperty(PropertyName = "amount_inquired")]
public Amount AmountInquired { get; set; }
[JsonProperty(PropertyName = "redirect_url")]
public string RedirectUrl { get; set; }

/// <summary>
/// The uuid of the bunq.me.
/// </summary>
[JsonProperty(PropertyName = "uuid")]
public string Uuid { get; set; }

/// <summary>
/// The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the
Expand All @@ -39,31 +50,18 @@ public class BunqMeTabEntry : BunqModel
[JsonProperty(PropertyName = "alias")]
public MonetaryAccountReference Alias { get; set; }

/// <summary>
/// The description for the bunq.me. Maximum 9000 characters.
/// </summary>
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }

/// <summary>
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }

/// <summary>
/// The URL which the user is sent to when a payment is completed.
/// </summary>
[JsonProperty(PropertyName = "redirect_url")]
public string RedirectUrl { get; set; }

/// <summary>
/// List of available merchants.
/// </summary>
[JsonProperty(PropertyName = "merchant_available")]
public List<BunqMeMerchantAvailable> MerchantAvailable { get; set; }


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
1 change: 0 additions & 1 deletion BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class BunqMeTabResultInquiry : BunqModel
[JsonProperty(PropertyName = "bunq_me_tab_id")]
public int? BunqMeTabId { get; set; }


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class BunqMeTabResultResponse : BunqModel
[JsonProperty(PropertyName = "payment")]
public Payment Payment { get; set; }


/// <summary>
/// </summary>
public override bool IsAllFieldNull()
Expand Down
Loading

0 comments on commit 0d3de4c

Please sign in to comment.